The backpack fallacy

Two studies of the same kind report the same p-value, but one measured 2 people in each group and the other 16. Which of them is more likely to have found the larger true effect? It is tempting to say the small one: to reach the same p-value through so much noise, its effect must be strong, as a runner who keeps pace while carrying a backpack must be fast. Loken and Gelman called this reasoning the backpack fallacy. Whether it is a fallacy depends on how large true effects tend to be, and this page computes the answer exactly.

1 At the same p-value

Each study compares two groups of n people with a two-sample t-test. Every group's true mean is drawn at random, so every study has its own true difference between its groups, and its people vary around their group's mean with SD 1. Take two studies whose p-values come out the same. The figure shows the chance that the one with fewer people per group has the larger true difference, for every p-value down to the smallest shown.

    Each coloured line is the smaller study against one larger size; faint grey lines are the other pairs. The dashed line is even odds. Drag across the figure, or set the p-value in panel 2, to move the vertical line.

    True group means drawn from

    2 to 6 sizes from 2 to 100,000, separated by commas. The example uses 2, 16, 128, 1024, 8192.

    The smaller study has

    The dashed sliding averages pool pairs whose −log10 p is within ±1 of each point, which blurs the curve; the solid lines are exact at each p-value.

    2 The true effects behind one p-value

    The same p-value means different things for different sizes. A study with few people needs a large t to reach it, and its estimate is noisy, so the p-value fits a wide range of true differences, from small ones with lucky noise to large ones. A big study reaches it with a t near the normal's, and its true difference is pinned down. Whether the small study's range sits above the big study's depends on how often large true differences occur at all.

    One row per study size: how likely each true difference is, given the p-value, on a log axis, each row scaled to its own peak. The thick bar is the middle 50%, the thin bar the middle 90%, and the marker the median.
    Both studies report p =

    Per groupt neededMedian true differenceMiddle 50%

    How it works

    The model

    Each of a study's two groups has a true mean drawn at random, from a Cauchy with scale τ or a normal with SD τ, and its n people vary around it with SD 1. The study's true difference Δ is then Cauchy with scale 2τ, or normal with SD √2 τ. Its two-sample t-test has 2n − 2 degrees of freedom, and given Δ its t is noncentral t with noncentrality Δ/√(2/n). A p-value fixes |t|, so it gives each study a distribution for |Δ|: the chance of that |t| under each Δ, weighted by how common that Δ is. Two studies are independent, and the chance that the smaller one's |Δ| is the larger follows from their two distributions.

    Numerical integration

    The probabilities are computed by numerical integration: Simpson's rule on cells placed where each distribution lies, with the noncentral t's integral tabulated once for each sample size. The numerical accuracy is about 10−5. Dashed lines average over ±1 of −log10 p, weighting each p-value by how often a pair of those sample sizes meets there; solid lines give the probability at each p-value. The API provides the same calculations.