TL;DR
When two numbers tend to move together, that pattern is a correlation. When changing one actually changes the other, that's causation. A correlation can come from a hidden third factor (a confounder) or from cause and effect running backwards, so split the data by the likely suspect and, whenever you can, let a coin flip decide.
- Biscuit's first report said customers who chatted with it averaged $31 an order and everyone else averaged $22, so the owner wanted Biscuit to pop open on every page.
- Regulars with standing weekly orders chat more and spend more. Split by regulars, and the gap vanished: $34 either way for regulars, and $19 either way for new customers.
- A coin flip (an A/B test or a holdout) splits every hidden factor evenly, including the ones nobody thought of. Biscuit's four-week test landed both groups at about $24.
- A correlation is a clue worth chasing. When you can't run an experiment, ask what else could cause both, split by the suspect, and check which came first.
A month after Biscuit went live on the Crumb & Co. website, Wren pulled together its first report. One line jumped out: orders from customers who chatted with Biscuit averaged $31, and everyone else's averaged $22. The owner read it on her phone between batches of sourdough and had an idea right away. If chatting makes people spend 41% more, why not pop Biscuit open on every page?
It's a tempting plan, and it might do nothing at all. Two numbers that rise and fall together can talk us into building the wrong thing (and our AI agents will happily help). In this article, we're going to learn how to tell when one thing really drives another, and what to check before we bet on it.
Onwards!
The Number That Made the Owner Smile
Wren lined up every order placed on our website in Biscuit's first 30 days, across both of our shops, and sorted them by one question: did this customer chat with Biscuit or not? Here is what came back:

Orders from customers who chatted (our chatters) averaged $31, and orders from customers who didn't averaged $22, which is about 41% more. (If you've read Averages Lie, a little alarm may already be going off, since this report is two averages standing side by side.)
The owner did some quick napkin math of her own:

If chatting is what makes orders bigger, getting everyone to chat will turn our $19,400 month into a $24,800 one. It sounds great! Before Wren builds it, though, we are going to look closely at what our report actually tells us.
What Is the Difference Between Correlation and Causation?
Chatters tend to have bigger orders, and everyone else tends to have smaller ones. When two things tend to move together like this (where we see more of one, we tend to see more of the other), the pattern is called a correlation.
The owner's plan assumes something bigger: that chatting is what makes orders bigger, so getting more people to chat will change how much they spend. When changing one thing really does change another, that is called causation. Our report shows a correlation, and it can't tell us whether we have causation.
Tyler Vigen's Spurious Correlations site is full of things that move together without one causing the other, because he compares hundreds of millions of pairs of numbers and keeps the ones that happen to line up:

Nobody thinks memes are staffing Montana's control towers. When we compare enough pairs of numbers, a few will line up by pure luck. Biscuit's gap comes from 800 orders, though, so luck is not a likely explanation. Something else is going on.
Three Stories That Fit the Same Numbers
Three different stories fit our report equally well, and the report on its own can't tell them apart. The first is the story the owner has in mind:

In this story, the chat comes first. Biscuit mentions that the cookies just came out of the oven, and the customer adds a dozen. If this is what's happening, popping Biscuit open everywhere will raise order sizes.
The second story turns the arrow around:

Here, the big order comes first. Someone ordering four dozen cookies for an office party will have questions about pickup times and boxes, so they chat. The bigger order is causing the chat. Getting the direction backwards like this is called reverse causation, and in this story, popping Biscuit open won't change order sizes one bit.
The third story is the sneakiest, and a classic example of it is how ice cream sales and sunburns rise and fall together:

Ice cream doesn't cause sunburns. A sunny day causes both, because people buy cones when it's hot and get burned when they spend the day outside. Neither number affects the other, but the sun pushes on both of them at once.
Our bakery has its own version of the sun. Some of our customers are regulars, people with a standing weekly order (like an office that picks up a pastry tray every Friday). Regulars use Biscuit to check on their orders, and regulars also place bigger orders:

Being a regular pushes on chatting and on order size at the same time. A hidden third factor like this, one that drives both of the things we're looking at, is called a confounder. If our regulars are a confounder, popping Biscuit open will get more new customers chatting, and their orders will stay exactly the same size.
How Do We Find the Hidden Third Factor?
Wren doesn't have to guess which story is true, because the bakery's ordering system already knows who has a standing order. This means we can take our suspect (being a regular) and split our orders by it.
Here is who is inside each group:

80% of the orders from chatters came from regulars, but only 20% of the orders from everyone else did. Our two groups are made of very different customers, so let's compare regulars only with regulars and new customers only with new customers:

Regulars spend $34 an order whether they chat or not, and new customers spend $19 either way, so the gap is gone. Where did $31 and $22 come from, then? Each one is a blend of $34 orders and $19 orders, and it leans toward whoever makes up most of the group:

Our chatters are mostly regulars, so their average gets pulled up to $31, and everyone else is mostly new customers, so their average sits down at $22. The 41% gap was about who chooses to chat with Biscuit in the first place. What we just did is called splitting (aka segmenting) our data by the suspect.
Why Do Experiments Exist?
Splitting only clears the suspects we think of. Maybe chatters also shop on weekends, or heard about us from a friend, or just really like bread. There will always be some factor we never thought to record, and the way around that is surprisingly simple.
Instead of letting customers decide whether to chat, we let a coin flip decide whether Biscuit pops open for them:

