Back to Data Scientist Mind Map
中文·English
📈 Data ScientistID: ds-did-parallel-trends-event-study

DiD Parallel Trends & Event Study

双重差分 DID 与平行趋势事件研究
🎯Core Definition
Difference-in-Differences (DiD) & Dynamic Event Study Methods estimate causal treatment effects for non-randomized policy interventions, city-level rollouts, or macro-marketing campaigns; Mathematical formulation: estimating the double difference across groups and time: τ^DiD=(YˉT,postYˉT,pre)(YˉC,postYˉC,pre)\hat{\tau}_{\text{DiD}} = (\bar{Y}_{T, \text{post}} - \bar{Y}_{T, \text{pre}}) - (\bar{Y}_{C, \text{post}} - \bar{Y}_{C, \text{pre}}); estimated via Two-Way Fixed Effects (TWFE) OLS: Yit=α+γTreati+λPostt+β(Treati×Postt)+ϵitY_{it} = \alpha + \gamma \text{Treat}_i + \lambda \text{Post}_t + \beta (\text{Treat}_i \times \text{Post}_t) + \epsilon_{it}, where interaction coefficient β\beta captures the causal treatment effect; Inviolable Assumption: Parallel Trends Assumption (in the absence of treatment, the average path of the treatment group would follow the control group trajectory); verified empirically via Event Study dynamic coefficients (tkt-k pre-trends must be statistically indistinguishable from zero).
💡Use Cases
City-level policy interventions, national promotional campaign evaluations, and macroeconomic feature rollouts.
Key Problems Solved
Isolates genuine policy lift from macroeconomic seasonality and natural market drift that standard pre/post comparisons conflate.
🎯5 High-Frequency Exam Points
1
Derive how the OLS interaction coefficient β\beta in TWFE regression models algebraically equals the 4-cell difference-in-differences?
2
How does Event Study regression evaluate dynamic multi-period pre-trends and post-treatment lag effects?
3
Explain the Goodman-Bacon decomposition showing why classical TWFE produces negative weighting errors under staggered rollout timings?
4
Explain how Callaway & Sant'Anna (CS-DiD) estimator fixes staggered treatment heterogeneity using not-yet-treated or never-treated controls?
5
How to remediate non-parallel baseline trends using PSM-DiD or Synthetic Controls?
🔗Foundational Prerequisite Cards (Click to Review)
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "DiD Parallel Trends & Event Study"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardRubin Potential Outcomes & DAG d-SeparationNext CardSynthetic Control Method & Placebo Checks

🔗 More Data Scientist Knowledge Cards

Hypothesis Testing, Type I/II & PowerSample Size Derivation & MDE BudgetP-hacking, Peeking & mSPRT SequentialMultiple Comparisons: FWER vs FDR-BH