SlideShare a Scribd company logo
1 of 4
Download to read offline
Economics 131
Section Notes
GSI: David Albouy
Program Evaluation and the Difference in Difference Estimator
1 Program Evaluation
1.1 Notation
We wish to evaluate the impact of a program or treatment on an outcome Y over a population of individuals.
Suppose that there are two groups indexed by treatment status T = 0, 1 where 0 indicates individuals who
do not receive treatment, i.e. the control group, and 1 indicates individuals who do receive treatment, i.e.
the treatment group. Assume that we observe individuals in two time periods, t = 0, 1 where 0 indicates
a time period before the treatment group receives treatment, i.e. pre-treatment, and 1 indicates a time
period after the treatment group receives treatment, i.e. post-treatment. Every observation is indexed
by the letter i = 1, ..., N; individuals will typically have two observations each, one pre-treatment and one
post-treatment. For the sake of notation let Ȳ T
0 and Ȳ T
1 be the sample averages of the outcome for the
treatment group before and after treatment, respectively, and let Ȳ C
0 and Ȳ C
1 be the corresponding sample
averages of the outcome for the control group. Subscripts correspond to time period and superscripts to
the treatment status.
1.2 Modeling the Outcome
The outcome Yi is modeled by the following equation
Yi = α + βTi + γti + δ (Ti · ti) + εi (Outcome)
where the coefficients given by the greek letters α, β, γ, δ , are all unknown parameters and εi is a random,
unobserved "error" term which contains all determinants of Yi which our model omits. By inspecting the
equation you should be able to see that the coefficients have the following interpretation
α = constant term
β = treatment group specific effect (to account for average
permanent differences between treatment and control)
γ = time trend common to control and treatment groups
δ = true effect of treatment
The purpose of the program evaluation is to find a "good" estimate of δ, δ̂, given the data that we have
available.
Example 1 Card and Krueger (1994, AER) in "Minimum Wages and Employment: A Case Study of the
Fast-Food Industry in New Jersey and Pennsylvania" try to evaluate the effect of the minimum wage (the
treatment) on employment (the outcome). On April 1, 1992, New Jersey’s minimum wage rose from $4.25
to $5.05 per hour. To evaluate the impact of the law, the authors surveyed 410 fast-food restaurants in New
Jersey (the treatment group) and eastern Pennsylvania (the control group) before and after the rise. Yi is
the employment of a fast food restaurant, Ti is an indicator of whether or not a restaurant is in New Jersey,
and ti is an indicator of whether the observation is from before or after the minimum wage hike.
1.3 Assumptions for an Unbiased Estimator
A reasonable criterion for a good estimator is that it be unbiased which means that "on average" the
estimate will be correct, or mathematically that the expected value of the estimator
E
h
δ̂
i
= δ
1
The assumptions we need for the difference in difference estimator to be correct are given by the following
1. The model in equation (Outcome) is correctly specified. For example, the additive structure imposed
is correct.
2. The error term is on average zero: E [εi] = 0. Not a hard assumption with the constant term α put
in.
3. The error term is uncorrelated with the other variables in the equation:
cov (εi, Ti) = 0
cov (εi, ti) = 0
cov (εi, Ti · ti) = 0
the last of these assumptions, also known as the parallel-trend assumption, is the most critical.
Under these assumptions we can use equation (Outcome) to determine that expected values of the average
outcomes are given by
E
£
Y T
0
¤
= α + β
E
£
Y T
1
¤
= α + β + γ + δ
E
£
Y C
0
¤
= α
E
£
Y C
1
¤
= α + γ
These equations will prove helpful below.
2 The Difference in Difference Estimator
Before explaining the difference in difference estimator it is best to review the two simple difference estimators
and understand what can go wrong with these. Understanding what is wrong about as an estimator is as
important as understanding what is right about it.
2.1 Simple Pre versus Post Estimator
Consider first an estimator based on comparing the average difference in outcome Yi before and after treat-
ment in the treatment group alone.1
δ̂1 = Ȳ T
1 − Ȳ T
0 (D1)
Taking the expectation of this estimator we get
E
h
δ̂1
i
= E
£
Ȳ T
1
¤
− E
£
Ȳ T
0
¤
= [α + β + γ + δ] − [α + β]
= γ + δ
which means that this estimator will be biased so long as γ 6= 0, i.e. if a time-trend exists in the outcome Yi
then we will confound the time trend as being part of the treatment effect.
1 This would be the estimate one would get from an OLS estimate on a regression equation of the form
Yi = α1 + δ1Ti + εi
on the sample from the treatment group only.
2
2.2 Simple Treatment versus Control Estimator
Next consider the estimator based on comparing the average difference in outcome Yi post-treatment, between
the treatment and control groups, ignoring pre-treatment outcomes.2
δ̂2 = Ȳ T
1 − Ȳ C
1 (D2)
Taking the expectation of this estimator
E
h
δ̂1
i
= E
£
Ȳ T
1
¤
− E
£
Ȳ C
1
¤
= [α + β + γ + δ] − [α + γ]
= β + δ
and so this estimator is biased so long as β 6= 0, i.e. there exist permanent average differences in outcome Yi
between the treatment groups. The true treatment effect will be confounded by permanent differences in
treatment and control groups that existed prior to any treatment. Note that in a randomized experiments,
where subjects are randomly selected into treatment and control groups, β should be zero as both groups
should be nearly identical: in this case this estimator may perform well in a controlled experimental setting
typically unavailable in most program evaluation problems seen in economics.
2.3 The Difference in Difference Estimator
The difference in difference (or "double difference") estimator is defined as the difference in average
outcome in the treatment group before and after treatment minus the difference in average outcome in the
control group before and after treatment3
: it is literally a "difference of differences."
δ̂DD = Ȳ T
1 − Ȳ T
0 −
¡
Ȳ C
1 − Ȳ C
0
¢
(DD)
Taking the expectation of this estimator we will see that it is unbiased
δ̂DD = E
£
Ȳ T
1
¤
− E
£
Ȳ T
0
¤
−
¡
E
£
Ȳ C
1
¤
− E
£
Ȳ C
0
¤¢
= α + β + γ + δ − (α + β) − (α + γ − γ)
= (γ + δ) − γ
= δ
This estimator can be seen as taking the difference between two pre-versus-post estimators seen above in
(D1), subtracting the control group’s estimator, which captures the time trend γ, from the treatment group’s
estimator to get δ. We can also rearrange terms in equation (DD) to get δ̂DD = Ȳ T
1 − Ȳ C
1 −
¡
Ȳ T
0 − Ȳ C
0
¢
in which can be interpreted as taking the difference of two estimators of the simple treatment versus control
type seen in equation (D2). The difference estimator for the pre-period is used to estimate the permanent
difference β, which is then subtracted away from the post-period estimator to get δ.
Another interpretation of the difference in difference estimator is that is a simple difference estimator
between the actual Ȳ T
1 and the Ȳ T
1 that would occur in the post treatment period to the treatment group
had there been no treatment Ȳ T
cf = Ȳ T
0 +
¡
Ȳ C
1 − Ȳ C
0
¢
, where the subscript ”cf” refers to the term "coun-
terfactual," so that δ̂DD = Ȳ T
1 − Ȳ T
cf . This observation Ȳ T
cf , which has expectation E
h
Ȳ T
cf
i
= α + β + γ,
does not exist: it is literally "contrary to fact" since there actually was a treatment in fact. However if our
assumption are correct we can construct legitimate estimate of Ȳ T
cf , taking the pre treatment average Ȳ T
0
and adding the our estimate β using the pre versus post difference for the control group.
2 This would be the estimate one would get from an OLS estimate on a regression equation of the form
Yi = α2 + δ2ti + εi
on the post-treatment samples only.
3 This would be the estimate one would get from an OLS estimate of a regression equation of the form given by (Outcome)
on the entire sample.
3
It is common to find difference in difference estimators presented in a table of the following form.
Pre Post Post-Pre Difference
Treatment Ȳ T
0 Ȳ T
1 Ȳ T
1 − Ȳ T
0
Control Ȳ C
0 Ȳ C
1 Ȳ C
1 − Ȳ C
0
T-C Difference Ȳ T
0 − Ȳ C
0 Ȳ T
1 − Ȳ C
1 Ȳ T
1 − Ȳ C
1 −
¡
Ȳ T
0 − Ȳ C
0
¢
Notice that the first row ends with the estimate δ̂1, the second column ends with estimate δ̂2, and the lower
right hand corner entry gives the estimate δ̂DD.
Example 2 According to the model, by Card and Krueger (1994) comparisons of employment growth at
stores in New Jersey and Pennsylvania (where the minimum wage was constant), provide simple estimates
of the effect of the higher minimum wage. Some of the results from Table 3 are shown below with the average
employment in the fast-food restaurants, with standard errors in parentheses
Before Increase After Increase Difference
New Jersey
(Treatment)
20.44
(0.51)
21.03
(0.52)
0.59
(0.54)
Pennsylvania
(Control)
23.33
(1.35)
21.17
(0.94)
−2.16
(1.25)
Difference
−2.89
(1.44)
−0.14
(1.07)
2.76
(1.36)
The difference in difference estimator shows a small increase in employment in New Jersey where the mini-
mum wage increased. This came as quite a shock to most economists who thought employment would fall.
Notice that we can see that prior to the increase in the minimum wage Pennsylvania had higher employment
than New Jersey and that it was bound to fall to a lower level. This may be a failure in the parallel trend
assumption. However the small, albeit insignificant increase in employment in New Jersey makes it hard to
accept the hypothesis that employment actually decreased in New Jersey over this time. Although still some-
what controversial, this study helped change the common presupposition that a small change in the minimum
wage from a low level was bound to cause a significant decrease in employment.
2.4 Problems with Difference in Difference Estimators
If any of the assumptions listed above do not hold then we have no guarantee that the estimator δ̂DD is
unbiased. Unfortunately, it is often difficult and sometimes impossible to check the assumptions in the model
as they are made about unobservable quantities. Keep in mind that small deviations from the assumptions
may not matter much as the biases they introduce may be rather small, biases are a matter of degree. It is
also possible, however, that the biases may be so huge that the estimates we get may be completely wrong,
even of the opposite sign of the true treatment effect.
One of the most common problems with difference in difference estimates is the failure of the parallel
trend assumption. Suppose that cov (εi, Ti · ti) = E (εi (Ti · ti)) = ∆ so that Y follows a different trend for
the treatment and control group. The control group has a time trend of γC
= γ, while the treatment group
has a trend of γT
= γ + ∆. In this case the difference in difference estimator will be biased as
E
h
δ̂DD
i
=
¡
γT
+ δ
¢
− γC
= γ + ∆ + δ − γ = δ + ∆
The failure of the parallel trend assumption may in fact be a relatively common problem in many program
evaluation studies, causing many difference in difference estimators to be biased.
One way to help avoid these problems is to get more data on other time periods before and after treatment
to see if there are any other pre-existing differences in trends. It may also be possible to find other control
groups which will can provide additional underlying trends. There is a huge literature on this subject,
although a good place to start is Meyer (1995).
4

