Traffic allocation

Last updated:

|Edit this page

By default, we use PostHog's multivariate feature flags to evenly assign people to variations (unless you choose to run an experiment without feature flags). The experiment feature flag is initialized automatically when you create your experiment.

In any experiment, there is one control group and up to nine test groups. Each user is randomly assigned to one of these groups based on their distinctId. This assignment is stable, meaning the same user will remain in the same group even across different sessions and devices.

It's important to note that when dealing with low data volumes (less than 1,000 users per variant), the difference in variant exposure can be as much as 20%. This means a test variant could have only 800 people, while the control variant has 1,000. All our calculations take this exposure discrepancy into account.

Questions?

Was this page useful?

Next article

Sample size and running time

When creating an experiment, we provide recommended running times and sample sizes based on the parameters you choose. These values serve as estimates for how long to run the experiment. For trend experiments, we use Lehr's equation to determine sample sizes. Here, λ1 represents the baseline count data from the past two weeks, and λ2 is calculated as baseline count + MDE * (baseline count) . The MDE (minimum detectable effect) is the minimum acceptable improvement you select in the UI. For…

Read next article