Courses › Statistics and Econometrics
Threats to validity and randomized experiments
Measurement error, simultaneity and selection; potential outcomes; why randomization works; and the practical problems of real experiments.
By now you can run and read a regression. The hard part is believing it. A regression of earnings on job training, of crime on police, or of sales on price will produce a number, but whether that number measures a causal effect depends on threats that no amount of statistical polish can fix.
This module lists the main threats to a causal reading of a regression (omitted variables, measurement error, simultaneity, selection), introduces the potential outcomes framework that makes “causal effect” precise, and explains why randomized experiments solve the problem so cleanly, and where real experiments still fall short.
By the end of this module you will be able to
- Distinguish internal from external validity and list the main threats to internal validity.
- Explain how measurement error in X biases OLS toward zero and why error in Y does not.
- Recognize simultaneity and sample selection in everyday examples.
- Use potential outcomes to define the average treatment effect and decompose a naive comparison into effect plus selection bias.
- Explain why randomization removes selection bias, and analyze an experiment with a regression.
- Describe the practical problems of experiments: noncompliance, attrition, spillovers and external validity.
What this module covers
- Internal and external validity
- Simultaneity and selection
- Potential outcomes
- Randomized experiments
- When experiments fall short
- Problem set with step-by-step solutions
- Module quiz
Lesson 13.1 Free lesson
Internal and external validity
A study is internally valid if its estimate is a credible causal effect for the population and setting it studied. It is externally valid if that effect carries over to other populations, places and times. A careful study of a tutoring program in one city’s schools in 2025 might be internally valid but tell you little about adults in another country.
Most threats to internal validity come down to one problem, which Module 6 flagged: the error term is correlated with X, E(u | X) ≠ 0. The causes have different names and different remedies:
| Threat | What goes wrong | Everyday example |
|---|---|---|
| Omitted variables | A factor in u affects Y and is related to X | Motivated workers both take courses and earn more |
| Measurement error in X | X is recorded with noise | Self-reported hours of exercise |
| Simultaneity (reverse causality) | Y also affects X | More police are sent to high-crime neighbourhoods |
| Sample selection | Who is in the sample depends on Y | Wages are only observed for people who work |
| Wrong functional form | A curved relationship is fitted with a line | Effect of temperature on electricity use (heating and cooling) |
Module 8 covered omitted variables and Module 10 functional form. This lesson’s remaining sections and the next one cover the others.
Measurement error
Suppose the true model is Y = β₀ + β₁X* + u, but you observe X = X* + e, where e is random recording error unrelated to everything else. Then OLS on the observed X is biased toward zero, called attenuation bias:
The fraction is the reliability of the measure: the share of the variation in X that is real. Noise in X looks like variation that doesn’t affect Y, which flattens the slope.
Worked example: Exercise and health
Suppose true weekly exercise hours have variance 9 and people misreport with error variance 3. The reliability is 9/(9 + 3) = 0.75.
If each true hour of exercise lowers resting heart rate by 0.8 beats per minute, OLS on reported hours will find about 0.75 × 0.8 = 0.6.
The estimate is too small by a quarter, and more data won’t fix it: the bias doesn’t shrink with n.
Measurement error in Y is less harmful. Random noise in the outcome ends up in the error term, adding imprecision but not bias, provided it is unrelated to X.
Common mistake
Assuming that measurement error always makes estimates conservative. Attenuation holds for random error in a single regressor. With several regressors, error in one can bias the others in either direction, and error that is correlated with the truth (people who exercise least overstate the most) can bias in any direction.
Key ideas
- Internal validity: a credible causal estimate for the setting studied; external validity: it generalizes.
- Most internal-validity threats are ways that E(u | X) ≠ 0.
- Random measurement error in X attenuates the slope by the reliability ratio Var(X*)/(Var(X*) + Var(e)).
- Random measurement error in Y adds noise, not bias.
Practice questions: Threats to validity and randomized experiments
Try these, then open each answer to check your work.
- 1.A study is internally valid when:
- Its results would hold in every country and period
- It has a large sample of several thousand units
- Its estimate is a credible causal effect for the population studied
- Its regression R² is high, so it fits the data well
Show answer
Answer: C. Internal validity concerns causal credibility within the study’s own setting.
- 2.Random measurement error in a single regressor X tends to:
- Bias the slope toward zero
- Bias the slope away from zero
- Leave the slope unbiased but imprecise
- Make R² equal to 1
Show answer
Answer: A. Attenuation bias: noise in X flattens the estimated slope.
- 3.Reliability is 0.6 and the true slope is 10. OLS on the noisy X will estimate about:
- 4
- 6
- 10
- 16.7
Show answer
Answer: B. 0.6 × 10 = 6.
Problems with step-by-step solutions
- 4.Classify the main threat in each case: (a) regressing a city’s ice cream sales on its price, using monthly data; (b) estimating the effect of a reading app by comparing families who downloaded it with those who didn’t; (c) regressing health on self-reported weekly servings of vegetables.
Show step-by-step solution
- (a) Simultaneity: price and quantity are set together by supply and demand.
- (b) Selection/omitted variables: families who download a reading app are likely more engaged in their children’s reading anyway.
- (c) Measurement error in X (self-reports are noisy), likely attenuating the slope.
- 5.True variance of household income is 100 (in $1,000² units) and survey measurement error has variance 25. If the true effect of $1,000 of income on charitable giving is $20, what will OLS on reported income find?
Show step-by-step solution
- Reliability = 100/(100 + 25) = 0.8.
- Expected OLS slope ≈ 0.8 × 20 = $16.
Get the full module
The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).
Join the waitlist Try a full module free
More practice: free practice questions for this course.