More Related Content

Similar to Difference in Difference Estimator Explained

Lecture 7 Hypothesis Testing Two Sample
Lecture 7 Hypothesis Testing Two SampleLecture 7 Hypothesis Testing Two Sample
Lecture 7 Hypothesis Testing Two SampleAhmadullah
 
Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regressionjamuga gitulho
 
Marketing Engineering Notes
Marketing Engineering NotesMarketing Engineering Notes
Marketing Engineering NotesFelipe Affonso
 
Week 3 Lecture 11 Regression Analysis Regression analy.docx
Week 3 Lecture 11 Regression Analysis Regression analy.docxWeek 3 Lecture 11 Regression Analysis Regression analy.docx
Week 3 Lecture 11 Regression Analysis Regression analy.docxcockekeshia
 
Ch 12 SIGNIFICANT TESTrr.doc
Ch 12 SIGNIFICANT TESTrr.docCh 12 SIGNIFICANT TESTrr.doc
Ch 12 SIGNIFICANT TESTrr.docAbedurRahman5
 
Community Medicine Presentation
Community Medicine PresentationCommunity Medicine Presentation
Community Medicine PresentationDr Ritesh Malik
 
33151-33161.ppt
33151-33161.ppt33151-33161.ppt
33151-33161.pptdawitg2
 
