Home About Me Bayesian Calculator Contact

Simulate A/B-test

This calculator allows you to model A/B test outcomes by simulating a synthetic user population. It is designed to show how unobserved differences between user segments impact the outcome of your A/B-test experiment.

By running multiple simulations under varying demographic assumptions, you can see exactly how your hypotheses impact the final results. Beyond simulation, the tool use AI to automatically summarize your findings.

Ultimately, it serves as a validation tool: by comparing real-world A/B test data against the predicted outcome based on your assumptions, you can see where they align or diverge. If your actual test results don't align with your initial assumptions, simply head back to the drawing board, adjust the parameters, and simulate a new scenario.

It’s the perfect sandbox to stress-test your hypotheses before you ever go live.


Instructions:

  • This tool simulates an A/B test using two variants: a control and a variant 1. The simulation models a population of n users, which you can adjust via the sample size setting below. In the control group, the baseline performance is determined by the "Metric baseline" parameter, which is also customizable.
  • You can configure up to six distinct user segments by defining how the new feature impacts the metric. Simply set the score to "Love" if you expect a positive reaction, "Neutral" for indifference, or "Hate" if you anticipate a negative response.
  • You can weight each segment to accurately reflect its proportion within your real-world user base.
  • Once configured, click Run Simulation to execute the synthetic A/B test and view the AI-generated summary of the results.
  • Be patient; the A/B simulations will take some time, and then AI will summarize the results for you.

Synthetic Users


Sample size

AI summary of the simulated A/B test using synthetic users.



The A/B test shows a statistically significant improvement in Variant 1 over the Control Group, with an observed metric of 21.6 compared to 19.9, resulting in a delta of -1.7 and a p-value of 0.0.

While the observed metrics are slightly different from their respective ground truths (Control: 19.7 difference, Variant 1: 19.75 difference), the significance of the observed delta is robust.

The overall delta of -1.7 is explained by the contributions of various segments.

Segments Markus M and Léa M each contribute -1.0 to the delta, with both representing 20.0% of the total weight and exhibiting a negative effect of -0.05 each.

In contrast, Segment Hans-Ueli S. significantly drives the delta upwards with a contribution of 3.6, accounting for 24.0% of the weight and having a positive effect of 0.15.

Segments Sofia R., Marco T., and Priya N. have no impact on the delta, contributing 0.0 each, with each representing 12.0% of the weight and having an effect of 0.0.






Breakdown of the Delta

This plot illustrates the mechanics behind our A/B test results.

Because of randomness, observed values will always deviate slightly from the ground truth. As sample size decreases, this deviation (or noise) becomes significantly larger.


Distribution of Synthetic Population

This plot shows the assumed distribution of the synthetic population.