Group and Total Average
Ecological fallacy also happens when the average for a group is approximated by the average in the total population divided by the group size. Suppose one knows the number of Protestants and the suicide rate in the USA, but one does not have data linking religion and suicide at the individual level. If one is interested in the suicide rate of Protestants, it is a mistake to consider as an unbiased estimate the total suicide rate divided by the number of Protestants. This estimate implicitly assumes that the suicidal rate of the other religions is zero.
Formally, denote the variable of interest and the mean of the group, we generally have:

However, the law of total expectation gives

This equation must be used to compute a more congent estimate. In this equation, the only things we don't know how to estimate are in blue. We know that, as a probability of suicide, is between 0 and 1. We can plug in this bound and our total estimate in the equation above to obtain an estimate of .
Read more about this topic: Ecological Fallacy
Famous quotes containing the words group and, group, total and/or average:
“The conflict between the need to belong to a group and the need to be seen as unique and individual is the dominant struggle of adolescence.”
—Jeanne Elium (20th century)
“The trouble with tea is that originally it was quite a good drink. So a group of the most eminent British scientists put their heads together, and made complicated biological experiments to find a way of spoiling it. To the eternal glory of British science their labour bore fruit.”
—George Mikes (b. 1912)
“Computers are good at swift, accurate computation and at storing great masses of information. The brain, on the other hand, is not as efficient a number cruncher and its memory is often highly fallible; a basic inexactness is built into its design. The brains strong point is its flexibility. It is unsurpassed at making shrewd guesses and at grasping the total meaning of information presented to it.”
—Jeremy Campbell (b. 1931)
“If the average citizen is guaranteed equal opportunity in the polling place, he must have equal opportunity in the market place.... The flag and the Constitution stand for democracy and not tyranny, for freedom, not subjection.”
—Franklin D. Roosevelt (18821945)