Reading experiment results: Bayesian vs frequentist
Set up an A/B test whose result you can trust, read it, then ship the winner.
An experiment shows each variant to part of your users and tells you if a change made a real difference. The example tests three variants: control, red and blue.
Set up a test you can trust
In Experiments, click New experiment.

Fill in Experiment name and Hypothesis, then click Continue. The Feature flag key fills itself from the name. Your code checks this flag to decide which variant someone sees.

Keep Rollout percent at 100% and an even Split, then click Continue. Use Add variant if you need more than one test variant.

To limit exposure to a test variant, lower the rollout percent instead of making the split uneven.
Under "Who is included in the analysis?", keep Exposure event on Feature flag is called, or pick "Custom event" from the same list. Keep Multiple variant handling on Exclude from analysis and leave Filter out internal and test users on.

With Feature flag is called, people count once your code checks the flag.
Click Add primary metric, then choose "Single-use".

Pick a Metric type (Funnel is the default), set the Goal to Increase or Decrease, and click Create.

Click Save as draft. You see "Experiment created successfully!"

On the experiment page, click Launch. The experiment starts right away; there is no confirm step.

Read the results table
Each row is one variant of one metric.
Metric: the metric the row belongs to.
Variant: the variant. The control row is the baseline.
Value: the conversion rate, with converted / exposed users under it. Control's 16.96% is 312 / 1.84K.
Delta: the change against the baseline. Red's +19.46% means red converts 19.46% better than control.
Win % or p-value: how sure the result is, depending on the method (see below).
A green row means the variant won. A red row means it lost. No colour means the result is not significant. Hover a row to read "Won", "Lost" or "Not significant" in words.

When the experiment has one primary metric, a details table appears under it with Exposures, Chance to win, Significant and Credible interval (95%). Red is significant: its interval of [4.61%, 34.31%] stays above 0%. Blue is not: [-11.16%, 14.34%] crosses 0%.

Bayesian or frequentist
Each experiment uses one of two methods. They measure how sure a result is in different ways.
Bayesian (the default)
Win % / Chance to win: "the probability that this variant beats the baseline, not the size of the lift."
Credible interval (95%): the range that likely contains the true effect. When it doesn't cross 0%, the result is significant.
At 95%, a variant needs a 95% or higher chance of being better before it's called a winner.
Frequentist
p-value: "The probability of seeing a difference at least this large if the variant had no real effect. The result is significant when the p-value drops below your threshold."
Confidence interval (95%): the same rule. When it doesn't cross 0%, the result is significant.
At 95% confidence, the p-value must be below 0.05.
In the frequentist view of the same experiment, red has a p-value of 0.011, so it is significant. Blue has 0.830, so it is not.

Change the method
Open the Settings tab of the experiment and click the pencil icon next to Statistics.

Choose Bayesian or Frequentist, then click Save. You can also pick the Confidence level here.

New experiments use Bayesian unless this environment's default says otherwise. You set the default in Experiments, on the Settings tab, under Statistical analysis.
End the experiment and ship the winner
On the running experiment, click End experiment.

Under Variant to keep, pick the winner (red), and keep Roll out to the experiment population.

Roll out to the experiment population is marked recommended: only users already in the experiment get the variant. Roll out to all users shows it to everyone.
Leave Variant to keep blank to end the experiment without rolling anything out.
Pick a Conclusion such as Won, and click End experiment. The other conclusions are Lost, Inconclusive, Stopped early and Invalid.

You then see "Experiment ended. The selected variant has been rolled out to the experiment population."
Common problems
The experiment says "No exposures yet". Exposures appear once the first participant has been exposed. With the default exposure event, your code must actually check the flag, for example with getFeatureFlag. Reading only the flag's payload or the list of all flags records no call, and neither does checking it with send_event set to false. Check the flag in your code, or switch to a custom event with Edit exposure criteria.
You see "Sample ratio mismatch detected". The split across variants doesn't match your rollout percentages. This can point to problems with randomization or data collection. Check every place your code checks the flag, and don't change the flag while the test runs.
Some users saw more than one variant. PostHog tags them $multiple. With Exclude from analysis, the default, they are left out of the results. A high share points to inconsistent variant assignment in your code. If users log in during the test, turn on Persist flag across authentication steps on the variant rollout step.
The results show "Not enough data yet". Results need exposures. The details table shows once there are at least 50 exposures.
The experiment is running, but no new users are exposed. The rollout is 0%. Raise the rollout percent on the experiment's feature flag.
Watch it
Prefer to watch? The video Run an A/B test from setup to decision (4:39) covers the same ground.
0:00 What are we testing?
0:46 Who sees which variant?
1:20 Who is included in the analysis?
1:53 How to measure impact?
2:46 Read the result
3:46 Decide and ship