Does ice cream cause sunburns?
Lesson 10.3 · The Hidden Third Thing
Rosa · Felix
Ice cream up, sunburns up. r = 0.96. Suspect: the sun.
Rosa and Felix find a beach town that tracks ice cream sales and sunburn cases every month.
They rise and fall together, tightly. The correlation is over 0.9. Nobody thinks a cone gives you a sunburn.
Something else is going on, and it’s obvious the moment you name it.
The short answer
No. The sun causes both. Color the months by season and the tight line splits into a hot cluster and a cool cluster, and inside each cluster the relationship mostly vanishes. Rosa takes the breakfast headline off the fridge and replaces it with a note: “What’s the third thing?”
Try it yourself
The dots are months. Tap the button to reveal the hidden third thing.
What you just did has a name
Confounding variable
A confounder is a hidden third thing that drives both of the things you’re looking at, making them move together even though neither causes the other.
Weather drives ice cream and sunburns. Find the confounder and the “cause” disappears.
A few more things
Ask what else changed
When two things move together, ask what else was happening at the same time. Season, age, income, how much someone cares. Confounders are usually boring and usually right there.
Breakfast and grades
Kids who eat breakfast have parents who are around in the morning, more sleep, calmer homes. Any of those could be the real driver. Breakfast might help. The correlation alone can’t say.
The direction can be backwards, too
Sometimes B causes A instead of A causing B. Do good grades cause breakfast? Probably not here. But “happy people exercise” could easily be “exercise makes people happy.” Correlation doesn’t know which way the arrow points.
Go deeper
The longer version, if you want it.
Three explanations for every correlation
When A and B are correlated, there are three candidate stories: A causes B, B causes A, or something C causes both. (A fourth, that it’s chance, is the next lesson.) A scatterplot cannot tell these apart. Only knowing the world can, or an experiment.
The only method that rules out every confounder at once is to change A yourself, at random, and watch B. Module 12 is about that. Until then, every “studies show” headline built on a correlation gets the same question: what’s the third thing?
Quick check
Kids who own more books score higher on reading tests. A charity decides to mail every family 50 books. What should Rosa ask first?
Let’s take it slower
Try it this way: when A and B rise together, pull up a third chair and ask who’s sitting in it. Fire trucks at a fire and damage done rise together, tightly. The third chair: how big the fire was. Big fire, more trucks, more damage. The trucks didn’t cause a thing. So the test is: can I name something that would push A up and push B up at the same time, on its own? If yes, that something is the suspect, and “A causes B” is on hold until you rule it out.
More examples
Shoe size and reading level
Across an elementary school, kids with bigger feet read better. Nobody is buying size 6 sneakers to boost reading. The third thing is age: older kids have bigger feet and more years of practice. Compare kids within one grade and the link disappears.
The new cleats
Players with the newest cleats score more goals. Before you beg for cleats, notice who has them: kids whose families also pay for club teams, private coaching and summer camps. The cleats are standing next to a lot of practice.
Back to the question
So does ice cream cause sunburns?
Show the answer
No. The sun causes both. Color the months by season and the tight line splits into a hot cluster and a cool cluster, and inside each cluster the relationship mostly vanishes. Rosa takes the breakfast headline off the fridge and replaces it with a note: “What’s the third thing?”
More on this: Correlation vs. causation: what’s the difference?
One last question
Ice cream sales and sunburns rise together. What’s the best explanation?
Talk Card
Talk Card · 10.3
Ice cream sales and sunburns rise together because hot weather drives both. When two things move together, look for the hidden third thing before you believe one causes the other.
Data to AI · pettigrewlab.com/learn

