Econometrics Chapter 11 PPT Slides
Econometrics Chapter 11 PPT Slides
Regression
with a Binary
Dependent
Variable
Outline
1. The Linear Probability Model
2. Probit and Logit Regression
3. Estimation and Inference in Probit and
Logit
4. Application to Racial Discrimination in
Mortgage Lending
11-2
11-3
13-3
11-4
Independent variables:
income, wealth, employment status
other loan, property characteristics
race of applicant
11-5
Yi = 0 + 1Xi + ui
But:
Y
What does 1 mean when Y is binary? Is 1 =
?
11-6
11-7
13-7
11-8
11-9
11-10
deny
= -.080 + .604P/Iratio
(n = 2380)
(.032) (.098)
What is the predicted value when P/I ratio = .3?
deny 1| P / Iratio .3) = -.080 + .604.3 = .151
Pr(
11-11
(.032) (.098)
(.025)
deny
Predicted probability of denial:
for black applicant with P/Iratio = .3:
= -.091 + .559.3 + .1771 = .254
deny 1)
Pr(for
white applicant, P/Iratio = .3:
= -.091 + .559.3 + .1770 = .077
difference
Pr(
deny 1) = .177 = 17.7 percentage points
Coefficient on black is significant at the 5% level
Stillplentyofroomforomittedvariablebias
Credithistory,earningspotential,etc
11-12
Disadvantages:
A LPM says that the change in the predicted probability for a
given change in X is the same for all values of X, but that
doesnt make sense. Think about the HMDA example
Also, LPM predicted probabilities can be <0 or >1!
11-13
11-14
A. The PROBIT
Regression
Copyright 2015, Pearson, Inc. All rights reserved.
11-15
13-
11-16
11-17
11-18
11-19
likelihood
likelihood
likelihood
likelihood
= -872.0853
= -835.6633
= -831.80534
= -831.79234
Number of obs
=
2380
Wald chi2(1)
=
40.68
Prob > chi2
=
0.0000
Log likelihood = -831.79234
Pseudo R2
=
0.0462
-----------------------------------------------------------------------------|
Robust
deny |
Coef.
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------p_irat |
2.967908
.4653114
6.38
0.000
2.055914
3.879901
_cons | -2.194159
.1649721
-13.30
0.000
-2.517499
-1.87082
------------------------------------------------------------------------------
deny 1| P / Iratio)
Pr(
= (-2.19 + 2.97P/Iratio)
(.16) (.47)
11-20
Predicted probabilities:
deny 1| P / Iratio .3) = (-2.19+2.97.3)= (-1.30) = .097
Pr(
Effect of change in P/Iratio from .3 to .4:
= (-2.19+2.97.4)= (-1.00) = .159
11-21
11-22
Number of obs
=
2380
Wald chi2(2)
=
118.18
Prob > chi2
=
0.0000
Log likelihood = -797.13604
Pseudo R2
=
0.0859
-----------------------------------------------------------------------------|
Robust
deny |
Coef.
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------p_irat |
2.741637
.4441633
6.17
0.000
1.871092
3.612181
black |
.7081579
.0831877
8.51
0.000
.545113
.8712028
_cons | -2.258738
.1588168
-14.22
0.000
-2.570013
-1.947463
------------------------------------------------------------------------------
Wellgothroughtheestimationdetailslater
11-23
Number of obs
=
2380
Wald chi2(2)
=
118.18
Prob > chi2
=
0.0000
Log likelihood = -797.13604
Pseudo R2
=
0.0859
-----------------------------------------------------------------------------|
Robust
deny |
Coef.
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------p_irat |
2.741637
.4441633
6.17
0.000
1.871092
3.612181
black |
.7081579
.0831877
8.51
0.000
.545113
.8712028
_cons | -2.258738
.1588168
-14.22
0.000
-2.570013
-1.947463
------------------------------------------------------------------------------
. sca z1 = _b[_cons]+_b[p_irat]*.3+_b[black]*0
. display "Pred prob, p_irat=.3, white: " normprob(z1)
Pred prob, p_irat=.3, white: .07546603
_b[_cons] is the estimated intercept (-2.258738)
_b[p_irat] is the coefficient on p_irat (2.741637)
sca creates a new scalar which is the result of a calculation
display prints the indicated information to the screen
Copyright 2015, Pearson, Inc. All rights reserved.
11-24
(.44)
(.08)
11-25
__________________
11-26
11-28
B. The LOGIT
Regression
Copyright 2015, Pearson, Inc. All rights reserved.
11-29
13-
Logit Regression
Logit regression models the probability of Y=1,
given X, as the cumulative standard logistic
distribution function, evaluated at z = 0 + 1X:
Pr(Y = 1|X) = F(0 + 1X)
where F is the cumulative logistic distribution
function:
1
( 0 1 X )
F(0 + 1X) =
1 e
11-30
11-31
13-
1
1 e
( 0 1 X )
Example:
Again, we need specific numerical values:
0 = -3, 1= 2, X = .4,
so 0 + 1X = -3 + 2X.4 = -2.2 so
Pr(Y = 1|X=.4) = 1/(1+e(2.2)) = .0998
11-32
Iteration 0:
log
Iteration 1:
log
Iteration 2:
log
Iteration 3:
log
Iteration 4:
log
Logit estimates
likelihood
likelihood
likelihood
likelihood
likelihood
= -872.0853
= -806.3571
= -795.74477
= -795.69521
= -795.69521
Later
Number of obs
=
2380
Wald chi2(2)
=
117.75
Prob > chi2
=
0.0000
Log likelihood = -795.69521
Pseudo R2
=
0.0876
-----------------------------------------------------------------------------|
Robust
deny |
Coef.
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------p_irat |
5.370362
.9633435
5.57
0.000
3.482244
7.258481
black |
1.272782
.1460986
8.71
0.000
.9864339
1.55913
_cons | -4.125558
.345825
-11.93
0.000
-4.803362
-3.447753
------------------------------------------------------------------------------
1/(1+exp(-(_b[_cons]
NOTE:
11-33
11-34
Number of obs
=
2,380
Wald chi2(2)
=
117.75
Prob > chi2
=
0.0000
Log pseudolikelihood = -795.69521
Pseudo R2
=
0.0876
-----------------------------------------------------------------------------|
Robust
deny |
Coef.
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------pi_rat |
5.370362
.9633435
5.57
0.000
3.482244
7.258481
black |
1.272782
.1460986
8.71
0.000
.9864339
1.55913
_cons | -4.125558
.345825
-11.93
0.000
-4.803362
-3.447753
------------------------------------------------------------------------------
11-35
11-36
Number of obs
=
2,380
Wald chi2(2)
=
117.75
Prob > chi2
=
0.0000
Log pseudolikelihood = -795.69521
Pseudo R2
=
0.0876
-----------------------------------------------------------------------------|
Robust
deny |
Coef.
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------pi_rat |
5.370362
.9633435
5.57
0.000
3.482244
7.258481
black |
1.272782
.1460986
8.71
0.000
.9864339
1.55913
_cons | -4.125558
.345825
-11.93
0.000
-4.803362
-3.447753
------------------------------------------------------------------------------
3. Why are the coefficients not the same as under the Probit
Regression ?
4. Please interpret the coefficients in words
5. Calculate the predicted probability for a white person with a
pi_rat of .38
Copyright 2015, Pearson, Inc. All rights reserved.
11-37
______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
11-39
11-40
11-41
Number of obs
Wald chi2(2)
Prob > chi2
=
=
=
2380
118.18
0.0000
Pseudo R2
0.0859
-----------------------------------------------------------------------------|
Robust
deny |
Coef.
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------p_irat |
2.741637
.4441633
6.17
0.000
1.871092
3.612181
black |
.7081579
.0831877
8.51
0.000
.545113
.8712028
_cons | -2.258738
.1588168
-14.22
0.000
-2.570013
-1.947463
------------------------------------------------------------------------------
11-42
Number of obs
=
2,380
Wald chi2(2)
=
117.75
Prob > chi2
=
0.0000
Log pseudolikelihood = -795.69521
Pseudo R2
=
0.0876
-----------------------------------------------------------------------------|
Robust
deny |
Coef.
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------pi_rat |
5.370362
.9633435
5.57
0.000
3.482244
7.258481
black |
1.272782
.1460986
8.71
0.000
.9864339
1.55913
_cons | -4.125558
.345825
-11.93
0.000
-4.803362
-3.447753
------------------------------------------------------------------------------
11-43
11-44
Conclusion
(SW Section 11.5)
If Yi is binary, then E(Y| X) = Pr(Y=1|X)
Three models:
linear probability model (linear multiple regression)
probit (cumulative standard normal distribution)
logit (cumulative standard logistic distribution)
11-45
11-46