Skip to main content

The Freshman Fallacy

Causes, samples and populations
Fallacy
Intermediate
Just because a freshman might raise a question, that does not make the issue irrelevant.
Published

November 9, 2026

Modified

November 13, 2026

Entry #43 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: Does it matter that a sample is unrepresentative? It depends on the size of the treatment interactions.

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

Related terms: student samples, generalizability, external validity.

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

What it is

A first-year student reads a psychology study and asks, But wasn’t it just college students? Experts tend to dismiss the question as naive: Of course it’s a convenience sample; randomization takes care of internal validity. The freshman fallacy is assuming that a question must be unimportant because a beginner could ask it. Sometimes the obvious question is the right one.

Why it matters

Whether an unrepresentative sample matters for a randomized experiment depends on treatment interactions, that is, on whether the effect varies with characteristics in which the sample differs from the population. If effects are similar for everyone, a student sample is fine. If the effect differs with age, income or context, the student-sample estimate can be badly off for the population. Dismissing the question skips the analysis that answers it.

How it works

Let the treatment effect for a person with covariate \(x\) be \(\tau(x) = \tau_0 + \gamma x\). The sample average effect is \(\tau_0 + \gamma \bar{x}_{\text{sample}}\), and the population average is \(\tau_0 + \gamma \bar{x}_{\text{pop}}\). The bias is

\[ \gamma\,(\bar{x}_{\text{sample}} - \bar{x}_{\text{pop}}), \]

which is zero only if there is no interaction (\(\gamma = 0\)) or no difference in composition. Randomization within the sample does nothing to remove this term.

Simulated example

A randomized experiment run only on 18–22-year-olds. The treatment effect changes with age at a rate you control. Compare the experiment’s estimate with the population-average effect.

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

viewof gamma = Inputs.range([-0.03, 0.03], {value: -0.015, step: 0.001, label: "Change in effect per year of age (γ)"})
viewof seed = Inputs.range([1, 500], {value: 43, step: 1, label: "Random seed"})

fresh = {
  const r = rng(seed);
  const tau = age => 0.5 + gamma * (age - 20);
  const sample = range(600).map(() => { const age = r.uniform(18, 22), z = r.bernoulli(0.5); return {age, z, y: tau(age) * z + r.normal(0, 1)}; });
  const est = mean(sample.filter(d => d.z).map(d => d.y)) - mean(sample.filter(d => !d.z).map(d => d.y));
  const popAges = range(5000).map(() => r.uniform(18, 80));
  const curve = range(63).map(i => ({age: 18 + i, tau: tau(18 + i)}));
  return {est, popEffect: mean(popAges.map(tau)), curve};
}

Plot.plot({
  ariaLabel: "The Freshman Fallacy: simulation chart",
  ariaDescription: "Horizontal axis: Age. Vertical axis: True treatment effect. The chart updates with the controls above it, and the summary below the charts states the result in words.",
  height: 280,
  x: {label: "Age", grid: true},
  y: {label: "True treatment effect", grid: true},
  marks: [
    Plot.rect([0], {x1: 18, x2: 22, y1: -1.5, y2: 2, fill: "#2166ac", fillOpacity: 0.1}),
    Plot.line(fresh.curve, {x: "age", y: "tau", stroke: "currentColor"}),
    Plot.ruleY([fresh.est], {stroke: "#2166ac", strokeDasharray: "5 3"}),
    Plot.ruleY([fresh.popEffect], {stroke: "#d6604d", strokeDasharray: "5 3"}),
    Plot.text([0], {x: 22.5, y: 1.8, text: () => "the sample", textAnchor: "start", fill: "#2166ac"})
  ]
})
# The Freshman Fallacy: an experiment on college students only.
1gamma <- -0.015 # change in the treatment effect per year of age
2set.seed(43)

effect <- function(age) 0.5 + gamma * (age - 20)
3age <- runif(600, 18, 22) # the experiment: ages 18 to 22
z <- rbinom(600, 1, 0.5) # randomized treatment
y <- effect(age) * z + rnorm(600)
4est <- mean(y[z == 1]) - mean(y[z == 0])
5pop_effect <- mean(effect(runif(5000, 18, 80))) # ages 18 to 80

cat("Experiment's estimate:", round(est, 2), "\n")
cat("Population-average effect:", round(pop_effect, 2), "\n")

6curve(effect, 18, 80,
  lwd = 2, col = "#2166ac", xlab = "Age",
  ylab = "Treatment effect"
)
rect(18, -10, 22, 10, col = adjustcolor("#2166ac", 0.1), border = NA)
abline(h = est, col = "#2166ac", lty = 2)
abline(h = pop_effect, col = "#d6604d", lty = 2)
1
The page’s control: how much the treatment effect changes per year of age.
2
Fixes the random numbers so the run is reproducible.
3
The experiment’s subjects are all college students, aged 18 to 22.
4
The experiment’s estimate, which is unbiased for its own subjects.
5
The average effect in the population of interest, aged 18 to 80.
6
The effect by age, with the experiment’s age range shaded. The two dashed lines differ because the effect varies with a characteristic the sample lacks.
# The Freshman Fallacy: an experiment on college students only.
import numpy as np
import matplotlib.pyplot as plt

gamma = -0.015  # change in the treatment effect per year of age
rng = np.random.default_rng(43)


def effect(age):
    return 0.5 + gamma * (age - 20)


age = rng.uniform(18, 22, 600)      # the experiment: ages 18 to 22
z = rng.binomial(1, 0.5, 600)       # randomized treatment
y = effect(age) * z + rng.normal(size=600)
est = y[z == 1].mean() - y[z == 0].mean()
pop_effect = effect(rng.uniform(18, 80, 5000)).mean()  # ages 18 to 80

print(f"Experiment's estimate: {est:.2f}")
print(f"Population-average effect: {pop_effect:.2f}")

ages = np.linspace(18, 80, 100)
plt.axvspan(18, 22, color="#2166ac", alpha=0.1)
plt.plot(ages, effect(ages), color="#2166ac", linewidth=2)
plt.axhline(est, color="#2166ac", linestyle="--")
plt.axhline(pop_effect, color="#d6604d", linestyle="--")
plt.xlabel("Age")
plt.ylabel("Treatment effect")
plt.show()

Key takeaways

  • A naive-sounding question can still point at a real problem.
  • Unrepresentative samples matter for experiments when treatment effects vary with characteristics the sample lacks.
  • Answer it’s just students with an analysis of plausible interactions, not with a shrug.

Source

Back to top