# Correlation vs. Causation by [kirupa](https://www.kirupa.com/me/index.htm) | filed under [Data & Decisions](https://www.kirupa.com/data_and_decisions/index.htm) | 1 December 2026 **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: ![A bar chart from Biscuit's first-month report. Orders from customers who chatted with Biscuit averaged $31 (200 orders). Orders from customers who didn't chat averaged $22 (600 orders). A handwritten note points at the $31: 41% more!](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_report.png) 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](https://www.kirupa.com/data_and_decisions/averages_lie.htm), 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: ![On the left, the Crumb & Co. website with Biscuit's chat window popped open over the page, saying Hi! Need a hand with your order? On the right, the owner thinks: everyone chats, so 800 orders times $31 is $24,800 a month, up from $19,400 today.](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_dream.png) 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](https://tylervigen.com/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: ![A gag. On the left, a squinting face with a monocle labeled Searches for the not sure if meme. On the right, an airplane over a mountain labeled Air traffic controllers in Montana. Between them, a chip says they moved together from 2006 to 2022. A handwritten note pointing at the chip says Not sure if causation...](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_spurious.png) 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: ![Story 1. An arrow runs from Chats with Biscuit to Bigger order, labeled Biscuit talks people into a little more, like a dozen cookies.](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_story_biscuit.png) 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: ![Story 2. The same two boxes, with the arrow turned around: it runs from Bigger order back to Chats with Biscuit, labeled Big orders come with questions, like an office party order asking about an early pickup.](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_story_reverse.png) 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: ![Sunny days sit on top, with arrows down to Ice cream sales (people want a cone) and to Sunburns (people get burned). A dashed line between ice cream sales and sunburns says they move together. A handwritten note pointing at the dashed line asks: Ice cream causes sunburns?](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_ice_cream.png) 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: ![Story 3. Regulars, the customers with standing weekly orders, sit on top, with arrows down to Chats with Biscuit (they check their orders) and to Bigger order (they order for the whole week). A dashed line between chats and bigger orders says they move together.](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_story_third.png) 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: ![Each dot is 20 orders. Chatted: 10 dots, 8 of them regulars and 2 new customers, so 80% regulars. Didn't chat: 30 dots, 6 regulars and 24 new customers, so 20% regulars.](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_mix.png) **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: ![A bar chart split by kind of customer. Regulars: chatted $34, didn't chat $34. New customers: chatted $19, didn't chat $19. Inside each kind of customer, chatting makes no difference. A handwritten note says No gap!](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_split.png) 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: ![A ruler from $19, what new customers spend, to $34, what regulars spend. Didn't chat lands at $22, close to the new-customer end, because only 20% of those orders are from regulars. Chatted lands at $31, close to the regular end, because 80% of those orders are from regulars.](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_blend.png) 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 sends each customer to one of two groups: Biscuit pops open, or Biscuit waits for a click. Each group gets the same mix as the whole bakery: 7 of every 20 dots are regulars, so both groups are 35% regulars.](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_coin_flip.png) 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](https://www.kirupa.com/ai_fundamentals/ab_testing.htm), 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: ![A bar chart of the four-week test, with about 400 orders in each group. Biscuit pops open: $24.40 average order. Biscuit waits for a click: $24.10 average order. The bars are nearly the same length. A handwritten note says About the same!](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_experiment.png) 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](https://doi.org/10.1056/NEJM199608153350701). Then the [Women's Health Initiative](https://doi.org/10.1001/jama.288.3.321) let chance decide who got estrogen plus progestin and who got a placebo (a look-alike pill with no medicine in it): ![Coronary heart disease risk for women on estrogen plus progestin, compared with women who weren't taking hormones, where 1.0 means no difference. The Nurses' Health Study (1996) watched women who chose estrogen plus progestin and found 0.39 times the risk. The Women's Health Initiative trial (2002) let chance decide who got estrogen plus progestin and who got a placebo, and found 1.29 times the risk.](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_hormone.png) 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](https://doi.org/10.2105/ajph.94.12.2149) 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](https://www.kirupa.com/product_thinking/instrumentation_plans.htm): ![A week on a timeline for one regular. Mon 6:00am: Order Placed, their standing order, $34. Fri 7:40am: Chat Started, asking Is my order ready? The order came four days before the chat, so the chat can't have made that order bigger. A handwritten note points at Mon 6:00am: The order came first!](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_which_first.png) 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](https://xkcd.com/552/) 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: ![A dial with three settings: Nothing on the left, A clue worth chasing in the middle, and Proof on the right. The needle points at A clue worth chasing. Beside Nothing is the overcorrection, Correlation proves nothing. Beside Proof is the owner's leap, Chatting causes bigger orders.](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_clue_dial.png) 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](https://pubmed.ncbi.nlm.nih.gov/14772469/). ## 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: ![Wren asks an AI agent: Why do customers who chat with Biscuit spend 41% more? The agent answers: Biscuit's friendly suggestions help customers find more to buy, and chatting builds trust. To raise order values, make Biscuit pop open on every page. A handwritten note points at the answer: Zero checks!](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_agent_sure.png) 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: ![Wren asks the agent: What could explain this gap besides Biscuit causing it? For each one, tell me how to check it in our data. The agent answers with three explanations and a check for each: regulars chat more and spend more, so split orders by standing order; big orders bring questions, so check whether the chat came first; and something we haven't measured, so run a coin-flip holdout.](https://www.kirupa.com/data_and_decisions/images/correlation_vs_causation_agent_better.png) 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: 1. Write down the claim, like "users who turn on notifications stick around longer." 2. Write the three stories: X causes Y, Y causes X, and something else causes both. 3. Name the likeliest something else, and split your data by it. 4. Use your event timestamps to check which came first. 5. 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](https://www.kirupa.com/data_and_decisions/reading_charts.htm), picks up. Before you go, here are a few things you can do: 1. Test your knowledge by taking the quiz below. 2. Read the next article in the series, [Reading Charts Without Being Fooled](https://www.kirupa.com/data_and_decisions/reading_charts.htm), or check out some related content: - [A/B Testing](https://www.kirupa.com/ai_fundamentals/ab_testing.htm). How to run a fair A/B test, from picking the metric to reading the result. - [Instrumentation Plans](https://www.kirupa.com/product_thinking/instrumentation_plans.htm). Decide what to track before you ship, so you can split and time-order your data later. - [North Star and Input Metrics](https://www.kirupa.com/product_thinking/north_star_metrics.htm). Pick one number that only goes up when customers get real value. 3. Stuck on something, or curious about a detail we skipped? [Ask on the forums](https://forum.kirupa.com/), and we’ll help you out. ## Test your knowledge! [Take the Correlation vs. Causation Quiz](https://www.kirupa.com/quizzes/correlation_vs_causation.htm). Practice with 6 multiple-choice questions and an explanation after every answer.