Pain Procedure Valuation as a Competitive Strategy
Pain Procedure Valuation as a Competitive StrategyPain Procedure Valuation as a Competitive Strategy
Pain Procedure Valuation as a Competitive StrategyJAMES B. MACON, M.D.
 
2_5332511410507220042.ppt
2_5332511410507220042.ppt2_5332511410507220042.ppt
2_5332511410507220042.pptnedalalazzwy
 
14 + 8 Answers and calculations as basic statistics student would ex.docx
14 + 8 Answers and calculations as basic statistics student would ex.docx14 + 8 Answers and calculations as basic statistics student would ex.docx
14 + 8 Answers and calculations as basic statistics student would ex.docxjeanettehully
 

Similar to Difference in Difference Estimator Explained (20)

Lecture 7 Hypothesis Testing Two Sample
Lecture 7 Hypothesis Testing Two SampleLecture 7 Hypothesis Testing Two Sample
Lecture 7 Hypothesis Testing Two Sample
 
Lg ph d_slides_vfinal
Lg ph d_slides_vfinalLg ph d_slides_vfinal
Lg ph d_slides_vfinal
 
Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regression
 
Marketing Engineering Notes
Marketing Engineering NotesMarketing Engineering Notes
Marketing Engineering Notes
 
Week 3 Lecture 11 Regression Analysis Regression analy.docx
Week 3 Lecture 11 Regression Analysis Regression analy.docxWeek 3 Lecture 11 Regression Analysis Regression analy.docx
Week 3 Lecture 11 Regression Analysis Regression analy.docx
 
