Lecture 17
Lecture 17
Differences-in-differences
Let:
Yi before = value of Y for subject i before the expt
Yi after = value of Y for subject i after the expt
ˆ1diffs −in −diffs = (Y treat ,after − Y treat ,before ) − (Y control ,after − Y control ,before )
Differences-in-differences estimator
ˆ1diffs −in −diffs = (Y treat ,after − Y treat ,before ) − (Y control ,after − Y control ,before )
John Snow & the first diff-in-diff
• 10,000s died of cholera between 1830–1850 in London
• At the time, prevailing wisdom was that cholera spread by
inhaling ‘bad air’ (miasma), but in fact cholera was spread
through drinking contaminated water from pumps/wells
• Parts of London served by competing water companies, one
of which ("Lambeth") moved their intake pipes upstream &
above the main sewage discharge points earlier than others
• This provided John Snow – a doctor who theorised cholera
spread through unclean water – with a quasi-experiment
• Snow collected data on households' water provider and
matched this with data on household mortality held by the city
• Compared mortality of Lambeth’s customers to that of others
John Snow & the first diff-in-diff
Deaths per 10,000: based on Table XII from Snow (1855)
Company name 1849 1854
Southwark & Vauxhall 135 147
Lambeth 85 19
Source: https://mixtape.scunning.com/09-difference_in_differences#tbl-snow1
ˆ1diffs −in −diffs = (Y treat ,after − Y treat ,before ) − (Y control ,after − Y control ,before )
• = (19-85) - (147-135)
• = 78 fewer deaths per 10,000 in Lambeth than S&W
Diff-in-diff and the minimum wage
Source: https://www.nobelprize.org/uploads/2021/10/popular-economicsciencesprize2021-3.pdf
Diff-in-diff and the minimum wage
Dependent Variable PA NJ NJ – PA
FTE before 23.3 20.44 −2.89
(1.35) (0.51) (1.44)
FTE after 21.147 21.03 −0.14
(0.94) (0.52) (1.07)
Change in mean FTE −2.16 0.59 2.76
(1.25) (0.54) (1.36)
ˆ1diffs −in −diffs = (Y treat ,after − Y treat ,before ) − (Y control ,after − Y control ,before )
= (21.03 – 20.44) – (21.147 – 23.3)
= (0.59) – (–2.16)
= 2.76
Diff-in-diff and the minimum wage
Source: https://github.com/ScPoEcon/ScPoEconometrics-Slides
Diff-in-diff and the minimum wage
Source: https://github.com/ScPoEcon/ScPoEconometrics-Slides
Aside: diff-in-diff regression estimator
where:
▪ 𝑇𝑟𝑒𝑎𝑡𝑖 = 1 if in treatment group, 0 otherwise
▪ 𝑃𝑜𝑠𝑡𝑖 = 1 if post-treatment period, 0 otherwise
▪ 𝑇𝑟𝑒𝑎𝑡𝑖 ∗ 𝑃𝑜𝑠𝑡𝑖 = 1 for treatment group post-treatment, 0 otherwise
▪ 𝑊𝑖,𝑘 = set of control variables to improve precision of estimates
Source: https://github.com/ScPoEcon/ScPoEconometrics-Slides
Common/parallel trends
Source: https://github.com/ScPoEcon/ScPoEconometrics-Slides
Further reading
• Chapter 5, Angrist J. D. & Pischke J.-S. (2014). Mastering'
metrics: the path from cause to effect. Princeton University
Press.
• Scientific Background on the Sveriges Riksbank Prize in
Economic Sciences in Memory of Alfred Nobel 2021
• Card, David & Krueger, Alan B (1994). "Minimum Wages
and Employment: A Case Study of the Fast-Food Industry in
New Jersey and Pennsylvania," American Economic
Review, American Economic Association, vol. 84(4), pages
772-793, September.
• Coleman, Thomas, (2019) Causality in the Time of Cholera:
John Snow As a Prototype for Causal Inference.
http://dx.doi.org/10.2139/ssrn.3262234