RSS Amplifier

Dr. Juan Camilo Orduz · Mar 5, 2026

Bayesian Power Analysis for A/B Testing

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

This notebook implements a simulation-based Bayesian power analysis for conversion-rate A/B tests and compares it against the classical frequentist
two-proportion z-test. We follow the Kruschke HDI+ROPE framework from The Bayesian New Statistics (Section “Planning for precision and other goals: Better done Bayesian”), in the same way as in the introductory example: Introduction to Bayesian…

This notebook implements a simulation-based Bayesian power analysis for conversion-rate A/B tests and compares it against the classical frequentist two-proportion z-test. We follow the Kruschke HDI+ROPE framework from The Bayesian New Statistics (Section “Planning for precision and other goals: Better done Bayesian”), in the same way as in the introductory example: Introduction to Bayesian Power Analysis: Exclude a Null Value. The process is as follows:

  1. Generate synthetic A/B test data across a grid of sample sizes and true relative lifts \(\omega\) (distributions).
  2. For each cell, fit a Bayesian model via MCMC and compute the \(95\%\) HDI of the relative_lift posterior.
  3. Power = fraction of simulations where the \(95\%\) HDI falls entirely outside a Region of Practical Equivalence (ROPE).

We compare three prior specifications motivated by Prior Predictive Modeling in Bayesian AB Testing (see also The Bet Test):

Read on /bayesian_power_ab_testing/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.