The t test
The t testThe t test
The t test
 
Ch 12 SIGNIFICANT TESTrr.doc
Ch 12 SIGNIFICANT TESTrr.docCh 12 SIGNIFICANT TESTrr.doc
Ch 12 SIGNIFICANT TESTrr.doc
 
Community Medicine Presentation
Community Medicine PresentationCommunity Medicine Presentation
Community Medicine Presentation
 
Difference-in-Difference Methods
Difference-in-Difference MethodsDifference-in-Difference Methods
Difference-in-Difference Methods
 
33151-33161.ppt
33151-33161.ppt33151-33161.ppt
33151-33161.ppt
 
Pain Procedure Valuation as a Competitive Strategy
Pain Procedure Valuation as a Competitive StrategyPain Procedure Valuation as a Competitive Strategy
Pain Procedure Valuation as a Competitive Strategy
 
Stat5 the t test
Stat5 the t testStat5 the t test
Stat5 the t test
 
One Way ANOVA.pdf
One Way ANOVA.pdfOne Way ANOVA.pdf
One Way ANOVA.pdf
 
2_5332511410507220042.ppt
2_5332511410507220042.ppt2_5332511410507220042.ppt
2_5332511410507220042.ppt
 
Biostatistics.pptx
Biostatistics.pptxBiostatistics.pptx
Biostatistics.pptx
 
Risk notes ch12
Risk notes ch12Risk notes ch12
Risk notes ch12
 
Causal Research
Causal ResearchCausal Research
Causal Research
 
16928_5302_1.pdf
16928_5302_1.pdf16928_5302_1.pdf
16928_5302_1.pdf
 
14 + 8 Answers and calculations as basic statistics student would ex.docx
14 + 8 Answers and calculations as basic statistics student would ex.docx14 + 8 Answers and calculations as basic statistics student would ex.docx
14 + 8 Answers and calculations as basic statistics student would ex.docx
 
AnalysisOfVariance
AnalysisOfVarianceAnalysisOfVariance
AnalysisOfVariance
 

More from ssusere0ee1d

Training on Evaluation.pptx
Training on Evaluation.pptxTraining on Evaluation.pptx
Training on Evaluation.pptxssusere0ee1d
 
approaches_and_methods_for_monitoring_and_evaluat-wageningen_university_and_r...
approaches_and_methods_for_monitoring_and_evaluat-wageningen_university_and_r...approaches_and_methods_for_monitoring_and_evaluat-wageningen_university_and_r...
approaches_and_methods_for_monitoring_and_evaluat-wageningen_university_and_r...ssusere0ee1d
 
