Experimentation and Validation Questions
Deciding what to test and how to learn it cheaply before committing product investment: identifying the riskiest assumption, writing a falsifiable hypothesis, choosing between a prototype, fake door, concierge test, pilot, beta or live experiment, sequencing validation steps and budgeting effort across assumptions, setting go/no-go criteria and rollback triggers in advance, and combining qualitative and quantitative evidence, including when they disagree. Covers pilot design (participants, comparison group, guardrails, threats to validity), offline checks of a model idea before small online trials, limited trials of vendors or architectures, and validating demand under thin data or privacy limits. Assesses hypothesis-driven product development and evidence-based decisions, including validation of technical and operational bets. Excludes the statistical design of a single online test, interpreting finished experiment results, experimentation platform engineering, user research methods, ordering tests across a program, and non-randomized causal inference.
You are validating a simplified search experience. How would you choose the few success metrics and guardrails that define stop and go in advance, and how do they bound the scope of the test?
Sample Answer
The idea in plain words
Before a test starts, write down what result means "go", what means "stop", and what means "not sure yet". The tools for that are one primary metric (the single number the change is meant to move), a small set of guardrail metrics (numbers that must not get worse, even if the primary improves), and a decision rule that turns the results into a verdict. A go / no-go decision is simply the choice to continue investing (go) or to stop (no-go). Fixing the rule first matters because once the numbers are in, almost any result can be talked into a story. The same metrics also decide how large and how long the test must be, which is how they bound its scope.
Step 1: say what the simplified search is supposed to do
A hypothesis the metrics can test: "Removing the advanced filters and leaving one search box will help more searchers find something they want, without costing us purchases or slowing the page." The change is meant to help searchers succeed, so the primary metric measures success, not clicks on the new box.
Step 2: pick one primary metric and a few guardrails
- Primary metric: search success rate. Definition (written down exactly): the share of search sessions that end with a result click and no new query within 30 seconds of that click. A 30-second rule is a judgment call; the point is that the definition is fixed before launch.
- Guardrail 1: conversion per search session (purchase or application, whatever the product's goal is). It protects against a design that makes searching feel easier while quietly finding worse results.
- Guardrail 2: results-page load time, 95th percentile (p95). The p95 is the time that 95 out of 100 page loads come in under, so it tracks the slow experiences that an average hides. A simpler page should not be slower.
- Guardrail 3: search success rate among heavy filter users (people who used three or more filters in the last 30 days). An average can improve while the people who relied on filters get hurt, so this segment is named in advance.
That is one primary metric and three guardrails. More than that turns the verdict into a negotiation, because with enough metrics some metric will look good or bad by chance.
Step 3: set thresholds with numbers, before launch
All baselines below are assumptions for the example; real values come from the product's own last four weeks of data.
| Metric | Role | Assumed baseline (plausible range) | Threshold |
|---|---|---|---|
| Search success rate | Primary | 42% (30% to 60%) | Worthwhile effect: +2.0 points absolute (4.8% relative, since 2 / 42 = 0.048) |
| Conversion per search session | Guardrail | 8.0% (3% to 15%) | May not fall by more than 0.5 points |
| Results-page p95 load time | Guardrail | 900 ms (400 to 2,000 ms) | May not rise by more than 100 ms |
| Success rate, heavy filter users | Guardrail | 55% (40% to 70%) | May not fall by more than 2.0 points |
Absolute versus relative. An absolute change is the plain difference in percentage points (44% minus 42% is 2 points). A relative change expresses that difference as a share of the baseline (2 / 42 = 4.8%). Every threshold here is in absolute points unless it says otherwise.
The "worthwhile effect" is the smallest improvement that justifies shipping and maintaining the change. It comes from the business, not from the data: ask what lift pays for the work.
Step 4: write the decision rule
The 95% confidence interval for a difference is the range of effects consistent with the data under the usual calculation; it is not a probability that the true effect sits inside it. For a guardrail, "the worse end of its interval" means the end that points in the harmful direction: the lower end for conversion or success rate, the upper end for load time.
- Go when the primary metric's difference is at least +2.0 points, the lower end of its 95% interval is above 0, and for every guardrail the worse end of its interval is still inside the tolerance.
- Stop when the upper end of the primary metric's interval is below +2.0 points (a worthwhile effect is ruled out), or when any guardrail's point estimate is already beyond its tolerance.
- Hold for everything else: extend by one pre-agreed week at most, then apply the rule again. If it still says hold after that week, treat it as no-go for this version: the test has not shown a worthwhile effect, and the next step is to change the design, not to keep running. Without that cap, "hold" becomes "run until it looks good".
The rule is an illustration for this example. It covers one primary metric with fixed thresholds and one planned look at the data, plus the single pre-agreed extension week in the hold case, which is a second look and the only other time the rule is applied. A real process also needs four more things. A check that the test is running correctly (for example that the traffic split matches the plan). A rule for peeking, which means looking at results early and stopping the moment they look good; that inflates false wins, so the rule says when looks are allowed. A correction if several primary metrics are used, because the more metrics you judge, the more likely one looks good by luck, so each must clear a stricter bar. And a named owner, the one person accountable for making the call. The first two protect the validity of the whole readout, so they come first.
How the metrics bound the scope of the test
The metrics fix who is in the test, how many are needed, and what the result can and cannot say.
- Who and what. Only users who run a search can move search success, so only they are counted. Randomize by user, so each person sees one version throughout. Everything else stays frozen: no changes to ranking or results content during the test, or the result cannot be pinned on the simplification.
- How many. Planning size per arm, using the standard formula for comparing two proportions at 95% confidence and 80% power (the chance of detecting the effect if it is really there):
Here p is the baseline rate, δ the smallest difference to detect, and (z0.975+z0.80)2=(1.96+0.8416)2≈7.849.
Where the pieces come from. The two z values are cut-offs on the standard bell curve. z0.975=1.96 leaves 2.5% in each tail, which gives a two-sided 95% confidence level; z0.80=0.8416 has 80% of the curve below it, which sets 80% power. The factor 2 and p(1−p) come from the noise: one arm's measured rate has variance p(1−p)/n, a difference between two independent arms adds two such variances (so 2p(1−p)/n, taking both arms at rate p), and n is solved so that δ sits 1.96+0.8416 standard errors away from zero.
- Primary: p=0.42, δ=0.02. So n≈2×7.849×0.2436/0.0004≈9,560 search sessions per arm.
- Conversion guardrail: p=0.08, δ=0.005. So n≈2×7.849×0.0736/0.000025≈46,215 search sessions per arm.
The conversion guardrail needs about five times the data of the primary, so it, not the primary, sets the size of the test. The heavy-filter guardrail (p=0.55, δ=0.02) needs about 9,713 sessions per arm from that segment alone, so if heavy filter users are under about a fifth of sessions (9,713 / 46,215 = 21%), it would need more total traffic than the conversion guardrail. The formula treats sessions as independent and uses the two-sided 1.96 (a check that allows for movement in either direction) as a slightly cautious stand-in for a one-sided guardrail check (which watches only the harmful direction and needs a smaller cut-off, about 1.64 at the same 5% level); repeated sessions by the same user make the true requirement somewhat larger.
3. How long. Assume 20,000 eligible search sessions a day split 50/50, which is 10,000 per arm per day. The guardrail's 46,215 needs 4.6 days, rounded up to two full weeks (14 days) so both weekdays and weekends appear twice, and the first week can be compared with the second to see whether an early novelty effect (a short-lived reaction to something new) is fading.
4. What the result cannot say. A two-week test cannot judge 90-day retention or effects on markets and platforms it did not include. Those go in the write-up as untested, and a small long-term holdout can be kept after launch.
What I would recommend
Fix the four metrics, the thresholds and the rule in a short written note before launch, get the product owner to sign the "worthwhile effect" number, and size the test from the guardrail. What would change this: if heavy filter users are a tiny segment, their guardrail has too little data to read and becomes a separate qualitative check; if the business cares mostly about revenue, conversion becomes the primary and success rate becomes a diagnostic.
Common mistakes
- Choosing the primary metric after seeing which one moved.
- Making a click metric primary: a cluttered page can raise clicks while users fail.
- Guardrails with no tolerance written down, so any dip is explained away.
- Sizing the test for the primary only and discovering the guardrail is unreadable.
- Ending on the first day the interval clears zero.
A sales team hand-curates offers today and you want to test ML-generated recommendations against them. How would you set up the comparison, what operational constraints would you plan around, and how would you protect customer relationships during the test?
Sample Answer
The idea in plain words
Today a person who knows the customer chooses which offers to put in front of each account. You want to know whether machine-learning (ML) recommendations do as well or better. In a sales setting the comparison is harder than a website test for three reasons: there are few customers, outcomes arrive slowly (a sales cycle can take weeks), and a bad offer can damage a relationship that took years to build. So the design is staged: first compare on paper with zero customer exposure, then run a small live comparison that keeps the salesperson in control, with limits set in advance on how much harm is acceptable.
Step 1: compare without touching customers
For accounts that closed last quarter, generate what the ML model would have recommended using only information available at the time, and compare with what the rep actually sent. Measure how often they overlap and have experienced reps blindly rate the cases where they disagree (they do not know which list came from the model). If reps judge the model's disagreements to be mostly sensible or at least harmless, move on. If they find offers that break pricing rules or that a rep would never send to that customer, fix the model or its rules first. This stage costs no customer goodwill.
Step 2: the live comparison
- Unit that gets randomly assigned: the account, not the individual offer and not the rep. An account may have several contacts who talk to each other, so one account must stay in one arm. Assign accounts at random within each rep and size tier (stratified: shuffle and split each group, or stratum, separately, such as the large accounts of one rep, so that every group is represented equally in both arms and rep skill and account size are balanced).
- Control arm: the rep curates offers as today.
- Treatment arm: the ML model proposes the offers; the rep reviews, may edit or veto, and sends. The rep remains accountable, which also protects the relationship.
- Analysis by assigned arm: count every account in the arm it was assigned to, even if the rep overrode the model (this is "intent to treat": analyse people by the arm they were assigned to, not by what finally happened to them). Report the override rate separately; a high rate says the model is not trusted or not right.
- Primary outcome: the share of accounts that accept an offer within the sales cycle (assumed 60 days), or revenue per account if the volume allows. Guardrails (measures that must not get worse): average discount depth and margin, number of offers per account, customer complaints or escalations, and churn signals (signs that an account may leave). Leading indicators are early measures that move before the real outcome does, such as meetings booked; they are used only if you have shown they predict acceptance. The difference: a guardrail is checked to catch harm, whereas a leading indicator stands in for the outcome while you wait for it.
Operational constraints to plan around
- Long outcome lag. Run for at least one full sales cycle plus the follow-up window, and not across a quarter-end (the last weeks before sales targets close, when reps push deals and discount differently).
- Small numbers of accounts. See the worked example: the pilot can only detect a large effect.
- Rep incentives. If commissions depend on closing, reps may quietly ignore the model or favour it. Make sure compensation counts the accounts in both arms equally and ask reps for reasons when they override.
- Cross-arm contamination (treatment ideas leaking into the control arm and blurring the comparison). Reps talk, share ideas and may copy model suggestions into control accounts. Keep a log of overrides and ask reps not to reuse treatment suggestions on control accounts for the duration.
- Scarce offers. Discount budgets and inventory are limited; the model must work within the same budget as the reps or the comparison is unfair.
- Pricing and compliance rules, approval workflows and CRM (customer relationship management system, where accounts and offers are recorded) integration. The model draws only from the approved catalogue.
- Training and novelty. Reps need to understand the tool before the test starts, and early results may reflect novelty (extra attention paid to something new that fades with time).
Worked example (all inputs are assumptions with plausible ranges)
Assume 1,200 eligible accounts split evenly, 600 per arm, and a baseline acceptance rate of 12 percent in 60 days (plausible range 8 to 20 percent). Differences below are in absolute percentage points (pp). "95 percent two-sided" means the interval or test allows for the true difference being either higher or lower, with a 5 percent chance of a false alarm when nothing differs. "80 percent power" means a real difference of the size named would be detected in 80 of 100 repeats of the test.
- Variance of one arm's rate: 0.12×0.88=0.1056.
- Standard error (the typical size of the chance wobble in a measured number; here, in the gap between the two arms' rates) of the difference between two arms: 2×0.1056/600=0.000352≈0.0188, that is 1.88 pp.
- A 95 percent confidence interval around any observed difference is about ±1.96×1.88=±3.7 pp.
- The smallest true difference the test would detect 80 percent of the time is about 2.8×1.88≈5.3 pp, which is 5.3/12≈44% relative to the baseline. The multiplier 2.8 is 1.96 (for the 95 percent two-sided interval) plus 0.84 (for 80 percent power): 1.96+0.84=2.80. For another sample size, recompute the standard error and multiply by 2.8; with 1,200 accounts per arm it would be 2×0.1056/1200≈1.33 pp and 2.8×1.33≈3.7 pp. Put plainly, this smallest detectable difference is what the test can reliably see: a real gain smaller than about 5.3 pp would often go unnoticed.
So 1,200 accounts can show a big win and can rule out only big harm (worse by more than about 4 pp). A flat result would be inconclusive, not proof the model is equal: the test could not have seen a real gain or loss smaller than the figures above, so "no difference found" only rules out larger ones. Options: run across two sales cycles, add accounts, or use a lower-variance measure such as revenue per account, and be honest that this stage is a safety check plus a directional read.
Protecting customer relationships
These rules are illustrative; a real programme also involves legal, finance and account management. Set them before launch:
- Exclusions: strategic accounts, accounts in a renewal negotiation, accounts with open escalations or recent complaints.
- Rep review before anything is sent, with a one-click veto and a logged reason.
- Hard limits the model cannot cross: approved catalogue only, price floor, a cap on the number of offers per account per month, identical to control.
- Customers are not told about the arm, and offers are presented in the same format and channel in both arms.
- Stop rule: pause the treatment arm if complaints or escalations in treatment exceed control by a pre-set count in any 2-week window, or if a rep reports a damaged relationship. Keep a rollback that simply returns accounts to hand-curated offers.
- Ramp (a staged increase in exposure): begin with a small share of accounts (for example 10 percent) for the first weeks, and widen only if guardrails are clean.
What I would recommend
Run Step 1 first, then a rep-in-the-loop, account-level, stratified comparison on a ramp, with the decision rule agreed beforehand: ship wider if the ML arm is not worse by the harm margin the sample can resolve and the guardrails are clean; extend the test to detect a smaller effect if the result is flat. A flip happens if reps override most suggestions (fix the model first) or if the accounts are too few for any meaningful comparison (use a longer qualitative pilot with a handful of friendly accounts).
Common mistakes
- Randomising offers or contacts instead of accounts.
- Dropping overridden accounts from the ML arm, which hides the model's real behaviour.
- Reading a flat result at 600 accounts per arm as "equal".
- Skipping the exclusion list for strategic accounts.
Your A/B test result and your customer interview findings point in different directions on a go/no-go decision. How do you combine the two kinds of evidence, when would you run each, and how do you resolve the disagreement?
Sample Answer
The idea in plain words
An A/B test shows two versions to randomly split groups and measures what people did. A customer interview asks a small number of people what they thought and why. When they disagree, the useful question is not "which one wins?" but "what is each one actually measuring?" The test measures behaviour, on average, over a window of days. Interviews explain reasons and expose segments and risks, but cover a handful of people, each reporting on themselves. A disagreement usually means they are measuring different things (a different time horizon, a different group, behaviour versus stated feeling), and the job is to find which gap explains it and run the cheapest check that separates the explanations.
What each source can and cannot settle
| Question | A/B test | Interviews |
|---|---|---|
| Did the metric move, and by how much? | Yes, with an interval | No, too few people and no control group |
| Why did it move? | Only by inference | Yes, in the person's own words |
| Who is helped or hurt? | If segments were planned and have enough data | Yes, for the few people met, but not their share of users |
| Will it last? | Only for the length of the test | Hints at it (annoyance, confusion) but does not measure it |
| Is the metric the right one? | No | Yes, this is where "we measured the wrong thing" surfaces |
When to run each
Interviews come first, to find the problem and the right metric before the test. The test comes second, to measure size on that metric. Interviews come third, aimed at the surprises, with participants picked from the test's own data (for example people who bought and people who did not, in each arm), because a random chat after the fact explains little. A go/no-go usually needs all three; the failure mode is running only the one that is cheapest.
How to resolve the disagreement, in order
- Check each source is valid. For the test: was the traffic split as planned (a mismatch between planned and observed split, called sample ratio mismatch, suggests broken assignment), did logging work, was the test long enough to cover weekly cycles? For the interviews: who was recruited, were questions leading, and how many said the thing compared with how many would by chance?
- Write down what each source measures. For example "the test says first purchases rose; the interviews say the page felt pushy". These can both be true.
- Turn the interview claim into a prediction the data can check. If the page felt pushy and users resent it, then they should buy again less often. That is checkable in logs already collected.
- Slice by the people you interviewed. Check the same metric for those segments before arguing about averages.
- If the data cannot separate the explanations, run one cheap targeted follow-up (a longer holdout, a version without the contested element, a short survey to a sample from each arm), and say in advance what each outcome would mean.
- Decide with a stated rule, and record which evidence would reverse it.
Worked example: a checkout page with a countdown timer
All numbers are assumptions chosen for the example, not benchmarks.
The test. 40,000 users per arm, randomized by user. First-purchase rate: control 4,000 / 40,000 = 10.0%; treatment 4,240 / 40,000 = 10.6%. The difference is 10.6%−10.0%=0.6 points absolute, or 0.6/10.0=6.0% relative. The standard error (SE) is the typical size of the random wobble in a measured difference from one sample to the next. For a difference in two proportions, the unpooled version (each arm uses its own rate, rather than one blended rate) is
SE=np1(1−p1)+np2(1−p2)=400000.1×0.9+400000.106×0.894≈0.00215The 95% interval is 0.006±1.96×0.00215, which is 0.18 to 1.02 points. The 1.96 is the bell-curve cut-off that leaves 2.5% in each tail, so "estimate plus or minus 1.96 SE" is a 95% interval. In decision terms: the lift is probably real, and plausibly anywhere from small to about one point.
The interviews. 12 treatment-arm users were interviewed, and 8 of the 12 called the countdown timer "pushy". Before reading this as a finding, compare it with chance. If opinion were split evenly, the probability of 8 or more of 12 on one named side is the sum of the binomial terms 495 + 220 + 66 + 12 + 1 = 794 out of 4,096 possible outcomes, which is 0.194. Where the counts come from: if each of the 12 people were a fair coin flip between "pushy" and "not pushy", there are 212=4096 equally likely patterns of answers. The number of patterns with exactly k people saying "pushy" is "12 choose k" =12!/(k!(12−k)!), which is 495 for k=8, 220 for 9, 66 for 10, 12 for 11 and 1 for 12. Adding the five counts gives the 794 patterns with 8 or more. A result that happens about one time in five by luck is a reason to look, not a measurement. It is a hypothesis.
Turn the hypothesis into a check. If pushiness hurts later behaviour, repeat purchasing should suffer. Using the same assigned users (all 40,000 per arm, not only the buyers), assume 30-day repeat purchasers are 1,200 in each arm: 1,200 / 40,000 = 3.00% in both. The 95% interval for the difference is 0±1.96×2×0.03×0.97/40000=0±0.0024, so -0.24 to +0.24 points.
Note the base. Among buyers only, repeat rates are 1,200 / 4,000 = 30.0% (control) and 1,200 / 4,240 = 28.3% (treatment), which looks like treatment buyers repeat less. That comparison is not a fair test, because the treatment arm turned extra people into buyers and those people may be less committed. Comparing everyone who was assigned keeps the randomization intact.
Reading the two together. The timer added first purchases (+0.6 points, which is 240 extra first-time buyers per arm) and the number of repeat purchasers did not move (0.0 points, interval -0.24 to +0.24). Two stories fit that. If the 240 extra buyers were as loyal as the existing buyers, who repeat at 30%, repeat purchasers would rise by about 72, which is 72 / 40,000 = 0.18 points, and that sits inside the interval. If the timer wins less loyal buyers, or irritates some people who would have come back anyway, the rise would be smaller or the count would stay flat or fall. The data cannot separate the two, so the interviews' concern stays a live hypothesis that the data neither confirms nor rules out, and the flat repeat result is the reason to run a better-powered follow-up, not a verdict.
What I would decide
Hold the full rollout and iterate. Ship a version without the countdown (or with a softer one) to a test against the current control, with the 30-day repeat rate per assigned user as a pre-registered guardrail (a protective metric whose tolerance is written down and agreed before the data arrives, so it cannot be chosen after the result), and a rule written beforehand: ship if first purchases rise with the interval above zero and the repeat rate's lower end is no worse than -0.2 points. At 40,000 users per arm the repeat-rate interval is about plus or minus 0.24 points on each side, wider than the -0.2 margin, so the margin cannot be read at that size. The walk-through: the interval's half-width is 1.96×2p(1−p)/n and for it to shrink to 0.002 (0.2 points) with p=0.03, assuming both arms share a 3% rate, n=2×1.962×0.03×0.97/0.0022=2×3.8416×0.0291/0.000004≈55,895, about 55,900 users per arm. That size only makes the interval as narrow as the margin. If the true difference is zero, the measured lower end lands above -0.2 only about half the time at that size (the estimate is as likely to fall below zero as above it), so a harmless version would fail the rule half the time. To pass a harmless version with 80% probability the size must also include power: n=2(1.96+0.8416)2×0.0291/0.0022≈114,200 users per arm, about 2.9 times the first test's 40,000. Plan the sample from that second figure. The cost is time: the first-purchase read arrives within the enrolment period, but the 30-day repeat read needs 30 days of follow-up after the last user enters. What would flip it: if the business model is one-off purchases, the repeat metric matters less and the existing +0.6 points could justify shipping with the interviews noted as brand risk.
The reverse conflict: the test is flat, interviews are enthusiastic
Common explanations in the order to check them. First, dilution (the lift is spread thin because most treated users never meet the change): if only 25% of treatment users ever reach the new feature, a 0.6 point overall lift corresponds to about 0.6/0.25=2.4 points among those who reach it, assuming no effect on the rest. Check exposure rates and compare reachers with a matching group. Second, stated versus revealed preference (what people say they like versus what their actions show they choose): people say they like things they do not use. Third, the metric: the feature may help in ways the primary metric does not capture. A flat result with a wide interval is inconclusive, not proof of no effect.
Common mistakes
- Averaging the two ("half-way ship") or deferring to the louder source.
- Treating 8 of 12 as a majority of customers.
- Comparing only buyers across arms after the treatment changed who buys.
- Running the follow-up without saying in advance what result would change the decision.
A PM says 'we need a 10% lift in recommender click-through.' Before building anything, what would you ask, how would you establish a baseline, and how would you plan to validate the lift while watching for harm to diversity and long-term engagement?
Sample Answer
The idea in plain words
"Raise click-through by 10%" is a target, not yet a testable claim. Click-through rate (CTR) is clicks divided by impressions (times an item was shown). The candidate set is the pool of items the recommender chooses from for a given user. Before building, the work is to pin the target down (10% of what, measured how, for whom), measure today's number and its normal wobble, and write a test plan in which a CTR win is only counted if two things the PM did not mention, diversity (variety in what users are shown and click) and long-term engagement (do people keep coming back), stay healthy. A recommender can raise CTR by showing safe, similar or clickbait items, which is why those two are in the plan from the start.
Step 1: questions to ask the PM
- What decision does this serve? What business outcome is CTR a stand-in for (more time spent, more purchases, more content discovered)? If a different metric tracks that outcome better, say so.
- 10% of what? Relative or absolute, which surface and slots, which users, which definition of a click?
- Where does 10% come from? A past launch, a competitor, a guess? Ask for a reference class (a set of comparable past cases to calibrate against): what lifts did past changes to this recommender produce?
- What must not get worse? Which harms would make the PM reject a CTR win?
- What can change, and by when? The model, the candidate set, the layout, the ranking objective; and the deadline.
Why question 2 matters, with numbers. Assume the baseline CTR is 5.0% per impression (plausible range 2% to 10%). A relative 10% lift means 5.0% x 1.10 = 5.5%, which is +0.5 points absolute. A 10 point absolute lift would mean 15.0%, three times the baseline (15/5=3), which is not a realistic goal for a model change alone.
Step 2: establish the baseline
- Define the metric exactly. For example: clicks on recommended items divided by impressions in the recommendation module, counted only for impressions that were actually visible. Also define the engaged-click version: a click followed by at least 30 seconds of use or a completion. Illustrative cutoff; it is the paired metric that makes CTR harder to game.
- Use several full weeks, not one. Take the last four complete weeks. Assume they read 4.9%, 5.1%, 5.0% and 5.0%: mean 5.0%, normal week-to-week range about 0.2 points. A target lift of 0.5 points is 2.5 times that wobble (0.5/0.2), which is detectable but not by a quick glance.
- Run an A/A test (two groups that both get the current recommender, so there is nothing to find) for a week to confirm the randomization and the metric behave: the measured difference should be near zero and its interval should be as wide as predicted.
- Segment the baseline by new versus returning users and by device, because the model may help one and not the other.
- Note position bias (the tendency to click what is shown first or highest): items shown higher get clicked more regardless of quality, and past logs come from the current recommender, so historical clicks partly measure what the current system chose to show.
Step 3: offline checks before anything is shown to users
Replay held-out logs and compare the candidate model with the current one on the same data (for example, how often the item a user later chose appears in the model's top 10). This is used to rule candidates out, not to forecast the online lift: offline scores reward models that agree with what the old system showed, and they do not map one-to-one to online CTR.
Step 4: the validation plan
- Randomize by user, one version per person. Impressions from the same user are not independent, so analysis must account for that, either by computing CTR per user or by inflating the sample.
- Size it. For a 5.0% to 5.5% change, 95% confidence and 80% power (the 1.96 and 0.8416 below are the bell-curve cut-offs for those two choices), treating impressions as independent:
Here the unit is impressions, but the randomization unit is the user, so the count is then converted. Let m be impressions per user (assume 20) and ρ ("rho") the within-user correlation: how alike two impressions from the same person are, on a scale from 0 (independent) to 1 (identical); assume 0.05 (plausible 0.01 to 0.2). Impressions from one person carry less new information than impressions from different people, and the design effect 1+(m−1)ρ=1+19×0.05=1.95 is the factor by which the independent-impression count must be multiplied to compensate. So about 31231×1.95≈60,900 impressions per arm; each user supplies 20, so 60900/20≈3,045 users per arm. For the primary lift, sample size is not the limiting factor; the calendar is. For the guardrails, sample size is the limit. At 3,045 users per arm (60,900 impressions) the standard error (the typical random wobble of a measured difference) of a relative change in a click rate is
0.05×609002×1.95×(1−0.05)≈0.035that is 3.5% of the baseline, so the 95% interval is about plus or minus 6.8% relative. That is what makes a +10% lift readable, and it is also why a guardrail margin of 2% or 3% is not: if the new recommender changed nothing, a measured change of -3% or worse would still appear about 19% of the time (−0.03/0.035≈−0.86 standard errors) and -2% or worse about 28% of the time. A rate with a lower base, such as the engaged-click rate, is noisier still. A guardrail margin must therefore be one the test can read: to see a 3% margin with 95% confidence and 80% power when the true change is zero, the standard error must fall to 0.03/2.8016≈0.0107, which needs (0.035/0.0107)2≈10.6 times the users, about 32,000 per arm. Either size the test to the tightest margin the PM's answer to question 4 requires, or agree a wider margin in advance.
- Run at least two full weeks. New recommendations get extra clicks early just because they are new (a novelty effect), so the first days overstate the lift. Read the second week separately.
- Hold back a long-term group. Keep a small randomized slice (for example 5%) on the old recommender for six weeks after launch so the 28-day outcomes can be compared. Two weeks cannot reveal whether people stop returning. The slice must also be large enough for its margin. Assume active days per user in 28 days has a standard deviation of about 0.67 times its mean (an assumption to replace with the product's own). To read a 3% relative margin with 95% confidence and 80% power, the held-back group needs about nh≈(1+1/19)(2.8016×0.67/0.03)2≈1.053×3,915≈4,100 users, where the factor 1+1/19 allows for the launched group being 19 times larger than a 5% slice (so its own average is a little noisy too). A 5% slice therefore needs about 82,000 users in total (4121/0.05); a 1% margin would need about 37,000 held-back users, which most products cannot hold back.
Step 5: metrics and decision rule
| Role | Metric | Illustrative tolerance |
|---|---|---|
| Primary | CTR per user, relative lift | At least +10%, lower end of 95% interval above 0 |
| Quality check | Engaged-click rate | Lower end of the 95% interval of the relative change above -3% |
| Guardrail | Diversity: distinct categories clicked per user per week | Lower end of the 95% interval of the relative change above -3% |
| Guardrail | Share of the catalogue shown at least once a week | Lower end of a bootstrap interval (resampling users) above -5% relative |
| Guardrail, read after launch | Active days per user in 28 days (held-back group against launched users) | Lower end of the 95% interval above -3% relative; if breached, roll back |
These tolerances are illustrations of the form, not recommended values: each should come from the PM's answer to question 4, and each is judged on the interval's lower end at a sample size that can read it, never on a bare point estimate. Treat the plan as covering one model change against one baseline and one primary metric; a real process also needs checks that the split matches the plan, a rule for peeking, and a person who owns the call.
What I would recommend
Say back to the PM: "I read 10% as a relative lift in CTR per user, from 5.0% to 5.5%, with engaged-click rate as a quality check so the win is real use and not accidental clicks. I will confirm the baseline over four weeks, run an A/A, test for two weeks at a size that can read the guardrail margins, and launch only if the primary lift and the diversity guardrails hold. A held-back group then lets me check 28-day activity after launch, with a rollback agreed in advance if it drops." If the PM actually meant 10 absolute points, say plainly that a model change alone is unlikely to do that and discuss layout or surface changes instead.
Common mistakes
- Starting a test without agreeing the definition of "10%".
- Reading offline accuracy as a forecast of online lift.
- Counting impressions as independent and over-trusting a small interval.
- Declaring a win from the first week of data.
- Watching CTR only: a recommender can raise clicks while narrowing what people see.
A model's premise is that user click propensity can be predicted from the features you have today. How would you test that premise cheaply before investing in the full system, and what result would make you stop?
Sample Answer
The idea in plain words
The system you are considering rests on one belief: given the data you already collect, you can tell which impressions will be clicked better than a simple rule can. That belief can be tested on logged history, with no new system, in days rather than months. An impression is one occasion on which an item was shown to a user, and a click is what some impressions lead to. Train a few models on older logs, score them on newer logs they have never seen (a time-forward test), and compare them with the simplest rule that is already in use (the incumbent rule). If the models barely beat the rule, the premise fails for these features, and you stop before building. The test can kill the premise cheaply; it cannot prove the full system will raise clicks, which needs a live experiment later.
Step 1: pin down the premise as a testable statement
"Click propensity (the probability that a given impression is clicked) can be predicted from today's features" becomes: on impressions from a later period, a model using only features available at the moment of serving ranks clicked impressions above unclicked ones noticeably better than the current simple rule does.
Step 2: build the cheapest credible test
- Take the logs you have. One row per impression, a label (clicked or not), and the features as they were at that moment. Use only features that will exist at serving time. A feature computed after the click, such as "the item's click count for the day" including this click, leaks the answer and makes any model look brilliant.
- Split by time, not at random. Train on the earlier weeks and test on the last one or two weeks. A random split lets the model see the same users and items on both sides and overstates what production will deliver.
- Fit the ladder of baselines. (a) Always predict the average click rate. (b) The incumbent rule, for example each item's past click rate. (c) A simple logistic regression (a basic model that adds up weighted features and turns the total into a probability) on a handful of features. (d) A gradient-boosted tree model (many small decision trees added one after another, each correcting the last).
- Score with AUC (area under the ROC curve, a plot of how many true clicks the model catches against how many false alarms it raises as you lower the score cut-off; the area equals the probability that a randomly chosen clicked impression gets a higher score than a randomly chosen unclicked one, and 0.5 is no better than a coin flip). Also check calibration (when the model says 5 percent, do about 5 percent click?) and the click rate in the top-scored 10 percent of impressions.
- Run a sanity check that must fail. Shuffle the labels and retrain. The AUC should come out near 0.5. If it does not, there is leakage or a bug.
- Slice the result by new versus returning users and by item age, because a model can be good on average and useless where you most need it.
Worked example (assumed numbers and an illustrative readout)
Assume the later-period test set has 200,000 impressions with a 3 percent click rate (plausible range 1 to 8 percent): 200,000×0.03=6,000 clicks and 194,000 non-clicks.
What chance alone does to AUC. Even a score with no signal at all gets an AUC a little above or below 0.5, because a finite set of clicks and non-clicks can line up by luck. The size of that wobble (its standard deviation, the typical distance from 0.5) shrinks as the counts grow. With no real signal it is about
12n1n0n1+n0+1=12×6,000×194,000200,001≈0.0038where n1 is the number of clicks and n0 the number of non-clicks (the 12 is a constant of the standard result for a score with no signal; a reader only needs to know that more clicks and non-clicks make the wobble smaller). A 95 percent range for chance alone is therefore about 0.5±1.96×0.0038=0.5±0.0074. An AUC of 0.52 is clearly above chance and may still be worth nothing, so the comparison that matters is against the incumbent rule.
What the system has to be worth. Assume 10 million impressions a month at the 3 percent rate, which is 300,000 clicks, and a value of 0.40 dollars per click (plausible range 0.05 to 1 dollar), so about 120,000 dollars a month. Assume a build cost of 300,000 dollars, running cost of 5,000 dollars a month, and a goal of paying back in 24 months. The monthly gain needed is 300,000/24+5,000=17,500 dollars, which is 17,500/120,000≈14.6% more clicks than today.
How the two numbers connect. No fixed formula turns an AUC gap into a click gain, because the gain also depends on how the product uses the score (which items get the best slots, how many slots there are). So the AUC gap is a cheap first screen and the 14.6 percent is the target the later steps must show: if the best model cannot even clearly beat the incumbent rule on ranking quality, a 14.6 percent click gain is very unlikely, and if it can, the offline replay (re-ranking past impressions with the model and checking the click rate among the top-scored 10 percent) and then the small live test measure the gain in clicks itself.
Illustrative readouts on the time-forward test set. The columns Readout A and Readout B are two alternative outcomes the same test could produce, shown side by side. The row "Gap over incumbent" is the best model's AUC minus the incumbent rule's AUC (A: 0.662 - 0.640 = 0.022; B: 0.648 - 0.640 = 0.008).
| Model | Readout A | Readout B |
|---|---|---|
| Average rate | 0.500 | 0.500 |
| Incumbent rule | 0.640 | 0.640 |
| Logistic regression | 0.650 | 0.645 |
| Boosted trees | 0.662 | 0.648 |
| Boosted trees, shuffled labels | 0.501 | 0.502 |
| Gap over incumbent | 0.022 | 0.008 |
Readout B: the gap of 0.008 is below the 0.02 bar, so the premise is not supported beyond what the incumbent rule already captures. Stop, or spend one more cheap round testing one new feature family. Readout A: a gap of 0.022 clears the bar, so continue to the next cheap step: an offline replay and then a small live test.
What result would make me stop
These thresholds are illustrations. Three checks drive the stop decision: the time-forward split, the comparison with the incumbent rule and the shuffled-label run. A real process then sharpens the call with the interval on the gap (a paired bootstrap: resample the test impressions many times with replacement, score both models on each resample, and see how much the gap varies), the segment results and any shift in the data between training and test periods.
- The best model beats the incumbent rule by less than 0.02 AUC on the time-forward test. The 0.02 is a judgment, reached like this: chance alone moves one AUC by up to about 0.0074, and the gap between two models scored on the same impressions has its own wobble (the bootstrap measures it), for which that figure gives a first sense of scale. Asking for a gap of 0.02, about 2.7 times that half-range (0.02/0.0074≈2.7), keeps the bar clearly outside noise without demanding a huge improvement. It should be tuned to what a past launch in your own product taught you about AUC versus clicks.
- The score drops sharply from the random split to the time split (say 0.71 to 0.66), which says the model is memorising users and items, not learning a lasting pattern.
- The shuffled-label run is not near 0.5. That is a bug to fix, not a reason to stop, but nothing can be concluded until it is fixed.
- The model works only where the incumbent already works (returning users) and fails where the business needs it (new users).
Each stop condition is written before the test is run, so a disappointing readout cannot be explained away afterwards.
Judgment
I would run this as a few days of work for one data scientist, commit to the stop rules in advance, and treat a pass as permission to run the next small step, not as proof of the 14.6 percent uplift. Logged clicks reflect what the old system chose to show, and top positions get more clicks regardless of quality, so the live test is the only fair measure of uplift. A failed premise test does not mean clicks are unpredictable in principle; it means these features add too little over the rule you have.
Common mistakes
- Random split with leaked features, giving a flattering AUC.
- Comparing only against a constant, not against the incumbent rule.
- Reading a small AUC gap without a chance range.
- Deciding the stop threshold after seeing the numbers.
Unlock Full Question Bank
Get access to all 9 Experimentation and Validation interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.