Skip to main content

Second-Order Availability Bias

Causes, samples and populations
Fallacy
Intermediate
Generalizing from correlations you see in your personal experience to correlations in the population.
Published

November 9, 2026

Modified

November 13, 2026

Entry #16 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: Red and blue voters: misunderstandings arising from a second-order availability bias.

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

Related terms: unrepresentative sample, varying slopes.

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

What it is

The ordinary availability bias is about levels: you overestimate how common something is because examples come easily to mind. The second-order version is about relationships: you assume that a correlation you see among the people around you holds in the population as a whole.

Gelman’s post opens with a line mistakenly attributed to Pauline Kael in 1972, “I can’t believe Nixon won. I don’t know anybody who voted for him”, which is a first-order error. His example of the second-order error comes from his work on income and voting. Journalists living among affluent, highly educated Democrats in big coastal cities concluded that rich people in general vote Democratic. Nationally, and especially in poorer states, income is strongly associated with voting Republican.

Why it matters

Your social circle is not a random sample. It is selected on geography, education, occupation and age, and these are exactly the kinds of variables that change how other variables relate. A correlation that is real in your circle can be weaker, absent or reversed elsewhere. Pundits, researchers and policymakers who reason from their own environment end up with confident and wrong models of society.

How it works

Suppose the slope of \(y\) on \(x\) varies by context \(c\): \(\mathrm{E}(y \mid x, c) = \alpha_c + \beta_c x\). Your experience samples one context, so you learn \(\beta_{c_\text{you}}\). The population relationship averages over contexts. It also includes the between-context relationship, so it can differ from your local slope in size and even in sign. The fix is to sample broadly, or to model the variation in \(\beta_c\) explicitly.

Simulated example

Forty states, each with its own slope of “votes Republican” on income. The slopes are steep in poorer states and nearly flat in richer ones. You live in one state and observe 200 acquaintances. Compare the slope you see with the slope in the whole country.

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

viewof myState = Inputs.range([1, 40], {value: 38, step: 1, label: "Your state (1 = poorest, 40 = richest)"})
viewof seed = Inputs.range([1, 500], {value: 16, step: 1, label: "Random seed"})

nation = {
  const r = rng(seed);
  return range(40).flatMap(s => {
    const wealth = (s - 19.5) / 20;                 // -1 .. 1
    const slope = 0.9 - 0.85 * (wealth + 1) / 2;   // steep in poor states, ~flat in rich
    const alpha = -0.4 * wealth;
    return range(400).map(() => {
      const inc = r.normal(wealth, 1);
      return {state: s + 1, inc, vote: r.bernoulli(invLogit(alpha + slope * inc))};
    });
  });
}
mine = nation.filter(d => d.state === myState).slice(0, 200)
fits = ({
  mine: lm(mine.map(d => d.inc), mine.map(d => d.vote)).b,
  nation: lm(nation.map(d => d.inc), nation.map(d => d.vote)).b
})

binned = (data, label) => range(8).map(k => {
  const lo = -3 + k * 0.75, pts = data.filter(d => d.inc >= lo && d.inc < lo + 0.75);
  return {who: label, inc: lo + 0.375, p: pts.length > 5 ? mean(pts.map(d => d.vote)) : NaN};
}).filter(d => Number.isFinite(d.p))

Plot.plot({
  ariaLabel: "Second-Order Availability Bias: simulation chart",
  ariaDescription: "Horizontal axis: Income (standardized). Vertical axis: Share voting Republican. The chart updates with the controls above it, and the summary below the charts states the result in words.",
  height: 300,
  x: {label: "Income (standardized)", grid: true},
  y: {label: "Share voting Republican", domain: [0, 1], grid: true},
  color: {legend: true, range: ["#d6604d", "#2166ac"]},
  marks: [
    Plot.line([...binned(mine, "Your acquaintances"), ...binned(nation, "Whole country")], {x: "inc", y: "p", stroke: "who", strokeWidth: 2, marker: "circle"})
  ]
})
# Second-Order Availability Bias: your own circle is not the country.
1my_state <- 38 # your state (1 = poorest, 40 = richest)
2set.seed(16)