gertler_2016DDC7.pdf
gertler_2016DDC7.pdfgertler_2016DDC7.pdf
gertler_2016DDC7.pdfssusere0ee1d
 
Assembling-Accountability.pdf
Assembling-Accountability.pdfAssembling-Accountability.pdf
Assembling-Accountability.pdfssusere0ee1d
 
Monitoring_and_Evaluation_2.pdf
Monitoring_and_Evaluation_2.pdfMonitoring_and_Evaluation_2.pdf
Monitoring_and_Evaluation_2.pdfssusere0ee1d
 
A02C7B78FB2B408B852570AB006EC7BA-What We Know About Exit Strategies - Sept 20...
A02C7B78FB2B408B852570AB006EC7BA-What We Know About Exit Strategies - Sept 20...A02C7B78FB2B408B852570AB006EC7BA-What We Know About Exit Strategies - Sept 20...
A02C7B78FB2B408B852570AB006EC7BA-What We Know About Exit Strategies - Sept 20...ssusere0ee1d
 
conflict desert storm manual.pdf
conflict desert storm manual.pdfconflict desert storm manual.pdf
conflict desert storm manual.pdfssusere0ee1d
 
2020 Ethical Guidelines for Evaluation.pdf
2020 Ethical Guidelines for Evaluation.pdf2020 Ethical Guidelines for Evaluation.pdf
2020 Ethical Guidelines for Evaluation.pdfssusere0ee1d
 
8_2-Intro-to-IndicatorsFMEF.pdf
8_2-Intro-to-IndicatorsFMEF.pdf8_2-Intro-to-IndicatorsFMEF.pdf
8_2-Intro-to-IndicatorsFMEF.pdfssusere0ee1d
 

More from ssusere0ee1d (11)

Training on Evaluation.pptx
Training on Evaluation.pptxTraining on Evaluation.pptx
Training on Evaluation.pptx
 
approaches_and_methods_for_monitoring_and_evaluat-wageningen_university_and_r...
approaches_and_methods_for_monitoring_and_evaluat-wageningen_university_and_r...approaches_and_methods_for_monitoring_and_evaluat-wageningen_university_and_r...
approaches_and_methods_for_monitoring_and_evaluat-wageningen_university_and_r...
 
gertler_2016DDC7.pdf
gertler_2016DDC7.pdfgertler_2016DDC7.pdf
gertler_2016DDC7.pdf
 
Assembling-Accountability.pdf
Assembling-Accountability.pdfAssembling-Accountability.pdf
Assembling-Accountability.pdf
 
CIB8942.pdf
CIB8942.pdfCIB8942.pdf
CIB8942.pdf
 
Monitoring_and_Evaluation_2.pdf
Monitoring_and_Evaluation_2.pdfMonitoring_and_Evaluation_2.pdf
Monitoring_and_Evaluation_2.pdf
 
A02C7B78FB2B408B852570AB006EC7BA-What We Know About Exit Strategies - Sept 20...
A02C7B78FB2B408B852570AB006EC7BA-What We Know About Exit Strategies - Sept 20...A02C7B78FB2B408B852570AB006EC7BA-What We Know About Exit Strategies - Sept 20...
A02C7B78FB2B408B852570AB006EC7BA-What We Know About Exit Strategies - Sept 20...
 
conflict desert storm manual.pdf
conflict desert storm manual.pdfconflict desert storm manual.pdf
conflict desert storm manual.pdf
 
38141776.pdf
38141776.pdf38141776.pdf
38141776.pdf
 
2020 Ethical Guidelines for Evaluation.pdf
2020 Ethical Guidelines for Evaluation.pdf2020 Ethical Guidelines for Evaluation.pdf
2020 Ethical Guidelines for Evaluation.pdf
 
8_2-Intro-to-IndicatorsFMEF.pdf
8_2-Intro-to-IndicatorsFMEF.pdf8_2-Intro-to-IndicatorsFMEF.pdf
8_2-Intro-to-IndicatorsFMEF.pdf
 

Recently uploaded

Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Datingkojalkojal131
 
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...amitlee9823
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...Pooja Nehwal
 
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls DubaiDark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls Dubaikojalkojal131
 
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual serviceanilsa9823
 
