Why Do We Need Causal Inference? Three Sources of Endogeneity
An in-depth explanation of the three sources of endogeneity—omitted variable bias (OVB), reverse causality, and measurement error—and when OLS fails. Simulated data are used to intuitively demonstrate the necessity of causal inference.
Structure of This Article
This is the first article in the causal inference series, designed to help you build the core intuition of "why causal inference is needed." The article is divided into three parts:
- Principles: The three sources of endogeneity and their mathematical expressions
- Intuition: Building intuition using the minimum wage and employment example
- Code: Stata simulation demonstrating OLS bias
Layer 1: Principles
The Core Problem of Causal Inference
The central goal of empirical research in economics is to answer causal questions: "What is the causal effect of on ?"
Using the Potential Outcomes Framework, the treatment effect for individual is:
where and are the potential outcomes for the individual under treatment and no treatment, respectively. The fundamental problem of causal inference is that we can never observe both potential outcomes for the same individual simultaneously.
Three Sources of Endogeneity
When we use OLS to estimate , being a consistent estimator of requires . The endogeneity problem arises when , and it has three sources:
1. Omitted Variable Bias (OVB)
If a variable that affects both and is omitted:
2. Reverse Causality
may in turn affect . For example: higher GDP leads to more education investment, rather than education alone raising GDP.
3. Measurement Error
If suffers from classical measurement error , then:
This produces attenuation bias.
Layer 2: Intuition
Example: Does Raising the Minimum Wage Reduce Employment?
Suppose you observe that states that raised their minimum wage actually saw employment rates increase. Can you directly conclude that "raising the minimum wage promotes employment"?
No! Because:
- OVB: Economically booming states are more likely to raise the minimum wage (economic conditions are omitted)
- Reverse causality: Strong employment conditions → increased political pressure → raise the minimum wage
- Selection bias: The labor market structures of different states are inherently different
This is precisely the problem that Card and Krueger (1994, AER) addressed using difference-in-differences (DID).
Layer 3: Stata Code
Simulation Demonstration: OLS Bias Under Endogeneity
// ═══════════════════════════════════════════════
// Demonstration: OLS bias in the presence of endogeneity
// ═══════════════════════════════════════════════
clear all
set seed 12345
set obs 1000
// True DGP
gen ability = rnormal(0, 1) // Unobservable ability (omitted variable)
gen education = 12 + 2*ability + rnormal(0, 1) // Education is affected by ability
gen wage = 10 + 3*education + 5*ability + rnormal(0, 2)
// True return to education = 3
// OLS regression (omitting ability)
reg wage education, robust
// Coefficient > 3, indicating upward bias!
// After adding the control variable
reg wage education ability, robust
// Coefficient ≈ 3, close to the true value
Key Takeaway: When there are omitted variables, the OLS estimator is biased and inconsistent. This is the fundamental reason we need causal inference methods such as DID, IV, and RDD.
Types of Treatment Effects
| Abbreviation | Full Name | Meaning |
|---|---|---|
| ATE | Average Treatment Effect | Average treatment effect across all individuals |
| ATT | Average Treatment Effect on the Treated | Average treatment effect for the treatment group |
| ATU | Average Treatment Effect on the Untreated | Average treatment effect for the untreated group |
| LATE | Local Average Treatment Effect | Treatment effect for marginal individuals (Compliers) |
When treatment effects are heterogeneous, . Understanding which parameter your estimator identifies is a prerequisite for correctly interpreting empirical results.
References
- Angrist, J. D., & Pischke, J. S. (2009). Mostly Harmless Econometrics. Princeton University Press.
- Card, D., & Krueger, A. B. (1994). Minimum Wages and Employment: A Case Study of the Fast-Food Industry in New Jersey and Pennsylvania. American Economic Review, 84(4), 772-793. DOI
- Rubin, D. B. (1974). Estimating Causal Effects of Treatments in Randomized and Nonrandomized Studies. Journal of Educational Psychology, 66(5), 688-701.
Related reading
- What is the relationship between endogenous and exogenous explanatory variables? When should you worry about endogeneity?
$$ \\text{Wage} = \\beta0 + \\beta1 \\cdot \\text{Education} + \\beta2 \\cdot \\text{Experience} + \\varepsilon $$
Econometrics为什么需要因果推断:解释变量内生(18 次访问)。 - Do Empirical Studies Require Rigorous Statistical Tests to Examine Variable Endogeneity?
You have finished the endogeneity chapter in econometrics. You learned about the Durbin-Wu-Hausman (DWH) test—first run an instrumental variables regression, then compare the difference between the IV and OLS estimates. If the difference is significant → OLS has endogeneity bias → you should use IV. If the difference is not significant → you cannot...
Econometrics内生不是口头禅,要能检验(14 次访问)。 - The Intellectual Origins of DID: From the Cholera Map to Causal Inference
Tracing the historical lineage of difference-in-differences—from John Snow's London cholera study in the 19th century to a cornerstone of modern econometrics, and understanding how the core idea of DID was born.
Causal Inference因果设计的一条主路:DID 从哪来(0 次访问)。 - What Is a Non-Random Sample? What Is the Difference Between Endogenous and Exogenous Selection? What Should You Do with a Non-Random Sample?
You use CGSS (Chinese General Social Survey) to study the effect of education on personal income. CGSS is a nationwide sample survey—theoretically, it is a random sample of the population. But think more carefully:
Econometrics观测数据不是随机分配,样本选择是第一课(0 次访问)。