Ecological Inference

Statistics
Introduced by
Leo Goodman (ecological regression); Gary King (statistical EI solution)
Year
1997
Type
Aggregate-data model inferring individual-level rates from grouped totals
Family
Ecological / aggregate-data inference

What does it do?

Ecological inference is the problem of learning about individual behavior, such as how Black and white voters cast their ballots, when only aggregate data are available, such as precinct-level turnout and racial composition.

Because individual-level records are missing, within-group rates are not directly observed. Ecological inference recovers them by combining the deterministic accounting constraints that each unit must satisfy with a statistical model of how the unobserved rates vary across units. Gary King's 1997 solution combined the deterministic method of bounds with a statistical model of varying within-unit rates, addressing the limits of Goodman's ecological regression, which assumes those rates are constant.

The intuition behind the method

Imagine that for each neighborhood you know what fraction of residents belong to a group and what fraction voted for a candidate, but not who voted for whom. You want the rate at which group members voted for the candidate. Each neighborhood imposes a hard arithmetic constraint: the overall vote share equals the group's rate times the group's share, plus the other group's rate times its share. That constraint alone confines the unknown rates to a range, the bounds. Pooling these constraints across many neighborhoods, together with a model of how rates vary with composition, narrows the range to an estimate. The method is a disciplined way of recovering individual-level rates from aggregate identities, rather than assuming that group averages equal individual rates.

History

For many years the problem was regarded as difficult to solve, and it became central to voting-rights litigation that required estimates of racial voting patterns. Goodman's 1953 ecological regression was an early approach to the problem, and the deterministic method of bounds offers a complementary route that makes no distributional assumptions. Gary King's 1997 book proposed a statistical solution that combines the bounds with a model of varying within-unit rates. Software implementations, including the R packages described under In Practice, make the model available to practitioners.

When to use it

Use ecological inference when individual-level data are unavailable and you need within-group behavior from aggregate units. The classic case is estimating racially polarized voting from precinct returns in Voting Rights Act litigation. It is appropriate when there are many units with varying group composition, and when there are credible grounds to believe that within-unit rates vary in ways the model can represent. Do not rely on it when aggregation bias is likely, meaning within-unit rates are correlated with composition in ways the model omits. It is also weak when units are few or demographically homogeneous, because the bounds are then wide. Where individual-level data exist, or can be collected, they are preferable to inference from aggregates. The estimates are valid only under the model's identifying assumptions. The main one is that a single truncated bivariate normal distribution, with common parameters across units, describes the within-unit rates, and that this distribution is not systematically related to group composition or to other unmodeled factors that are correlated with composition. These assumptions cannot be verified from aggregate data alone, so the analysis should report its sensitivity to them.

Limitations and considerations

  • It is fundamentally a problem of partial identification: each unit gives one equation for two unknown rates, so the estimates depend on modeling assumptions.
  • Aggregation bias arises when within-unit rates are correlated with group composition in ways the model does not capture, and the aggregate data cannot reveal this on their own.
  • Estimates depend on the assumed bivariate normal form for within-unit rates, which is difficult to verify from aggregate data alone.
  • When units are few, demographically homogeneous, or have bounds that barely overlap, the quantities of interest are only weakly identified and the estimates become unstable.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • It recovers within-group rates from aggregate data alone, which is the only option when no individual records exist.
  • The method of bounds gives constraints that any estimate must satisfy, which rules out impossible values such as rates outside the unit interval.
  • King's model lets within-unit rates vary across units and uses the unit-specific bounds to constrain the statistical inference.
  • The framework is formally developed, has published software implementations, and has an established use in voting-rights analysis.

Applications

  • Estimating racially polarized voting from precinct returns as evidence in Voting Rights Act litigation.
  • Reconstructing turnout and vote choice by race, age, or class where only aggregate election data exist.
  • Inferring individual transitions between parties or candidates across elections from aggregate vote changes.
  • Studying historical voting behavior in periods that predate individual survey data, using county or precinct returns.
  • Analyzing relationships between demographic composition and outcomes such as literacy, mortality, or behavior, using grouped data.

How it works

How it works

1

Within each aggregate unit i, the observed outcome rate T_i equals the group share X_i times the within-group rate β_i^b, plus the complementary share (1 − X_i) times the other group's rate β_i^w. This identity holds by construction. It gives one equation for two unknown rates in each unit, which is why the problem is one of partial identification: the data alone cannot pin down the individual rates.

