KatInterview

Causal inference without randomization and A/B/C test analysis

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentscausal-inferenceexperimentationmultiple-testing

Last updated

Estimate treatment effects using observational methods when experiments are infeasible, then analyze a three-arm conversion test with proper uncertainty and multiple-comparison handling.

Part A — Estimating treatment effects without randomization

You work as a senior data scientist on a product initiative—a new feature, policy adjustment, or model deployment. Leadership needs to understand the causal effect of this change on key metrics, but running a controlled experiment is not an option due to regulatory requirements, technical constraints, or the need for immediate full rollout.

Your task:

  1. Design a complete approach to estimate the causal impact using non-experimental data. You may incorporate machine learning for counterfactual prediction if suitable.

  2. Your proposal must include:

    • The estimand: precisely define what you are measuring (e.g., average treatment effect on the treated, incremental metric lift per user per day).
    • Assumptions necessary for causal identification from observational data.
    • Threats to validity: confounding sources, selection mechanisms, interference patterns, data quality issues, temporal effects, and other failure modes.
    • Validation strategy: how you will test the robustness of your estimates using placebo tests, sensitivity checks, held-out validation, or other diagnostic techniques.
  3. Discuss how you distinguish transient effects from sustained impact, and what additional information or modeling would help separate short-run dynamics from long-run outcomes.


Part B — Three-arm experiment and post-launch forecasting

You conducted an online test comparing three treatments (call them A, B, and C). The success metric is conversion rate, calculated as:

conversion_rate = purchases / visits

Each visit is independent, and at most one purchase occurs per visit.

Observed data:

  • Treatment A: 150 visits, 43 purchases
  • Treatment B: 200 visits, 48 purchases
  • Treatment C: 100 visits, 15 purchases

Questions:

  1. Which treatment performs best?

    • Calculate point estimates of conversion rate for each arm.
    • Quantify uncertainty using appropriate confidence or credible intervals.
    • Handle multiple comparisons correctly when deciding among three options.
  2. After selecting a winner and launching it to all traffic, how do you forecast future conversion rates?

    • Describe a principled statistical method to produce a forecast with an uncertainty interval.
    • Identify factors that could cause the production conversion rate to diverge from the experimental result (composition shifts, seasonality, novelty decay, instrumentation differences, etc.).
    • Explain your post-launch monitoring plan: what metrics, guardrails, and alert thresholds would you establish to detect when the forecast breaks down?

Hints

Hint 1

For observational causal inference, the identification strategy should match the rollout structure—staggered adoption suggests difference-in-differences, universal launch suggests interrupted time series with ML-based counterfactuals.

Hint 2

With three variants, naively doing three pairwise t-tests inflates your false positive rate. Use Bonferroni, Holm, or Bayesian posterior probabilities to account for multiple comparisons.

Hint 3

Post-launch conversion rates often differ from experiment results due to changes in user composition, time-of-day mix, novelty effects wearing off, or concurrent product changes. Build a monitoring framework that separates signal from noise.