Top Rated Pune Call Girls Deccan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Deccan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Deccan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Deccan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Call Girls in Nagpur High Profile
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineBruce Bennett
 
Book Paid Saswad Call Girls Pune 8250192130Low Budget Full Independent High P...
Book Paid Saswad Call Girls Pune 8250192130Low Budget Full Independent High P...Book Paid Saswad Call Girls Pune 8250192130Low Budget Full Independent High P...
Book Paid Saswad Call Girls Pune 8250192130Low Budget Full Independent High P...ranjana rawat
 
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big BoodyDubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boodykojalkojal131
 
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳anilsa9823
 
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)amitlee9823
 
CFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector ExperienceCFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector ExperienceSanjay Bokadia
 
Top Rated Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Call Girls in Nagpur High Profile
 
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...poojakaurpk09
 
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)Delhi Call girls
 
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
Production Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjProduction Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjLewisJB
 
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...Call Girls in Nagpur High Profile
 
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 

Recently uploaded (20)

Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
 
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
 
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls DubaiDark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
 
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual service
 
Top Rated Pune Call Girls Deccan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Deccan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Deccan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Deccan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying Online
 
Book Paid Saswad Call Girls Pune 8250192130Low Budget Full Independent High P...
Book Paid Saswad Call Girls Pune 8250192130Low Budget Full Independent High P...Book Paid Saswad Call Girls Pune 8250192130Low Budget Full Independent High P...
Book Paid Saswad Call Girls Pune 8250192130Low Budget Full Independent High P...
 
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big BoodyDubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
 
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
 
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
CFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector ExperienceCFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector Experience
 
Top Rated Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
 
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
 
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Production Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjProduction Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbj
 
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
 
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 

