M1-059M1: Mathematics & Statistics FundamentalsCausal InferenceMedium
⚡Flashcard Drill➔Mastery:
Explain Difference-in-Differences (DID) and Its Foundational Parallel Trends Assumption
🎯 Active Recall Self-Check (Draft First, Verify After)
Login-free practice tracker: recall core answer, audit pitfalls, and log review status.
Step 1 · Draft your concise answer & assumptions
Step 2 · Check Pitfalls & Follow-up Inquiries
📐 Mathematical Definition
⚡ One-Sentence Core Answer
Difference-in-Differences estimates causal effects by comparing the pre-post changes in a treatment group against changes in an untreated control group over the same time horizon: .
📌 Key Takeaways
- •Core Mechanism: First difference subtracts baseline time-invariant user heterogeneity; second difference subtracts macroeconomic time trends.
- •Parallel Trends Assumption: In the absence of treatment, the average outcome of treatment and control groups would have followed parallel trajectories over time.
- •Regression Formulation: , where is the causal DID effect.
📐 Mathematical Derivations
Expectations table across groups and time periods: (1) Control Pre: . (2) Control Post: . Change in control: (time trend). (3) Treatment Pre: . (4) Treatment Post: . Change in treatment: . Taking the difference of differences: . The estimate isolates the true causal impact while controlling for baseline group differences and macro shocks .
🏭 Production Trade-offs
DID is widely used for policy evaluation, natural experiments, and geo-level marketing campaigns (e.g. Launching TV ads in California while using Texas as control). The Parallel Trends assumption cannot be directly proven for the post-treatment period; scientists validate it empirically using Event Study plots (lead-lag regressions showing estimated coefficients for all pre-treatment periods ).
⚠️ Common Interview Pitfalls
- ✕Applying standard DID when parallel trends fail pre-treatment (pre-existing divergence violates the identifying assumption).
- ✕Staggered adoption bias: When different units receive treatment at different times, standard two-way fixed effects regressions produce biased estimates (addressed by Callaway-Sant'Anna estimators).
🎯 Interviewer Follow-up Inquiries
- ?How do event study regressions formally test the pre-treatment parallel trends assumption?
- ?Why does standard two-way fixed effects (TWFE) fail in staggered rollout designs with heterogeneous treatment effects over time?
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
📚