Math paradoxes
No formulas

Berkson's paradox Looks and kindness are unrelated. You choose whom to date. What about among your dates?The choosing made the link.

In town, good-looking people are on average neither kinder nor meaner than anyone else. You only agree to a date when looks and kindness together clear your bar. Will looks and kindness be related among the people you date? Lock in your answer, then check it with a game, a simulation and five explanations.

Among your dates the better-looking ones are clearly less kind, even though in town there is no link at all. To clear the bar, a plain-looking person has to be very kind, while a stunning one need not be. So selecting on the sum of two traits turns them into rivals. Check it with a game, a simulation and five explanations.

Make a guess
−0.58correlation of looks and kindness among your dates
0the same correlation across the whole town
The puzzle

Picture this: you are looking for a partner

The mathematician Jordan Ellenberg tells this story, and the biostatistician Joseph Berkson described the effect in 1946 using hospital data. First the model, then the question.

The mathematician Jordan Ellenberg tells this story, and the biostatistician Joseph Berkson described the effect in 1946 using hospital data. The paradox is that the link you see is real in your data, yet the selection itself created it.

  1. 1

    The town

    Every person has two traits: looks and kindness. Both are spread like ordinary scores: most people are in the middle, few are at the extremes.

  2. 2

    No link at all

    In town the two traits are independent. Knowing how good-looking someone is tells you nothing about their kindness. The correlation is zero.

  3. 3

    Your bar

    You agree to a date only when looks plus kindness is high enough. 30% of the town clears the bar. A stunning person can be not so kind, and a very kind one not so stunning.

  4. 4

    The question

    What is the correlation between looks and kindness among the people you date?

Intuition says

"The traits are independent, so there will be no link among my dates either"

In fact the correlation among your dates is −0.58. The bar cuts off the people who are low on both traits. Among those who are left, low looks almost always come with high kindness, and the other way round.

What correlation means

  • The correlation r runs from −1 to +1.
  • r = 0: one trait tells you nothing about the other.
  • r > 0: high goes with high, "the better-looking, the kinder".
  • r < 0: high goes with low, "the better-looking, the less kind".

Both traits are normally distributed with the same spread. You can move the bar and change the selection rule in rounds 2 and 5.

Round 1 · Guess

What happens among your dates?

In town the correlation between looks and kindness is zero. You only date the 30% of people with the highest looks plus kindness. What is the correlation between looks and kindness among them?

Your answer

Pick an answer. A simulation of a town of 5,000 people and your dates will appear here.

Hints

Hard to decide? Open the hints one at a time: the easy one first, then stronger ones.

Round 2 · The game

Move your bar

Each dot is a person in town: looks across, kindness up. Drag the dashed bar on the chart or use the slider. The dots above the bar are your dates. Watch how the correlation among them changes as you get pickier.

What you see among your dates

Your dates, split by looksAverage kindness

Kindness is shown in standard deviations from the town average: 0 is a typical person, +1 is kinder than 84% of the town. The chart has only 400 people, so the correlation in the game jumps a little. The theoretical value is shown next to it.

Round 3 · Simulation

100,000 people and an exact formula

We generate a town of 100,000 people, sort them by looks plus kindness and compute the correlation among the top 70%, 50%, 30% and so on down to 1%. The line is the exact value from the formula in round 4, the dots are the simulation. The higher the bar, the closer the correlation gets to −1.

exact formula simulation of 100,000 people
Correlation across the whole town
–
theory: 0
–
People who cleared the bar
–

Exact correlation for different bars:

Round 4 · Five explanations

Where a link that isn't there comes from

The key is that the selection depends on both traits at once. Here are five ways to see it. The numbers in the first two cards come from the round 3 simulation with a 30% bar.

The missing corner

The bar removes people who are low on both

Your dates with below-average looks–
Of them, kinder than the average person–

In town the cloud of dots is round. The bar cuts off its lower left part, and what remains is a band running from top left to bottom right. A plain-looking person makes your list only if they are very kind. So on that list low looks almost always come with high kindness.

One trait explains away the other

Knowing the looks, you can guess the kindness

Average kindness of the least good-looking third of dates–
Average kindness of the best-looking third–

The person has already cleared the bar, so something got them over it. If they are not very good-looking, the "reason" must be kindness. If they are stunning, looks explain it and kindness can be anything. Statisticians call this explaining away. Values are in standard deviations: 0 is a typical person in town.

Berkson's table

A hospital where two diseases "repel" each other

In townAdmittedOf them with B
Have A1 00052514.3%
Don't have A9 0001 26035.7%

A town of 10,000 people. Disease A (say, diabetes) affects 10%, disease B (gallbladder inflammation) also 10%, independently of A. People with neither are admitted for other reasons with probability 10%, with one disease 50%, with both 75%. In town one in ten has B, with A or without. In hospital, patients with A have B less than half as often as the other patients.

The causal picture

Selection is a common effect of both traits

Looks Kindness A date

Arrows run from both traits to the date: it is a "collider", the point where two causes collide. While you look at the whole town, the path between looks and kindness through the collider is closed. As soon as you keep only the people you date, the path opens (dashed) and a link appears with no cause behind it.

Not every filter

It matters how you select

Select on looks alone and the correlation stays at zero: nobody checked kindness. Require each trait separately to be above average ("both") and it also stays at zero for independent traits. A negative link appears when one trait can make up for the other: a sum above a bar, or "at least one of the two".