Difference in Difference Estimator Explained

  • 1. Economics 131 Section Notes GSI: David Albouy Program Evaluation and the Difference in Difference Estimator 1 Program Evaluation 1.1 Notation We wish to evaluate the impact of a program or treatment on an outcome Y over a population of individuals. Suppose that there are two groups indexed by treatment status T = 0, 1 where 0 indicates individuals who do not receive treatment, i.e. the control group, and 1 indicates individuals who do receive treatment, i.e. the treatment group. Assume that we observe individuals in two time periods, t = 0, 1 where 0 indicates a time period before the treatment group receives treatment, i.e. pre-treatment, and 1 indicates a time period after the treatment group receives treatment, i.e. post-treatment. Every observation is indexed by the letter i = 1, ..., N; individuals will typically have two observations each, one pre-treatment and one post-treatment. For the sake of notation let Ȳ T 0 and Ȳ T 1 be the sample averages of the outcome for the treatment group before and after treatment, respectively, and let Ȳ C 0 and Ȳ C 1 be the corresponding sample averages of the outcome for the control group. Subscripts correspond to time period and superscripts to the treatment status. 1.2 Modeling the Outcome The outcome Yi is modeled by the following equation Yi = α + βTi + γti + δ (Ti · ti) + εi (Outcome) where the coefficients given by the greek letters α, β, γ, δ , are all unknown parameters and εi is a random, unobserved "error" term which contains all determinants of Yi which our model omits. By inspecting the equation you should be able to see that the coefficients have the following interpretation α = constant term β = treatment group specific effect (to account for average permanent differences between treatment and control) γ = time trend common to control and treatment groups δ = true effect of treatment The purpose of the program evaluation is to find a "good" estimate of δ, δ̂, given the data that we have available. Example 1 Card and Krueger (1994, AER) in "Minimum Wages and Employment: A Case Study of the Fast-Food Industry in New Jersey and Pennsylvania" try to evaluate the effect of the minimum wage (the treatment) on employment (the outcome). On April 1, 1992, New Jersey’s minimum wage rose from $4.25 to $5.05 per hour. To evaluate the impact of the law, the authors surveyed 410 fast-food restaurants in New Jersey (the treatment group) and eastern Pennsylvania (the control group) before and after the rise. Yi is the employment of a fast food restaurant, Ti is an indicator of whether or not a restaurant is in New Jersey, and ti is an indicator of whether the observation is from before or after the minimum wage hike. 1.3 Assumptions for an Unbiased Estimator A reasonable criterion for a good estimator is that it be unbiased which means that "on average" the estimate will be correct, or mathematically that the expected value of the estimator E h δ̂ i = δ 1
  • 2. The assumptions we need for the difference in difference estimator to be correct are given by the following 1. The model in equation (Outcome) is correctly specified. For example, the additive structure imposed is correct. 2. The error term is on average zero: E [εi] = 0. Not a hard assumption with the constant term α put in. 3. The error term is uncorrelated with the other variables in the equation: cov (εi, Ti) = 0 cov (εi, ti) = 0 cov (εi, Ti · ti) = 0 the last of these assumptions, also known as the parallel-trend assumption, is the most critical. Under these assumptions we can use equation (Outcome) to determine that expected values of the average outcomes are given by E £ Y T 0 ¤ = α + β E £ Y T 1 ¤ = α + β + γ + δ E £ Y C 0 ¤ = α E £ Y C 1 ¤ = α + γ These equations will prove helpful below. 2 The Difference in Difference Estimator Before explaining the difference in difference estimator it is best to review the two simple difference estimators and understand what can go wrong with these. Understanding what is wrong about as an estimator is as important as understanding what is right about it. 2.1 Simple Pre versus Post Estimator Consider first an estimator based on comparing the average difference in outcome Yi before and after treat- ment in the treatment group alone.1 δ̂1 = Ȳ T 1 − Ȳ T 0 (D1) Taking the expectation of this estimator we get E h δ̂1 i = E £ Ȳ T 1 ¤ − E £ Ȳ T 0 ¤ = [α + β + γ + δ] − [α + β] = γ + δ which means that this estimator will be biased so long as γ 6= 0, i.e. if a time-trend exists in the outcome Yi then we will confound the time trend as being part of the treatment effect. 1 This would be the estimate one would get from an OLS estimate on a regression equation of the form Yi = α1 + δ1Ti + εi on the sample from the treatment group only. 2
  • 3. 2.2 Simple Treatment versus Control Estimator Next consider the estimator based on comparing the average difference in outcome Yi post-treatment, between the treatment and control groups, ignoring pre-treatment outcomes.2 δ̂2 = Ȳ T 1 − Ȳ C 1 (D2) Taking the expectation of this estimator E h δ̂1 i = E £ Ȳ T 1 ¤ − E £ Ȳ C 1 ¤ = [α + β + γ + δ] − [α + γ] = β + δ and so this estimator is biased so long as β 6= 0, i.e. there exist permanent average differences in outcome Yi between the treatment groups. The true treatment effect will be confounded by permanent differences in treatment and control groups that existed prior to any treatment. Note that in a randomized experiments, where subjects are randomly selected into treatment and control groups, β should be zero as both groups should be nearly identical: in this case this estimator may perform well in a controlled experimental setting typically unavailable in most program evaluation problems seen in economics. 2.3 The Difference in Difference Estimator The difference in difference (or "double difference") estimator is defined as the difference in average outcome in the treatment group before and after treatment minus the difference in average outcome in the control group before and after treatment3 : it is literally a "difference of differences." δ̂DD = Ȳ T 1 − Ȳ T 0 − ¡ Ȳ C 1 − Ȳ C 0 ¢ (DD) Taking the expectation of this estimator we will see that it is unbiased δ̂DD = E £ Ȳ T 1 ¤ − E £ Ȳ T 0 ¤ − ¡ E £ Ȳ C 1 ¤ − E £ Ȳ C 0 ¤¢ = α + β + γ + δ − (α + β) − (α + γ − γ) = (γ + δ) − γ = δ This estimator can be seen as taking the difference between two pre-versus-post estimators seen above in (D1), subtracting the control group’s estimator, which captures the time trend γ, from the treatment group’s estimator to get δ. We can also rearrange terms in equation (DD) to get δ̂DD = Ȳ T 1 − Ȳ C 1 − ¡ Ȳ T 0 − Ȳ C 0 ¢ in which can be interpreted as taking the difference of two estimators of the simple treatment versus control type seen in equation (D2). The difference estimator for the pre-period is used to estimate the permanent difference β, which is then subtracted away from the post-period estimator to get δ. Another interpretation of the difference in difference estimator is that is a simple difference estimator between the actual Ȳ T 1 and the Ȳ T 1 that would occur in the post treatment period to the treatment group had there been no treatment Ȳ T cf = Ȳ T 0 + ¡ Ȳ C 1 − Ȳ C 0 ¢ , where the subscript ”cf” refers to the term "coun- terfactual," so that δ̂DD = Ȳ T 1 − Ȳ T cf . This observation Ȳ T cf , which has expectation E h Ȳ T cf i = α + β + γ, does not exist: it is literally "contrary to fact" since there actually was a treatment in fact. However if our assumption are correct we can construct legitimate estimate of Ȳ T cf , taking the pre treatment average Ȳ T 0 and adding the our estimate β using the pre versus post difference for the control group. 2 This would be the estimate one would get from an OLS estimate on a regression equation of the form Yi = α2 + δ2ti + εi on the post-treatment samples only. 3 This would be the estimate one would get from an OLS estimate of a regression equation of the form given by (Outcome) on the entire sample. 3
  • 4. It is common to find difference in difference estimators presented in a table of the following form. Pre Post Post-Pre Difference Treatment Ȳ T 0 Ȳ T 1 Ȳ T 1 − Ȳ T 0 Control Ȳ C 0 Ȳ C 1 Ȳ C 1 − Ȳ C 0 T-C Difference Ȳ T 0 − Ȳ C 0 Ȳ T 1 − Ȳ C 1 Ȳ T 1 − Ȳ C 1 − ¡ Ȳ T 0 − Ȳ C 0 ¢ Notice that the first row ends with the estimate δ̂1, the second column ends with estimate δ̂2, and the lower right hand corner entry gives the estimate δ̂DD. Example 2 According to the model, by Card and Krueger (1994) comparisons of employment growth at stores in New Jersey and Pennsylvania (where the minimum wage was constant), provide simple estimates of the effect of the higher minimum wage. Some of the results from Table 3 are shown below with the average employment in the fast-food restaurants, with standard errors in parentheses Before Increase After Increase Difference New Jersey (Treatment) 20.44 (0.51) 21.03 (0.52) 0.59 (0.54) Pennsylvania (Control) 23.33 (1.35) 21.17 (0.94) −2.16 (1.25) Difference −2.89 (1.44) −0.14 (1.07) 2.76 (1.36) The difference in difference estimator shows a small increase in employment in New Jersey where the mini- mum wage increased. This came as quite a shock to most economists who thought employment would fall. Notice that we can see that prior to the increase in the minimum wage Pennsylvania had higher employment than New Jersey and that it was bound to fall to a lower level. This may be a failure in the parallel trend assumption. However the small, albeit insignificant increase in employment in New Jersey makes it hard to accept the hypothesis that employment actually decreased in New Jersey over this time. Although still some- what controversial, this study helped change the common presupposition that a small change in the minimum wage from a low level was bound to cause a significant decrease in employment. 2.4 Problems with Difference in Difference Estimators If any of the assumptions listed above do not hold then we have no guarantee that the estimator δ̂DD is unbiased. Unfortunately, it is often difficult and sometimes impossible to check the assumptions in the model as they are made about unobservable quantities. Keep in mind that small deviations from the assumptions may not matter much as the biases they introduce may be rather small, biases are a matter of degree. It is also possible, however, that the biases may be so huge that the estimates we get may be completely wrong, even of the opposite sign of the true treatment effect. One of the most common problems with difference in difference estimates is the failure of the parallel trend assumption. Suppose that cov (εi, Ti · ti) = E (εi (Ti · ti)) = ∆ so that Y follows a different trend for the treatment and control group. The control group has a time trend of γC = γ, while the treatment group has a trend of γT = γ + ∆. In this case the difference in difference estimator will be biased as E h δ̂DD i = ¡ γT + δ ¢ − γC = γ + ∆ + δ − γ = δ + ∆ The failure of the parallel trend assumption may in fact be a relatively common problem in many program evaluation studies, causing many difference in difference estimators to be biased. One way to help avoid these problems is to get more data on other time periods before and after treatment to see if there are any other pre-existing differences in trends. It may also be possible to find other control groups which will can provide additional underlying trends. There is a huge literature on this subject, although a good place to start is Meyer (1995). 4