What is the ecological fallacy, and how can it mislead conclusions drawn from a regression on aggregated data?

Quick Overview

Asks what the ecological fallacy is and how a regression on group averages can mislead conclusions about individuals. It tests whether you can separate within-group and between-group effects, compare correlation strength at the group and individual levels, and choose analyses that avoid the error.

What is the ecological fallacy, and how can it mislead conclusions drawn from a regression on aggregated data?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the ecological fallacy, and how can it mislead conclusions drawn from a regression on aggregated data? A typical case is a regression of each region's average outcome on its average predictor, read as if it described individual people. ```hint Split the predictor Write each individual's predictor as the group mean plus a deviation from that mean. Which of the two parts does a regression on group means actually use? ``` ```hint Look between groups Ask what else differs from one group to the next and could move both group averages together. ``` ### What a Strong Answer Covers - A precise definition of the ecological fallacy - The mechanism by which aggregation changes the estimated slope, and what drives the group-level slope - An example, ideally with numbers, in which the aggregated slope differs in size or sign from the individual one - How correlation strength on aggregated data compares with individual-level correlation, and why - Remedies when the claim is about individuals and when only aggregates exist ### Follow-up Questions - What is the reverse error, inferring group-level relationships from individual data, and when does it matter? - You only have county-level aggregates but need an individual-level estimate. What can you do, and what assumptions does it rest on? - How can the choice of grouping (counties versus states, or different boundaries at the same scale) change an ecological regression? - Can aggregation bias appear with no confounding at all, for example when the individual-level relationship is nonlinear?

Overview: Asks what the ecological fallacy is and how a regression on group averages can mislead conclusions about individuals. It tests whether you can separate within-group and between-group effects, compare correlation strength at the group and individual levels, and choose analyses that avoid the error.

General logo
General
Nov 24, 2026
mediumData ScientistOtherMachine Learning
0
0

What is the ecological fallacy, and how can it mislead conclusions drawn from a regression on aggregated data? A typical case is a regression of each region's average outcome on its average predictor, read as if it described individual people.

What a Strong Answer Covers Guidance

  • A precise definition of the ecological fallacy
  • The mechanism by which aggregation changes the estimated slope, and what drives the group-level slope
  • An example, ideally with numbers, in which the aggregated slope differs in size or sign from the individual one
  • How correlation strength on aggregated data compares with individual-level correlation, and why
  • Remedies when the claim is about individuals and when only aggregates exist

Follow-up Questions Guidance

  • What is the reverse error, inferring group-level relationships from individual data, and when does it matter?
  • You only have county-level aggregates but need an individual-level estimate. What can you do, and what assumptions does it rest on?
  • How can the choice of grouping (counties versus states, or different boundaries at the same scale) change an ecological regression?
  • Can aggregation bias appear with no confounding at all, for example when the individual-level relationship is nonlinear?