Skip to main content

Two sides, no vig

Thinking about statistics
Fallacy
Intermediate
The problem with generative and inferential reasoning in social science
Published

November 9, 2026

Modified

November 13, 2026

Entry #137 in Andrew Gelman’s Handy Statistical Lexicon. Original discussion: Two sides, no vig: the problem with generative and inferential reasoning in social science.

Filed under Thinking about statistics · Fallacy · Intermediate.

Source check: ✓ The explanation was checked against the source. The post gives the abstract only; the reading of the title is ours.

What it is

The “vig” (vigorish) is the bookmaker’s cut, the cost of placing a bet. A bet with “two sides, no vig” is one where you may take either side without paying that fee. The entry is the title of a paper Gelman planned, and the post gives only its abstract, so the reading of the title here is ours: a researcher who can take either side of an argument at no cost. Social science can reason in two directions. Generative modeling predicts behavior from assumed preferences. Inferential reasoning deduces preferences from observed behavior. Both are valuable, but “in choosing which mode to use, social scientists have the freedom to come to essentially opposite conclusions for any problem that comes in.” His examples come from economics, political science and public health.

Why it matters

If a researcher can pick the mode of reasoning after seeing which conclusion it delivers, any outcome can be presented as support for their view, and nothing is risked. A claim that would have been “confirmed” whichever way the data came out carries no evidence. Gelman’s suggested remedy is a “more holistic integration of data and theory”: committing to how theory and data fit together before seeing which way the answer goes.

How it works

Evidence for a theory \(T\) from an outcome \(D\) is the likelihood ratio \(\Pr(D \mid T) / \Pr(D \mid \text{not } T)\). A committed theory predicts \(D = +\) with high probability, so seeing \(+\) is evidence for it and seeing \(-\) is evidence against it. A two-sided theory “predicts” whichever outcome happens, so \(\Pr(D \mid T) \approx \Pr(D \mid \text{not } T)\), the likelihood ratio is about 1, and belief shouldn’t move. Counting its “successes” as support is the error.

Simulated example

Two theories face 30 studies of an effect that is actually zero. The committed theory predicts a positive effect. The two-sided theory explains either sign. A naive scorekeeper counts “confirmations,” meaning noticeable results (|z| > 1) that the theory can explain, while a Bayesian tracks the evidence.

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

viewof trueEffect = Inputs.range([-0.5, 0.5], {value: 0, step: 0.05, label: "True effect"})
viewof seed = Inputs.range([1, 500], {value: 137, step: 1, label: "Random seed"})

vig = {
  const r = rng(seed);
  let commitConf = 0, twoConf = 0, commitLO = 0, twoLO = 0;
  return range(30).map(k => {
    const z = r.normal(trueEffect / 0.2, 1);
    const sig = Math.abs(z) > 1, pos = z > 0;            // a "noticeable" result, |z| > 1
    if (sig && pos) commitConf++;
    if (sig) twoConf++;                                      // either sign "confirms" it
    // Evidence: committed theory predicts positive with prob .8 vs .5 under the null of no theory.
    if (sig) commitLO += pos ? Math.log(0.8 / 0.5) : Math.log(0.2 / 0.5);
    // Two-sided theory: predicts the observed sign with the same probability as no theory.
    twoLO += 0;
    return {k: k + 1, commitConf, twoConf, commitP: 1 / (1 + Math.exp(-commitLO)), twoP: 0.5};
  });
}

html`<div style="display:flex; gap:1rem; flex-wrap:wrap">
${Plot.plot({
  ariaLabel: "Two sides, no vig: Naive count of 'confirmations'",
  ariaDescription: "Horizontal axis: Studies. Vertical axis: Confirmations. The chart updates with the controls above it, and the summary below the charts states the result in words.",width: 320, height: 240, title: "Naive count of 'confirmations'", x: {label: "Studies"}, y: {label: "Confirmations", grid: true}, color: {legend: true, domain: ["Committed theory", "Two-sided theory"], range: ["#2166ac", "#d6604d"]},
  marks: [Plot.line(vig, {x: "k", y: "commitConf", stroke: () => "Committed theory", strokeWidth: 2}), Plot.line(vig, {x: "k", y: "twoConf", stroke: () => "Two-sided theory", strokeWidth: 2})]})}
${Plot.plot({
  ariaLabel: "Two sides, no vig: Actual evidence (posterior)",
  ariaDescription: "Horizontal axis: Studies. Vertical axis: Pr(theory). The chart updates with the controls above it, and the summary below the charts states the result in words.",width: 320, height: 240, title: "Actual evidence (posterior)", x: {label: "Studies"}, y: {label: "Pr(theory)", domain: [0, 1], grid: true}, color: {domain: ["Committed theory", "Two-sided theory"], range: ["#2166ac", "#d6604d"]},
  marks: [Plot.line(vig, {x: "k", y: "commitP", stroke: () => "Committed theory", strokeWidth: 2}), Plot.line(vig, {x: "k", y: "twoP", stroke: () => "Two-sided theory", strokeWidth: 2, strokeDasharray: "4 3"})]})}
</div>`
# Two sides, no vig: a theory that bets on both outcomes risks nothing.
1true_effect <- 0 # true effect
2set.seed(137)

