Skip to main content

A probability isn’t just a number

Thinking about statistics
Principle or heuristic
Intermediate
It’s part of a network of conditional statements.
Published

November 9, 2026

Modified

November 13, 2026

Entry #114 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: A probability isn’t just a number; it’s part of a network of conditional statements.

Filed under Thinking about statistics · Principle or heuristic · Intermediate.

Related terms: joint probability, correlated outcomes, election forecasts.

Source check: ✓ The explanation was checked against the source.

What it is

Candidate X has a 70% chance of winning sounds like a single fact. But a probabilistic forecast implies a whole web of related statements: the probability of winning given that she loses state A, the probability of winning both A and B, how the forecast should change if a poll shifts. Gelman’s point is that you should judge a probability by checking whether that whole network of conditional statements makes sense, not only the headline number.

Why it matters

Two forecasts can agree on every headline probability and disagree completely on the conditionals. Gelman used this point in critiquing election models whose state-level correlations implied absurd scenarios, such as a candidate who loses one state becoming more likely to win a neighboring one. Checking only the marginal numbers misses those flaws. The conditional statements are where a model shows its assumptions.

How it works

For two states with win probabilities \(P(A)\) and \(P(B)\), the marginals alone don’t determine the joint. The correlation between the two outcomes sets

\[ P(B \mid A) \quad \text{and} \quad P(B \mid \text{not } A), \]

which can be very different for the same marginals. A model with sensible marginals but implausible conditionals is a bad model.

Simulated example

Two neighboring states each have the same marginal win probability. Change the correlation between their outcomes and see how the conditional probabilities, which voters and analysts will actually ask about, move.

Show simulation code

The R version uses base R, and the Python version uses NumPy and Matplotlib. Where the simulation draws random numbers, each language draws its own, so exact numbers differ slightly but show the same pattern. The numbered markers in the R code are explained under it.

import {rng, range, qnorm, fmt, pct} from "../js/stats.js"

viewof pA = Inputs.range([0.1, 0.9], {value: 0.7, step: 0.05, label: "P(win state A) = P(win state B)"})
viewof rho = Inputs.range([-0.9, 0.99], {value: 0.7, step: 0.01, label: "Correlation between the states' outcomes"})
viewof seed = Inputs.range([1, 500], {value: 114, step: 1, label: "Random seed"})

net = {
  const r = rng(seed);
  const cut = qnorm(1 - pA);
  let a = 0, b = 0, ab = 0, nb_na = 0, na = 0;
  const N = 40000;
  for (let i = 0; i < N; i++) {
    const z1 = r.normal(), z2 = rho * z1 + Math.sqrt(1 - rho * rho) * r.normal();
    const A = z1 > cut, B = z2 > cut;
    a += A; b += B; ab += A && B; if (!A) { na++; nb_na += B; }
  }
  return [
    {stmt: "P(A)", p: a / N}, {stmt: "P(B)", p: b / N},
    {stmt: "P(A and B)", p: ab / N},
    {stmt: "P(B | won A)", p: ab / a}, {stmt: "P(B | lost A)", p: nb_na / na}
  ];
}

Plot.plot({
  ariaLabel: "A probability isn't just a number: simulation chart",
  ariaDescription: "Horizontal axis: Probability. The chart updates with the controls above it, and the summary below the charts states the result in words.",
  height: 220,
  marginLeft: 110,
  x: {label: "Probability", domain: [0, 1], tickFormat: "%", grid: true},
  y: {label: null, domain: net.map(d => d.stmt)},
  marks: [Plot.barX(net, {y: "stmt", x: "p", fill: (d, i) => i < 2 ? "#8a8a8a" : "#2166ac"}), Plot.text(net, {y: "stmt", x: "p", text: d => pct(d.p), dx: 4, textAnchor: "start"})]
})
# A probability isn't just a number: correlated outcomes in two states.
1p_A <- 0.7 # P(win state A) = P(win state B)
rho <- 0.7 # correlation between the states' outcomes
2set.seed(114)

N <- 40000
cut <- qnorm(1 - p_A)
z1 <- rnorm(N)
3z2 <- rho * z1 + sqrt(1 - rho^2) * rnorm(N)
A <- z1 > cut
B <- z2 > cut
4probs <- c(
  "P(A)" = mean(A), "P(B)" = mean(B), "P(A and B)" = mean(A & B),
  "P(B | won A)" = mean(B[A]), "P(B | lost A)" = mean(B[!A])
)
print(round(probs, 2))
cat(
  "If the states were independent, P(A and B) would be",
  round(p_A^2, 2), "\n"
)

par(mar = c(4, 8, 1, 1))
5barplot(rev(probs),
  horiz = TRUE, las = 1, xlim = c(0, 1),
  col = "#2166ac", xlab = "Probability"
)
1
The page’s controls: the probability of winning each state, and the correlation between the two outcomes.
2
Fixes the random numbers so the run is reproducible.
3
The two states’ outcomes share a common component, so they move together.
4
The marginal probabilities, the joint probability and the conditionals. The number 0.7 alone determines none of the last three.
5
The probabilities side by side. A probability comes with a joint distribution, not just a number.
# A probability isn't just a number: correlated outcomes in two states.
from statistics import NormalDist
import numpy as np
import matplotlib.pyplot as plt

p_A = 0.7  # P(win state A) = P(win state B)
rho = 0.7  # correlation between the states' outcomes
rng = np.random.default_rng(114)

N = 40000
cut = NormalDist().inv_cdf(1 - p_A)
z1 = rng.normal(size=N)
z2 = rho * z1 + np.sqrt(1 - rho ** 2) * rng.normal(size=N)
A, B = z1 > cut, z2 > cut
probs = {"P(A)": A.mean(), "P(B)": B.mean(), "P(A and B)": (A & B).mean(),
         "P(B | won A)": B[A].mean(), "P(B | lost A)": B[~A].mean()}
for k, v in probs.items():
    print(f"{k}: {v:.2f}")
print(f"If the states were independent, P(A and B) would be {p_A ** 2:.2f}")

plt.barh(list(probs)[::-1], list(probs.values())[::-1], color="#2166ac")
plt.xlim(0, 1)
plt.xlabel("Probability")
plt.tight_layout()
plt.show()

Key takeaways

  • A probability forecast implies many conditional statements. Check them.
  • Marginals alone don’t determine joint or conditional probabilities.
  • Implausible conditional implications reveal model flaws that headline numbers hide.

Source

Back to top