Make the evidence travelLesson 26 of 30 · 6 min
Things can move together without causing each other
Explain why an observed association alone does not identify a causal effect.
Association means the distribution of one variable differs with another. Correlation is one numerical description of how two quantities vary together. A strong correlation alone does not show that changing one will change the other.
In this simulation, background load increases both queue length and response time. Queue length has no causal role in the generator: both variables receive the same load input plus independent noise. Yet their correlation can be large.
Correlations can support prediction and suggest explanations. To ask about cause, say what you would change directly. Consider whether a shared cause, the reverse direction or the way cases were selected could explain the same pattern.
Could queue length and response time correlate even when neither causes the other in the generator?
Write a prediction (optional)
Run the prepared example
This page puts the example in the Python editor. Select Run Python with the code unchanged.
Seeded causal model
A saved draft is open. To run the published example, open Editor tools and select Restore example. Recover draft brings your code back.
Execution error
Technical error details
What to compare
Read Observed correlation and compare it with how the points change colour across the plot. Which variable changes both queue length and response time in the model?
Your result
Result tools
The generator gives load a role in both outcomes. Queue length has no direct effect on response time here, despite their strong correlation.
Published example output
The site ran the original code to produce this reference. Build environment ↗
Observed correlation: 0.973
The generator gives load a role in both outcomes. Queue length has no direct effect on response time here, despite their strong correlation.
Change and run again
In the Python editor, replace rng.normal(0, 1, len(load)) in the queue assignment with rng.normal(0, 8, len(load)). Select Run Python again. Compare Observed correlation and the horizontal spread in the plot. Does a weaker correlation mean the code removed the effect of load? Return to the Python editor
What this example supports. The causal structure is known because we authored the generator. An observed scatterplot alone cannot recover that structure.
Try a fresh case
Ice-cream sales and swimming rescues rise together. What explanation should you investigate?
Hints for this question
- Look for something that changes both variables.
- Distinguish a predictive relationship from an intervention effect.