Mental Models204 cards · 12 fields

Mental Models/Mathematics & Statistics

Correlation vs Causation

相关不等于因果

Two things showing up together doesn't mean one of them caused the other.

At the end of August 1854, around Broad Street in Soho, London, more than five hundred people died of cholera in ten days. Most doctors at the time believed disease was caused by foul air. John Snow went door to door asking where the dead had gotten their drinking water, and found that their homes clustered around the Broad Street water pump. But this was only a correlation: people who lived near the pump also breathed the same air.

So he went looking for exceptions. Workers at the brewery on the street didn't drink the pump water, and almost none of them fell ill. A woman far away in Hampstead, who had water from the Broad Street well brought to her every day, caught the disease and died. People breathing the same air stayed well, and someone far away who drank the pump water died. The air couldn't explain that; the water could.

On September 7 he presented his case to local officials, and the next day the pump's handle was removed. By then the outbreak was already dying down, so "we took it off and it got better" on its own couldn't prove that the water was the source of the disease.

Suppose a city's fire records show that the more firefighters arrive at a fire, the more houses burn down. Someone proposes, on that basis, sending fewer people to cut the losses. But two things rising and falling together in a table is only a correlation, and correlation is not causation. The number of firefighters is set by the dispatch center based on how big the fire is: the bigger the fire, the more people are sent, and the more houses burn down. It's the size of the fire pushing both numbers up at once. Actually sending fewer people because of the table would only make the fire burn longer.

More crews and more damage come from one fire
Big fireMore firefightersDispatch sizes up fireMore houses lostRise and fall togetherSend fewer?Fire burns longer
Big fireMore firefightersDispatch sizes up fireMore houses lostRise and fall togetherSend fewer?Fire burns longer

The two rise and fall together in the table because both follow the size of the fire. Send fewer people because of the table, and the fire only burns longer.

One cause can push up two things at once

You run a survey (the numbers are made up): people who sleep with their shoes on more often wake up with a headache. Among those who sleep in their shoes, 90% drank too much the night before; among those who sleep barefoot, only 10% did. Of those who drank too much, 80% get a headache; of those who didn't, 20%. Headaches in the shoes group are 72% from the drinkers (90% times 80%) plus 2% from the others, 74% in all; in the barefoot group it's the reverse, 8% plus 18%, 26% in all. The headaches come from the drink. Tell everyone to take off their shoes, and there won't be any fewer headaches.

The arrow can also point backward

Districts with more police also have more crime. The department sends officers to whichever district has more crime: the crime comes first, the police after. Pull out the extra officers, and there won't be less crime because of it.

Drawing lots spreads other causes evenly; splitting into layers holds them fixed

Suppose half of a whole group of volunteers drank too much. Have them toss a coin each night to decide whether to sleep in their shoes. The coin doesn't care who's been drinking, so the share of drinkers in the shoes group goes from 90% to half, and the barefoot group is half too. Both groups get headaches 50% of the time, and the gap goes from 48 percentage points (74% minus 26%) to 0.

When you can't draw lots, you can hold the suspected shared cause fixed and compare only among people for whom it's the same. Look only at those who drank too much, and 80% of both the shoe sleepers and the barefoot sleepers get headaches; look only at those who didn't, and it's 20% for both. With no difference within the same layer, the shoes are off the hook.

Where you can't draw lots, you have to find groups that have already been sorted for you. In 1854, the water pipes of two water companies in South London crisscrossed the same streets, and which company's water each home used had been decided by landlords or residents back when the two companies were competing for customers. When Snow looked into it, he could see no difference between the houses or the residents on the two sides; it was as if someone had drawn lots for him. The difference between the two companies was their water source: one took its water from the Thames downstream of the sewage outlets, the other upstream. In the first seven weeks of the outbreak, homes using the downstream water had 315 deaths per 10,000 houses, while those using the upstream water had only 37.

A conclusion from drawing lots also only covers the people in that trial. Using "correlation is not causation" to throw out all evidence is a misuse: when the evidence is incomplete, keep looking.

Predict
You run an online shop and notice that the number of items people "save to favorites" on Monday morning always predicts that weekend's sales. Saving items doesn't bring in sales by itself; it's just the earlier footprint of the same people who want to buy. You use this number to schedule customer service shifts for the weekend.
Explore
When you come across a surprising correlation, first write down a few possible chains: what drives what, whether there's one shared cause, whether it could just be chance. Whatever evidence each chain needs to rule it out is what to go looking for next.
  1. Who put people or places into the group that "has it," and on what basis? Go through the list and the rules for how groups were formed.
  2. Has the thing I want to change actually been changed by anyone in the data? Who changed it?
  3. If drawing lots isn't possible, is there a group of people in similar circumstances who ended up on different sides by chance, whom I can compare?

Medicine

Women on hormones were healthier to begin with

In the 1990s, several observational studies found that women past menopause who took hormones had less heart disease, so doctors recommended hormones to protect the heart. In 2002, the US Women's Health Initiative split women at random into a hormone group and a placebo group, and the trial was stopped partway: the hormone group had more breast cancer, and even slightly more heart disease. The researchers' later explanation was that the women who had chosen to take hormones back then were already more careful about their health and saw doctors more often.

Work

The project teams with more meetings

You go through last year's records for each project team: teams that held more meetings also had more bugs. Someone proposes fewer meetings, to free up time for fixing code. You split the teams into three tiers by headcount and compare only within the same tier: teams with more meetings and teams with fewer have about the same number of bugs.

Investing

Cafeteria visits and the share price

You plot your company's yearly cafeteria meal count and its share price over ten years on one chart. Both lines climb steadily and almost overlap. When you switch to looking at each year's rise or fall compared with the year before, the ups and downs of the two columns no longer match. In your weekly report you write just one line: both lines are rising along with the size of the company, and you don't use the meal count to estimate the share price.

A community center has 40 places for free home meal delivery. 100 elderly people sign up, and the staff draw lots to decide who gets them. In the end, 10 of those drawn never use it. A year later you have everyone's hospital records and want to know whether "getting a place" lowered the rate of hospital stays.

Which comparison best answers this question?

A claim is going around a school: students who spend longer on a study app get worse grades, and some parents want the school to stop using it. The academic affairs teacher goes through the app's records and finds that for many students, time spent on the app rose sharply in the two weeks after their grades dropped on a monthly exam.

What do these records mean for the claim that "the app drags grades down"?

Elderly people who keep dogs go to the hospital fewer times a year on average. An insurance company, the neighborhood office and the health department have all noticed this data, and each has plans for it.

Which of these uses doesn't need you first to work out whether keeping a dog really makes people get sick less?