← Back to Diagnostic Analytics

Correlation Is Not Causation

Chapter 4 — The Discipline That Keeps Diagnosis Honest

The defining risk of diagnostic analytics is mistaking co-movement for cause. Two things can move together for three different reasons: one causes the other, both share a common cause, or it's pure coincidence in a small sample. The job of this final chapter is to resist the leap from "these correlate" to "this causes that."

The Classic Trap — A Lurking Common Cause

Ice-cream sales and drownings rise and fall together across the year. The correlation is real and strong — but neither causes the other. A third variable, summer temperature, drives both. The chart below (an illustrative example, not from the retail data) shows the two series tracking each other almost perfectly; acting on the correlation — "ban ice cream to prevent drownings" — would be absurd.

Python · illustrative confounder

# temperature is the hidden common cause of BOTH series
temp       = 12 + 12 * np.sin((months - 3) / 12 * 2 * np.pi)
ice_cream  = 20 + 4.0 * temp + noise      # driven by temp
drownings  = 1  + 0.25 * temp + noise     # also driven by temp
# ice_cream and drownings correlate strongly, yet neither causes the other
Two time series, ice-cream sales and drownings, rising and falling together across the year on twin axes

Two strongly correlated series with no causal link between them — a hidden third variable (temperature) drives both.

How to Stay Honest

Diagnostic analytics earns its keep by treating every finding as a hypothesis and stress-testing it before acting:

Back to the Retail Case

The discount → margin finding survives all four checks: it has a direct mechanism (margin is literally reduced by the discount), no plausible confounder explains it away, it holds within every category, and it could be confirmed with a simple pricing experiment. That is the difference between a correlation worth acting on and one worth ignoring — and it's the bridge into predictive analytics, where validated drivers become model features.

That completes the Diagnostic Analytics mini-series. Continue with Predictive Analytics — What Will Happen? →

← Back to Diagnostic Analytics