Day 68. Parallel Trends & Event Studies
With several periods, an event-study regression traces effects period by period and puts the parallel-trends assumption on display through pre-treatment coefficients. Why pre-trend tests have low power, how anticipation shifts the reference period, and how to report results that are robust to bounded violations.
- ●Specify and interpret an event-study regression with unit and time fixed effects and a reference period.
- ●Compute event-study coefficients from group-by-period means.
- ●Calculate the power of a pre-trend test and explain why passing it is weak evidence.
- ●Construct sensitivity intervals that allow post-treatment violations bounded by pre-treatment ones.
Theory
The event-study regression
With one treated group adopting at date and many periods, define event time . The event-study specification is
with unit fixed effects , period fixed effects , and the period just before treatment () omitted as the reference. Each is a DiD comparing period with period :
- : dynamic treatment effects (ATT periods after adoption), under parallel trends.
- : placebo or pre-trend coefficients, zero if trends were parallel before treatment.
Reading pre-trends
Flat pre-period coefficients are reassuring, but:
- Low power. Pre-trend coefficients are noisy; a violation large enough to matter can easily go undetected (Exercise 12).
- Pre-testing distortion. Reporting only studies that pass a pre-test selects samples where noise happened to hide the trend, which can increase bias (Roth, 2022).
- Parallel pre-trends do not guarantee parallel post-trends. The assumption is about the counterfactual after treatment.
Remedies and sensitivity
- Group-specific linear trends: fit a line through the pre-period differences and extrapolate. Unbiased if the violation is exactly linear; can absorb part of a dynamic effect if not.
- Bounded violations (Rambachan and Roth): assume the post-treatment deviation from parallel trends is at most times the largest pre-treatment deviation, and report the resulting interval for each , plus the breakdown value of at which the effect is no longer significant.
- Conditional parallel trends: assume parallel trends only among units with the same pre-treatment covariates; estimate with regression, weighting or doubly robust DiD.
Anticipation
If behaviour changes one period before adoption, the coefficient at is already affected. Use (or earlier) as the reference.
Part 1 · Warm-up
Exercise 1 · Reading coefficients
An event study reports , , , , (SEs around 0.2). Describe the results.
Show solution
Step 1. Pre-period coefficients are small and insignificant: no visible pre-trend.
Step 2. The effect appears on impact (1.2) and grows over two years (2.1).
Answer: a dynamic effect that builds over time, with parallel pre-trends as supporting (not conclusive) evidence.
Exercise 2 · The reference period
Why must one event-time indicator be omitted, and what does choosing mean?
Show solution
Step 1. With unit and time fixed effects, the full set of event-time dummies for the treated group is collinear with the unit fixed effect.
Step 2. Omitting measures every relative to the last pre-treatment period.
Answer: all coefficients are DiDs relative to period −1, which is zero by construction.
Exercise 3 · Coefficients from means
Treated means in periods −3, −2, −1, 0, 1: 10, 11, 12, 16, 17. Comparison: 8, 9, 10, 11, 12. Compute .
Show solution
Step 1. ; .
Step 2. .
Step 3. .
Answer: no pre-trend, a constant effect of 3.
Exercise 4 · Linear extrapolation
Pre-period coefficients are , (and ): a linear trend of +0.3 per period. If , what is the trend-adjusted effect at ?
Show solution
Step 1. Extrapolated violation at : .
Step 2. Adjusted: .
Exercise 5 · Joint versus individual tests
Why test pre-period coefficients jointly rather than one at a time?
Show solution
Step 1. With several pre-periods, one coefficient may be significant by chance (multiple testing), while several small same-sign coefficients may each be insignificant yet jointly informative.
Answer: a joint F (Wald) test uses all pre-period information at once with correct size.
Part 2 · Proofs
Exercise 6 · Event-study coefficients identify dynamic ATTs
With one treated and one comparison group, balanced data and the saturated event-study regression, prove equals the DiD of means between periods and , and that under parallel trends and no anticipation it is unbiased for () and for 0 ().
Show solution
Step 1. The regression has one parameter per group-period cell (unit effects absorb group levels, period effects the comparison path, the treated deviations); it is saturated in group × period means.
Step 2. So fitted cell means equal sample cell means, and is the treated-minus-comparison change from period to .
Step 3. By Day 67, Exercise 9, its expectation is , where is the difference in untreated trends between and ; under parallel trends .
Step 4. For the ATT is 0 (no anticipation), so .
Exercise 7 · Linear trend adjustment
Suppose the violation is linear: for all . Show that , with fitted on pre-periods, is unbiased for .
Show solution
Step 1. Pre-period coefficients have expectation , so a least-squares slope through them (and the origin at ) is unbiased for .
Step 2. for .
Step 3. Subtract . If the violation is not linear, the adjustment is biased.
Exercise 8 · Power of a pre-trend test
A pre-period coefficient has expectation and standard error (normal). Show the power of a two-sided 5% test is .
Show solution
Step 1. The t-statistic is .
Step 2. Rejection: .
Step 3. and . Add.
Exercise 9 · Bounded violations
Assume the post-period violation satisfies , where is the largest absolute pre-period deviation (treated as known). Show that in population, and give a 95% version.
Show solution
Step 1. , so .
Step 2. With , .
Step 3. Accounting for sampling error in : covers the ATT with probability at least 95%.
Exercise 10 · Anticipation and the reference period
Suppose units react one period early, so would be if it were estimated. Show that normalising shifts every other coefficient by , and that using as the reference removes the bias.
Show solution
Step 1. Each is a DiD relative to period −1: ; with parallel trends , it is .
Step 2. With as reference (no anticipation there), , and the coefficient at estimates .
Part 3 · Applied
Exercise 11 · State minimum wage and teen employment
Teen employment rates (%) in a state that raised its minimum wage in period 0, periods −3 to 2: 30.0, 30.5, 31.0, 30.0, 29.5, 29.3. In comparison states: 32.0, 32.4, 32.9, 33.2, 33.5, 33.7. Compute the event-study coefficients (reference −1).
Show solution
Step 1. .
Step 2. .
Step 3. .
Step 4. ; .
Answer: flat pre-trends and a growing employment decline of 1.3 to 2.5 points.
Exercise 12 · How likely is a pre-test to catch a trend?
In a study of hospital mergers on prices, a linear violation would make (percent), with SE 0.5. What is the probability the pre-trend test at rejects?
Show solution
Step 1. .
Step 2. Power .
Answer: about 44%: more often than not, this sizeable trend goes undetected.
Exercise 13 · Sensitivity for a paid-leave mandate
A paid-family-leave mandate raises mothers' employment by points (SE 0.5) one year after; the largest pre-period deviation is 0.4. Compute the 95% sensitivity intervals for and , and the breakdown value of .
Show solution
Step 1. : .
Step 2. : .
Step 3. Breakdown: lower bound .
Answer: the effect stays positive unless post-period violations are more than 2.5 times the largest pre-period one.
Exercise 14 · Anticipation in hospital mergers
Hospitals announce a merger a year before it closes and start renegotiating contracts. An event study normalised at shows and . Reinterpret with as the reference.
Show solution
Step 1. Re-normalising to adds 2 points to every coefficient: (anticipation effect), .
Answer: prices rose 2% already after the announcement and 5% by closing; the original normalisation understated the effect.
Exercise 15 · Conditional parallel trends
States that expanded Medicaid had lower baseline uninsured rates, and uninsured rates predict mortality trends. How can covariates restore parallel trends, and what is assumed?
Show solution
Step 1. Assume parallel trends conditional on baseline covariates (uninsured rate, income, age structure): .
Step 2. Estimate by comparing changes within cells, by outcome regression of on in comparison states, or by doubly robust DiD (propensity weighting plus outcome regression).
Step 3. Use only pre-treatment covariates: post-treatment ones may be affected by the expansion (Day 53).
Answer: conditional parallel trends plus overlap in .
Verify in Python
import numpy as np
from scipy.stats import norm
def es(T, C, ref):
"""Event-study coefficients from treated and comparison means; ref = index of period -1."""
return np.round([(T[k] - T[ref]) - (C[k] - C[ref]) for k in range(len(T))], 3)
print("Ex 3:", es([10, 11, 12, 16, 17], [8, 9, 10, 11, 12], 2))
print("Ex 11:", es([30, 30.5, 31, 30, 29.5, 29.3], [32, 32.4, 32.9, 33.2, 33.5, 33.7], 2))
m = -.9 / .5
print("pre-test power:", round(norm.cdf(-1.96 - m) + 1 - norm.cdf(1.96 - m), 3))
for M in (1, 2):
print(f"M={M}: [{2 - .4 * M - .98:.2f}, {2 + .4 * M + .98:.2f}]", end=" ")
print("breakdown M:", round((2 - .98) / .4, 2))
# Event-study regression with unit and time fixed effects on a simulated panel (linear pre-trend 0.3)
rng = np.random.default_rng(68)
N, Tn, E = 200, 8, 5
G = (np.arange(N) < N // 2).astype(float)
t = np.arange(Tn); k = t - E
Y = (rng.normal(0, 2, N)[:, None] + 0.5 * t[None, :] + 0.3 * k[None, :] * G[:, None]
+ G[:, None] * np.where(k >= 0, 1 + 0.5 * k, 0)[None, :] + rng.normal(0, 1, (N, Tn)))
rows = []
for i in range(N):
for s in range(Tn):
r = [1.0] + [float(i == j) for j in range(1, N)] + [float(s == q) for q in range(1, Tn)]
r += [G[i] * float(k[s] == kk) for kk in range(-E, Tn - E) if kk != -1]
rows.append(r)
b = np.linalg.lstsq(np.array(rows), Y.ravel(), rcond=None)[0][-(Tn - 1):]
labels = [kk for kk in range(-E, Tn - E) if kk != -1]
print("event-study betas:", {kk: round(float(v), 2) for kk, v in zip(labels, b)})
print("truth (effect + 0.3*(k+1) trend):", {kk: round((1 + .5 * kk if kk >= 0 else 0) + .3 * (kk + 1), 2) for kk in labels})
Key takeaways
- Event-study coefficients are DiDs relative to a reference period; pre-period coefficients test for diverging trends before treatment.
- Pre-trend tests have limited power, and passing them does not establish parallel trends after treatment.
- Report sensitivity to bounded violations (and the breakdown value), re-normalise if there is anticipation, and use conditional parallel trends when observable differences predict trends.
Simulation Lab: Event Studies & Pre-Trends
Open full screen →Event-study coefficients with pre-trends, anticipation and a sensitivity interval for bounded violations.
Event-study coefficients (dots, with 95% intervals) are DiDs relative to the reference period. Grey squares show the true effect plus any pre-existing trend gap. Add a linear pre-trend, anticipation or noise and see what the pre-period coefficients reveal, and how a sensitivity interval that allows post-period violations up to M times the largest pre-period one changes the conclusion at k = 2.