Sub topic 13
Pitfalls: Sample Ratio Mismatch, Peeking, Novelty, and Interference
Assume you understand model serving, basic metrics such as conversion rate and latency, and elementary probability. You should also know how a request is assigned to a stable or candidate model. These assumptions matter because many experiment failures come from assignment and measurement rather than from the model itself.
An A/B rollout compares a control group using the current model with a treatment group using the candidate model. The groups must differ mainly in model version. Four common pitfalls can make the comparison misleading.
Sample ratio mismatch
Sample ratio mismatch (SRM) occurs when the observed group sizes differ from the planned allocation. For example, an experiment configured for a 50/50 split might receive 52,000 control users and 48,000 treatment users. A small difference can occur by chance, but a large or persistent difference suggests a problem.
Possible causes include:
- A routing rule that hashes some users incorrectly.
- Missing identifiers that cause users to fall back to the control group.
- Logging only successful treatment requests.
- Filtering one group differently during analysis.
- Assignment happening more than once during a user session.
Check group counts before examining business outcomes. A chi-square test or a simple proportion check can flag an unexpectedly large mismatch. Do not “fix” the data by reweighting groups until you understand the cause.
Peeking at results
Peeking means repeatedly checking the experiment and stopping as soon as the result looks significant. A standard significance test assumes a planned stopping point. Repeated checks increase the chance of declaring a random fluctuation to be a real improvement.
Define these items before launch:
- The primary metric.
- The minimum detectable effect.
- The required sample size or experiment duration.
- The significance threshold.
- The stopping rules for success, harm, and operational failure.
You may monitor safety guardrails continuously, such as error rate or latency. Treat those as protection against harm, not as repeated opportunities to claim business success. If you must inspect results sequentially, use a sequential testing method or adjust the decision rule.
Novelty effects
A novelty effect occurs when users behave differently because a new experience is unfamiliar. A candidate ranking model might receive extra clicks during its first week because users notice different results. The effect may disappear after users adapt.
Separate early adoption from sustained impact by:
- Running the experiment long enough to cover normal usage cycles.
- Comparing new and returning users.
- Tracking the primary metric over time.
- Avoiding conclusions based only on the first few days.
- Recording product changes that occur during the experiment.
A model can also have delayed benefits or delayed harm. For example, a recommendation may increase immediate clicks but reduce later retention.
Interference between users
Interference occurs when one user's treatment changes another user's outcome. This violates the usual assumption that observations are independent. A marketplace ranking experiment is a common example: showing an item to one user can remove it from another user's inventory or change its price.
The randomization unit should match the mechanism that can spread treatment effects.
| Situation | Safer assignment unit |
|---|---|
| Personal recommendations | User or account |
| Shared household settings | Household |
| Marketplace supply and pricing | Region, market, or time window |
| Collaborative workplace software | Organization or team |
Cluster randomization assigns complete groups to one variant. It reduces cross-group contamination, but it usually needs more traffic because observations within a cluster are correlated.
A practical review sequence
- Verify that each eligible unit received one assignment.
- Compare observed group sizes with the planned split.
- Confirm that exposure logs match prediction logs.
- Plot metrics by day or week to detect novelty and peeking.
- Ask whether treatment can affect users outside its assigned group.
- Only then calculate confidence intervals or significance tests.
Exercise
An experiment planned a 50/50 user split but observed 60% control and 40% treatment. The treatment conversion rate is higher. What should you do first?
Show answer
Investigate the sample ratio mismatch and verify assignment and exposure logging. Do not conclude that treatment is better until the imbalance has an explained cause or the affected data is excluded.