Metrics, Experiment Design and Sample Sizing for a Consumer App
Statistics & ExperimentsModel answerLast updated
Choose a consumer app, model a new revenue stream, define metrics, prioritize an improvement, size an A/B test for a 15% to 17% conversion lift, and defend its cost.
Choose a consumer mobile or web app you know well, and assume the interviewer has never used it. Walk through the following six parts.
-
Product framing. Describe the product, the main jobs users hire it to do, the key audience segments, and its three closest competitors. Say what sets it apart from each.
-
Revenue and unit economics. List every current revenue stream with rough per-unit economics. Propose one new stream and build a six-month ROI model for it.
-
Metrics. For the new stream, define three success metrics that an analyst could compute without asking you anything. Give each a numerator, a denominator, and event and time-window definitions. Add two guardrail metrics with explicit thresholds.
-
Product improvements. List six concrete improvements to the app. Pick one to ship first and justify the choice.
-
Experiment design. Design an A/B test for the chosen improvement. Cover the unit of randomization, eligibility and exclusions, assignment, and bias mitigations. Then compute the minimum sample size and test duration using:
- 500,000 daily active users
- baseline purchase conversion of 15% per user-day
- expected absolute lift of +2.0 percentage points
- 80% power, two-sided alpha of 5%, 1:1 split
State your assumptions and show the formula.
-
Defending the cost. Finance says the improvement is too expensive. Present a cost-benefit model and a breakeven point. Say what you would decide if, after two weeks, the observed lift is below the lift you powered the test for.
Hints
Hint 1
Pick an app whose money flow you can explain in a few lines. Keep every dollar figure labelled as an assumption and finish with a downside case.
Hint 2
A computation-ready metric names the exact events, the window, who is in the denominator, and who is excluded. If an analyst could not write the query from your definition, it is not precise enough.
Hint 3
For two proportions, use p1 = 0.15, p2 = 0.17, pbar = 0.16, z = 1.96 and 0.8416. The answer is roughly 5,300 users per arm. Then ask what actually determines how long the test must run.
Hint 4
The MDE is a power-planning input, not a ship threshold. For part 6, compare the confidence interval of the observed lift with the breakeven lift implied by costs and contribution per conversion.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
I use a hypothetical language-learning app as the running example. All figures are illustrative, and I would say so out loud.
1. Product framing
The app teaches languages through short daily lessons, with a free tier and a paid tier.
- Jobs to be done: build a daily habit, prepare for a trip or exam, and feel measurable progress.
- Segments: casual hobbyists (high churn, free tier), goal-driven learners (exam or relocation, most willing to pay), and students or schools.
- Competitors: a tutor marketplace (human feedback, expensive), a traditional course platform (deep content, little habit design), and a phrasebook or translation app (instant utility, no learning path). The differentiator is low-friction habit loops at a low price.
2. Revenue and unit economics
Current streams are a monthly or annual subscription, in-app purchases such as streak protection, and ads on the free tier.
Illustrative per-subscriber economics:
| Item | Per month |
|---|---|
| Subscription price | $10 |
| Store fee (about 15–30%) | −$2 |
| Content and infrastructure | −$1 |
| Contribution | about $7 |
New stream: live small-group conversation sessions sold as add-on packs.
Six-month ROI model:
- Costs: $600k build and $400k launch marketing, so $1.0M.
- Benefit: 20k average buyers × 2 incremental sessions per month × $5 contribution per session × 6 months = $1.2M. Count only incremental purchases, after removing the roughly 30% that would have been spent on other add-ons.
- ROI: (1.2 − 1.0) / 1.0 = 20%, with payback near month 5.
- Sensitivities: buyer ramp and cannibalization. Show a downside case (for example 12k buyers gives negative ROI) so the decision is honest.
3. Metrics
Success metrics
- Pack attach rate (28-day). Numerator: distinct users with a
pack_purchasedevent within 28 days of their firstpack_offer_viewed. Denominator: distinct users whose first offer view falls in the cohort week. Exclude test accounts. - Repeat purchase rate. Numerator: buyers with a second
pack_purchasedevent within 30 days of the first. Denominator: buyers whose first purchase is at least 30 days old. Exclude refunded purchases. - Incremental contribution per buyer-month. Numerator: contribution from buyers minus contribution from a matched or randomized holdout over the same window. Denominator: active buyer-months.
Guardrails
- Core subscription renewal rate must not fall by more than 0.5 percentage points versus control.
- Session no-show or refund rate must stay under 3%, or the new stream is hurting trust.
4. Six improvements and the first to ship
- One-tap "resume today's lesson" on the home screen.
- Streak-freeze reminders.
- Placement test to skip content that is too easy.
- Offline lessons.
- Pronunciation feedback.
- Shared goals with friends.
Ship first: one-tap resume. Use RICE:
- Reach: every returning user sees the home screen.
- Impact: it removes several taps at the moment of highest intent.
- Confidence: the behavior is already visible in logs.
- Effort: low, mostly client work.
It also moves the metric we can test cleanly, daily purchase conversion.
5. Experiment design
Unit of randomization: the user ID, not the session or user-day. This keeps the experience consistent and avoids one person seeing both variants. Because the metric is per user-day, repeated days from one user are correlated. Use cluster-robust standard errors or the delta method, or analyze one value per user.
Eligibility: logged-in users with at least one prior session. Exclude employees, bots and test accounts, and users enrolled in conflicting home-screen experiments.
Assignment: hash(user_id + experiment salt) mod 100, split 1:1. Count a user only when the home screen renders the feature slot. Log a counterfactual trigger in control at the same point so the arms are comparable.
Bias mitigations
- Run a sample-ratio-mismatch chi-square test on arm counts.
- Use CUPED with pre-period conversion to reduce variance.
- Run whole weeks, since weekday and weekend behavior differ.
- Check for novelty effects by plotting lift over time.
- Pre-register the primary metric, guardrails and analysis plan.
- Do not peek. If interim looks are required, use a sequential boundary.
Sample size. With p1 = 0.15, p2 = 0.17, δ = 0.02, pbar = 0.16, z₁₋α/₂ = 1.96 and z₁₋β = 0.8416:
$$ n=\frac{\left(z_{1-\alpha/2}\sqrt{2\bar p(1-\bar p)}+z_{1-\beta}\sqrt{p_1(1-p_1)+p_2(1-p_2)}\right)^2}{\delta^2} $$
- 1.96 × √0.2688 ≈ 1.016
- 0.8416 × √0.2686 ≈ 0.436
- (1.452)² ≈ 2.109, and 2.109 / 0.0004 ≈ 5,274 per arm, about 10,550 users in total
The simpler form (z₁₋α/₂ + z₁₋β)² × (p1q1 + p2q2) / δ² gives about 5,271, which is effectively the same.
Assumptions: independent units with one observation per user (or a small design effect after clustering), a stable baseline, and no interference between arms. If you analyze user-days over 14 days with intra-user correlation ρ, the effective sample shrinks by about 1 + (m − 1)ρ, where m is days per user.
Duration. At 500k DAU, 10,550 users is a tiny fraction of one day's traffic, so power is not the constraint. Duration is set by behavior. Run 14 days, which covers two full weekly cycles and lets you see novelty decay. A larger sample than the minimum is fine and tightens the interval. The 5,274 figure is only the floor needed to detect exactly +2 points.
6. Defending the cost
Cost-benefit model. Suppose the feature costs $400k to build and run over six months. Each incremental purchase contributes about $3.
- 1 point of lift on 500k DAU is 5,000 extra purchases per day, or $15k per day.
- Over 180 days that is about $2.7M. Apply a haircut for cannibalization (say 50%), giving about $1.35M.
- Breakeven lift = $400k / (500k × 180 × $3 × 0.5) ≈ 0.3 percentage points.
So the feature pays for itself at a lift far below the 2-point MDE we powered for.
If week-2 results are below the MDE. The MDE is a planning input, not a ship rule. At 250k users per arm the standard error of the difference is about √(0.2686 / 250,000) ≈ 0.1 point, so the 95% interval is roughly ±0.2 points. Decide by comparing that interval to breakeven:
- Lower bound above breakeven: ship.
- Interval straddles breakeven: extend the test or iterate on the design. Check segments, such as new versus returning users, for a targeted rollout.
- Upper bound below breakeven: stop and reallocate the effort.
Before acting, verify the test is healthy (SRM, logging, novelty) and that guardrails are intact.
Common mistakes
- Treating 5,274 as the required duration instead of the minimum sample.
- Randomizing by user-day or session and ignoring correlation.
- Stopping when p-values look good partway through.
- Using the MDE as the ship threshold instead of breakeven.
- Quoting ROI without cannibalization or a downside case.