Skip to main content

The “All Else Equal” Fallacy

Causes, samples and populations
Fallacy
Intermediate
Assuming that everything else is held constant, even when it’s not gonna be.
Published

November 9, 2026

Modified

November 13, 2026

Entry #17 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: The “all else equal fallacy,” one more time (this time using econ jargon), and also a discussion of the perils of “crossover” arguments.

Filed under Causes, samples and populations · Fallacy · Intermediate.

Related terms: ceteris paribus, mediator, causal interpretation of regression coefficients.

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

What it is

A regression coefficient tells you how the outcome differs when one predictor changes and the other predictors in the model stay the same. The “all else equal” fallacy is reading that coefficient as the effect of a real-world change, when in reality other variables will not stay fixed. They respond to the change.

Gelman’s example came from newspaper columns arguing that driving can be better for the environment than walking, once you count the food a walker eats. The calculation assumes “that the walker and the driver will be making the same trip. In general, the driver will take longer trips.” The error, he writes, is “its mistaken assumption that you can realistically change one predictor, leaving all the others constant,” which “is the error that also leads people to misinterpret regression coefficients causally.”

Why it matters

Policy and personal decisions are about interventions, and interventions ripple. Raise a price and demand shifts. Change a school’s funding and enrollment, teacher hiring and parental choices adjust. Tell people that a variable predicts health “holding everything else constant” and they may assume changing it will change health by that amount. The coefficient’s thought experiment is often impossible, or at least not what will actually happen.

How it works

Suppose \(Y = \beta X + \gamma Z + \epsilon\) and, in the world, \(Z\) itself responds to \(X\): \(Z = \delta X + \nu\). The coefficient on \(X\) in the full regression is \(\beta\), the “all else equal” effect. An intervention that moves \(X\) by one unit moves \(Y\) by

\[ \beta + \gamma\,\delta, \]

the total effect. Depending on the signs, the total can be larger, smaller or opposite to \(\beta\). Which number you want depends on the question, and “all else equal” is often the wrong one.

Simulated example

\(X\) affects \(Y\) directly, and also through a variable \(Z\) that responds to \(X\). We fit \(Y \sim X + Z\) and read off the “all else equal” coefficient. Then we simulate an actual intervention that raises \(X\) by one unit and let \(Z\) respond.

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, mean, ols, fmt} from "../js/stats.js"

viewof beta = Inputs.range([-1, 1], {value: 0.5, step: 0.05, label: "Direct effect of X on Y (β)"})
viewof delta = Inputs.range([-1.5, 1.5], {value: -1, step: 0.05, label: "How Z responds to X (δ)"})
viewof gamma = Inputs.range([-1, 1], {value: 0.8, step: 0.05, label: "Effect of Z on Y (γ)"})
viewof seed = Inputs.range([1, 500], {value: 17, step: 1, label: "Random seed"})

aee = {
  const r = rng(seed);
  const gen = (shift) => range(2000).map(() => {
    const x = r.normal(0, 1) + shift;
    const z = delta * x + r.normal(0, 1);
    return {x, z, y: beta * x + gamma * z + r.normal(0, 1)};
  });
  const obs = gen(0);
  const coef = ols(obs.map(d => [d.x, d.z]), obs.map(d => d.y)).coef[1];
  const after = gen(1);
  const total = mean(after.map(d => d.y)) - mean(obs.map(d => d.y));
  return [
    {what: "Regression coefficient (all else equal)", value: coef},
    {what: "Actual effect of raising X by 1", value: total}
  ];
}

Plot.plot({
  ariaLabel: "The \"All Else Equal\" Fallacy: simulation chart",
  ariaDescription: "Horizontal axis: Change in Y. The chart updates with the controls above it, and the summary below the charts states the result in words.",
  height: 160,
  marginLeft: 250,
  x: {label: "Change in Y", grid: true, domain: [-2.5, 2.5]},
  y: {label: null},
  marks: [Plot.barX(aee, {y: "what", x: "value", fill: (d, i) => i ? "#d6604d" : "#2166ac"}), Plot.ruleX([0])]
})
# The "All Else Equal" Fallacy: a regression coefficient vs an intervention.
1beta <- 0.5 # direct effect of X on Y
delta <- -1 # how Z responds to X
gamma <- 0.8 # effect of Z on Y
2set.seed(17)

simulate <- function(shift) {
  x <- rnorm(2000) + shift
3  z <- delta * x + rnorm(2000)
  data.frame(x, z, y = beta * x + gamma * z + rnorm(2000))
}
obs <- simulate(0)
4coef <- coef(lm(y ~ x + z, data = obs))[["x"]] # "all else equal"
after <- simulate(1) # raise X by 1 and let Z respond
5total <- mean(after$y) - mean(obs$y)

cat("Regression coefficient (all else equal):", round(coef, 2), "\n")
cat("Actual effect of raising X by 1:", round(total, 2), "\n")
cat("Theory, beta + gamma * delta:", beta + gamma * delta, "\n")

6barplot(c("Regression coefficient" = coef, "Actual effect" = total),
  horiz = TRUE, col = c("#2166ac", "#d6604d"), xlim = c(-2.5, 2.5),
  xlab = "Change in Y", las = 1, cex.names = 0.8
)
abline(v = 0)
1
The page’s controls: the direct effect of X on Y, how Z responds to X, and the effect of Z on Y.
2
Fixes the random numbers so the run is reproducible.
3
Z responds to X. That is what makes holding Z constant different from intervening on X.
4
The regression coefficient on X, which holds Z fixed: the all-else-equal comparison.
5
What actually happens to Y when X is raised by one unit and Z is allowed to respond.
6
The two numbers side by side. They agree only when Z does not respond to X.
# The "All Else Equal" Fallacy: a regression coefficient vs an intervention.
import numpy as np
import matplotlib.pyplot as plt

beta = 0.5    # direct effect of X on Y
delta = -1    # how Z responds to X
gamma = 0.8   # effect of Z on Y
rng = np.random.default_rng(17)


def simulate(shift):
    x = rng.normal(size=2000) + shift
    z = delta * x + rng.normal(size=2000)
    return x, z, beta * x + gamma * z + rng.normal(size=2000)


x, z, y = simulate(0)
X = np.column_stack([np.ones_like(x), x, z])
coef = np.linalg.lstsq(X, y, rcond=None)[0][1]  # "all else equal"
_, _, y_after = simulate(1)       # raise X by 1 and let Z respond
total = y_after.mean() - y.mean()

print(f"Regression coefficient (all else equal): {coef:.2f}")
print(f"Actual effect of raising X by 1: {total:.2f}")
print(f"Theory, beta + gamma * delta: {beta + gamma * delta:.2f}")

plt.barh(["Regression coefficient", "Actual effect"], [coef, total],
         color=["#2166ac", "#d6604d"])
plt.axvline(0, color="black", linewidth=0.8)
plt.xlim(-2.5, 2.5)
plt.xlabel("Change in Y")
plt.show()

Key takeaways

  • A coefficient answers a hypothetical question in which other variables are frozen. Ask whether they would really stay put.
  • For policy questions, you usually want the total effect, including how everything else responds.
  • Controlling for a variable that lies on the causal path between X and Y changes what the coefficient means.

Source

Back to top