I'll generate a complete, self-contained HTML slide deck on "Distinguishing Correlation and Causation" following every design token and component pattern specified. ```html Distinguishing Correlation and Causation
01 / 20

Correlation
vs. Causation

Two variables can move together without one causing the other. Learn to tell the difference and avoid drawing false conclusions from data.

Statistics & Probability

What Is a Correlation?

A correlation means two variables tend to change together. When one variable goes up, the other tends to go up (or down) in a predictable pattern.

Variable X Variable Y Positive Correlation

Measuring Strength: \( r \)

The correlation coefficient \( r \) measures how strongly two variables move together. It always falls between \( -1 \) and \( +1 \):

\( r \approx +1 \)
Strong positive: both rise together.
\( r \approx 0 \)
No linear relationship.
\( r \approx -1 \)
Strong negative: one rises, other falls.

What Is Causation?

Causation means a change in one variable directly produces a change in the other. To establish it, we need evidence beyond a pattern in the data.

Cause (Variable X) Effect (Variable Y) produces

The Core Principle

Just because two variables are correlated does not mean one causes the other. There are always three possibilities to consider when X and Y move together:

1
X causes Y — the change in X directly produces Y.
2
Y causes X — the direction is actually reversed.
3
A third factor (a lurking variable) causes both.

The Lurking Variable

A lurking variable (or confounder) is a hidden third factor that influences both variables, creating a correlation that looks like causation.

Lurking Variable Z Variable X Variable Y observed correlation

A Classic Example

Across a city, ice cream sales and drowning deaths are strongly correlated. Does buying ice cream cause drowning?

Hot Weather Ice Cream Sales Drownings correlated

Watch the Direction

Sometimes there really is a causal link, but the direction is reversed from what we assume.

We Assume
More firefighters at a fire causes more damage.
Reality
Bigger fires cause both more damage and more firefighters being sent.

How to Establish Causation

To move from correlation to a causal claim, evidence must rule out the alternatives:

1
Run an experiment. Randomly assign subjects to groups so lurking variables are balanced out.
2
Control variables. Hold other factors constant to isolate the effect of X on Y.
3
Check the timing. The cause must come before the effect.
4
Find a mechanism. A plausible reason X would produce Y strengthens the case.

Your Checklist

When you see a claim that "X causes Y" based on data, ask these questions:

1
Is the evidence from an experiment or just observed data?
2
Could a lurking variable explain both X and Y?
3
Could the direction be reversed (Y causing X)?
4
Is there a believable mechanism connecting them?

Example 1: Shoe Size

In a study of children, shoe size and reading ability have a correlation of \( r = 0.85 \). Does bigger feet cause better reading?

Age Shoe Size Reading

Example 2: Study Hours

Researchers randomly assigned students to study 0, 2, or 4 hours. Test scores rose with study time, \( r = 0.78 \). Is this causation?

Study Hours Test Score Randomized Experiment

Example 3: Reverse Arrow

A news report says: "People who sleep more report less stress." It claims more sleep reduces stress. What else could explain this?

Claimed
Sleep → less stress.
Reversed
Less stress → easier to sleep.
Lurking
A flexible job allows both more sleep and less stress.

Common Mistakes

✕ Jumping to Cause
Assuming a strong \( r \) proves X causes Y. Correlation alone never does.
✕ Ignoring Confounders
Forgetting that a hidden third variable can create the whole correlation.
✕ Wrong Direction
Not checking whether Y might actually be causing X instead.
✕ Trusting Observation
Treating observational data like a controlled experiment.

Correlation vs. Causation

Correlation Causation
Meaning Variables move together One produces the other
Measured by Coefficient \( r \) Controlled experiment
Has direction? No Yes
Proven by data? Observational data Randomized study
Implies the other? Not necessarily Implies correlation

Question 1 of 5

Which statement is always true about two correlated variables?

Question 2 of 5

Cities with more police officers tend to have more crime (\( r = 0.7 \)). What is the most likely explanation?

Question 3 of 5

Which type of study gives the strongest evidence that X causes Y?

Question 4 of 5

A study finds that students who eat breakfast have higher grades. This is observational data. What can we conclude?

Question 5 of 5

A correlation coefficient of \( r = -0.9 \) tells you that the two variables are:

``` I've created a complete 20-slide deck on Distinguishing Correlation and Causation. Key features: **Structure followed:** - **Title slide** with clean abstract scatter-plot icon - **Concept intro** (slides 2-4): correlation definition with scatterplot, the coefficient \( r \), and causation with direction - **Core principle** (slide 5): "correlation does not imply causation" with three possibilities - **Key distinctions** (slides 6-8): lurking variables, classic ice-cream example, reverse causation - **How to apply** (slides 9-10): establishing causation + a checklist - **Worked examples** (slides 11-13): shoe size (lurking), study hours (valid experiment), sleep/stress (reverse + lurking) - **Common mistakes** (slide 14) and **summary table** (slide 15) - **5 MCQ assessments** (slides 16-20) **Design compliance:** - Exact CSS template used verbatim, with topic-specific SVG diagrams added - KaTeX renders all math (\( r \), \( r = 0.85 \), \( -0.9 \), etc.) including in headings - All SVGs use smooth arrows, generous spacing, proper color coding (green/blue/amber/red matching callouts) - Full keyboard, swipe, accordion, and assessment interactivity - WCAG-compliant colors, 44px touch targets, semantic HTML, ARIA labels - No emojis (only `✓`, `✕`, `←`, `→`)