z <- rnorm(30, true_effect / 0.2, 1) # 30 studies
noticed <- abs(z) > 1 # a "noticeable" result
3committed_conf <- cumsum(noticed & z > 0) # predicted positive
4two_sided_conf <- cumsum(noticed) # either sign "confirms" it
# Evidence for the committed theory: it predicts a positive result with
# probability 0.8, against 0.5 with no theory. The two-sided theory
# predicts both signs, so its evidence never moves from 50%.
5lo <- cumsum(ifelse(noticed, ifelse(z > 0, log(0.8 / 0.5),
  log(0.2 / 0.5)
), 0))
cat("After 30 studies: 'confirmations' two-sided ", tail(two_sided_conf, 1),
  ", committed ", tail(committed_conf, 1), "\nProbability the theory is ",
  "right: two-sided 50%, committed ", round(100 * plogis(tail(lo, 1))),
  "%\n",
  sep = ""
)

6par(mfrow = c(1, 2))
matplot(1:30, cbind(two_sided_conf, committed_conf),
  type = "s", lty = 1,
  lwd = 2, col = c("#d6604d", "#2166ac"), xlab = "Study",
  ylab = "'Confirmations'"
)
plot(1:30, plogis(lo),
  type = "l", lwd = 2, col = "#2166ac",
  ylim = c(0, 1), xlab = "Study", ylab = "Probability theory is right"
)
abline(h = 0.5, col = "#d6604d", lwd = 2)
1
The page’s control: the true effect, zero by default.
2
Fixes the random numbers so the run is reproducible.
3
The committed theory predicts a positive result, so only noticeable positive results count as confirmations.
4
The two-sided theory explains either sign, so every noticeable result confirms it.
5
The evidence, as a Bayesian would count it. The committed theory risks something and is rewarded or punished; the two-sided theory’s likelihood ratio is always one.
6
Confirmations and the probability the theory is right. Counting confirmations flatters the theory that bet both ways.
# Two sides, no vig: a theory that bets on both outcomes risks nothing.
import numpy as np
import matplotlib.pyplot as plt

true_effect = 0  # true effect
rng = np.random.default_rng(137)

z = rng.normal(true_effect / 0.2, 1, 30)  # 30 studies
noticed = np.abs(z) > 1                   # a "noticeable" result
committed_conf = np.cumsum(noticed & (z > 0))  # predicted positive
two_sided_conf = np.cumsum(noticed)            # either sign "confirms" it
# Evidence for the committed theory: it predicts a positive result with
# probability 0.8, against 0.5 with no theory. The two-sided theory
# predicts both signs, so its evidence never moves from 50%.
lo = np.cumsum(np.where(noticed, np.where(z > 0, np.log(0.8 / 0.5),
                                          np.log(0.2 / 0.5)), 0))
p_committed = 1 / (1 + np.exp(-lo))
print(f"After 30 studies: 'confirmations' two-sided {two_sided_conf[-1]}, "
      f"committed {committed_conf[-1]}")
print(f"Probability the theory is right: two-sided 50%, committed "
      f"{100 * p_committed[-1]:.0f}%")

k = np.arange(1, 31)
fig, ax = plt.subplots(1, 2, figsize=(9, 4))
ax[0].step(k, two_sided_conf, color="#d6604d", label="Two-sided")
ax[0].step(k, committed_conf, color="#2166ac", label="Committed")
ax[0].set_ylabel("'Confirmations'")
ax[0].legend()
ax[1].plot(k, p_committed, color="#2166ac", linewidth=2)
ax[1].axhline(0.5, color="#d6604d", linewidth=2)
ax[1].set_ylim(0, 1)
ax[1].set_ylabel("Probability theory is right")
plt.show()

Key takeaways

  • A theory that explains both an outcome and its opposite gains no evidence from either.
  • Counting “consistent” results rewards flexibility, not truth.
  • Generative reasoning makes theories commit: say in advance what the data should look like.

Source

Back to top