Sizing and Reading a Discount-Offer Experiment
Statistics & ExperimentsModel answerLast updated
Plan a randomized test for a customer discount offer: justify it, pick metrics, size the sample for a small revenue MDE, and explain a positive but non-significant lift.
Scenario
A ride and delivery marketplace wants to test a discount offer before deciding whether to launch it widely. Two framings are common:
- A spend-threshold discount, such as 20% off once a customer's order reaches $40.
- A single-city promotion, such as a one-month offer available only to customers in one large metro area.
Treat the offer as a generic promotion. Your reasoning should work for either framing.
Questions
- Rationale. Why might the business run this promotion? If it is limited to one city, why start there?
- Metrics. Which metrics would you track? Separate the primary metric from secondary (diagnostic) metrics and guardrails.
- Sample size. How would you work out the sample size needed? List the inputs, the assumptions, and the factors that push the number up or down.
- MDE. Revenue per user is the primary metric and the product manager sets the minimum detectable effect at 0.5%. How do you interpret that number, and how does it change the calculation?
- Inconclusive result. The test shows a +0.3% revenue lift that is not statistically significant. How do you interpret this, and how would you explain it to the product manager?
Aim for a structured answer with explicit assumptions, a worked number where you can, and the main trade-offs.
Hints
Hint 1
Tie everything to a business goal first: the objective decides the primary metric, and the primary metric must account for the cost of the discount itself.
Hint 2
The core formula for two equal arms is n per arm = 2 (z_alpha/2 + z_beta)^2 sigma^2 / delta^2. Express delta as a fraction of the baseline mean so that only the coefficient of variation matters, and note that n scales with 1/MDE^2.
Hint 3
For the null result, separate 'no evidence of an effect' from 'evidence of no effect'. Look at the confidence interval relative to both zero and the MDE, and think about what the test's power was for an effect of 0.3%.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
1. Business rationale
Start from the goal, because it determines the design and the primary metric.
- Spend-threshold discount. It aims at basket size. Customers who would spend about $30 are nudged to $40. The bet is that extra gross bookings and repeat habits outweigh the 20% subsidy.
- Other goals. Reactivating lapsed users, acquiring new ones, defending share against a competitor, or smoothing a seasonal dip such as the post-holiday slowdown.
- Why a single city?
- Cost and risk are contained if the promo loses money.
- A dense, mature market gives a stable baseline and enough volume.
- There may be a local reason (competitor push, demand dip).
- Operations, legal review, and marketing are simpler.
- It is a learning step before rollout. The caveat is that results may not generalize to smaller or less mature markets.
2. Metrics
| Type | Metrics | Purpose |
|---|---|---|
| Primary | Net revenue (or contribution margin) per eligible user over the test window | One pre-registered decision metric. It must be net of promo cost, otherwise giving money away looks like a win. |
| Secondary / diagnostic | Orders per user, conversion, average order value, share of baskets just above $40, redemption rate, new or reactivated users | Explains why the primary metric moved. Bunching just above the threshold confirms the mechanism. |
| Guardrail | Margin and subsidy per order, cancellations, wait times and supply-side health, support tickets and refunds, fraud or abuse, post-promo retention | Protects unit economics and the marketplace, and catches demand being pulled forward. |
Keep measuring after the promo ends. A lift that fades or reverses is pull-forward, not incremental value.
3. Determining sample size
Inputs
- Significance level alpha, usually 0.05 two-sided (Type I error).
- Power 1 - beta, usually 0.8 (beta is Type II error).
- Baseline mean mu and standard deviation sigma of the primary metric, estimated from recent history for the same population and window length.
- MDE delta, the smallest effect worth detecting.
- Allocation ratio. A 50/50 split minimizes the total sample.
Formula (difference in means, equal arms)
n per arm = 2 (z_{1-alpha/2} + z_{1-beta})^2 sigma^2 / delta^2
With alpha = 0.05 and power 0.8, (1.96 + 0.84)^2 is about 7.85.
Factors that change the answer
- Variance. Revenue per user is heavy-tailed: most users spend little and a few spend a lot, so n is large. Use CUPED (adjust by pre-period spend), which often removes 30-60% of variance, and consider winsorizing extreme values.
- Randomization unit and interference. User-level randomization is standard, but in a two-sided marketplace treated and control users compete for the same supply, which violates SUTVA. If that matters, use geo or time-switchback designs. Clustering inflates variance by the design effect 1 + (m - 1) rho, where m is cluster size and rho the intra-cluster correlation.
- Single-city limit. If only one city is eligible, randomize users within it. The available population caps n, which in turn fixes the smallest effect you can detect. If the whole city must be treated, use difference-in-differences or synthetic control; power then depends on the number of markets and weeks, not users.
- Duration. Run at least one full weekly cycle, preferably two or more, to cover day-of-week effects and let novelty fade. Convert n into days using eligible daily traffic.
- Multiple comparisons. Adjust alpha if several metrics or variants drive the decision.
- Peeking. Fix the duration up front or use a sequential testing procedure.
4. Interpreting a 0.5% MDE
The MDE is a relative lift: revenue per user 0.5% above control. It means that if the true lift is at least 0.5%, the test will detect it with 80% probability at alpha = 0.05. It does not mean the effect is 0.5%, and it does not mean smaller effects are impossible; they are simply likely to be missed.
Setting delta = 0.005 mu and writing CV = sigma / mu:
n per arm = 2 x 7.85 x CV^2 / 0.005^2, about 628,000 x CV^2
With a typical heavy-tailed CV of about 2, that is roughly 2.5 million users per arm, about 5 million in total. A single city may not supply that in a short window.
Implications
- n scales with 1/MDE^2. Halving the MDE to 0.25% quadruples n; doubling it to 1% cuts n by a factor of four.
- If the population is too small, you can raise the MDE, cut variance (CUPED, capping), or lengthen the test or widen the market.
- Sanity-check the MDE against economics. It should be close to the break-even lift, where incremental revenue covers the subsidy and campaign cost. If break-even is 3%, a 0.5% MDE wastes traffic. If break-even is 0.2%, the test is underpowered for the decision it must support.
5. Observed +0.3%, not significant
Interpretation
- The point estimate is positive but the confidence interval includes zero, so you cannot reject "no effect".
- This is absence of evidence, not evidence of absence.
- The test was powered for 0.5%. For a true 0.3% effect, power is only around 35-40%, so missing it is likely.
- The interval probably spans both zero and 0.5%, so you cannot confirm the effect and you cannot rule out the target either.
Checks before concluding
- Sample ratio mismatch between arms.
- The test ran for its planned length with no early stopping.
- Data quality and logging problems.
- Diagnostics: threshold bunching, order frequency.
- Guardrails: margin and post-promo retention.
Message to the product manager (lead with the decision, not p-values):
"Revenue is up 0.3%, but that is within noise. The 95% CI is roughly -0.2% to +0.8%, so we cannot confirm the promo works and cannot rule out the 0.5% we hoped for. Even if 0.3% is real, it is below the lift we said justifies the subsidy. Options: (1) do not roll out as is; (2) rerun with more power through a longer test or CUPED; (3) redesign the offer, for example a different threshold or targeting segments where the diagnostics show response."
Common mistakes
- Reporting 0.3% as a win or as proof of no effect.
- Using gross rather than net-of-subsidy revenue as the primary metric.
- Treating the MDE as the expected effect.
- Forgetting that halving the MDE quadruples the sample.
- Ignoring interference and post-promo effects.