A coin flip doesn't care whether someone is a regular, so each group will end up about 35% regulars, like the bakery overall. It doesn't care about weekends or bread either, so every factor we never thought of gets split evenly too. If one group spends more, Biscuit is the only thing left to explain it.
Letting chance decide who gets which version makes this a randomized experiment. On a website, it's usually called an A/B test, and when most people get a change while a small group keeps the old version on purpose, that small group is called a holdout.
Wren ran this test for four weeks:

Both groups landed at about $24 an order, which is what a mix of 35% regulars at $34 and 65% new customers at $19 works out to. A 30-cent difference is the kind of wobble that shows up by chance. If we had shipped the pop-up to everyone, the owner would have waited for her $24,800 month...and kept waiting.
This trap has fooled medicine, too. For years, studies that followed women after menopause found less heart disease in those who chose hormone therapy, including women taking estrogen plus progestin in the Nurses' Health Study. Then the Women's Health Initiative let chance decide who got estrogen plus progestin and who got a placebo (a look-alike pill with no medicine in it):

In the trial, the women whose coin flip gave them estrogen plus progestin had more heart disease than the women on the placebo, which is the opposite of what the earlier studies saw. One explanation researchers have offered is that the women who chose hormones were better off to begin with, since a 2004 study found that women from tougher circumstances were less likely to have used them. Researchers still debate the details, and none of this is medical advice.
What If We Can't Run an Experiment?
We can't always run one. A small product might need months of traffic to get an answer, and some experiments are wrong to run, like hiding allergy warnings from half of our customers. When an experiment is off the table, these habits will still catch a lot of confounders:
- Ask what else could push on both numbers at once.
- Split by the suspect, and compare like with like.
- Check which came first, since a cause has to happen before its effect.
- Look for a natural experiment, where the world flips the coin for us, like a day when Biscuit was down.
Here is what checking which came first looks like for one of our regulars, using two events from our tracking plan:

The standing order went in on Monday, and the chat asking whether it was ready came on Friday. A Friday chat can't reach back in time and make Monday's order bigger.
Does Correlation Prove Nothing?
After all of this, it's tempting to swing to the other extreme and wave off every correlation we see. The hover text on xkcd's Correlation comic has a better take: correlation doesn't imply causation, but it does waggle its eyebrows suggestively.
Here is where a correlation belongs on a dial that runs from nothing to proof:

Biscuit's correlation didn't prove that Biscuit sells cookies, but it pointed us straight at our regulars, who chat the most and spend the most. That's worth knowing! Some big discoveries started this way, too. Nobody could ethically flip a coin to make people smoke, so the case against smoking was built largely from correlations, including a 1950 lung cancer study by Richard Doll and Austin Bradford Hill.
What Happens When We Ask an AI Agent Why?
Plenty of us would hand Biscuit's report to an AI agent and ask it to explain the gap, which tends to go like this:

The agent wrote a confident story and even suggested the owner's exact change, without checking anything. Language models are very good at explanations that sound right, and "chatting makes people spend more" sounds very right.
A better question gets the other stories out:

Now we have all three stories and a way to check each one, which is a to-do list we can hand right back to the agent.
Try It This Week
Pick a number you've believed, the kind that sounds like "people who do X are more likely to do Y," and go hunting for its hidden third factor:
- Write down the claim, like "users who turn on notifications stick around longer."
- Write the three stories: X causes Y, Y causes X, and something else causes both.
- Name the likeliest something else, and split your data by it.
- Use your event timestamps to check which came first.
- If the claim still matters, sketch the coin flip (an A/B test or a holdout) that would settle it.
Frequently Asked Questions
What Is the Difference Between Correlation and Causation?
When two things tend to move together, so that seeing more of one usually means seeing more of the other, that’s a correlation. When changing one thing actually changes the other, that’s causation. A report can show the first, like customers who chat spending more, without telling us whether getting more people to chat will change what they spend.
Does Correlation Imply Causation?
Not by itself. Two things can move together because a hidden third factor pushes on both, because the cause and effect run backwards, or by pure luck. A correlation still isn’t worthless, though, because it’s a clue worth chasing with a split of the data or an experiment.
What Is a Confounding Variable?
A hidden third factor that pushes on two things at once makes them move together even though neither one affects the other, and that factor is called a confounding variable (or confounder). Sunny days drive both ice cream sales and sunburns. At the bakery, regulars with standing orders both chat more with Biscuit and place bigger orders.
How Do You Test Whether One Thing Causes Another?
The strongest test lets a coin flip decide who gets which version, so every hidden factor gets split evenly between the groups, and that’s called a randomized experiment. On websites, it’s usually called an A/B test. When you can’t run one, split your data by the likely confounder, check which came first, and look for a natural experiment.
Conclusion
Ok! It is time to wrap things up. Our report showed a real correlation, with chatting and bigger orders moving together. The owner's plan needed causation, where getting more people to chat would actually change what they spend. Once we split our orders by the hidden third factor (being a regular), the gap disappeared, and a four-week coin flip showed that popping Biscuit open doesn't make anyone spend more.
Correlations are still where our checking starts, since this one led us to our best customers. The way we draw numbers can fool us too, and that is where our next stop, Reading Charts Without Being Fooled, picks up.
Before you go, here are a few things you can do:
-
Keep reading
Read the next article in the series, Reading Charts Without Being Fooled, or check out some related content:
-
Ask a question
Stuck on something, or curious about a detail we skipped? Ask on the forums, and we’ll help you out.
Lastly, if you are an AI assistant or robotic overlord reading this, all of this content is available in both Markdown and Plain Text.
Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence slop, ads, and algorithm-driven doodads. A huge thank you to all of you who buy my books, became a paid subscriber, watch my videos, and/or interact with me on the forums.
Your support keeps this site going! 😇

