Skip to main content

The Bayesian cringe

Thinking about statistics
Fallacy
Intermediate
The attitude that we need to apologize for using prior information.
Published

November 9, 2026

Modified

November 13, 2026

Entry #97 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: The Bayesian cringe.

Filed under Thinking about statistics · Fallacy · Intermediate.

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

What it is

Many Bayesian analysts carefully explain that their priors are “noninformative,” “objective” or “only weakly informative,” as if using real prior knowledge were embarrassing. That is the Bayesian cringe. Gelman’s view is that prior information is information. Knowing that effects in a field are typically small, or that a parameter must be positive and below some bound, is knowledge, and leaving it out is a choice to analyze with less information than you have.

Why it matters

The cringe has costs. In fields where true effects are small and studies are noisy, flat priors produce inflated, unstable estimates: the significance filter and Type M errors. A prior that encodes effects in this field are usually small pulls noisy estimates toward realistic values and greatly improves accuracy. Apologizing for that is like apologizing for using a pre-test score as a covariate.

How it works

Suppose effects in a field follow roughly \(\theta \sim \mathrm{N}(0, \tau^2)\), with \(\tau\) known from many past studies. A new study estimates \(\hat\theta \sim \mathrm{N}(\theta, \text{se}^2)\). The flat-prior estimate is \(\hat\theta\). The informed estimate is \(\frac{\tau^2}{\tau^2 + \text{se}^2}\,\hat\theta\). When \(\text{se} > \tau\), which is common in practice, the informed estimate has much lower error, and the reduction comes entirely from using what the field already knows.

Simulated example

There are 2,000 studies in a field with small typical effects. Compare the error of flat-prior (“cringing”) estimates with estimates that use the field’s prior information.

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 tau = Inputs.range([0.05, 1], {value: 0.15, step: 0.05, label: "Typical effect size in the field τ"})
viewof se = Inputs.range([0.05, 1], {value: 0.3, step: 0.05, label: "Standard error of a typical study"})
viewof seed = Inputs.range([1, 500], {value: 97, step: 1, label: "Random seed"})

cringe = {
  const r = rng(seed);
  const B = tau * tau / (tau * tau + se * se);
  return range(2000).map(() => { const theta = r.normal(0, tau), y = r.normal(theta, se); return {theta, flat: y, informed: B * y}; });
}

Plot.plot({
  ariaLabel: "The Bayesian cringe: simulation chart",
  ariaDescription: "Horizontal axis: True effect. Vertical axis: Estimate. The chart updates with the controls above it, and the summary below the charts states the result in words.",
  height: 300,
  grid: true,
  x: {label: "True effect"},
  y: {label: "Estimate"},
  color: {legend: true, domain: ["Flat prior (cringe)", "Uses prior information"], range: ["#d6604d", "#2166ac"]},
  marks: [
    Plot.dot(cringe.slice(0, 500), {x: "theta", y: "flat", r: 1.5, fill: () => "Flat prior (cringe)", fillOpacity: 0.4}),
    Plot.dot(cringe.slice(0, 500), {x: "theta", y: "informed", r: 1.5, fill: () => "Uses prior information", fillOpacity: 0.6}),
    Plot.line([[-4 * tau, -4 * tau], [4 * tau, 4 * tau]], {stroke: "currentColor", strokeDasharray: "4 3"})
  ]
})
# The Bayesian cringe: using what the field already knows.
1tau <- 0.15 # typical effect size in the field
se <- 0.3 # standard error of a typical study
2set.seed(97)

3theta <- rnorm(2000, 0, tau) # true effects
y <- rnorm(2000, theta, se) # flat prior: take the estimate as is
4informed <- tau^2 / (tau^2 + se^2) * y # posterior mean, field's prior

5rmse <- function(est) sqrt(mean((est - theta)^2))
cat(
  "Root-mean-square error: flat prior", round(rmse(y), 3),
  "| informed prior", round(rmse(informed), 3), "\n"
)
cat("Reduction in error: ", round(100 * (1 - rmse(informed) / rmse(y))),
  "%\n",
  sep = ""
)

6plot(theta[1:500], y[1:500],
  pch = 16, cex = 0.5,
  col = adjustcolor("#d6604d", 0.4), xlab = "True effect",
  ylab = "Estimate"
)
points(theta[1:500], informed[1:500],
  pch = 16, cex = 0.5,
  col = adjustcolor("#2166ac", 0.6)
)
abline(0, 1, lty = 2)
legend("topleft", c("Flat prior (cringe)", "Uses prior information"),
  col = c("#d6604d", "#2166ac"), pch = 16, bty = "n"
)
1
The page’s controls: the typical effect size in the field and the standard error of a typical study.
2
Fixes the random numbers so the run is reproducible.
3
Two thousand true effects drawn from what the field already knows about effect sizes.
4
The posterior mean under the field’s prior: each estimate shrunk toward zero by the usual precision ratio.
5
Root-mean-square error against the truth, for the cringing (flat-prior) estimate and the informed one.
6
Estimates against truth. The blue cloud hugs the line more closely than the red one.
# The Bayesian cringe: using what the field already knows.
import numpy as np
import matplotlib.pyplot as plt

tau = 0.15  # typical effect size in the field
se = 0.3    # standard error of a typical study
rng = np.random.default_rng(97)

theta = rng.normal(0, tau, 2000)  # true effects
y = rng.normal(theta, se)         # flat prior: take the estimate as is
informed = tau ** 2 / (tau ** 2 + se ** 2) * y  # posterior mean


def rmse(est):
    return np.sqrt(np.mean((est - theta) ** 2))


print(f"Root-mean-square error: flat prior {rmse(y):.3f} "
      f"| informed prior {rmse(informed):.3f}")
print(f"Reduction in error: {100 * (1 - rmse(informed) / rmse(y)):.0f}%")

plt.scatter(theta[:500], y[:500], s=5, color="#d6604d", alpha=0.4,
            label="Flat prior (cringe)")
plt.scatter(theta[:500], informed[:500], s=5, color="#2166ac", alpha=0.6,
            label="Uses prior information")
lim = 4 * tau
plt.plot([-lim, lim], [-lim, lim], "k--")
plt.xlabel("True effect")
plt.ylabel("Estimate")
plt.legend()
plt.show()

Key takeaways

  • Prior information is information. Use it, and state it openly.
  • Flat priors aren’t neutral. They ignore knowledge and inflate noisy estimates.
  • Justify priors with evidence, without apologizing for having them.

Source

Back to top