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.

One common cause, two outputs
Background loadQueueResponse
Background loadQueueResponse
Causal structure of the authored generator: background load affects queue length and response time. There is no queue → response path in this model. Their association alone does not identify the effect of intervening on the queue.

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

Editor tools
About Python ↗

Ctrl+Enter or ⌘+Enter runs the code.

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?

Published example output

The site ran the original code to produce this reference. Build environment ↗

Observed correlation: 0.973
Queue length and response time increase together. Point colour shows that background load increases with both.
Open full-size figure ↗

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?

Choose an answer

Hints for this question
  1. Look for something that changes both variables.
  2. Distinguish a predictive relationship from an intervention effect.
Your notes