Skip to main content

The Groovy Grandma Problem

Causes, samples and populations
Principle or heuristic
Intermediate
When your sample differs systematically from your population within adjustment cells.
Published

November 9, 2026

Modified

November 13, 2026

Entry #149 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: The groovy grandma problem in survey research.

Filed under Causes, samples and populations · Principle or heuristic · Intermediate.

Related terms: nonresponse bias, survey weighting, unrepresentative samples.

Source check: ✓ The explanation was checked against the source. No archived copy of the post was available, so it was checked against a detailed search-engine summary of the post.

What it is

Survey adjustment, whether weighting or MRP, corrects for the sample having the wrong mix of cells, such as too few older people. It assumes that within each cell, the respondents resemble the population. The groovy grandma problem is when they don’t. The older people who answer an online opt-in poll are not typical older people. They’re the tech-savvy, socially engaged “groovy grandmas.” Weighting up the older cell multiplies their atypical views instead of correcting them.

The name comes from Gelman’s team’s survey of Xbox users. That sample over-represented young men, and it did include many older women, but, as Gelman puts it, they were not typical older women: “we’re poststratifying on age and sex but not on grooviness, or on the propensity to spend time playing videogames.” He calls this conditional nonrepresentativeness. In the Xbox case he didn’t think it was a big problem, because he saw no strong reason to expect those women’s political attitudes to differ much from other women their age, and commenters argued it could be more serious than that. The simulation below shows what happens when the within-cell difference does matter.

Why it matters

The problem is invisible to standard diagnostics. Weighted demographics match the census perfectly, because that is what weighting does, yet the estimates stay biased. The problem is worst in exactly the cells that need the most weight: underrepresented groups are reached through unusual channels, so the few who respond are the least typical. More weighting can make things worse.

How it works

Let opinion depend on age group and on a trait \(G\) (“grooviness”). In the population, \(G\) is rare among older people. Response depends on age and \(G\): groovy older people respond far more than other older people. After weighting on age, the older cell’s estimate reflects mainly groovy respondents, so it is biased by about the within-cell difference in opinion times the over-representation of \(G\). Fixing it requires adjusting for \(G\) or for a proxy, such as internet use or social engagement, or at least checking a canary variable.

Simulated example

An online poll weighted to the correct age distribution. Vary how strongly “grooviness” drives older people’s response, and compare the age-weighted estimate with the truth.

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 groovy = Inputs.range([0, 4], {value: 2.5, step: 0.1, label: "How much grooviness boosts response among older people"})
viewof seed = Inputs.range([1, 500], {value: 149, step: 1, label: "Random seed"})

grandma = {
  const r = rng(seed);
  const pop = range(60000).map(() => {
    const old = r.bernoulli(0.4), g = r.bernoulli(old ? 0.15 : 0.5);
    const support = r.bernoulli(0.35 + 0.3 * g - 0.1 * old);
    const pResp = 1 / (1 + Math.exp(-(-3 + (old ? -1 + groovy * g : 0.5 * g))));
    return {old, g, support, resp: r() < pResp};
  });
  const sample = pop.filter(d => d.resp);
  const cellMean = o => mean(sample.filter(d => d.old === o).map(d => d.support));
  return {
    truth: mean(pop.map(d => d.support)),
    raw: mean(sample.map(d => d.support)),
    weighted: 0.4 * cellMean(1) + 0.6 * cellMean(0),
    oldTruth: mean(pop.filter(d => d.old).map(d => d.support)),
    oldSample: cellMean(1),
    groovyShareOldSample: mean(sample.filter(d => d.old).map(d => d.g)),
    n: sample.length
  };
}

