Mathwords logoMathwords

Lurking Variable — Definition, Formula & Examples

A lurking variable is a variable that is not included in a study but influences both the explanatory variable and the response variable, making it look like there is a direct relationship when there may not be one.

A lurking variable is an extraneous variable, neither measured nor controlled for in a statistical analysis, that has a potential effect on both the independent and dependent variables, thereby distorting the apparent association between them.

How It Works

When you observe a correlation between two variables, a lurking variable may be the true cause behind both. Because the lurking variable is hidden — not recorded in your data — you cannot see its influence directly. Identifying lurking variables requires thinking critically about what outside factors could drive the pattern you see. In observational studies, lurking variables are especially dangerous because you cannot randomly assign treatments to neutralize their effects.

Example

Problem: A researcher finds that cities with more ice cream shops tend to have higher crime rates. She considers concluding that ice cream shops cause crime. Identify the lurking variable.
Identify the observed association: The data show a positive correlation between the number of ice cream shops and the crime rate across cities.
Ask what outside factor could affect both: Larger cities have bigger populations. A bigger population means more ice cream shops AND more total crimes. Population size is a lurking variable — it was not included in the study but drives both measured variables.
Draw the correct conclusion: The correlation between ice cream shops and crime does not imply causation. Population size lurks behind both variables and creates a misleading association.
Answer: Population size is the lurking variable. It increases both the number of ice cream shops and the crime rate, producing a spurious correlation between the two.

Why It Matters

On the AP Statistics exam, free-response questions about observational studies frequently ask you to identify lurking variables as a reason you cannot infer causation. In fields like public health and economics, failing to account for lurking variables leads to flawed policy decisions based on spurious correlations.

Common Mistakes

Mistake: Treating "lurking variable" and "confounding variable" as identical terms.
Correction: A confounding variable is measured and known to overlap with the explanatory variable. A lurking variable is not included in the study at all — it is hidden. A lurking variable becomes a confounding variable once you identify and measure it.

Related Terms