KatInterview

Detecting Structural Shifts, Building Counterfactuals, and Testing Interventions

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentstime-serieschange-point-detectionab-testing

Last updated

Detect structural shifts in time-series data, construct counterfactual predictions under non-stationary patterns, and design spillover-resistant validation experiments.

Scenario

Imagine you are a Data Scientist at a streaming platform. Over the past three weeks, you observe a continuous, unexplained 15% decrease in the daily rate of new paid user sign-ups. The metric exhibits distinct weekly periodicity (weekend peaks) and experiences temporary surges driven by promotional marketing campaigns.

Tasks

  1. Structural Change-Point Detection: Detail a statistical method to prove that a structural shift occurred at a given date, rather than attributing the decline to random fluctuation or seasonal patterns.
  2. Counterfactual Modeling: Assuming a platform update deployed three weeks ago is suspected of causing this drop, outline a framework for building a counterfactual forecast to project expected sign-ups had the update not been deployed.
  3. Experimental Validation Strategy: Formulate an experimental plan to confirm whether rolling back the suspect update will recover the lost sign-ups, taking into account potential interference across users.

Requirements

  • Explicitly model non-negative integer count data with multiplicative seasonality.
  • Account for potential interference or network spillovers between treatment and control units in your experimental design.

Hints

Hint 1

Consider generalized linear models (such as Negative Binomial) with a log link function to naturalize multiplicative seasonal effects into additive regression terms.

Hint 2

When testing for an unknown break point tau, standard asymptotic chi-squared distributions do not apply; look into sup-likelihood ratio tests or CUSUM procedures on standardized residuals.

Hint 3

Address interference (SUTVA violations) using cluster-randomized designs (e.g., Designated Market Areas) or randomized saturation methodologies rather than simple individual-level randomization.