PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/Statistics & Math/TikTok

Use DiD for staggered treatment adoption

Last updated: Mar 29, 2026

Quick Overview

This question evaluates proficiency in causal inference for panel data, specifically difference-in-differences with staggered adoption, heterogeneous and dynamic treatment effects, event-study design, pre-trend diagnostics, cluster-robust inference, and comparison with propensity-score matching.

  • hard
  • TikTok
  • Statistics & Math
  • Data Scientist

Use DiD for staggered treatment adoption

Company: TikTok

Role: Data Scientist

Category: Statistics & Math

Difficulty: hard

Interview Round: Technical Screen

You are running a staggered rollout across 50 regions from 2025-06-01 to 2025-08-15 with weekly revenue per user as the outcome. Design a DiD analysis robust to heterogeneous treatment effects. Specify: (a) when two-way fixed effects (TWFE) is biased and what it identifies; (b) implement Callaway–Sant’Anna or Sun–Abraham, including group-time ATT and aggregation weights; (c) event-study setup with a proper reference period and how you’d visualize it; (d) pre-trend testing (joint F-test) and remedies if violated; (e) inference with few clusters (wild cluster bootstrap) and serial correlation; (f) how you would reconcile DiD estimates with a parallel PSM analysis.

Quick Answer: This question evaluates proficiency in causal inference for panel data, specifically difference-in-differences with staggered adoption, heterogeneous and dynamic treatment effects, event-study design, pre-trend diagnostics, cluster-robust inference, and comparison with propensity-score matching.

Related Interview Questions

  • Explain Type I/II errors vs precision/recall - TikTok (easy)
  • Compute cluster-aware significance and sequential corrections - TikTok (medium)
  • Model overdispersed counts; estimate treatment lift - TikTok (Medium)
  • Decide if subgroup increases imply overall increase - TikTok (medium)
  • Control confounding in observational ad lift - TikTok (hard)
TikTok logo
TikTok
Oct 13, 2025, 9:49 PM
Data Scientist
Technical Screen
Statistics & Math
2
0

Staggered DiD for a Weekly RPU Rollout (50 Regions, 2025-06-01 to 2025-08-15)

Context and assumptions:

  • You have panel data at the region-week level with weekly revenue per user (RPU) as the outcome.
  • A product/feature is rolled out once per region during 2025-06-01 to 2025-08-15 and remains active thereafter (no reversals). Assume no never-treated regions; at any week t, the valid controls are regions not yet treated (G_i > t). You also have a pre-period (e.g., Jan–May 2025) to test pre-trends.
  • Goal: estimate the causal effect of the rollout on RPU in the presence of potentially heterogeneous and dynamic effects across cohorts and over time since adoption.

Tasks: (a) State when two-way fixed effects (TWFE) is biased under staggered adoption and what it identifies. (b) Implement a heterogeneous-effects-robust estimator (Callaway–Sant’Anna or Sun–Abraham), define group-time ATT ATT(g, t), and specify aggregation weights to obtain overall and dynamic effects. (c) Specify an event-study setup with a clear reference period and how you would visualize it. (d) Describe pre-trend testing (joint F-test on leads) and remedies if violated. (e) Explain inference with few clusters, including wild cluster bootstrap and handling serial correlation. (f) Explain how you would reconcile DiD estimates with a parallel propensity score matching (PSM) analysis.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More TikTok•More Data Scientist•TikTok Data Scientist•TikTok Statistics & Math•Data Scientist Statistics & Math
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.