Experiment Plan for a Shareable Playlists-Style Collections Feature
Statistics & ExperimentsModel answerLast updated
Plan an experiment for a shareable collections feature on a social app: metrics, randomization with spillover, sample size, stopping rules, logging, revenue estimate, and no-launch reasons.
A social photo and video app is about to test a new version of its Collections feature. Users can curate posts into collections and share them with others, and the goal is to raise creator activity and creator earnings. You are the data scientist asked to plan the experiment and the launch decision.
Cover the following areas.
1. Metrics
- State a one-line mission for the feature.
- Name one North Star metric for engagement and one for revenue.
- List at least three counter (guardrail) metrics that protect user experience and platform integrity.
2. Experiment design
- Choose between user-level randomization and geo-clustered randomization. Justify the choice given that sharing creates spillover between users.
- Propose a stratification scheme based on deciles of a pre-period engagement score, and describe the randomization and ramp-up plan.
- The baseline 30-day retention (D30) is 30%, and you want to detect a 1% relative lift with 90% power at a two-sided alpha of 0.05. Compute the sample size per arm, and state your formula and assumptions.
- Define stopping rules, what you would pre-register, and example guardrail thresholds (for instance crash rate and time spent).
3. Measurement and decision
- Write a logging spec and explain how you would attribute revenue.
- Assume 100 million DAUs, 4 ad impressions per DAU per day, a 1% CTR, and $0.50 revenue per ad click. Estimate the weekly incremental revenue if the feature raises ad clicks by 2%. Include sensitivity analysis and uncertainty bands.
- List reasons you might still decline to launch after a statistically significant win, including feasibility and long-term costs.
Hints
Hint 1
Sharing means a treated user can expose a control user. Ask what that does to the estimated effect, and whether a cluster-level design or a comparison of two designs could help.
Hint 2
For the proportions formula, compute the variance term as p1(1-p1)+p2(1-p2) with p2 = 0.303, and use z values of 1.96 and 1.2816. Remember that D30 can only be read 30 days after the last user enrolls.
Hint 3
For revenue, first compute the baseline (DAU x impressions x CTR x price) per day, then apply the 2% lift and multiply by 7. Vary the lift, the share of users actually exposed, and whether the lift is partly cannibalized from other surfaces.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Framing
Four things matter here: metrics tied to a mission, awareness that a shareable feature breaks the independence assumption, correct arithmetic, and the judgment to say "do not ship" despite a significant result. State your assumptions as you go.
1. Metrics
Mission: help creators turn curation into an audience and an income.
North Stars
- Engagement: Weekly Engaged Creators, meaning creators who made or shared a collection that got at least one interaction (open, save, share) from a different account that week. It rewards value on both sides, not just creation.
- Revenue: total revenue per DAU (ads plus creator monetization such as affiliate links), compared per user across arms, not per surface.
D30 retention is the main decision metric for the test. The other two are co-primary, with a Holm correction for multiplicity.
Counter metrics
- Time spent and sessions for non-creator viewers, to catch feed degradation from collection spam.
- Integrity: reports, hides, unfollows, and notification opt-outs per 1k collection views, plus the prevalence of violating content in shared collections.
- Technical health: crash rate, p95 load latency, app-start time.
- Ad experience: ad hides and negative feedback.
- Cannibalization: creation on other surfaces (Reels, Posts).
- Share of reach going to small and new creators.
2. Design
Interference. When a treated user shares a collection with a control user, control gets exposed. This dilutes the effect, and it also means treated creators may draw attention away from control creators, which inflates it. SUTVA fails in both directions.
- User-level: high power and a fast read, but biased for share-driven and creator-economy outcomes.
- Geo or graph-cluster: contains most sharing inside a cluster and captures the total effect, at the cost of far fewer units, lower power, and imbalance between regions.
Recommendation: use cluster randomization for the launch decision. Run a user-level test alongside it for mechanics such as funnels and crashes. The gap between the two estimates is a direct measure of spillover.
Stratification
- Build a 28-day pre-period engagement score (a weighted z-score of sessions, time spent, posts, shares) and cut it into deciles.
- User-level: block-randomize 50/50 within each decile via
hash(user_id, salt) mod 100. - Cluster-level: rank clusters by mean engagement decile and size, form matched pairs, and randomize within pairs.
- Analyze with CUPED using the pre-period score. This typically cuts variance 30-50%.
Ramp
| Stage | Exposure | Duration | Purpose |
|---|---|---|---|
| 0 | Employees | ~1 week | Bugs, logging checks |
| 1 | 1% | 3+ days | Crashes, latency, SRM |
| 2 | 5% | ~1 week | Guardrail read |
| 3 | 25-50% | 5+ weeks | Powered primary read |
| 4 | ~95% plus 5% holdout | 3-6 months | Novelty decay, long-run effect |
3. Sample size for D30
Assumptions: two-sided alpha 0.05, power 90%, equal arms, independent users, p1 = 0.30, p2 = 0.303, so delta = 0.003.
$$n=\frac{(z_{1-\alpha/2}+z_{1-\beta})^2,[p_1(1-p_1)+p_2(1-p_2)]}{\delta^2}$$
- (1.96 + 1.2816)^2 is about 10.51
- Variance term: 0.2100 + 0.2112 = 0.4212
- n = 10.51 x 0.4212 / 0.000009, which is about 492,000 per arm (about 984k total)
from scipy.stats import norm
p1, p2 = 0.30, 0.303
z = norm.ppf(0.975) + norm.ppf(0.90)
n = z**2 * (p1*(1-p1) + p2*(1-p2)) / (p2-p1)**2 # ~491.7k
Adjustments
- Cluster design effect DE = 1 + (m-1)·ICC. With ICC = 0.001 and m = 10,000, DE is about 11, so roughly 5.4M users per arm across many clusters.
- CUPED with correlation rho divides the requirement by about (1 - rho^2).
- D30 needs 30 days after the last enrollment, so plan an enrollment window of 1-2 weeks plus 30 days.
4. Stopping rules and guardrails
Pre-register: hypotheses, primary and secondary metrics, unit and strata, analysis model (CUPED, cluster-robust SEs), MDE and duration, multiplicity handling, exposure definition and exclusions.
Rules
- Efficacy: fixed horizon, no peeking at the primary metric.
- Harm: daily sequential monitoring of guardrails (O'Brien-Fleming spending or mSPRT). Stop early for harm only.
- SRM: daily chi-square on assignment counts. If p < 0.001, halt and debug.
Example thresholds: crash rate up no more than 2% relative; viewer time spent non-inferior within -0.5%; p95 latency up no more than 50 ms; reports/hides per 1k views up no more than 5%; ad negative feedback up no more than 3%.
5. Logging and attribution
- Exposure event
collections_eligible_exposure, logged in both arms when a user reaches a surface where the feature would render (counterfactually in control). This defines the triggered population. - Common fields: user_id, experiment_id, variant, cluster_id, stratum, session_id, timestamp, platform, app_version, surface.
- Feature events: collection_create, item_add, share (share_id, recipient_id, channel), open (referrer_share_id), save, affiliate_click (collection_id, creator_id).
- Ads events: ad_impression (impression_id, ad_id, position, surface), ad_click (impression_id), conversion (click_id, value).
Attribution: the primary analysis is intent-to-treat on total revenue per user across all surfaces, which captures incrementality and cannibalization. Last-touch on the Collections surface would overstate the gain. Use the share_id to open to impression/click chain only as a diagnostic decomposition.
6. Weekly revenue estimate
Baseline (assuming the 4 impressions are per day)
- 100M x 4 = 400M impressions/day
- x 1% CTR = 4M clicks/day
- x $0.50 = $2.0M/day, or $14M/week
Incremental at +2% clicks: $40k/day, so about $280k/week (about $14.6M annualized).
Sensitivity
| Scenario | Weekly incremental |
|---|---|
| Lift 1% | $140k |
| Lift 3% | $420k |
| Lift 2%, only 30% of DAU eligible | ~$84k |
| Lift 2% but 25% cannibalized from other surfaces | ~$210k |
Uncertainty: take the confidence interval on the click lift from the experiment, say 2% ± 0.5%, giving roughly $210k-$350k, and widen it for novelty decay (lift often shrinks 20-40% after the first weeks) and for CPM or price changes. Report a range with the assumptions, not a single point.
7. Reasons not to launch despite a significant win
- Practical significance: the lift is smaller than the cost of running and maintaining the feature.
- Guardrail erosion: small but real harm to integrity, ad experience, or small creators.
- Novelty effect: the lift decays in the holdout.
- Cannibalization: gains on this surface are offset elsewhere, so total revenue is flat.
- Feasibility: storage, fan-out and ranking cost, latency at full scale, and on-call burden.
- Moderation and legal risk: shared collections enlarge the abuse surface and the review load.
- Metric multiplicity or a validity problem: a fragile result, an SRM, or logging bugs.
- Opportunity cost: engineering time that could earn more elsewhere.
Common mistakes
- Ignoring spillover and trusting a user-level estimate for a sharing feature.
- Computing the sample size on the absolute rather than the relative lift.
- Forgetting the 30-day maturation window for D30.
- Attributing revenue by last touch.
- Declaring victory on a p-value without effect size, guardrails, or durability.