Observational Causal Lift and Multi-Arm Launch Forecasting
Easy · Analytics & Experimentation · Data Scientist · Technical Screen
Prompt
Scenario 1 — Causal Lift Without a Randomized Holdout
You lead data science for an upcoming platform feature, underwriting rule, or ranking-model update. Leadership needs a credible estimate of the launch's incremental causal effect, yet running a randomized A/B test is off the table (for instance, regulatory rules require universal rollout, system architecture cannot split traffic, or business risk rules out holding users back).
- Design an end-to-end observational strategy to estimate the incremental effect of the launch (including machine-learning counterfactual models where appropriate).
- State explicitly:
- Your target estimand (population, unit, outcome, and time window).
- The identification assumptions required for a causal interpretation.
- Key threats to validity and failure modes (unmeasured confounders, self-selection, cross-user spillover, distribution shift, novelty decay, logging changes, etc.).
- Concrete falsification and validation checks you would run before trusting the estimate.
- Explain how you separate transient launch behavior from steady-state long-horizon impact, and what longitudinal signals or auxiliary models you would collect.
Scenario 2 — Three-Arm Conversion Readout and Full-Rollout Forecast
You ran a three-arm online test (Variant A, Variant B, Variant C) to maximize session conversion rate (CVR = conversions / sessions), assuming each session is an independent binary trial with at most one conversion:
- Variant A:
160sessions,52conversions - Variant B:
240sessions,66conversions - Variant C:
120sessions,21conversions
- Recommend a winning arm: report point conversion rates, construct uncertainty intervals, account for multiple hypothesis comparisons across the three arms, and justify your shipping decision rule.
- Suppose the chosen arm rolls out to
100%of production sessions. Describe how you would generate a calibrated post-rolloutCVRforecast and prediction interval, list practical reasons realized productionCVRcan diverge from experimentCVR, and outline your post-rollout monitoring, guardrails, and recalibration plan.
Scope & Expectations
- Anchor Scenario 1 in potential outcomes, match quasi-experimental or ML counterfactual designs to available untreated variation, and pair every assumption with a concrete diagnostic or placebo test.
- Analyze Scenario 2 quantitatively—checking traffic-split integrity, binomial confidence intervals, multiplicity-corrected pairwise tests, statistical power, and Bayesian expected regret.
- Construct a post-rollout forecast that accounts for selection bias (winner's curse), traffic-mix changes, seasonality, and parameter uncertainty, paired with operational guardrails and drift alerts.
Step-by-step walkthrough
Part A.1: Define the causal estimand and counterfactual
Before choosing any model, write down the exact estimand—the precise real-world quantity you want to measure—specifying the outcome metric, the user population, and the time window. Using potential outcomes notation (
Y(1)= outcome with the change,Y(0)= outcome without the change):Estimand (ATT): tau = E[ Y(1) - Y(0) | users exposed to the change, days 1..28 post-launch ] where Y = conversions per user per day- ATT (Average Treatment Effect on the Treated) measures lift among users who actually received the change.
- ATE (Average Treatment Effect) measures lift across the entire user population. When a policy launches to 100% of users simultaneously, the treated group is the whole population, so ATT and ATE are identical for that window; when adoption is partial (for example, an opt-in feature or a credit-score rule), ATT and ATE differ.
After launch we observe
Y(1)directly, whileY(0)(the counterfactual—what those same users would have done in the same weeks without the launch) is missing. Every observational causal method is a disciplined recipe for constructing a trustworthy stand-in forY(0)rather than taking a naive pre-vs-post difference that confuses seasonal swings with product lift.Part A.2: Match the causal method to the variation you have
Ask one practical question first: "Who did NOT get the change at the exact moment it launched?" Even when legal or product rules require everyone to receive a feature eventually, engineering rollouts can often be staggered by a week across regions or platforms, giving you a clean comparison group for free:
Available source of untreated variation Recommended method ---------------------------------------------------- ---------------------------------------------------- Staggered rollout across regions / platforms / weeks Difference-in-Differences (DiD) / Event Study One treated market, several untreated donor markets Synthetic Control (weighted donor blend) 100% simultaneous launch, long stable pre-period Interrupted Time Series (ITS) + ML counterfactual Change triggered by crossing a numeric cutoff score Regression Discontinuity Design (RDD) Users self-select into adopting, rich pre-launch logs Propensity Weighting / Doubly Robust (AIPW) Random nudge encourages (but doesn't force) adoption Instrumental Variables (IV)Walk through two concrete numeric designs:
1. Difference-in-Differences (when rollout is staggered): Subtract the untreated region's pre-to-post shift from the treated region's pre-to-post shift so shared macro trends cancel out:
Pre-launch Post-launch Change Treated region 2.0 2.6 +0.6 conversions / user / week Comparison region 1.8 2.1 +0.3 (absorbs seasonality & macro trend) ----------------------------------------------------------------------------------- DiD causal lift = (+0.6) - (+0.3) = +0.3 conversions / user / weekFit unit and time fixed effects with unit-clustered standard errors (using modern staggered-adoption estimators such as Callaway-Sant'Anna so already-treated cohorts are never used as "controls" for later cohorts).
2. Interrupted Time Series with an ML counterfactual (when 100% launch at once): Train a time-series or gradient-boosted / Bayesian structural model on pre-launch data to predict daily conversions from unaffected covariates (day-of-week, holidays, macroeconomic indices, or metrics in unaffected sister products), then freeze the model at launch to predict
Y(0):Days 1..28 post-launch (100,000 active users): Observed actual Y(1) = 84,000 conversions ML-predicted baseline Y(0) = 80,000 conversions Estimated incremental lift = +4,000 conversions (+5.0%, or +0.00143 conversions/user/day) Uncertainty from 20 pre-period backtest windows (each 28 days long, true lift = 0): Backtest 28-day error SD = 1,200 conversions 95% interval ≈ 4,000 ± 1.96 * 1,200 = [+1,648, +6,352] conversions (+2.1% to +7.9%)Part A.3: State identification assumptions, biases, and validation checks
Causal claims rest on explicit identification assumptions (conditions that cannot be proven from formulas alone and must be defended with domain checks):
- SUTVA (no interference & consistency): One user's outcome does not depend on whether another user got the change. Shared inventory or two-sided marketplaces violate this when one buyer claims limited stock from another.
- Parallel trends (DiD) / Structural stability (ITS & Synthetic Control): Absent the launch, treated units would have continued tracking the comparison group or pre-period predictor relationship, with no concurrent shock landing on launch day and no anticipation altering behavior before launch.
- Unconfoundedness and positivity/overlap (Propensity / AIPW): Conditioning on pre-treatment covariates removes hidden differences between adopters and non-adopters, and every user profile has a strictly non-zero chance of both states (
0 < P(treated | X) < 1).
Major biases and failure modes:
- Concurrent-event confounding: A marketing sale, price change, holiday, or competitor outage launches the same week.
- Selection bias: Power users opt into a new feature first; comparing them to non-adopters credits pre-existing enthusiasm to the feature.
- Post-treatment control leakage ("bad controls"): Feeding post-launch session counts into the ML counterfactual when the feature itself boosts sessions explains away part of the true causal effect.
- Regression to the mean (Ashenfelter's dip): Policies shipped right after an unusually bad week look successful simply because metrics bounce back toward normal.
- Instrumentation drift: A logging schema change deployed alongside the feature alters how purchases are counted.
Validation toolkit (falsification before trusting the number):
- In-time placebo backtests: Pretend the launch happened 8 weeks and 16 weeks before the real launch; estimated 28-day lifts should sit near
0inside the backtest error band. - Placebo units & negative-control outcomes: Run the pipeline on an unaffected product line or an outcome the change cannot plausibly move (such as password-reset emails); non-zero "lift" flags a hidden shock at launch.
- Pre-trend event study: Plot weekly estimated gaps for weeks
-8..-1before launch; systematic pre-launch drift invalidates parallel trends. - Sensitivity analysis (E-value): Quantify how strong an unmeasured confounder would need to be to erase the estimate. For an observed risk ratio
RR = 1.30,E-value = RR + sqrt(RR * (RR - 1)) = 1.30 + sqrt(0.39) ≈ 1.92, meaning a hidden confounder would need nearly a2xassociation with both exposure and purchasing to reduce the true lift to zero.
Part A.4: Separate short-term novelty from long-term impact
A single 28-day average blends early curiosity (novelty effect) or change aversion (primacy effect) with steady-state behavior. Instead, estimate lift dynamically by time since first exposure:
Week since exposure: Week 1 Week 2 Week 3 Week 4 Estimated lift (%): +8.0% +5.0% +3.5% +3.0% (flattening near +3%) Raw 4-week average = +4.9% (overstates the +3.0% steady state!)To measure long-term impact reliably, combine four ingredients:
- Exposure-cohort tracking: Group users by the week they first saw the change (
Cohort W1,Cohort W2, ...) so per-user habituation is separated cleanly from changes in incoming user mix over calendar time. - Delayed / downstream metrics: Track repeat purchases, churn, refunds, or credit performance (in consumer lending, for instance, true loan repayment or default takes months to materialize after origination).
- Surrogate index modeling: Train a historical model predicting 6-month value from validated early behaviors (such as 14-day repeat engagement and order quality). This requires the surrogacy assumption—that the product change affects long-term outcomes through those measured short-term signals rather than bypassing them.
- Small persistent holdback (if policy permits): Even a 1–2% long-term holdback group provides direct ground truth as counterfactual model forecast errors widen over months.
- Exposure-cohort tracking: Group users by the week they first saw the change (
Part B.1: Point estimates and uncertainty intervals for A, B, and C
In Scenario 2, each session is an independent Bernoulli trial with
CVR = conversions / sessions:- Variant A:
52 / 160 = 0.3250(32.5%) - Variant B:
66 / 240 = 0.2750(27.5%) - Variant C:
21 / 120 = 0.1750(17.5%)
Sanity check #0 — Sample Ratio Mismatch (SRM): Notice the session counts are
160,240, and120(520total). If the experiment was intended to be an equal1/3 : 1/3 : 1/3split (173.3each), a chi-square goodness-of-fit test giveschi2 = 43.08(p ≈ 4.4e-10)—a severe SRM indicating broken randomization or dropped logging that must be investigated before trusting any lift! Only if4 : 6 : 3allocation was intentional do we proceed directly.For
n = 120..240, we quantify single-arm uncertainty with the 95% Wilson score interval (which stays accurate at moderatenand asymmetric proportions, unlike the textbookp ± 1.96 * sqrt(p*(1-p)/n)Wald formula):import math arms = {"A": (52, 160), "B": (66, 240), "C": (21, 120)} Z = 1.96 def wilson_ci(successes: int, n: int, z: float = Z): """Return the 95% Wilson score confidence interval for a binomial proportion.""" p = successes / n denom = 1.0 + (z * z) / n center = (p + (z * z) / (2.0 * n)) / denom half_width = z * math.sqrt((p * (1.0 - p)) / n + (z * z) / (4.0 * n * n)) / denom return center - half_width, center + half_width for arm, (conversions, sessions) in arms.items(): lo, hi = wilson_ci(conversions, sessions) print(f"Variant {arm}: CVR = {conversions / sessions:.3f}, 95% Wilson CI [{lo:.3f}, {hi:.3f}]")Variant A: CVR = 0.325, 95% Wilson CI [0.257, 0.401] Variant B: CVR = 0.275, 95% Wilson CI [0.222, 0.335] Variant C: CVR = 0.175, 95% Wilson CI [0.117, 0.253]- Variant A:
Part B.2: Pairwise comparisons, multiple testing, and picking a winner
Overlapping single-variant intervals (
A: [0.257, 0.401]vsB: [0.222, 0.335]) do not settle pairwise hypotheses—we must test the differences directly. An overall3 x 2chi-square test rejects equalCVRacross all three arms (chi2 = 8.01,2df,p = 0.018). Running two-sided pooled z-tests (with unpooled 95% CIs on the differences) gives:Comparison Diff (CVR) 95% CI on Diff z-stat Raw p-value Holm threshold (alpha = 0.05) ---------- ---------- ----------------- ------ ----------- ----------------------------- A - C +0.150 [+0.051, +0.249] 2.83 0.0047 < 0.05 / 3 = 0.0167 (PASS) B - C +0.100 [+0.012, +0.188] 2.09 0.0367 > 0.05 / 2 = 0.0250 (STOP) A - B +0.050 [-0.042, +0.142] 1.07 0.2827 nsControlling multiple comparisons: Testing three pairs at
alpha = 0.05each inflates the family-wise false-positive rate to~12%. Applying the Holm-Bonferroni step-down procedure sorts the raw p-values (0.0047, 0.0367, 0.2827) and compares them sequentially to0.05/3 = 0.0167,0.05/2 = 0.0250, and0.05/1 = 0.0500. Notice how multiplicity adjustment changes the verdict: Variant A clearly beats Variant C (p = 0.0047 < 0.0167), B vs C (p = 0.0367 > 0.0250) fails after correction even though naivep < 0.05would pass it, and A vs B (p = 0.283) is statistically unresolved—resolving a5.0-percentage-point gap (32.5%vs27.5%) at80%power requires~1,317sessions per arm (~1,757after multiplicity adjustment), roughly7xour current sample!Decision rule (frequentist + Bayesian expected loss): With a uniform
Beta(1, 1)prior, posteriors areA ~ Beta(53, 109),B ~ Beta(67, 175), andC ~ Beta(22, 100):import numpy as np rng = np.random.default_rng(0) draws = np.vstack([ rng.beta(53, 109, 200_000), # Variant A posterior draws rng.beta(67, 175, 200_000), # Variant B posterior draws rng.beta(22, 100, 200_000), # Variant C posterior draws ]) prob_best = np.bincount(draws.argmax(axis=0), minlength=3) / draws.shape[1] expected_loss = (draws.max(axis=0) - draws).mean(axis=1)Variant A: P(best) = 85.9%, Expected CVR regret if shipped = 0.33 percentage points Variant B: P(best) = 14.0%, Expected CVR regret if shipped = 5.37 percentage points Variant C: P(best) = 0.1%, Expected CVR regret if shipped = 15.01 percentage points- If A, B, and C have equal engineering cost and risk and you must ship now, pick Variant A (highest point estimate,
85.9%chance of being best, tiny0.33-point expected regret). - If B is the battle-tested control and switching to A carries engineering or UX cost, drop C immediately and continue running A vs B until
~1,317sessions/arm.
- If A, B, and C have equal engineering cost and risk and you must ship now, pick Variant A (highest point estimate,
Part B.3: Forecast post-rollout CVR with shrinkage, mix, and seasonality
Shipping Variant A to 100% of traffic will not simply deliver
32.5%forever. Build a calibrated post-rollout forecast and 95% prediction interval in four steps:- Shrink for the winner's curse (selection bias across arms): Because we picked A because it topped three noisy arms,
32.5%is slightly upward-biased. An empirical-Bayes (hierarchical Beta-Binomial) shrinkage step compares A's sampling variance (0.325 * 0.675 / 160 = 0.00137) to the estimated true variance across arms (0.00583 - 0.00113 = 0.00470), pulling A23%of the way toward the three-arm mean (25.8%):0.325 - 0.23 * (0.325 - 0.258) ≈ 0.310(31.0%). - Post-stratify for traffic-mix shifts: Reweight segment-level conversion rates (
p_{A, seg}) by forecasted post-rollout segment shares (w_{post, seg}):
Suppose Variant A converts returning users at 40% and new users at 25%: Experiment mix (50% returning / 50% new): 0.50 * 0.40 + 0.50 * 0.25 = 32.5% Post-rollout ad push (30% returning / 70% new): 0.30 * 0.40 + 0.70 * 0.25 = 29.5% (-3.0 pts!)- Anchor to a seasonal baseline: Fit a daily time-series model (weekday, monthly seasonality, holidays) on historical baseline
CVR, and apply Variant A's shrunken relative lift (CVR_A / CVR_baseline) to that seasonal curve rather than projecting a flat horizontal line. - Propagate all three uncertainty sources via Monte Carlo:
- Posterior parameter uncertainty (
SD ≈ 0.037from only160sessions—by far the dominant term on Day 1!), - Day-to-day overdispersion (historical random day effects
sigma_day), - Daily binomial sampling noise (
sqrt(0.31 * 0.69 / 10,000) ≈ 0.0046at10,000sessions/day). Drawingp_Afrom the shrunken posterior and simulating daily conversions yields a wide initial 95% prediction interval of roughly[24%, 38%]([26%, 40%]unshrunk), driven almost entirely by the160-session parameter uncertainty.
- Posterior parameter uncertainty (
- Shrink for the winner's curse (selection bias across arms): Because we picked A because it topped three noisy arms,
Part B.4: Why rollout differs from test, and post-rollout monitoring
Key reasons 100%-rollout CVR diverges from experiment CVR:
- Winner's curse (picking the luckiest noisy arm),
- Traffic-mix & channel shifts (weekday vs weekend, paid-ad campaigns bringing lower-intent visitors),
- Seasonality, holidays, and macro shifts,
- Novelty decay (curiosity clicks fading) or primacy effects (existing users learning a new UI),
- 100%-scale system effects (slower page latency under full load, inventory stockouts, ML recommendation models retraining on new click patterns),
- Concurrent launches or logging/instrumentation bugs.
Post-rollout monitoring and recalibration plan:
- Forecast fan chart & drift alerts: Plot realized daily
CVR(overall and by segment) against the 95% predictive band; trigger automated alerts on single-day extreme breaches or CUSUM (cumulative sum) persistent downward drift. - Guardrail dashboard: Pair
CVRwith revenue per session, average order value, refund/cancellation rate, page latency, and client error rate so conversion gains never mask broken checkout quality. - Temporary 5% holdback: Keep
5%of traffic on the prior experience for 2–4 weeks so you can immediately tell "macro conversion dropped 4% everywhere" apart from "Variant A stopped working." - Bayesian recalibration: Update Variant A's posterior daily as production sessions arrive—just one day of
10,000sessions shrinks parameter standard error from3.7percentage points down below0.5percentage points!
Intuition & how it works
Think of causal inference without a randomized experiment like figuring out how much faster new running shoes made an athlete when you could not run a controlled time trial: you reconstruct the missing counterfactual (what that runner's clock time would have been without the new shoes) by comparing against teammates who ran on the same windy track that afternoon. Then, in Scenario 2, picking a winning variant from 120–240 sessions and forecasting its 100%-rollout conversion rate is like judging three baseball hitters after only one month of at-bats: the leader probably has real skill, and probably benefited from a bit of good luck that will cool slightly over a full season.
Naive approaches fail sharply in both halves. In Scenario 1, taking a simple before-versus-after difference credits normal holiday or seasonal tailwinds to your rollout, while throwing post-launch engagement variables into an ML model accidentally subtracts out part of your own feature's lift. In Scenario 2, eyeballing 32.5% > 27.5% ignores wide small-sample uncertainty, inflated false positives across multiple pairwise tests, suspicious traffic splits, and the winner's curse (the upward statistical bias that occurs whenever you select whichever arm happened to land highest in a noisy sample).
Walk through concrete numbers to see both parts end to end:
- Scenario 1 (Staggered Difference-in-Differences): Suppose a treated region rises from
2.0to2.6conversions/user/week (+0.6) while an untreated comparison region rises from1.8to2.1(+0.3) over the exact same weeks. Subtracting the shared+0.3seasonal wave isolates+0.3incremental conversions/user/week—validated by checking that pre-launch weeks moved in parallel (~0gap). - Scenario 2 (A/B/C choice & forecast): Variants A (
52/160 = 32.5%), B (66/240 = 27.5%), and C (21/120 = 17.5%) first trigger a Sample Ratio Mismatch (SRM) check (a statistical test verifying observed session counts match the intended split;160:240:120hasp ≈ 4.4e-10if1:1:1was intended!). Assuming unequal allocation was intentional, Holm-Bonferroni (a sequential p-value adjustment that caps the chance of making any false-positive claim across multiple tests) confirms A beats C (p = 0.0047 < 0.0167), rejects naive significance on B vs C (p = 0.0367 > 0.0250), leaves A vs B unresolved (p = 0.283), gives A an85.9%Bayesian chance of being best, and shrinks A's raw32.5%toward~31.0%for post-rollout forecasting.
Key points
- Pin down the estimand before picking a model: State the unit, population, and horizon—such as ATT (Average Treatment Effect on the Treated, the mean lift
E[Y(1) - Y(0)]among exposed users over days1..28). - Let untreated variation choose the identification design: Use Difference-in-Differences (DiD) (comparing pre-to-post changes between treated and not-yet-treated groups) when rollout can be staggered, Synthetic Control (matching a single treated unit's pre-period trajectory using a weighted blend of untreated donor units) for one treated market, Interrupted Time Series (ITS) with an ML baseline when 100% launch at once, Regression Discontinuity around a score threshold, or Doubly Robust / AIPW (combining a propensity-to-adopt model with an outcome regression so the estimate stays consistent if either model is right) for voluntary adoption.
- ML counterfactuals require strict input hygiene and backtested intervals: Every model feature must be completely unaffected by the launch, and confidence bands must come from sliding placebo backtests in the pre-period (
±2,352conversions in our 28-day example), never raw daily regression standard errors. - Validate by trying to break your own estimate: Check pre-launch parallel trends, fake launch dates, untreated placebo segments, negative-control outcomes (metrics like password resets that the launch cannot affect), and the E-value (the minimum association strength an unmeasured confounder would need with both treatment and outcome to explain away an observed risk ratio).
- Separate novelty spikes from steady-state value: Track lift by week since first exposure (
+8% -> +5% -> +3.5% -> +3%), monitor delayed outcomes (refunds, retention, loan repayment), and use a surrogate index (a historical model mapping validated early behaviors to long-run value) or a small persistent holdback. - Distinguish statistical significance from decision-making: Wilson score intervals (accurate binomial confidence intervals that behave well at small
n) giveA: [25.7%, 40.1%],B: [22.2%, 33.5%],C: [11.7%, 25.3%]; A clearly beats C, resolving A vs B (5.0points) at80%power would require~1,317sessions/arm, and Bayesian expected regret for shipping A immediately is only0.33percentage points. - Forecast with adjustments and wide-then-tightening bands: Apply empirical-Bayes shrinkage for winner's curse, post-stratification (reweighting segment conversion rates to match expected post-rollout traffic shares), and seasonal baselines, then monitor against CUSUM (a cumulative-sum control chart sensitive to small sustained drifts) and a temporary
5%holdback.
Common mistakes
- Treating raw before-versus-after lift as causal: A
+5%jump after launch proves nothing if seasonality or a concurrent marketing campaign pushed baseline demand up+5%at the same time. - Conditioning on post-treatment variables ("bad controls"): Including post-launch clicks or session counts as predictors in your counterfactual model absorbs part of the treatment's real causal pathway and biases lift downward.
- Using raw model standard errors on time-series totals: Daily conversion residuals are positively correlated across consecutive days, making naive standard errors far too narrow; always calibrate intervals on full 28-day placebo windows.
- Inferring pairwise significance by eyeballing whether single-arm 95% CIs overlap: Two independent 95% intervals can overlap slightly even when
p < 0.05for their difference—always compute the standard error ofp_A - p_Bdirectly. - Running three pairwise z-tests at unadjusted
p < 0.05or ignoring SRM: Unadjusted pairwise testing falsely passes B vs C (p = 0.037) when Holm-Bonferroni requires0.025, and an unexplained160 / 240 / 120session split invalidates randomization altogether. - Projecting Variant A's raw
32.5%as a narrow point forecast: Ignoring winner's curse, mix shift, seasonality, and the±7-point parameter uncertainty fromn = 160guarantees surprise alerts after rollout.
Follow-up questions
- Why does checking the three-arm dashboard daily and stopping as soon as p < 0.05 inflate false discoveries, and how do you fix it? Checking a fixed-horizon p-value repeatedly gives random noise dozens of chances to briefly cross
p < 0.05, inflating a nominal5%false-positive rate to15–25%+. Fix it either by locking the sample size (~1,317sessions/arm) before launch and looking once, or by using group-sequential alpha-spending boundaries (such as O'Brien-Fleming) or always-valid sequential tests (mSPRT) designed for continuous monitoring. Even with Bayesian expected loss, stopping the first instant regret dips below a threshold inflates false discoveries unless the threshold is calibrated via pre-experiment simulation. - When session volume is costly, how can pre-experiment user history reduce the sample size needed to separate Variant A from Variant B? Apply CUPED (Controlled-experiment Using Pre-Experiment Data, an unbiased linear regression adjustment using each user's pre-experiment conversion rate as a baseline covariate). If pre-experiment behavior has correlation
rhowith experiment conversion, CUPED multiplies variance by1 - rho^2—forrho = 0.5, required sample size drops by25%(~988sessions/arm instead of1,317) with zero bias because the covariate was recorded strictly before treatment assignment. - How must your variance calculation change if the primary metric becomes conversions per user across repeat sessions? Session-level Bernoulli formulas assume independent sessions, which breaks down when repeat visitors cluster multiple sessions together—ignoring within-user correlation understates standard errors and produces overconfident p-values. Switch the randomization and analysis unit to the user, or compute cluster-robust (sandwich) / delta-method standard errors for the ratio
sum(conversions) / sum(sessions)across user clusters.
Follow-up questions
- Why does checking the three-arm dashboard daily and stopping as soon as p < 0.05 inflate false discoveries, and how do you fix it?
- When session volume is costly, how can pre-experiment user history reduce the sample size needed to separate Variant A from Variant B?
- How must your variance calculation change if the primary metric becomes conversions per user across repeat sessions?
Similar questions
- Marketing Funnel Analysis and Incremental Spend Allocation
- Interpreting Conflicting Booking Metrics and Multi-Experiment Launch Gates
- End-to-End Experiment Design for Home-Feed Video Pins
- Causal Impact Identification and Multi-Variant Experiment Evaluation
- Stopping-Time Analysis for Competing Two-Toss Coin Patterns
- Exact Binomial Coin-Flip Probability
More Upstart interview questions
- Smallest Axis-Aligned Enclosing Box Easy
- Half-Life Survival, Bidirectional Regression, Door Switching, and Die Coverage Easy
- Multiply Recipe Ingredient Amounts Easy Pro
- Probability, Bayes, and Regression Metrics Medium Pro
- Optimal Sensor Fusion and 2D Random-Walk Coordinate Correlations Easy Pro
- Dining Hall Revenue With FIFO Waitlist Medium Pro
- Debiasing Household Size Probabilities From Child Surveys Easy Pro
- Alphabetical Word Frequency Counts Medium Pro
- Reconstruct Scrambled Sentences Using Endpoint and Anagram Rules Medium Pro
- Marketing Funnel Analysis and Incremental Spend Allocation Hard Pro