KatInterview

Geo Rollout Analysis: DiD, Segmented Regression & Power

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsdifference-in-differencescausal-inferenceexperimentation

Last updated

Design a full causal analysis for a two-state feature launch — compute DiD estimates, build a segmented time-series model, set guardrails, and size the experiment.

Geo Rollout Diagnosis

Your team ships a redesigned signup flow on 2025-07-15, but only to users in Texas and Florida. A week after launch, leadership flags a line chart showing a 3% drop in nationwide DAU and asks whether the new flow caused it.

You have 30 days of pre-period data (2025-06-15 – 2025-07-14) and 31 days of post-period data (2025-07-15 – 2025-08-14). The table below shows the daily-average DAU for each group:

GroupPre-period avgPost-period avg
Texas500k515k
Florida300k303k
All other states (control)2,000k2,060k

The chart also shows a clear weekend trough pattern, a suspicious step-change around 2025-07-20, and elevated noise starting 2025-07-27 that coincides with a large marketing campaign run in California.

Answer each of the following:

  1. Estimand and formula. What causal quantity are you estimating? Write the difference-in-differences (DiD) formula explicitly, justify whether to use levels or logs, and state the identification assumptions.

  2. Compute the DiD. Calculate the DiD for Texas alone, Florida alone, and the two states combined (population-weighted). Interpret the sign, magnitude, and what a naïve level comparison would get wrong.

  3. Segmented time-series model. Write a regression equation that quantifies the immediate level shift and the slope change at rollout for treated versus control states. Explain how you handle the weekend pattern, the 07-20 break, and why standard OLS standard errors are inadequate here.

  4. Guardrail metrics. Propose at least three guardrails beyond DAU. For each, define a concrete threshold and say whether the test is one-sided or two-sided.

  5. Power and experiment duration. The two treated states together average 815k DAU/day. You want to detect a 0.5% relative change in DAU with α = 0.05 and 80% power. Estimate the required post-period length, state your key assumptions, and explain whether CUPED or synthetic controls would shorten that duration.

  6. Parallel trends and spillover. Describe how you would validate the parallel trends assumption and how you would build or validate a donor pool given the California campaign starting 07-27.

  7. Recommendation. Give a concise go/no-go recommendation and list the specific additional data you would request before acting on it.

Hints

Hint 1

The treated states together are less than 30% of national DAU — work out what a −6k DAU/day effect means as a share of the national total before accepting the exec's 3% framing at face value.

Hint 2

With only two treated units, cluster-robust standard errors are unreliable. Think about randomization inference or a wild cluster bootstrap as alternatives, and what that implies for your confidence in any p-value you report.

Hint 3

The 0.5% MDE sounds small, but the binding constraint on experiment length is the day-to-day macro volatility of the log-ratio ln(Y_TX+FL / Y_control), not sampling noise. Estimate that σ first, then plug it into the power formula.