Experiment Analysis & Result Interpretation Questions
Reading out an experiment after it has run: interpreting the treatment effect and its uncertainty in decision terms, deciding ship, hold, stop or iterate, and reconciling flat, inconclusive, underpowered or conflicting results, including an offline result that disagrees with the live test. Covers guardrail and secondary-metric conflicts, multiple comparisons across many metrics, validity checks on a finished test (sample ratio mismatch, logging gaps, mid-test allocation changes, attrition, post-randomization filtering, fraud or outliers inflating the lift), novelty, seasonal and long-term effects, segment effects and whether a result generalizes to new users or markets, translating a measured lift into business impact, and communicating an ambiguous result to stakeholders. Statistical theory and test design, non-randomized causal methods, and running a testing program are covered elsewhere.
A feature meaningfully helps one demographic group and hurts another. How do you check that the difference is real, how do you present it to product and legal stakeholders, and what launch options would you put on the table?
Sample Answer
The idea in plain words
A feature can raise the average of a metric and still help one group of users while hurting another. That pattern is a heterogeneous treatment effect (HTE): the effect of the change is not the same for everyone. Two questions are tangled together here and should be pulled apart. The first is a statistics and validity question: is the gap between the groups real, or the kind of gap that shows up by chance when data is sliced many ways? The second is a decision question: if the gap is real, what do we do about it? The first is answered with data. The second belongs to product, legal and leadership, and the analyst's job is to put clear options in front of them rather than choose alone.
The one idea that answers the first question: the claim is "the effect in group B differs from the effect in group A", so the test has to be on the difference between the two effects (an interaction test), not on whether group B alone looks significantly negative.
Step 1: check that the difference is real
Work through these in order, because each one can end the investigation early.
- Was this subgroup planned, or found by slicing? A subgroup named before the test is a single comparison. One found among many slices is exposed to multiple comparisons: every extra look gives chance another opportunity to produce a result that looks significant at the usual 5% threshold. If the slices were independent and no real effect existed anywhere, the chance of at least one nominal hit (a result that looks significant as printed, before any adjustment for how many slices were tried) is 1−0.95k for k slices: 40.1% for k=10 and 64.2% for k=20. Real slices overlap, so treat these as an indication of scale, not exact figures.
- Test the difference, not each group. Let ΔA and ΔB be the treatment-minus-control differences in the two groups. The quantity of interest is ΔB−ΔA. The groups contain different users, so the two estimates are independent and
where SE is the standard error (the typical sampling wobble of an estimate).
3. Validity inside the subgroup. Check that the treatment and control counts within group B match the planned split (a sample ratio check done inside the group), that events are logged the same way for B in both arms, and how group membership is known. A label that is self-reported, inferred by a model or missing for many users can differ in quality between arms.
4. Is the label standing in for something else? Demographic groups differ in device, country, language, tenure and plan. If group B is mostly on older phones, the cause may be the device. Re-cut the effect within strata of the suspected variable (strata are the separate slices you split the data into, one slice being a stratum; for example, within each device type) and see whether the group gap survives.
5. Does it replicate and does it make sense? Look at the effect in the first and second halves of the test, on related metrics for group B, and on a later or held-out sample. A harm with a plausible mechanism (for example, a layout change that breaks the steps a blind or low-vision user takes with a screen reader, software that reads the page aloud, or a text-heavy step for users with lower language fluency) is more credible than one with none.
6. Express the size in people, not only in p-values. A p-value is the probability of data at least this extreme if there were no true effect. It says nothing about how many people are affected.
Worked example by hand
All inputs are assumptions for illustration. Metric: task completion rate. Control rate in both groups: 30% (plausible range 10% to 60%). Test size: 20,000 users per arm in group A and 8,000 per arm in group B. Observed: group A goes from 30.0% to 32.0%, group B from 30.0% to 28.2%.
Group A. ΔA=32.0−30.0=+2.0 percentage points (pp, an absolute difference in rates).
SEA=200000.30×0.70+200000.32×0.68=1.050×10−5+1.088×10−5=2.138×10−5=0.462 ppThe 95% confidence interval (CI, a range built so that about 95% of such ranges from repeated tests would contain the true effect; it is not a 95% probability that this one does) is 2.0±1.96×0.462, which is 1.09 to 2.91 pp.
Group B. ΔB=28.2−30.0=−1.8 pp.
SEB=80000.30×0.70+80000.282×0.718=80000.412476=5.156×10−5=0.718 ppThe 95% CI is −1.8±1.96×0.718, which is -3.21 to -0.39 pp. On its own, z = -1.8 / 0.718 = -2.51, a p-value of about 0.012.
The difference between groups. ΔB−ΔA=−1.8−2.0=−3.8 pp.
SE=0.4622+0.7182=0.2138+0.5156=0.7294=0.854 ppSo z = -3.8 / 0.854 = -4.45, a p-value of about 0.00001, and the 95% CI for the difference is −3.8±1.96×0.854, which is -5.47 to -2.13 pp.
Multiple comparisons. Suppose group B was one of 20 slices examined. The Bonferroni correction (divide the threshold by the number of looks, a deliberately conservative adjustment) gives 0.05 / 20 = 0.0025. Group B alone, at p of about 0.012, does not clear 0.0025, so "B is significantly harmed" would not stand. The interaction, at p of about 0.00001, clears it. That is why the interaction is the right thing to test and to report.
Size in people. Assume 1,000,000 users at launch, 28% of them in group B (assumptions). Group A: 720,000 x 0.020 = +14,400 completions. Group B: 280,000 x (-0.018) = -5,040 completions. Net: 14,400 - 5,040 = +9,360 completions, or +0.94 pp across all users. The average is positive and 5,040 people in one group are worse off. The overall win says nothing about whether that is acceptable.
What is still uncertain. The group B interval runs from a 0.39 pp harm to a 3.21 pp harm, so the harm could be small. To pin it down to a half-width of 0.5 pp, the sample needed per arm in B is n=1.962×0.412476/0.0052=3.8416×0.412476/0.000025=63,383 users, roughly eight times the 8,000 tested. That is the price of a precise subgroup answer, and a normal test is rarely sized for it.
Step 2: presenting it to product and legal
Both audiences get the same facts in the same order: the overall effect, the effect in each group with intervals, the interaction test, the size in people, what was checked (the six checks above) and what is still unknown. The framing differs.
- Product. The question for them is which launch option to take. Show the table of options below, the estimated cost of each, and what evidence would change the recommendation. Use neutral wording: "completion is lower for group B in this test", not "the feature is biased". The mechanism is a hypothesis until someone has examined it.
- Legal. They need precise facts to apply a standard that the analyst does not own: how the group is defined and where the label comes from, the exact numbers, what the metric stands for (a convenience, or access to something that matters such as a benefit, a price or a decision about a person), and which options would treat users differently by that attribute. Do not tell legal that the feature is or is not discriminatory. Rules differ by country and by domain, and the call is theirs. Bring them in before choosing an option, because some options (targeting by the attribute) may themselves be restricted.
Step 3: the launch options
There are four options to put on the table.
| Option | What it means | Main risk | Needs |
|---|---|---|---|
| 1. Ship to everyone as is | Accept the harm for the average gain | Known harm to one group; reputational and legal exposure | Legal sign-off that the harm is acceptable |
| 2. Gated ramp with a group guardrail | A gated ramp releases the feature in steps (for example 5%, 25%, 100%), each step only if a check passes. Watch group B's completion rate against a pre-agreed stop threshold | Group B is still exposed during the ramp | A reliable group label in monitoring; an automatic rollback |
| 3. Ship only to group A | Group B keeps the old experience | Differential treatment by the attribute itself; label needed at serve time | Legal approval; ideally target on the real cause (such as device) instead of the demographic |
| 4. Hold and fix | Find the mechanism, redesign, retest with enough group B users | Delay; the gain is deferred | An owner and a time limit |
Recommendation: hold the broad launch and take option 4, because the interaction is strong, the mechanism is unknown and the harm estimate is imprecise. The retest should be sized for group B (the roughly 63,000 per arm above) and carry group B's completion rate as a guardrail metric (a metric that must not get worse). If the fix cannot be found within an agreed time and the overall gain is worth taking, option 2 with legal approval is the fallback. Options 1 and 3 are the least defensible without legal sign-off.
What would flip this: the interaction fails to replicate on a later sample; the gap disappears once device or tenure is controlled for (the harm then follows that variable, and the fix targets it); or the harm is shown to be small in absolute terms and legal agrees it is acceptable.
Common mistakes
- Testing group B alone and quoting its p-value, which ignores both the comparison with group A and the number of slices examined.
- Reading "not significant" in the smaller group as "no harm". A small group gives a wide interval.
- Presenting only the overall win, or only the harm, instead of both with their intervals.
- Assuming the demographic label is the cause without checking correlated attributes.
- Choosing to exclude the group from the launch without asking legal first.
- Giving legal a conclusion instead of facts.
In a finished test, 8% of treatment users drop out of the flow before the outcome is measured, versus 2% in control. How do you decide whether that attrition is biasing the result, and what can you still honestly claim about the effect?
Sample Answer
The idea in plain words
Random assignment makes the two arms comparable at the moment people are assigned. Attrition after assignment can undo that. If the treatment itself makes more people leave (8% against 2%), the people still around to be measured in the treatment arm are a different mix from those in control, and comparing only the people who remain compares unlike groups. So the first thing to say is that the 6-point gap in dropout is a result in its own right: the treatment causes people to leave the flow. The second is that the effect among those who remain cannot be read off at face value. What you can honestly claim is an effect measured on everyone who was assigned, or a range of effects that allows for the people who left.
A few terms. Attrition is losing people from the measured group after they were assigned. Intention-to-treat (ITT) means analysing every user in the arm they were assigned to, whether or not they stayed. A completer is a user who stays through to the point where the outcome is measured. A percentage point (pp) is an absolute difference between two rates, so 22.0% against 20.0% is 2.0 pp.
In short: four estimates are built below from the same data. The completers-only lift (+2.0 pp) is biased by who left. The ITT estimate (+0.64 pp, interval -0.47 to +1.75) is the one to lead with, because it keeps everyone the treatment pushed out. The bounds (+0.70 to +7.22 pp) answer a narrower question about people who stay under either version, and the reweighting check shows how much the observed mix of leavers moves the completers-only figure. All counts here are constructed illustration inputs, not real data.
Method, in the order I would do it
- Confirm the dropout is real and logged the same way in both arms. A treatment page that fires fewer events looks like attrition but is a logging gap. Compare dropout by platform, by day and by step in the flow. A spike on one step in one arm points to a defect or a friction change.
- Test the gap itself. Assume 10,000 users assigned to each arm. Treatment lost 800 (8%) and control 200 (2%). The standard error (the typical sampling wobble) of the difference in proportions is
so z = 0.06 / 0.00305 = 19.65. Here z is the gap divided by its standard error, the number of standard errors the gap sits from zero. A z beyond about 1.96 in either direction is the usual line for "not explained by chance alone" (p below 0.05); 19.65 is far past it. The gap is not chance.
3. Do not confuse this with a sample ratio mismatch (SRM). An SRM is a count of assigned users that departs from the planned split, for example 10,000 against 10,200 when 50/50 was planned, and points to a broken assignment. Here the assigned counts are equal. Counting only the people left gives 9,200 against 9,800 instead of the expected 9,500 each, and the chi-square statistic is (3002/9500)+(3002/9500)=18.95 with a p-value of about 0.000013. The chi-square statistic adds up (observed - expected)^2 / expected over the arms, so it grows as the counts drift from the planned split; the p-value is the probability of drifting at least this far if the split really were even, here about 1 in 75,000. A common alarm line for a sample ratio check is p below 0.001. That imbalance is a consequence of the attrition, so it confirms the attrition and does not indicate a broken randomizer.
4. Look at who left, using only information from before assignment. Assume a pre-assignment flag, "was active in the previous month", true for 6,000 of the 10,000 users in each arm at assignment. Suppose the dropouts were 100 active and 100 inactive in control, and 150 active and 650 inactive in treatment. Among the remaining users the active share is 5,900 / 9,800 = 60.2% in control and 5,850 / 9,200 = 63.6% in treatment. At assignment both arms were 60.0%. The treatment arm has lost mostly inactive users, so its completers are a more engaged group, which flatters the treatment. Differences on a pre-assignment variable among the completers are direct evidence of selection. A clean balance on measured variables is reassuring but does not prove the unmeasured ones are balanced.
5. Estimate the effect in ways that respect the attrition (next section).
Estimating the effect with attrition
Setup for the numbers. Outcome: purchase at the end of the flow, which only a user who reaches the end can make. Control: 9,800 completers, 1,960 purchasers (20.0%). Treatment: 9,200 completers, 2,024 purchasers (22.0%). Effects are absolute differences in percentage points (pp), not relative lifts.
- Completers only (what the dashboard shows). 22.0 - 20.0 = +2.0 pp (a 10% relative lift). The standard error is 0.22×0.78/9200+0.20×0.80/9800=0.00591, so the 95% confidence interval (CI, a range built so that about 95% of such ranges from repeated tests would contain the true effect) is 0.84 to 3.16 pp. This looks like a clear win, but it compares different groups of people.
- ITT, counting every assigned user (purchase per person who entered the flow). A user who dropped out did not purchase. Control: 1,960 / 10,000 = 19.60%. Treatment: 2,024 / 10,000 = 20.24%. The difference is +0.64 pp, with a standard error of 0.2024×0.7976/10000+0.196×0.804/10000=0.00565 and a 95% CI of -0.47 to +1.75 pp. This interval contains zero and a plausible loss, so it is inconclusive: it neither confirms a gain nor shows no effect. This is the estimate that answers "what does the treatment do to purchases per person who starts the flow", because it keeps the people the treatment pushed out.
- Bounds for people who would stay either way. Suppose the question is the effect on people who would reach the end under both versions (the always-completers). Assume monotonicity: the treatment only pushes people out and never keeps in someone who would otherwise have left. Then every treatment completer is an always-completer, because anyone who finishes under the treatment would also have finished without it. The control completers are a mix of those same always-completers and people the treatment would have driven away. Randomization gives both arms the same mix of types, so a table of the 10,000 people in each arm is:
| Type of person | In the treatment arm | In the control arm |
|---|---|---|
| Always-completers (finish under either version) | 9,200 (completers) | 9,200 (completers) |
| Finish only without the treatment | 600 (they left) | 600 (completers) |
| Leave under either version | 200 (they left) | 200 (they left) |
| Total completers measured | 9,200 | 9,800 |
Only the control arm is contaminated: its 9,800 completers include 600 people who have no counterpart among the treatment completers. So the fair comparison group is 9,200 of the 9,800 control completers (92 / 98 = 93.9% of them), and the 600 are removed from control, not from treatment. We cannot tell which 600 control completers they are, so take the two extremes:
- If the 600 were all non-purchasers, the always-completer control group is 9,200 people with 1,960 purchasers: 21.30%. Effect = 22.0 - 21.30 = +0.70 pp.
- If the 600 were all purchasers, it is 9,200 people with 1,360 purchasers: 14.78%. Effect = 22.0 - 14.78 = +7.22 pp.
The effect on always-completers lies between +0.70 and +7.22 pp under this assumption, before sampling error. These are bounds, not a confidence interval, and a full analysis puts sampling uncertainty around both ends. They are wide because the 600 missing people are large compared with the effect.
- Reweighting on pre-assignment variables (give completers who resemble the dropouts more weight) is a further check. Using the "active in the previous month" flag from step 4, the treatment completers are 5,850 active and 3,350 inactive (63.6% active) where assignment had 60% active. Suppose (illustrative) the purchase rate is 28.0% among active treatment completers and 11.52% among inactive ones, which gives the 2,024 purchasers (1,638 + 386); and 26.0% active and 10.92% inactive among control completers, which gives 1,960 (1,534 + 426). Giving each flag group the weight it had at assignment (60% active, 40% inactive) gives treatment 0.6×28.0+0.4×11.52=21.41% and control 0.6×26.0+0.4×10.92=19.97%, an effect of +1.44 pp instead of +2.0. The gap shrinks because the treatment arm lost mostly inactive people. The method assumes the dropouts differ from similar completers only on the variables used, which cannot be tested, so it narrows the problem and does not remove it.
Is the attrition biasing the result? The judgment
Compare the estimates. If the completers-only figure, the ITT figure and the bounds agreed on sign and rough size, attrition would not be driving the story. Here the completers-only lift (+2.0 pp) is about three times the ITT lift (+0.64 pp), the ITT interval spans zero, and the pre-assignment mix has shifted. So yes, the attrition changes the conclusion. How much it matters is not the size of the gap alone but whether the people lost could plausibly differ in the outcome, and here they plausibly do.
What I can and cannot claim
- Can claim: the treatment increases dropout by 6 points (600 more users per 10,000 leave the flow). Per person entering the flow, the purchase effect is +0.64 pp with a 95% CI of -0.47 to +1.75 pp, inconclusive. Among people who would complete under either version, and given the monotonicity assumption, the effect lies between about +0.70 and +7.22 pp before sampling error. The lower end alone carries a standard error of about 0.6 pp (0.22×0.78/9200+0.213×0.787/9200=0.0061), so once sampling error is added a zero effect is not ruled out.
- Cannot claim: that the treatment lifts conversion by 2 points; that randomization protects the completers-only comparison; or that the effect is zero (the interval is wide, not centred on zero).
Recommendation
Do not ship on the 2-point completers-only figure. The question to answer first is why 6 more people in 100 leave: a defect, extra friction, a slower page, or a deliberate qualification step. If the cause is a bug or avoidable friction, fix it and re-run, because the bounds leave room for a real gain among people who stay, and a fix could capture it for the people who currently leave. If the extra dropout is the intended price of the change, decide on purchases per person entering the flow, and add the cost of each lost user (lost leads, support contacts). What would flip it: a rerun where dropout is equal in both arms and the completers comparison becomes valid, or an ITT interval that excludes zero.
Common mistakes
- Reporting the completers-only lift as the treatment effect because the arms were randomized.
- Treating the attrition gap as an SRM and "fixing" it by rebalancing the counts.
- Counting dropouts as having the average outcome (imputing the mean means filling each missing outcome with the average of the people who stayed), which invents data.
- Reading an ITT interval that includes zero as "no effect".
- Presenting bounds as a confidence interval.
- Checking balance only on variables measured after assignment.
A test just ended and you are about to analyze it. What sanity checks do you run on the data before you trust the readout, why does each one matter, and what do you do when one of them fails?
Sample Answer
The idea in plain words
An experiment readout compares two groups, and the comparison is only fair if the groups were formed by chance and measured the same way. The sanity checks are cheap tests of exactly those two conditions, run before you look at the effect so they cannot be bent to fit a result you like. A failed check does not necessarily kill the test, but it tells you where to look and what you are no longer allowed to conclude. Run them in the order below, because earlier checks make the later ones interpretable.
Three terms the checks lean on. A p-value is the probability of seeing a gap at least as large as the one observed if nothing were wrong (for example, if the split were truly 50 / 50); a tiny p-value means chance is a poor explanation. A chi-square goodness-of-fit test compares observed counts with the counts the plan predicts by adding up (observed - expected)^2 / expected, so the sum grows as the counts drift from the plan. The three stages of an experiment's data are assigned (given an arm by the randomizer), exposed (actually saw that arm's experience) and analysed (still present in the table the metric is computed from).
If time is short, run checks 1 and 3 first: if either fails, the groups themselves are not comparable, and nothing downstream can repair that. The other four protect assignment hygiene, the metric and the window.
The six checks
| # | Check | What you look at | Why it matters | If it fails |
|---|---|---|---|---|
| 1 | Arm sizes match the plan (sample ratio mismatch, SRM) | Chi-square goodness-of-fit test of observed arm counts against the planned split | Chance cannot produce a large mismatch, so something other than randomization decided who is in the data | Do not read the lift. Find the stage that loses or adds users, then repair or re-run |
| 2 | Assignment is clean | Each user is in exactly one arm; assignment happened before exposure; counts at the assigned, exposed and analysed stages per arm | Users seen in both arms, or exposure counted before assignment, break the comparison | Deduplicate by a rule fixed in advance; if users crossed arms in large numbers, re-run |
| 3 | Attributes fixed before assignment are balanced (pre-treatment covariates: recorded user attributes such as device or country, measured before the user could be affected) | Shares and means of attributes fixed before assignment (device, country, prior spend) by arm | Randomization should balance them; a gap points to an assignment or logging fault | Treat as a possible SRM inside a segment; locate the cause; do not just adjust it away |
| 4 | The run window is clean | Start and end dates, at least one full weekly cycle, no mid-test change of allocation or code, daily arm split stable, no other launch overlapping | Weekday and weekend behaviour differ, and a change mid-test mixes two experiments | Analyse periods separately if the change was recorded; otherwise re-run |
| 5 | Data and metric integrity | Logging gaps, missing-event rates by arm, duplicate events, bots and extreme values, identical metric definition in both arms | A logging bug that hits one arm looks like an effect | Fix and recompute if the fault is clear and symmetric; if it is tied to one arm, discard that metric |
| 6 | The analysed population was fixed in advance | Filters used to build the analysis table (for example "keep users who reached step 2") | A filter based on behaviour after assignment can itself be changed by the treatment, creating a fake lift | Rebuild from everyone assigned (analyse as assigned) and recompute |
How the balance check works, concretely
A pre-treatment attribute is one measured before the user could be affected by the treatment, so the treatment cannot have caused a difference in it. Any difference is chance or a pipeline problem. For each attribute compute the share or the mean in each arm, the standardized difference (the gap divided by the pooled standard deviation, the typical spread computed from both arms together, so attributes on different scales are comparable), and for categories a chi-square test. A common convention flags an absolute standardized difference above 0.1; it is a convention, not a law. Because you test many attributes, some will look odd by chance: with 20 independent attributes each tested at the 5% level, the chance that at least one is flagged is 1−0.9520=64%. Judge the pattern, the size and whether a mechanism exists, not a single p-value.
Worked example
Assumptions (illustrative): 40,000 users, planned 50 / 50; 20,120 in control and 19,880 in treatment.
Check 1. Expected 20,000 each:
χ2=200001202+200001202=0.72+0.72=1.44with p about 0.23. The counts are consistent with the plan (using a p < 0.001 alarm, a convention).
Check 3. For a binary attribute the standardized difference is the gap in shares divided by (p1(1−p1)+p2(1−p2))/2.
| Attribute | Control | Treatment | Standardized difference |
|---|---|---|---|
| iOS share | 41.2% | 41.0% | about 0.004 in size |
| Mean prior spend (SD 60 dollars) | 52.1 dollars | 51.8 dollars | 0.3/60=0.005 |
| Share of users in one country | 8.0% (1,610 of 20,120) | 12.0% (2,386 of 19,880) | 0.134 |
The first two are fine. The country share is flagged: the gap is 4 percentage points, and the standardized difference of 0.134 is above 0.1. Within that country the arms hold 1,610 and 2,386 users, so against an equal split of 1,998 each:
χ2=1998(1610−1998)2+1998(2386−1998)2≈75.3+75.3=150.7That is a sample ratio mismatch hiding inside a segment while the overall counts look fine. The action: find what treats that country differently (a regional redirect, a caching rule, a consent banner), then either fix and re-run, or, if the cause is confined to that country and the country is defined before randomization, drop it from both arms and re-check the remaining arms. Do not read the effect until the remaining data pass checks 1 and 3.
What failures of checks 2, 4, 5 and 6 look like
All numbers are illustrative.
Check 2, assignment. 40,000 users are assigned, and 310 user IDs (0.8%) appear in both arms because assignment was keyed on the device and some people used two devices. Deduplicate by a rule fixed in advance, for example keep each user's earliest assignment record; choosing the copy after seeing outcomes would let you pick the flattering one. Compare the stages too: control has 20,120 assigned and 19,500 exposed (96.9%), treatment has 19,880 assigned and 17,900 exposed (90.0%). A 6.9-point gap in exposure means the new experience fails to load for some people. Analyse as assigned: keep everyone in the arm they were given, exposed or not, so that the comparison is still the one randomization made fair.
Check 4, run window. Each day 1,000 users arrive. On days 1 to 7 the split is 50 / 50 and both arms convert at 5%. On day 8 the allocation changes to 80% treatment, and for days 8 to 14 a seasonal bump lifts conversion to 6% in both arms. There is no true effect, yet the pooled treatment rate is (3500×0.05+5600×0.06)/9100=5.62% and the pooled control rate is (3500×0.05+1400×0.06)/4900=5.29%. That is a fake lift of 0.33 points, produced only by weighting the better days toward treatment. Analysing the two periods separately removes it.
Check 5, data integrity. The treatment's new code stops the purchase event from firing on one browser version, so missing purchase events are 3.1% of sessions in treatment against 0.4% in control and the lift is understated. Or one bot account places 40,000 dollars of orders in the treatment arm: spread over 19,880 users it adds 2.01 dollars to the mean revenue per user, an effect no change could earn. Rules for bots and extreme values (flagged user agents removed, values capped at a high percentile) are fixed in advance and applied to both arms identically.
Check 6, analysed population. The new page loads slowly, so 20% of treatment users leave before it renders. Suppose 80% of users are patient and convert at 12%, 20% are impatient and convert at 2%, so everyone converts at 10% overall, and the treatment changes nothing. Control, counted fully, shows 10%. Treatment, filtered to "users who viewed the new page", keeps only the patient ones and shows 12%: a fake lift of 2 points. Rebuilding the table from everyone assigned shows 10% against 10%.
This is a small illustration of the checks. A real process also sets a written threshold per check and decides who signs off a deviation.
Common mistakes
- Running the checks after seeing the lift, then explaining away the ones that fail.
- Testing balance on attributes measured after assignment, where imbalance can be a genuine effect.
- Trusting an overall split without looking inside the large segments.
- "Fixing" an imbalance by reweighting without finding its cause.
Tell me about a time you found a data quality problem that invalidated an experiment. How did you catch it, how did you fix the analysis, how did you tell stakeholders, and what changed afterwards?
Sample Answer
What the interviewer is listening for
The story should show four moves: you caught the problem with a specific check (not luck), you can explain the mechanism, you repaired the analysis in a way that does not depend on the broken piece, and you told stakeholders plainly what changed in the conclusion. The ending should be a lasting change to how tests are run. Use a true story; the numbers below are illustrative and the structure is what to copy.
A model story (inputs are illustrative)
Situation. A checkout change was tested on 200,000 users, assigned 100,000 per arm by the randomizer (the system that decides which version each user gets). The first dashboard readout showed a clear win: 5.00% purchase rate in control (5,000 of 100,000 users) against 5.40% in treatment (5,184 of 96,000), a 0.40 point absolute lift, p about 0.00007. The p-value is the chance of a gap at least this large if the change truly did nothing; here the gap is about 4 standard errors (0.40/0.100), so chance looked like an unlikely explanation. The team was ready to ship.
How I caught it. Before accepting any readout, I run a sample ratio mismatch check (SRM: a chi-square goodness-of-fit test of the observed arm counts against the planned split). The analysis table held 100,000 control users and 96,000 treatment users. With 196,000 in total, the expected count per arm under a 50 / 50 plan is 98,000:
χ2=98000(100000−98000)2+98000(96000−98000)2=40.8+40.8≈81.6How to read the 81.6: each term is how far one arm is from its expected count, squared and scaled by that count, and the terms add up. If assignment were truly 50 / 50, the usual alarm line for this test is 3.84 (a 5% chance of exceeding it), so 81.6 is far outside. The degrees of freedom count how many arm counts are free to vary once the total is fixed: with two arms, knowing one count fixes the other, so there is 1. The p-value (the chance of a statistic at least this large if the split really were 50 / 50) is about 1.6 x 10^-19, effectively zero. Chance does not produce that; something other than the randomizer decided who was in the analysed data.
Finding the cause. I counted users at each stage per arm: assigned (100,000 and 100,000, matching the plan), exposure event logged (the event recorded when a user actually saw the version), and rows in the analysis table. The gap opened at the exposure stage. Slicing that stage by app version showed the missing 4,000 treatment users were almost all (about 3,900 of them, as an illustrative figure) on older app versions, where the new checkout component crashed before the exposure event could be logged. The analysis rule "keep users with an exposure event" had therefore dropped treatment users from one cohort (a group of users who share a trait, here an app version). Those users convert less than average: in the control arm, where nothing crashes, the roughly 4,000 users on those same older versions bought at about 1.5% against 5.0% overall (assumed figures), so removing them from treatment alone raised the treatment rate and the first readout flattered the treatment.
Fixing the analysis. The purchases themselves came from the backend orders table, which does not depend on the exposure event. So I re-analysed on the assignment table: every assigned user, in the arm they were assigned to, with purchases from orders. Those 4,000 users had 60 purchases (1.5%). Treatment purchases became 5,184 + 60 = 5,244 out of 100,000, which is 5.244%. The corrected lift is 5.244% - 5.00% = 0.244 points (relative 4.9%, which is 0.244 / 5.00). Its standard error (typical sampling noise in the difference) is 0.05244×0.94756/100000+0.05×0.95/100000≈0.00099, about 0.099 points. The 95% interval (a range built so that about 95% of such ranges, over repeated tests, would contain the true effect) is 0.244±1.96×0.099, about 0.05 to 0.44 points, and z=0.244/0.099≈2.5 gives p about 0.013. Still positive, but about 40% smaller than the first readout (0.244 against 0.40), and the interval's low end was close to zero. The corrected number also carries a product finding: the new component crashed for a group of users, and that crash is part of the real effect of shipping it.
Telling stakeholders. I told the product manager and the engineering lead the same day, in writing: the first number was wrong and why; the corrected number and its interval; the crash as a separate defect to fix; and the recommendation: fix the crash, then ship with a staged rollout (release to a growing share of users, for example 5%, then 25%, then 100%, checking the metrics at each step) and a holdout (a small group left on the old experience) rather than shipping now. I led with the corrected conclusion and the decision it changed, not with the apology.
What changed afterwards.
- The experiment platform runs the SRM test on every test and blocks the "winner" label when it fails.
- The readout shows counts at each stage per arm, so a gap shows up before the metric does.
- Analysis defaults to the assignment table; any filter that depends on post-assignment behaviour needs a written reason.
- A pre-launch smoke test confirms the exposure event fires on every supported app version.
Why this story works
- The detection was a routine check, not a hunch, so it shows process.
- The repair used a data source that does not share the broken dependency.
- The size of the change in conclusion (0.40 to 0.244) is stated, not softened.
- The preventive fixes target the failure class, not only this test.
Common mistakes
- Randomly deleting users from the larger arm to "fix" the ratio, which hides the problem because the missing users are not a random sample.
- Presenting the corrected number without saying how far it moved.
- Waiting for the next meeting to disclose it.
- Treating a passing SRM test as proof that every filter is outcome-neutral.
A test shows a significant engagement uplift and, at the same time, a significant drop in conversion. How do you work out why both happened and what criteria decide between rollout, rollback or iteration?
Sample Answer
The idea in plain words
Two significant moves in opposite directions are a clue about a mechanism, not a coin flip between metrics. Engagement (here, sessions per user) is usually a means and conversion (the share of users who complete the valuable action) is the end, so treat conversion as the primary metric (the one the decision is judged on) and engagement as a secondary metric (supporting evidence). If the change made users do more of the first and less of the second, the first question is whether the engagement is a symptom of a worse experience (users wander, retry or cannot find the way to finish) or a separate good. Work it out in this order: confirm the data are valid, locate where in the funnel the conversion loss happens, test competing explanations, and only then decide among rollout, rollback and iteration using rules written down beforehand.
Step 1: size both effects and check the data
Assumptions (illustrative): 200,000 users per arm. Sessions per user: 3.00 in control and 3.30 in treatment (+10% relative). Conversion: 4.0% in control and 3.8% in treatment, a difference of -0.2 percentage points (pp), or -5% relative.
The standard error (SE, the typical size of sampling noise in a difference) for conversion is
SE=2000000.04×0.96+2000000.038×0.962≈0.00061so the z-score (the difference divided by its standard error, which says how many noise-sizes the result sits from zero) is z=−0.002/0.00061≈−3.27. The p-value (the probability of a difference at least this extreme if the true effect were zero) is read from the normal curve: ∣z∣=1.96 leaves 2.5% of the curve in each tail, which is the familiar p = 0.05, and ∣z∣=3.27 leaves about 0.05% in each tail, so p is about 0.001. The 95% confidence interval (CI, the range of effects compatible with the data) is the difference plus or minus 1.96 standard errors, which for conversion is -0.32 pp to -0.08 pp. A p of 0.001 on one pre-declared metric is hard to wave away, but it is not hard to produce by a measurement fault, so check validity first:
- Split health: a chi-square test of the arm counts against the planned split. Sample ratio mismatch (SRM) means the counts differ from the plan by more than chance allows, so the arms are not comparable. Example with a planned 50/50 split of 396,000 users: 198,000 expected per arm. Counts of 200,000 and 196,000 are 2,000 off each way, and the statistic is ∑(observed−expected)2/expected=(20002+20002)/198000≈40.4, whose p-value is about 2×10−10 on 1 degree of freedom, so the split is broken and nothing else in the readout can be trusted until it is explained. Counts of 198,500 and 197,500 are 500 off each way, give a statistic of about 2.5 and a p-value of about 0.11, and pass.
- Event firing: does the conversion event fire in the new layout? A redesigned page that sometimes fails to send the purchase event produces a "drop" that is a logging gap. Compare conversion measured from the logging with conversion measured from the order database.
- Metric definitions: which users are in the denominator of each metric, and is engagement counted per user or per session? A per-session engagement metric can rise simply because sessions are shorter or more fragmented.
Step 2: localise it in the funnel, then test explanations
Break the journey into steps (view, add to cart, checkout start, payment, confirmation) and compare each step's rate between arms. The step where the two arms first diverge is where to look. Candidate explanations, in the order I would test them:
| Explanation | What you would see | Check |
|---|---|---|
| Displacement (the new feature takes time and attention that would have gone to buying) | More time on the new feature, fewer users reaching checkout | Step-level funnel; share of sessions that include the new feature |
| Friction in the final steps | Drop concentrated at payment or form steps | Step rates; error and latency logs by arm |
| Selection through the metric (the engagement number is inflated by the very users the change hurt) | Extra sessions come from users who never convert, for example people whose checkout failed and who came back to retry. Illustration: the +0.30 sessions per user is 60,000 extra sessions across 200,000 users; if 50,000 of them belong to users who left without buying, most of the engagement lift is failed attempts | Sessions per user among converters versus non-converters, by arm |
| One segment drives it | Large drop on a platform or for new users, nothing elsewhere | Pre-declared segments; read with care because many segments invite false positives |
| Novelty effect (users react to something new, then the reaction fades) | Engagement high in week 1 and fading, or conversion drop growing | Effect by day |
| Chance among many metrics | One of dozens of metrics moves | Were both pre-declared? With 20 metrics tested at 0.05, about one is expected significant by chance |
Step 3: what a decision needs
Convert the conversion loss into money. Assume 1,000,000 users a month and 50 dollars per conversion (assumptions). The point estimate -0.2 pp is 2,000 fewer conversions a month, which is 100,000 dollars a month; the CI bounds -0.32 pp and -0.08 pp give 3,200 and 800 fewer conversions, which is 160,000 and 40,000 dollars a month. For engagement to be worth shipping it would have to create downstream value of at least that much, for example through retention or later purchases; measure that, do not assume it.
Criteria, written before looking at the result:
- Roll out if conversion is non-inferior and engagement is shown to carry value downstream. Non-inferior means not worse than a floor (the non-inferiority margin) agreed before the result, for example the lower end of the conversion CI is above -0.05 pp. A floor is stated up front because "no significant drop" can simply mean the test was too small to see one; the floor says how much loss you will accept, and the CI must prove the loss is no larger.
- Roll back if the conversion loss is established (here the whole CI is below zero), no downstream gain is visible, and no cheap fix is in sight.
- Iterate if the funnel analysis points to a specific fixable step. Rerun with the fix at a sample size that can show conversion recovering to within the floor.
With these numbers and no further evidence: do not roll out. If the funnel analysis points to a fixable step, iterate; if not, roll back. This applies to this assumed scale and would change if the engagement gains turn out to produce retention or revenue later.
Common mistakes
- Choosing the metric that agrees with the story you like.
- Treating engagement as good by definition.
- Searching through segments until one explains it, then reporting only that one.
- Skipping the logging check, which is cheap and sometimes decisive.
Unlock Full Question Bank
Get access to all 39 Experiment Analysis & Result Interpretation interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.