Plot.plot({
  ariaLabel: "The Groovy Grandma Problem: simulation chart",
  ariaDescription: "Horizontal axis: Estimated support. The chart updates with the controls above it, and the summary below the charts states the result in words.",
  height: 200,
  marginLeft: 200,
  x: {label: "Estimated support", domain: [0.2, 0.7], grid: true, tickFormat: "%"},
  y: {label: null},
  marks: [
    Plot.dot([
      {m: "Truth", v: grandma.truth}, {m: "Raw sample", v: grandma.raw}, {m: "Weighted to census age mix", v: grandma.weighted},
      {m: "Older cell: truth", v: grandma.oldTruth}, {m: "Older cell: respondents", v: grandma.oldSample}
    ], {y: "m", x: "v", r: 7, fill: d => d.m.includes("ruth") ? "currentColor" : "#d6604d"}),
    Plot.ruleX([grandma.truth], {strokeDasharray: "4 3"})
  ]
})
# The Groovy Grandma Problem: weighting fixes the age mix, not grooviness.
1groovy <- 2.5 # how much grooviness boosts response among older people
2set.seed(149)

N <- 60000
old <- rbinom(N, 1, 0.4)
3g <- rbinom(N, 1, ifelse(old == 1, 0.15, 0.5)) # "groovy"
support <- rbinom(N, 1, 0.35 + 0.3 * g - 0.1 * old)
4resp <- runif(N) < plogis(-3 + ifelse(old == 1, -1 + groovy * g, 0.5 * g))

cell <- function(o) mean(support[resp & old == o])
5weighted <- 0.4 * cell(1) + 0.6 * cell(0) # weighted to the census age mix
cat("Groovy among older respondents: ",
  round(100 * mean(g[resp & old == 1])), "% (15% in the population)\n",
  sep = ""
)
cat("Truth: ", round(100 * mean(support), 1), "% | weighted estimate: ",
  round(100 * weighted, 1), "%\n",
  sep = ""
)

est <- c(
  Truth = mean(support), "Raw sample" = mean(support[resp]),
  "Weighted by age" = weighted
)
6dotchart(100 * est,
  pch = 19, col = c("black", "#d6604d", "#d6604d"),
  xlab = "Support (%)"
)
1
The page’s control: how much being groovy raises an older person’s chance of answering the survey.
2
Fixes the random numbers so the run is reproducible.
3
Grooviness is rare among the old and common among the young, and it predicts the outcome.
4
Who responds: older people rarely, unless they are groovy.
5
Weighting fixes the age mix, but the older respondents are still the groovy ones.
6
The truth, the raw sample and the weighted estimate. The weights adjusted for the wrong variable.
# The Groovy Grandma Problem: weighting fixes the age mix, not grooviness.
import numpy as np
import matplotlib.pyplot as plt

groovy = 2.5  # how much grooviness boosts response among older people
rng = np.random.default_rng(149)

N = 60000
old = rng.binomial(1, 0.4, N)
g = rng.binomial(1, np.where(old == 1, 0.15, 0.5))  # "groovy"
support = rng.binomial(1, 0.35 + 0.3 * g - 0.1 * old)
logit = -3 + np.where(old == 1, -1 + groovy * g, 0.5 * g)
resp = rng.uniform(size=N) < 1 / (1 + np.exp(-logit))


def cell(o):
    return support[resp & (old == o)].mean()


weighted = 0.4 * cell(1) + 0.6 * cell(0)  # weighted to the census age mix
print(f"Groovy among older respondents: "
      f"{100 * g[resp & (old == 1)].mean():.0f}% (15% in the population)")
print(f"Truth: {100 * support.mean():.1f}% | weighted estimate: "
      f"{100 * weighted:.1f}%")

est = {"Truth": support.mean(), "Raw sample": support[resp].mean(),
       "Weighted by age": weighted}
plt.scatter([100 * v for v in est.values()], list(est), s=80,
            color=["black", "#d6604d", "#d6604d"])
plt.xlabel("Support (%)")
plt.tight_layout()
plt.show()

Key takeaways

  • Adjustment fixes the mix of cells, not who the respondents are within each cell.
  • Under-represented cells are where within-cell selection tends to be strongest.
  • Adjust for the traits that drive response, such as engagement or internet use, and check canary variables.

Source

Back to top