Better Priors for Bayesian Analysis of A/B Testing

Demetri Pananos3 Jun 2026

Problem

A Bayesian A/B testing platform needs a default prior for the treatment effect (the lift) that works without knowing anything about the intervention. A normal prior such as Normal(0,0.052) implies that true lifts above 10% in absolute value are rarer than 5% and lifts above 20% rarer than 1%. The author sees such effects more often, some with small standard errors. Real effects look like a mixture: most treatments give small changes, a few give large ones. A heavy-tailed Student-t prior fits better, but its posterior has no closed form, so intervals are hard to compute and to explain in documentation.

Example from the article: Datadog's default prior for the lift is Normal(0,0.052), which the author finds too thin-tailed.

Solution in brief

Instead of a t prior, fit a finite mixture of zero-mean normals to the z-scores of past experiments. Each component implies a normal prior for the signal-to-noise ratio, so the posterior mean is a weighted average of ordinary normal-normal updates. Small z-scores are shrunk hard and large ones barely, as with a t prior, and the update stays closed-form.

Questions this case answers
  • How to shrink noisy effect estimates toward zero without over-shrinking rare large effects, using only closed-form updates
  • How to choose a default prior for effects across many experiments when the true effect distribution has a heavy tail and no context is available
  • How to choose a prior for the treatment effect when most experiments move metrics a little and a few move them a lot?
  • How to shrink noisy lifts toward zero without distorting large, genuine wins?

Tools and methods

  • Bayesian A/B test — normal-normal conjugate update for the treatment effect.
  • Gaussian mixture model — finite mixture of zero-mean normals fitted to observed z-scores.
Continue reading — it's free

Google or a one-time email code. No password.