What is ecological correlation and why can aggregated data mislead?

Quick Overview

Asks what ecological correlation is and why correlations computed on group averages can mislead. It tests whether you understand how aggregation inflates or flips correlations, how grouping and group size change the result, and when the level of analysis matches the claim being made.

What is ecological correlation and why can aggregated data mislead?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

What is ecological correlation and why can aggregated data mislead? ```hint Split the variance Break the total variation in each variable into a between-group part and a within-group part. Which part does a correlation of group means see? ``` ```hint Watch how groups are formed Ask what happens to the correlation of group means when the groups are defined by one of the two variables, or when some groups are tiny. ``` ### What a Strong Answer Covers - A definition of ecological correlation and of the ecological fallacy that misreads it - Why averaging removes within-group variation and makes aggregate correlations look stronger than individual ones - How the between-group pattern can differ in sign from the individual pattern, with an example - Choices that change an ecological correlation without any change in individual behavior: how groups are formed, group sizes and weighting, the level of aggregation - When an aggregate correlation is the right quantity, and what to use when the claim is about individuals ### Follow-up Questions - A dashboard buckets users into 10 groups by sessions per week and plots average spend per bucket. The bucket means have a correlation of 0.98. What does that tell you about individual users? - The counties with the highest and the lowest rates of a rare disease are mostly small counties. Why, and how should that change a county-level correlation analysis? - How can the individual-level correlation be written in terms of the within-group and between-group correlations, and what does that say about when they diverge? - When is a correlation computed on aggregated data exactly what you want?

Overview: Asks what ecological correlation is and why correlations computed on group averages can mislead. It tests whether you understand how aggregation inflates or flips correlations, how grouping and group size change the result, and when the level of analysis matches the claim being made.

Nov 24, 2026
mediumData ScientistOtherStatistics & Math
0
0

What is ecological correlation and why can aggregated data mislead?

What a Strong Answer Covers Guidance

  • A definition of ecological correlation and of the ecological fallacy that misreads it
  • Why averaging removes within-group variation and makes aggregate correlations look stronger than individual ones
  • How the between-group pattern can differ in sign from the individual pattern, with an example
  • Choices that change an ecological correlation without any change in individual behavior: how groups are formed, group sizes and weighting, the level of aggregation
  • When an aggregate correlation is the right quantity, and what to use when the claim is about individuals

Follow-up Questions Guidance

  • A dashboard buckets users into 10 groups by sessions per week and plots average spend per bucket. The bucket means have a correlation of 0.98. What does that tell you about individual users?
  • The counties with the highest and the lowest rates of a rare disease are mostly small counties. Why, and how should that change a county-level correlation analysis?
  • How can the individual-level correlation be written in terms of the within-group and between-group correlations, and what does that say about when they diverge?
  • When is a correlation computed on aggregated data exactly what you want?