Formula
T_i = \beta_i^{b} X_i + \beta_i^{w} (1 - X_i)
2

Because each rate must lie between 0 and 1 and the identity must hold, algebra confines each unit's unknown rate to a deterministic interval. This approach requires no distributional assumptions. The bounds are often wide, but they can be informative on their own in units with extreme group composition, and they provide a check that any model-based estimate must respect.

Formula
\beta_i^{b} \in \Big[\max\!\big(0, \tfrac{T_i - (1 - X_i)}{X_i}\big),\; \min\!\big(1, \tfrac{T_i}{X_i}\big)\Big]
3

Goodman's ecological regression treats the within-group rates as constant across units and regresses the aggregate outcome on group composition, using the specification T_i = β^b X_i + β^w(1 − X_i) + ε_i. Because the two composition terms sum to one, no separate intercept is included, and the two coefficients are read directly as the two group rates. When the constancy assumption holds, this gives a simple estimate. When rates actually vary with composition, the fitted values can fall outside the unit interval, which is the main motivation for a more flexible model.

Formula
T_i = \beta^{b} X_i + \beta^{w}(1 - X_i) + \varepsilon_i
4

King's model treats each unit's pair of unknown rates as a draw from a truncated bivariate normal distribution restricted to the unit square. The distribution's parameters are estimated by maximum likelihood, and the unit-specific bounds are combined with it. This lets within-unit rates differ across units, keeps estimates within the logically possible range, and uses the bounds to constrain the inference in each unit.

Formula
(\beta_i^{b}, \beta_i^{w}) \sim \text{TN}(\mu, \Sigma)\ \text{on}\ [0,1]^2
5

The unit-level rate estimates are aggregated, weighted by group population, to produce district- or statewide quantities such as the overall share of a group voting for a candidate. Uncertainty is obtained from simulation draws of the estimated distribution. Diagnostics should check whether the fitted distribution is consistent with the bounds and whether aggregation bias from omitted covariates is plausible.

Formula
\hat{B}^{b} = \frac{\sum_i X_i N_i\,\hat{\beta}_i^{b}}{\sum_i X_i N_i}

Common pitfalls

  • Reading an aggregate correlation as an individual-level relationship without modeling the unit-level rates, which is the ecological fallacy.
  • Reporting Goodman regression estimates that fall outside the unit interval and treating them as valid rates.
  • Skipping the method of bounds, even though the bounds can show that the data already rule out values that the model's point estimate implies.
  • Reporting precise point estimates without intervals or sensitivity analysis when aggregation bias is plausible and no individual-level data exist to validate the results.

Frequently asked questions

What is the ecological fallacy and how does ecological inference avoid it?

The ecological fallacy is the error of assuming that a correlation observed across aggregate units holds for individuals. For example, one might infer that immigrants are more literate because districts with more immigrants had higher literacy. Ecological inference does not equate aggregate associations with individual behavior. It uses the accounting identity and the bounds in each unit, together with a model of how within-unit rates vary, to estimate the individual-level rates directly. The within-group rates are treated as the explicit unknowns rather than being read off an aggregate slope.

How does King's method improve on Goodman's ecological regression?

Goodman's regression assumes that the within-group rates are constant across all units. When this holds, it gives a simple estimate. When rates actually vary with composition, it can produce values outside the zero-to-one interval, and it does not use the unit-specific bounds. King's model lets each unit have its own pair of rates, drawn from a truncated bivariate normal distribution confined to the unit square. The distribution is estimated by maximum likelihood and combined with the unit-specific bounds. This respects the logical constraints and allows heterogeneity across units. It also adds distributional assumptions that must be scrutinized.

When is ecological inference unreliable?

It is unreliable when aggregation bias is strong, that is, when within-unit rates are correlated with group composition in ways the model does not capture, because then no distributional assumption can be trusted. It also struggles when there are few units, when units are demographically homogeneous so that the bounds are wide and uninformative, and when no individual-level data exist to check the assumptions. In such cases the quantities of interest are only weakly identified. Analysts should report the bounds, conduct sensitivity analysis, and treat point estimates with caution.

Related methods

Sources

  1. King, G. (1997). A Solution to the Ecological Inference Problem: Reconstructing Individual Behavior from Aggregate Data. Princeton: Princeton University Press.

    ISBN: 9780691012414
  2. Goodman, L. A. (1953). Ecological Regressions and Behavior of Individuals. American Sociological Review, 18(6), 663–664.

    Open DOI reference