Ecological fallacy, also known as an aggregation or ecological bias, is a logical error that occurs when inferences about the nature of individuals are deduced from inferences for the group to which those individuals belong. This issue is particularly relevant in epidemiology, where researchers often deal with data aggregated at the group level rather than individual level.