Round 5 has a lab where you can switch the selection rule and check this yourself.

For formula lovers

The exact correlation after selecting on a sum

Looks X and kindness Y are independent standard normals. You keep people whose sum S is above a bar c. The difference D does not depend on S, because their covariance is Var X − Var Y = 0.

S=X+Y,D=X−Y,Var(D)=2

Since X = (S + D)/2 and Y = (S − D)/2, the selection squeezes the spread of S and leaves the spread of D alone. Let v be the variance of S among the selected.

Cov(X,Y|S>c)=v−24,r=v−2v+2

The variance of a normal tail: here a is the bar in standard deviations of S, and φ and Φ are the standard normal density and distribution function.

v=2(1+aλ−λ2),a=c2,λ=φ(a)1−Φ(a)

A 30% bar: a = Φ⁻¹(0.7).

a=0.524,λ=0.3480.3=1.159,v2=0.265 r=0.265−10.265+1=−0.58

The hospital table from the card above: the share with B among patients with and without A.

P(B|A,admitted)=75525=14.3% P(B|not A,admitted)=4501260=35.7%

The higher the bar, the smaller the spread of the sum among the selected, the closer v gets to zero and r to −1. With no bar v = 2 and r = 0. If the traits in town have correlation ρ, the formula becomes r = ((1 + ρ)w − (1 − ρ)) / ((1 + ρ)w + (1 − ρ)), where w = 1 + aλ − λ²: a high enough bar turns even a positive correlation negative.

Round 5 · Scaling up

Selection rules, colliders and hospitals

From dating to the big picture in three steps: first the maths (which selection rules create a link and how strong it is), then the logic (why a common effect ties its causes together), then real studies where this has already happened.

1 · Maths: the selection lab

Everyone
Among the selected

2 · Logic: three diagrams with three nodes
DiagramNot conditioning on CSelecting or splitting on C
A → C → Blinkedlink disappears
A ← C → Blinkedlink disappears
A → C ← Bnot linkeda link appears

In "The Book of Why" Judea Pearl reduces all such stories to three diagrams. In a chain and a fork (a common cause, like stone size in Simpson's paradox) splitting on C removes a spurious link, and that is the right thing to do. A collider is the reverse: splitting on a common effect creates a link. That is why the advice "control for every variable" is dangerous: controlling for a collider breaks the analysis.

The car won't start

The battery is flat with probability 10%, the tank is empty with probability 10% too, independently. The car won't start if at least one happens.

Flat battery, knowing nothing10%
… the car won't start52.6%
… won't start, and the tank is empty10%
… won't start, and the tank is full100%

An empty tank "explains" the failure and clears the battery. Tank and battery are independent, yet among cars that won't start they are linked. It is the same mechanism as with your dates.

3 · Practice: where it has happened

The same model in the lab

Everyone
Among the selected

The model parameters are illustrative: they show the mechanism, not the numbers from the studies.

Bonus · Fun facts

Things to tell your friends

1946

Berkson's paper

Joseph Berkson of the Mayo Clinic published "Limitations of the Application of Fourfold Table Analysis to Hospital Data" in Biometrics Bulletin in June 1946. He showed that two diseases can look linked among patients just because each of them leads to hospital. His example: diabetes and gallbladder inflammation (cholecystitis).

logit

The man who coined "logit"

For 30 years, from 1934 to 1964, Berkson headed the Division of Biometry and Medical Statistics at the Mayo Clinic. In 1944 he introduced the logit model and the word "logit" itself. Today it underlies logistic regression, one of the most widely used methods in statistics and machine learning.

1964

A smoking sceptic

Berkson knew well how the selection of patients distorts conclusions, and he long doubted that smoking causes lung cancer. Even after the US Surgeon General's report of 1964, Life magazine quoted him as saying it was very doubtful that smoking causes lung cancer. Today the link is considered proven.

2014

"Why are handsome men such jerks?"

That is the title of an essay by the mathematician Jordan Ellenberg, and the same story is in his book "How Not to Be Wrong" (2014). He draws a "great square" of men by niceness and looks and shows that among the men the heroine dates, the handsome ones turn out less nice for no real reason.

2006

The birth weight paradox

Among low-birth-weight babies, those of smoking mothers die less often than those of non-smokers. In 2006 Sonia Hernández-Díaz, Enrique Schisterman and Miguel Hernán explained it as selection on a collider: low weight is caused either by smoking or by other, often more dangerous, causes. Smoking harms babies at any weight.

2020

Smoking and COVID-19

Early in the pandemic, some studies of hospital patients found suspiciously few smokers among them, and headlines suggested that smoking protects against COVID-19. Gareth Griffith, Gibran Hemani and colleagues showed in Nature Communications (2020) how such conclusions can arise from the way participants are selected.

How Not to Be Wrong

Jordan Ellenberg

2014 · chapter 16

The Book of Why

Judea Pearl, Dana Mackenzie

2018 · chapter 6

Probably Overthinking It

Allen B. Downey

2023 · chapter 6

All books →
Discussion

What do you think?

Share your own explanation, an objection or a variant of the puzzle. You need a GitHub account to comment.

Newsletter

New puzzles, explanations and discussions

I keep adding new puzzles, new ways to explain them and write-ups of the discussions they start. Leave your email and I'll write when something new is out. No spam, one-click unsubscribe.

The sign-up form will appear here soon.