Lesson 9: Running an experiment and reading the result honestly
Learn to design an A/B test, size the sample, run it long enough and read the result without fooling yourself, with worked examples from Indian apps.
A product team changes the colour of a button, and conversion goes up 8 per cent. Everyone celebrates and the change ships. Three weeks later the number is back where it started. What happened? Very often, nothing was ever there: the "lift" was noise, a few lucky days, or a difference in who happened to see which version. An experiment is the best tool a product manager has for finding out whether a change really caused an effect, but it is also one of the easiest to misuse. This lesson shows you how to use it well. By the end you will be able to turn an idea into a testable hypothesis, choose a primary metric and guardrails, estimate how many users you need, decide how long to run, read the result using a range and not just a single number, spot the common traps, and decide what to do when a test is inconclusive. You should have read Lesson 4 (problem statements and measurable goals) and Lesson 6 (measuring a launch), because this lesson builds on both. No advanced mathematics is needed. We use a handful of simple formulas, and the simulators do the arithmetic for you.
What an experiment is for
Suppose you are the product manager of a bill-payment app in India. You think that showing the user's last-paid amount on the "Pay electricity bill" screen will make more people finish the payment. How would you know?
You could ship it and watch the numbers. The trouble is that many things change at once: the festival season starts, a bank runs a cashback offer, a competitor has an outage, the month-end brings salaries. If completion goes up after you ship, you cannot tell which of these did it. This is the central problem the experiment solves.
In an A/B test you split users at random into two groups at the same time. Group A (the control) sees the current screen. Group B (the variant) sees the new one. Because the split is random and both groups live through the same festival, the same offers and the same outages, the only systematic difference between them is your change. If B does better than A by more than chance would explain, you can say the change caused the improvement.
Two ideas hold the whole method together.
Random assignment. Each user is put into a group by chance, not by choice, and not by something like location or device. This is what makes the groups comparable.
Concurrent comparison. Both versions run at the same time. A before-and-after comparison is not an experiment, because time itself is a variable.
Predict first: your team compares conversion for the week before and the week after a redesign, and sees a 6 per cent rise. A colleague says "that is our A/B test, and it worked". What is wrong with that claim?
The weeks are different weeks. Salary day, a sale, weather, an outage or a marketing push could explain the rise. Without a group that did not get the redesign in the same week, there is nothing to compare against. A before-and-after is an observation, not an experiment.
Start with a hypothesis, not a hunch
A test begins with a sentence that can turn out to be wrong. A useful format has four parts.
> We believe that [change] for [who] will cause [effect], because [reason]. We will know it worked if [metric] moves by at least [amount].
For the electricity-bill example:
> We believe that showing the last-paid amount on the bill screen for returning users will increase payment completion, because users will be sure they are paying the right amount and hesitate less. We will know it worked if completion rises by at least 2 percentage points.
Notice three things about this.
1. It names a reason. If the test works, you learn why, and the learning transfers to other screens. If you only test "does it go up", a win teaches you nothing you can reuse.
2. It sets a minimum worthwhile effect before the test. A change that moves the metric by 0.1 points may be real but not worth the engineering. Deciding the threshold in advance stops you from calling any small positive result a success afterwards.
3. It says who is included. "Returning users" and "all users" can give different answers.
Write the hypothesis down before the test starts, and do not edit it after you see the data. That one habit prevents most of the self-deception in experimentation.
Choose a primary metric and guardrails
A test must have one primary metric: the number that decides whether the change worked. It should be tied to the goal you wrote in Lesson 4 and close to the behaviour the change affects. For the bill screen, the primary metric is payment completion rate: users who complete a payment divided by users who open the screen.
Why only one? If you track twenty metrics, some will rise by chance alone. Pick the one that matters before the test, and treat the rest as supporting information.
You also need guardrail metrics: numbers that must not get worse while you improve the primary one. A change can raise conversion by cheating in ways that hurt the business.
Kind of metric · Example for the bill screen · Why it mattersPrimary · Payment completion rate · The goal of the change
Guardrail · Payment failure rate · A faster flow must not cause more failures
Guardrail · Support tickets per 1,000 payments · Confusing screens create tickets
Guardrail · Refund or wrong-amount rate · Pre-filled amounts may be paid by mistake
Diagnostic · Time on screen · Helps explain why the primary metric moved
If the primary metric rises and a guardrail breaks, the right reading is "this change trades one problem for another", not "this change won".
Worked example 1: a tempting win that fails a guardrail
An Indian food-delivery app tests pre-selecting the "tip the delivery partner" option at Rs 20. Order completion is unchanged. Average tip per order rises sharply. It looks like a clear win on revenue for delivery partners. The guardrail, however, is customer satisfaction after delivery, and it falls in the variant group, because some people felt the app was nudging them. The team now has an honest trade-off to discuss, instead of a falsely clean win. Without the guardrail, the trade-off would have been invisible.
How big must the sample be?
The most common reason tests fail to teach anything is that they are too small. With a handful of users, random variation is large, and a real effect gets lost in it. With a huge number of users, even a tiny difference becomes visible.
Think of two cricket teams. After one over, one team has scored 12 and the other 8. Does that tell you which team is better? No. After forty overs, the picture is much clearer. Sample size works the same way.
Four quantities determine how many users you need per group.
Baseline rate. How often the thing happens now, such as 40 per cent completion.
Minimum detectable effect (MDE). The smallest improvement worth detecting, such as 2 percentage points.
Significance level. How much risk of a false alarm you accept. The usual choice is 5 per cent.
Power. How likely you are to catch a real effect of the MDE size. The usual choice is 80 per cent.
A common approximation for the users needed in each group, when the metric is a rate, is:
n ≈ 16 × p × (1 − p) ÷ d²
where p is the baseline rate and d is the MDE, both as fractions. This formula assumes the usual 5 per cent significance and 80 per cent power. It is an approximation, so treat the result as an order of magnitude.
For a baseline of 40 per cent (p = 0.4) and an MDE of 2 points (d = 0.02):
n ≈ 16 × 0.4 × 0.6 ÷ 0.0004 = 3.84 ÷ 0.0004 = 9,600 users per group.
So you need roughly 19,200 users in total. If the screen gets 3,000 users a day, you need about a week and a half of traffic. If you wanted to detect a 1-point effect instead, the number would be four times larger, around 38,400 per group, because halving the effect size multiplies the required sample by four. That is the single most important thing to feel in your bones: small effects are expensive to detect.
Use the simulator to explore the trade-offs. Try moving the MDE from 2 points to 1 point and watch the days needed jump.
Why you should run whole weeks
User behaviour changes through the week. People pay bills on weekends, shop on salary day, and order food on Friday night. If you stop a test on a Wednesday, one version may have seen more weekday users than the other did not. Round up to complete weeks, even if the sample size is reached sooner, so every day of the week is represented equally. For some products, month-end and festival cycles matter too, and a single week may not be typical.
Running the test without breaking it
A well-designed test can still be ruined in execution. These are the checks to do before and during the run.
Check the split. If you planned 50-50 and see 52-48 across 20,000 users, something is wrong with the assignment, such as one version crashing on certain phones and losing users. This is called a sample ratio mismatch, and it means you should not trust the result until you find the cause.
Randomise by user, not by session. If the same person sees version A on Monday and B on Tuesday, their behaviour mixes the two. Assign each user to one group and keep them there.
Run A and B at the same time. Never run A for a week and then B for a week.
Do not change anything mid-test. A change to the offer, the pricing or the audience while the test runs spoils it.
Do not peek and stop. This one is so common it needs its own section.
The danger of peeking
Imagine a test that has no real effect at all. If you check the result every day, and stop as soon as you see a "significant" difference, you will eventually find one. Random numbers wander, and sooner or later they will wander far enough to look like an effect. Repeated looking, with a stopping rule of "stop when it looks good", raises the false-alarm rate from the 5 per cent you thought you had to something much higher.
The fix is simple. Decide the sample size and the duration in advance. Look at the dashboard as often as you like for health problems, but make the decision only at the planned end. If you really do need to stop early, for example because a variant is clearly harming users, use a method designed for it, and tell the team that it is a safety stop, not a result.
Reading the result honestly
Suppose the planned test has ended. Each group had 9,600 users. Control completed 3,840 payments (40.0 per cent). The variant completed 4,070 (42.4 per cent). The observed lift is 2.4 percentage points, or 6 per cent in relative terms.
Is it real? Two ideas help: the confidence interval and the p-value. A confidence interval is a range of effects that are consistent with the data. A p-value is the chance of seeing a difference at least this big if there were really no effect. Of the two, the interval is more useful to a product manager, because it tells you how large the effect might be, not only whether it is zero.
For a difference between two rates, an approximate 95 per cent interval is:
difference ± 1.96 × √( p₁(1 − p₁)/n₁ + p₂(1 − p₂)/n₂ )
Here: the standard error is √(0.4 × 0.6 / 9,600 + 0.424 × 0.576 / 9,600) = √(0.000025 + 0.0000254) ≈ √0.0000504 ≈ 0.0071. Multiplying by 1.96 gives about 0.0139. So the 95 per cent interval for the lift is 2.4 points ± 1.4 points, or roughly 1.0 to 3.8 points.
How should you read that? The interval does not contain zero, so the result is statistically distinguishable from no change. It also tells you the true effect could plausibly be as small as 1 point or as large as nearly 4 points. Your minimum worthwhile effect was 2 points. The honest summary is: "likely a real improvement, probably between 1 and 4 points; the central estimate is above our threshold, but we cannot rule out that it is below it."
The simulator below does this arithmetic for your own numbers. Try reducing the sample size to see how the interval widens and the same lift stops being convincing.
Statistical significance is not business significance
With enough users, a very small difference becomes "significant". A lift of 0.1 points might be real and still worth nothing, because the engineering and complexity cost more than the gain. The reverse also happens: a test with too few users can show a large, valuable lift that is not statistically distinguishable from zero. Always ask both questions: could this be chance, and is it big enough to matter?
Worked example 2: converting a lift into rupees
The bill app sees 400,000 users open the screen each month. A true lift of 2 points in completion means 8,000 more completed payments a month. If the app earns Rs 4 net per payment, that is Rs 32,000 a month, or Rs 3.84 lakh a year. Now compare that with the cost of building and maintaining the feature, say two engineers for three weeks. The result tells you whether the change is worth shipping, and how to rank it against other ideas on the roadmap (Lesson 5). The low end of the interval, 1 point, would give about Rs 1.9 lakh a year. Planning on the low end is a good habit when the downside matters.
Traps that fool good teams
Most bad experiment decisions come from a short list of recurring traps.
1. Too many metrics. Test 20 metrics at the 5 per cent level and you expect about one false alarm by chance. Decide the primary metric first. Treat anything else that moves as a lead for the next test, not a result.
2. Slicing until something works. "It did not work overall, but it worked for users in Tier 2 cities on Android in the evening." If you cut the data enough ways, something will look good. Pre-specify the segments you care about, and treat unplanned slices as hypotheses to test again.
3. Novelty and learning effects. A new design gets attention because it is new, and the lift fades after two weeks. Or the opposite: users need time to learn a new flow, and it looks worse at first. For changes that affect repeat behaviour, run longer and look at whether the lift holds in week two and three.
4. Interference between groups. If users influence each other, as in a marketplace or a referral scheme, then the control group is affected by the variant. A discount shown to variant buyers can change prices that control buyers see. Be careful in two-sided products.
5. Survivorship. If a variant makes the checkout page slower, some users leave before the metric is recorded, and the remaining users look better. Count outcomes for everyone assigned, not just those who stayed.
6. Ignoring the cost of being wrong. A test with a 5 per cent false-alarm rate will still sometimes ship a change that does nothing. For small, reversible changes this is fine. For a big change that is hard to undo, ask for a stricter standard or a follow-up test.
7. Winner's curse. When you pick the best of many variants, the winning variant's measured lift usually overstates its true effect. Expect the real gain to be somewhat smaller, and confirm with a holdout if the stakes are large.
The chart below shows why many metrics are a problem. It uses a simple calculation: the chance of at least one false alarm among k independent metrics, each tested at the 5 per cent level.
Worked example 3: the inconclusive test
A lending app tests a shorter loan-application form (nine fields instead of fourteen) for 12,000 users per group. Completion is 31.0 per cent in control and 32.1 per cent in the variant: a lift of 1.1 points. The standard error is about 0.60 points, so the 95 per cent interval is roughly −0.1 to 2.3 points. It includes zero.
What should the team do? There are three honest options.
Declare no effect and move on. Reasonable if the team only cares about effects of 2 points or more. The interval's upper end barely reaches that.
Extend the test. If the team really needs to know whether the effect is about 1 point, they need a bigger sample. With p = 0.31 and d = 0.01, the formula gives about 16 × 0.31 × 0.69 ÷ 0.0001 = 34,224 per group. They have 12,000, so they would need nearly three times as many users.
Ship because the guardrails are fine and the change is cheap. A shorter form is also better for users, and it costs nothing to run. This is a decision on judgement, not on the test, and the team should record that it was.
The wrong response is to say "it is trending positive, so it works". An interval that includes zero means the data cannot tell the two cases apart. Say that, and then decide what to do.
When you cannot run a proper test
Not every product can run an A/B test. A small app may not have enough users. A change might affect everyone, such as a pricing change or a regulatory screen. A B2B product with fifty customers cannot split them into thousands. In those cases you still have options.
Situation · What to do insteadToo few users for a rate metric · Use a bigger change, a more sensitive metric (time to complete, not completion), or qualitative testing with 5 to 8 users
A change that must apply to everyone · Roll out in stages (one city or one cohort first) and compare with those not yet reached
Very few large customers · Run a pilot with a clear success metric (see the pilot planning ideas used in the Forward Deployed Engineer track)
A decision that cannot be reversed · Prototype tests, user interviews (Lesson 3) and a smaller reversible version first
A staged roll-out is not as clean as randomisation, because the cities differ for other reasons, but it is far better than nothing. Whatever you use, write down in advance what result would change your mind.
A checklist before you launch a test
The hypothesis is written, with a reason and a minimum worthwhile effect.
There is one primary metric, plus guardrails.
The sample size and the duration are calculated, rounded up to whole weeks.
Assignment is random, by user, and the groups run at the same time.
You have planned to check the split ratio on day one.
Nobody will stop the test early because the numbers look good.
You have decided in advance what you will do for each outcome: win, loss, inconclusive.
Common mistakes
Testing without a hypothesis. "Let's see what happens" produces results that nobody can interpret or reuse.
Stopping when the result looks good. Peeking inflates false alarms. Decide the end date in advance.
Underpowered tests. Running 500 users per group to detect a 1-point effect gives noise, not an answer.
Reading a single number. A 2.4-point lift with an interval from −0.1 to 5 is a different story from one with an interval from 2.0 to 2.8.
Calling an inconclusive test a loss, or a win. It is neither. It is "we could not tell".
Ignoring guardrails. A win on the primary metric that breaks support, refunds or trust is not a win.
Testing trivial changes. If the best case is a 0.1-point lift, the test costs more than the answer is worth. Test ideas with a chance of a meaningful effect.
Not recording what you learned. Keep a log of hypotheses, results and decisions, so the team does not repeat old tests.
Key takeaways
An A/B test splits users at random and compares the groups at the same time, so that the change is the only systematic difference.
Write the hypothesis, the primary metric, the guardrails and the minimum worthwhile effect before you start.
Sample size depends on the baseline, the effect you want to detect and the risk you accept. Halving the effect size roughly quadruples the users needed.
Run whole weeks, check the split on day one, and do not stop early because the numbers look good.
Read the result as a range, not a single number, and ask both whether it could be chance and whether it is big enough to matter.
Beware of many metrics, unplanned slices, novelty effects and the winner's curse.
An inconclusive test is a legitimate result. Say "we could not tell" and decide with judgement, recording that it was judgement.
Check yourself
1. Why is a before-and-after comparison not an experiment? Answer: other things change over time, and with no concurrent control group you cannot separate your change from them.
2. What is a guardrail metric? Answer: a measure that must not get worse while you improve the primary one, such as failures, refunds or support tickets.
3. If you halve the effect you want to detect, what happens to the sample size needed? Answer: it roughly quadruples, because it depends on one over the effect squared.
4. Why should you not stop a test as soon as it looks significant? Answer: repeated peeking raises the false-alarm rate well above 5 per cent, because random noise will cross the line eventually.
5. A test shows a 1.1-point lift with a 95 per cent interval of −0.1 to 2.3 points. What can you say? Answer: the data cannot rule out zero effect, so it is inconclusive: the effect may be anywhere from slightly negative to a useful gain.
6. Why track a primary metric and not twenty? Answer: with many metrics, some will move by chance, so you pick one to decide and treat the others as leads.
Try this
This exercise takes 30 to 45 minutes and needs a notebook or a spreadsheet. Choose a real product change you have been thinking about, or use this one: "show delivery time estimates earlier in a food-ordering app".
1. Write the hypothesis in the four-part format: change, who, effect and reason, plus the metric and the minimum worthwhile effect. (6 minutes.)
2. Choose one primary metric and two guardrails. For each, write how it is measured and who is counted. (6 minutes.)
3. Estimate the baseline rate, using real data if you have it or a labelled guess if you do not. Use the sample-size simulator to find the users per group and the number of days for two effect sizes: the one you hope for and half of it. (8 minutes.)
4. Decide the duration, rounded to whole weeks, and write what you will check on day one (split ratio, errors in each version). (4 minutes.)
5. Invent a plausible result: choose group sizes and conversion rates, and run them through the second simulator to get the interval. Write three sentences: what the data shows, what it does not show and what you would decide. (8 minutes.)
6. Convert the lift, at both ends of the interval, into rupees a year, and compare it to the cost of building the change. (6 minutes.)
A good result is a one-page test plan that someone else could run without asking you questions, and a decision note that states what you would do for a win, a loss and an inconclusive result before the data exists. If you can do that, you are using experiments to learn, and not to decorate decisions you had already made.
Tags: Product management A/B testing Experiments Metrics Decision making