Experiment Plan for a Run-Loop Suggestion Feature in a Maps App
Statistics & ExperimentsModel answerLast updated
Plan a randomized experiment for a feature that suggests running loops in a maps app: choose metrics, define who enters the analysis, pick the randomization unit, set guardrails, and size the test.
Scenario
A large consumer maps application is considering a new feature that proposes running loops of a chosen length, starting from the user's current location. Product leadership wants to know whether it is worth shipping.
Task
Explain how you would decide whether the feature is valuable for users and for the business, then lay out a launch experiment. Your answer should cover:
- Value assessment before any experiment is run.
- Success metrics: one primary metric and supporting secondary metrics, with precise definitions.
- Triggering logic: who is included in the analysis, and what must be logged for both arms.
- Randomization unit and run duration.
- Guardrail metrics, including anything specific to sending people outdoors.
- Minimum detectable effect (MDE) and sample size, with explicit assumptions.
- Decision rule for launching, iterating, or stopping.
State any numbers you assume, and call out the pitfalls you would watch for.
Hints
Hint 1
Pick a metric that reflects real behavior (a run actually finished) rather than curiosity (an impression or tap), and restrict the analysis to users who had a chance to see the feature.
Hint 2
In the control arm, log a 'would have shown' event at the same decision point and with the same eligibility rules, so the two triggered populations can be compared fairly.
Hint 3
For sample size, use a binary metric such as 'at least one completed run per week' among triggered users: n per arm is roughly 2(z_alpha/2 + z_beta)^2 p(1-p) / delta^2. Then consider variance reduction with pre-period data.
Hint 4
Safety is the guardrail that matters most here, because the product routes people onto real streets. Define it concretely and decide in advance what happens if it moves.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Framing
The question has two layers: should we build this at all, and if we do, how do we run a trustworthy launch test? A strong answer ties user value to business value, measures behavior instead of clicks, triggers correctly, and treats safety as a first-class concern.
1. Is the idea worth pursuing?
- Opportunity sizing from existing logs. Count users who already search for "running trail", "park loop" or "track near me", walking sessions that start and end at the same point, and users with linked fitness accounts. If, say, 3% of weekly users show running intent, that is a large reachable population.
- User hypothesis. Runners want safe, pleasant loops of a target distance without planning them by hand. Dedicated fitness apps prove demand; the question is whether an integrated, convenient option adds value.
- Business hypothesis. Running is a habitual, several-times-a-week behavior that a maps product otherwise captures poorly. Gains would show up as engagement frequency, retention and ecosystem ties (wearables). Direct revenue is weak and long-term, and I would say so plainly.
- Offline quality check. Before exposing real users, have raters score generated routes on safety, sidewalk or path coverage, and distance accuracy. Poor route quality gates the launch regardless of any test.
2. Metrics
Primary: the share of triggered users with at least one completed recommended run per week. A completed run means the user started a suggested route, their GPS trace covered at least about 80% of it, and the pace is consistent with running. This captures delivered value, and a binary metric is easier to power and less dominated by heavy users. A count version (completed runs per triggered user) is a reasonable companion.
Secondary (diagnostic funnel):
- Impression, tap-through, route start, completion rates.
- Repeat usage, for example two or more runs in 14 days, to separate habit from novelty.
- Route ratings and "report a problem" rate.
- Overall active days and day-28 retention as the business link.
Ratio metrics (completions per start) have random numerators and denominators at the user level, so use the delta method or a bootstrap rather than a naive test.
3. Triggering and logging
Analyzing every user would dilute a real effect enormously, since most never have running intent. Analyze only users who reached a point where the suggestion could appear:
- a running-related search,
- opening walking mode with no destination or with loop intent,
- tapping an exercise shortcut.
Counterfactual logging: in control, record would_have_shown at the same decision point using identical eligibility logic. Do not trigger on treatment-only events such as "viewed a running route", which creates selection bias.
Event schema: trigger_eligible, rec_shown (route id, distance, rank), rec_tapped, route_started, route_progress (sampled GPS coverage), route_completed, route_feedback.
Validate the pipeline with an A/A test and monitor sample ratio mismatch daily.
4. Randomization and duration
- Unit: the user (account ID, with a stable device ID fallback). Running is a repeated behavior, so session-level randomization would expose one person to both experiences and muddy habit formation.
- Interference is small, with one exception: if ranking uses crowd popularity, there can be feedback loops. Consider geo-clustered holdouts for that component.
- Duration: at least 2 to 4 full weeks to cover weekly cycles (weekend peaks). Avoid unusual weather or holiday weeks. Plot the effect week by week to detect novelty, and keep a 1 to 5% long-term holdout to measure retention.
5. Guardrails
- Safety (strictest): unsafe-route reports, incident reports, share of suggested routes on roads without sidewalks or poorly lit at night, harassment or danger flags. Any increase triggers human review.
- Core product health: driving and transit navigation sessions per user, search success rate.
- Performance: latency, crash rate, battery drain during GPS tracking.
- Trust: location-permission revocations, privacy complaints, uninstalls.
Test guardrails for non-inferiority, for example "crash rate must not rise by more than 0.5% relative".
6. MDE and sample size
Assume a baseline of 30% of triggered users completing at least one run per week (plausible given demonstrated intent). Target a 5% relative lift, which is 1.5 percentage points. With alpha = 0.05 two-sided and 80% power:
n per arm ≈ 2(1.96 + 0.84)² · p(1−p) / δ² ≈ 15.7 × 0.21 / 0.015² ≈ 14,700 triggered users per arm.
With a large triggered population this is reached within days, but still run the full 2 to 4 weeks for seasonality and novelty. For count metrics, estimate variance from pre-period data and apply CUPED using pre-period walking or exercise activity as the covariate, typically cutting variance by 20 to 40%.
Derive the MDE from cost-benefit: what lift justifies the ongoing investment in route quality and safety? Do not pick it arbitrarily. If many secondary metrics are read, pre-register which are decision metrics, or apply a Benjamini-Hochberg correction.
7. Decision rule
Launch if:
- The primary metric is both statistically and practically significant.
- No safety or core-health guardrail is breached.
- Repeat usage is stable or rising rather than decaying.
If tap-through rises but completion does not, routes are unappealing or inaccurate: iterate on route quality, not the UI. Segment by urban vs. rural, region and time of day to find where it works, and consider a staged rollout.
Common mistakes
- Using clicks or impressions as the primary metric, which measures curiosity rather than value.
- Analyzing all users instead of triggered ones, which hides the effect.
- Triggering on treatment-only events, or not logging counterfactual exposure in control.
- Randomizing by session for a habitual behavior.
- Ending the test after a week and mistaking novelty for lasting impact.
- Treating safety as an afterthought rather than a launch-blocking guardrail.
- Picking an MDE with no link to business value, or ignoring multiple comparisons.