Treatment group

Also known as: variant group

On this page 7

A treatment group, also called a variant group, is the set of units in an experiment that receives the intervention being tested, such as a new feature, price, message or algorithm. In experimentation, its outcomes are compared with those of a control group that does not receive the change, and the difference between the two estimates the causal effect of the intervention.

The validity of that estimate depends almost entirely on how units enter the treatment group. When assignment is random and independent of outcomes, the treatment and control groups differ only by chance and by the intervention itself, which is what allows an A/B test to support a causal conclusion.

How a treatment group produces a causal estimate

The logic of a treatment group rests on the counterfactual question: what would have happened to the same units without the change. Because nobody can observe both outcomes for the same user at the same time, an experiment uses a randomized control group as a stand-in for the unobserved counterfactual.

The resulting quantity is the average treatment effect, the mean outcome in the treatment group minus the mean outcome in the control group. A confidence interval and a p-value describe how much of that difference could plausibly come from random variation in assignment rather than from the intervention.

The components that define a treatment group are summarized below.

ElementMeaningTypical choice
Randomization unitWhat is assigned to a groupUser, session, device, store or region
Allocation ratioShare of traffic in treatment50/50, or 10 to 20 percent for risky changes
Exposure definitionWhen a unit counts as treatedFirst time the change is actually shown
Assignment mechanismHow units are placedDeterministic hash of the unit identifier
DurationHow long the group is observedAt least one or two full weekly cycles
Elements that define a treatment group

Several experimental groups share a structure but serve different purposes. Confusing them leads to wrong comparisons and misread results.

GroupReceivesPurpose
Treatment groupThe new interventionMeasure the effect of the change
Control groupThe current experienceProvide the counterfactual baseline
Holdout groupNo new features for a long periodMeasure cumulative long-term impact
Multiple treatment armsDifferent variants of the changeCompare several options at once
A/A test groupsThe same experienceValidate the experimentation system
Treatment group and neighboring concepts

In multivariate testing, each combination of factor levels forms its own treatment group, so the number of groups grows multiplicatively and each one receives a smaller share of traffic. In a multi-armed bandit, allocation to treatment arms changes during the test in favor of better performers, which improves short-term outcomes but complicates unbiased effect estimation.

Sizing and allocating a treatment group

The size of a treatment group determines the statistical power of the experiment, its probability of detecting a true effect of a given magnitude. Power depends on the minimum detectable effect, the variance of the metric, the significance level and the allocation ratio.

For a fixed total sample, a 50/50 split maximizes power. Unequal splits, such as 10 percent treatment and 90 percent control, reduce risk exposure but require a noticeably larger total sample to reach the same power. The table below shows typical design parameters.

ParameterCommon valueEffect of a stricter setting
Significance level0.05, sometimes 0.01Larger sample required
Statistical power0.80, sometimes 0.90Larger sample required
Minimum detectable effectRelative lift of about 1 to 5 percentHalving it roughly quadruples the sample
Metric varianceDepends on the metricHigher variance needs more units
Allocation ratio50/50 for efficiencyUnequal splits need more total units
Typical design parameters affecting treatment group size

Variance reduction methods such as CUPED, which adjusts outcomes using pre-experiment behavior, can shrink the required sample considerably for metrics that are stable over time.

Threats to a valid treatment group

A treatment group is only useful when it is comparable to the control group in everything except the intervention. Several practical failures break that comparability.

ThreatSymptomMitigation
Sample ratio mismatchObserved split differs from planned splitChi-square check, investigate assignment
Interference between unitsTreated users affect control usersRandomize by cluster or region
Novelty effectEarly lift fades over timeRun longer, analyze by exposure week
ContaminationControl units see the changeConsistent hashing, exposure logging
PeekingStopping when results look goodFixed horizon or sequential testing
Common threats and how to detect them

A sample ratio mismatch is a particularly strong warning sign. When a planned 50/50 split arrives as 50.8/49.2 with millions of users, the deviation is very unlikely to be chance and usually signals a bug in assignment, logging or filtering that invalidates the comparison.

Practical guidance for working with treatment groups

  • Analyze by assignment, not by usage, an intention-to-treat approach that preserves randomization.
  • Assign only units that can be exposed, which reduces dilution from users who never see the change.
  • Fix the primary metric in advance together with guardrail metrics such as latency or error rate.
  • Keep assignment sticky, so the same user stays in the same group across sessions and devices.
  • Record the exact variant definition, including configuration values, for later reproducibility.

These habits keep the treatment group a clean, comparable sample, which is the condition under which an experiment can claim more than correlation.

A non-technical view

Imagine a bakery that wants to know whether a new recipe sells better. It offers the new bread in some randomly chosen shops and keeps the old bread in the others. The shops with the new bread are the treatment group. The shops with the old bread are the control group.

Because the shops were chosen by chance, the two sets are alike in every important way except the recipe. If sales rise only where the new bread is sold, the bakery can be fairly confident that the recipe caused the difference, not the weather or the season.

A concrete example

A subscription news service wants to test a shorter sign-up form. Its experimentation platform hashes each visitor identifier and places half of eligible visitors in the treatment group, which sees the three-field form, and half in the control group, which sees the existing seven-field form. The team fixes completed sign-ups as the primary metric, page load time as a guardrail and a two-week duration to cover weekly patterns.

On day three, a routine check shows a split of 52.1 to 47.9 percent, a clear sample ratio mismatch. Engineers find that a bot filter removed more control visitors because the old form loaded an extra script. After fixing the filter and restarting, the test runs cleanly. The treatment group converts at 6.3 percent versus 5.6 percent, a statistically significant lift, and the shorter form is rolled out to all visitors.