Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI)
Ecological inference for 2x2 tables estimates the unknown within-group rates, such as turnout among a group and among everyone else, from aggregate unit-level shares using Goodman regression, Duncan-Davis bounds and King's method.
2x2 표의 생태학적 추론은 단위별 집계 비율만으로 집단 내부 비율(예: 특정 집단과 나머지의 투표율)을 Goodman 회귀, Duncan-Davis 한계, King 방법으로 추정합니다.
I only have district-level turnout and the share of young voters; can I estimate turnout among young and older voters separately?
선거구별 투표율과 청년 유권자 비율만 있는데, 청년과 나머지 유권자의 투표율을 따로 추정할 수 있나요?
Goodman regression treats turnout as a weighted average of the two group rates and estimates them by weighted least squares, and the Duncan-Davis bounds give the range each district's rates must lie in. King's method fits a truncated bivariate normal for the district rates within those bounds and simulates district and aggregate estimates with intervals.
When to use Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI)
- You have, for each unit, the share with the outcome, the share in the group and the unit size, but not the cross-tabulation.
- You want both deterministic bounds and model-based estimates.
- Group shares vary across units.
When to use something else
- Individual-level data exist; use them with logistic regression.
- Group shares hardly vary across units; neither Goodman nor King's method can separate the two rates.
Assumptions and requirements
- Shares are proportions in [0, 1]; units with a group share of exactly 0 or 1 are moved slightly inside.
- Goodman assumes the group rates are constant across units; King assumes they follow a truncated bivariate normal unrelated to the group share.
- Unit estimates draw parameters from their asymptotic normal distribution, without the priors or importance resampling of King's software.
What the analysis reports
- Goodman estimates of the two group rates with standard errors
- Duncan-Davis bounds per unit and aggregated
- King's EI unit estimates with intervals and aggregate rates with intervals
- Scatter of outcome share against group share
How to report it
Goodman regression estimated the rate at [value] in the group and [value] elsewhere; King's EI gave an aggregate group rate of [value] (95% interval [value]-[value]), within the Duncan-Davis bounds of [value] to [value].
Related methods
- Weighted Least Squares Regression
- Small Area Estimation
- Binary Logistic Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels and direct computations (formulas, enumeration or simulation).
독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a weight column
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.