Deeper Dive · Methodology Supplement
The Sports Page
Where the math lives
Supplement to Issue No. 26 Beta-Binomial Season Posterior For readers who want the math

How We Updated the Mets’ Win Total After 21 Games

The companion piece to Issue #26, “The 2026 Mets Are 7-14.” Beta-Binomial Bayesian inference, walked from the conjugate intuition through the closed-form posterior to the Python. It also shows the arithmetic slip that put 80-82 in the issue when the model said about 76.
Methodology Supplement · Issue #26 · Originally published April 23, 2026
The Idea

A bad start shifts the posterior, but doesn’t replace it

The intuition: a baseball team has some “true” win probability per game — the rate at which they would win across many games against a representative schedule. We don’t know this rate exactly. We have an estimate from preseason projections (PECOTA, ZiPS, FanGraphs Steamer): 83 wins out of 162, or about .512. Then they play 21 games and win 7 of them. The .333 actual is much worse than the .512 prior. How should that update our belief about the team’s true rate?

The wrong answer: replace the prior entirely with the observed data. .333 win rate × 162 = 54 wins. That extrapolation treats 21 games as definitive, which they’re not.

The right answer: combine the prior and the data, weighted by their respective sample sizes. The Beta-Binomial conjugate model does this in closed form. The prior carries the equivalent of, say, 162 trials of evidence (the projection). The 21 actual games carry 21 trials. The posterior is a weighted average.

How this is commonly misread. “The Mets are on pace for 54 wins” is a number every announcer says when a team starts 7-14. It’s not wrong arithmetic; it’s wrong inference. Pace assumes the current rate is the true rate. Bayesian inference asks “what does the current rate plus everything we knew before tell us about the true rate?” The answer for the Mets wasn’t 54 wins. It was about 76, with a wide range. (The issue printed 80-82; the math section below shows the slip. The Mets finished 74-88.)

The piece’s key claim — “the math is unhappy, not final” — is exactly the Bayesian posterior’s shape. The bad start moves the central estimate about seven wins below the preseason projection, but it doesn’t collapse to 54. The data isn’t enough yet to override 162 games of accumulated projection evidence.

The Math

Beta-Binomial: two parameters, two additions, done

If our prior belief about the win probability p is Beta(α, β), and we then observe k wins in n games, the posterior is also Beta — specifically Beta(α + k, β + n − k). Like the Gamma-Poisson model, conjugacy means closed-form math; no MCMC needed.

Prior: p ~ Beta(α, β) Observe: k wins in n games Posterior: p ~ Beta(α + k, β + n − k)

For the 2026 Mets, we encode the preseason 83-win projection as Beta(83, 79). The shape parameters represent “effective trials”: 83 prior wins and 79 prior losses. The Beta(83, 79) prior has a mean of 83/162 = 0.512 and a moderate spread — reasonable confidence in the projection but not certainty.

After observing 7 wins in 21 games, the posterior is:

Prior: p ~ Beta(83, 79) Observed: 7 wins, 14 losses Posterior: p ~ Beta(83 + 7, 79 + 14) = Beta(90, 93) Posterior mean: 90 / 183 = .49

Now the step the issue got wrong. Notice what the posterior describes: the rate for games not yet played. Twenty-one games were already in the books, and the Mets had won 7 of them. Those wins are banked; they do not get re-estimated.

Wrong (as printed): 162 × .49 = 80 counts the 21 played games again Right: 7 banked + 141 × .49 = 76 wins

Hold onto where the seven lost wins went, from the preseason 83 to 76. About four were already gone: the projection expected roughly 11 wins in the first 21 games, and the Mets got 7. Only about three come from the model lowering its belief about the games ahead. The bad start costs you mostly through the games it already lost.

Then the range. There are two kinds of uncertainty, and you should add both. We are unsure of the true rate, and even a known rate produces lucky and unlucky stretches over 141 games:

Rate uncertainty only: 7 + 141 × Beta(90, 93) 5th–95th pct = 68 to 85 Rate + game-to-game luck: 7 + BetaBinomial(141, 90, 93) 5th–95th = 63 to 89

The second range is the honest one for a final record, because the season still has to be played. The Mets finished 74-88: two wins under the central estimate, well inside the range. The printed 80-82 was six wins too high, and none of that error came from the model.

Worked example: how the streak-ending shifted the posterior

The losing streak reached twelve games before the Mets beat Minnesota 3-2 on April 22 and 10-8 on April 23 (MLB Stats API and ESPN). Four more games in (a loss on April 19, a loss on April 21, then the two wins), the Mets stood at 9-16 after 25 games:

New posterior: Beta(83+9, 79+16) = Beta(92, 95), mean .49
New projection: 9 banked + 137 × .49 = about 76 wins
Change: under a tenth of a win. Four games is small next to a posterior worth 187 games of evidence, so the streak ending barely moved the estimate.
As Sunday Edition No. 003 put it: “The math wasn’t actually saying that. It was saying ‘wait.’ The streak ending is what wait looks like.”
The Code

Beta-Binomial in fifteen lines

The Beta-Binomial model is small enough that scipy’s Beta distribution does all the work. We use scipy.stats.beta for the percent-point function (inverse CDF) to get credible intervals.

from scipy.stats import beta

# Preseason projection encoded as Beta prior
# Beta(83, 79) -> mean 83/162 = 0.512 (the 83-win projection)
prior_alpha = 83
prior_beta = 79

# Observed through April 18 (21 games)
wins_observed = 7
losses_observed = 14
games_remaining = 162 - (wins_observed + losses_observed)

# Posterior parameters (closed-form Beta-Binomial conjugate update)
post_alpha = prior_alpha + wins_observed
post_beta = prior_beta + losses_observed

# Central estimate
posterior_mean_p = post_alpha / (post_alpha + post_beta)
projected_total_wins = wins_observed + posterior_mean_p * games_remaining

print(f"Posterior mean p: {posterior_mean_p:.4f}")
print(f"Projected total wins: {projected_total_wins:.1f}")

# 90% credible interval (5th and 95th percentiles of remaining wins)
p_lower = beta.ppf(0.05, post_alpha, post_beta)
p_upper = beta.ppf(0.95, post_alpha, post_beta)
ci_low = wins_observed + p_lower * games_remaining
ci_high = wins_observed + p_upper * games_remaining
print(f"90% CI, rate only: [{ci_low:.0f}, {ci_high:.0f}]")   # [68, 85]

# Add game-to-game luck: wins in the remaining games are Beta-Binomial
from scipy.stats import betabinom
lo = wins_observed + betabinom.ppf(0.05, games_remaining, post_alpha, post_beta)
hi = wins_observed + betabinom.ppf(0.95, games_remaining, post_alpha, post_beta)
print(f"90% range, final record: [{lo:.0f}, {hi:.0f}]")   # [63, 89]
Snapshot from this issue's analysis. The Beta-Binomial template is reused across every season-projection piece (Issues #4, #18, #26). Lives inline rather than in a dedicated script because each piece needs its own preseason prior.

To run it on a different team or sport: change prior_alpha and prior_beta to encode that team’s preseason projection (multiply expected wins and losses by however many “effective trials” you want the prior to weigh, typically a full season). Then plug in observed wins/losses and games_remaining.

Caveats and known limitations


Read the article that uses this analysis: The 2026 Mets Are 7-14 →