# 40 states, 400 voters each. Income matters a lot in poor states and
# hardly at all in rich ones.
state <- rep(1:40, each = 400)
wealth <- (state - 1 - 19.5) / 20 # -1 .. 1
3slope <- 0.9 - 0.85 * (wealth + 1) / 2
inc <- rnorm(16000, wealth, 1)
vote <- rbinom(16000, 1, plogis(-0.4 * wealth + slope * inc))

4mine <- which(state == my_state)[1:200] # your acquaintances
cat("Slope of vote on income among your acquaintances: ",
  round(coef(lm(vote[mine] ~ inc[mine]))[[2]], 3), "\nIn the whole ",
  "country: ", round(coef(lm(vote ~ inc))[[2]], 3), "\n",
  sep = ""
)

bin <- cut(inc, seq(-3, 3, by = 0.75))
5plot(seq(-2.625, 2.625, by = 0.75), tapply(vote, bin, mean),
  type = "b",
  pch = 19, col = "#2166ac", ylim = c(0, 1), xlab = "Income",
  ylab = "Share voting for the party"
)
bin_mine <- cut(inc[mine], seq(-3, 3, by = 0.75))
points(seq(-2.625, 2.625, by = 0.75), tapply(vote[mine], bin_mine, mean),
  type = "b", pch = 19, col = "#d6604d"
)
legend("topleft", c("Whole country", "Your acquaintances"),
  pch = 19,
  col = c("#2166ac", "#d6604d"), bty = "n"
)
1
The page’s control: which of 40 states, from poorest to richest, you live in.
2
Fixes the random numbers so the run is reproducible.
3
Income predicts the vote strongly in poor states and hardly at all in rich ones.
4
Your acquaintances: 200 people from your own state.
5
Vote against income for the whole country and for your acquaintances. Your circle is a sample from one state, and the national pattern can be the opposite of what it shows.
# Second-Order Availability Bias: your own circle is not the country.
import numpy as np
import matplotlib.pyplot as plt

my_state = 38  # your state (1 = poorest, 40 = richest)
rng = np.random.default_rng(16)

# 40 states, 400 voters each. Income matters a lot in poor states and
# hardly at all in rich ones.
state = np.repeat(np.arange(1, 41), 400)
wealth = (state - 1 - 19.5) / 20                  # -1 .. 1
slope = 0.9 - 0.85 * (wealth + 1) / 2
inc = rng.normal(wealth, 1)
vote = rng.binomial(1, 1 / (1 + np.exp(-(-0.4 * wealth + slope * inc))))

mine = np.flatnonzero(state == my_state)[:200]   # your acquaintances
print(f"Slope of vote on income among your acquaintances: "
      f"{np.polyfit(inc[mine], vote[mine], 1)[0]:.3f}")
print(f"In the whole country: {np.polyfit(inc, vote, 1)[0]:.3f}")

edges = np.arange(-3, 3.01, 0.75)
mids = edges[:-1] + 0.375
for idx, c, label in [(slice(None), "#2166ac", "Whole country"),
                      (mine, "#d6604d", "Your acquaintances")]:
    b = np.digitize(inc[idx], edges) - 1
    p = [vote[idx][b == k].mean() if np.sum(b == k) > 5 else np.nan
         for k in range(8)]
    plt.plot(mids, p, "o-", color=c, label=label)
plt.ylim(0, 1)
plt.xlabel("Income")
plt.ylabel("Share voting for the party")
plt.legend()
plt.show()

Key takeaways

  • Correlations, not just frequencies, are distorted by the non-random sample of people you know.
  • Relationships vary by context. Your local slope is one draw from a distribution of slopes.
  • Check intuitions about associations against broad, representative data, and model the variation.

Source

Back to top