1 / 37

BINARY CHOICE MODELS: LOGIT ANALYSIS

BINARY CHOICE MODELS: LOGIT ANALYSIS. Y, p. A. 1. 1 - b 1 - b 2 X i. b 1 + b 2 X i. b 1. b 1 + b 2 X i. B. 0. X i. X. The linear probability model may make the nonsense predictions that an event will occur with probability greater than 1 or less than 0. 1.

guri
Download Presentation

BINARY CHOICE MODELS: LOGIT ANALYSIS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BINARY CHOICE MODELS: LOGIT ANALYSIS Y, p A 1 1 - b1 - b2Xi b1 +b2Xi b1 b1 + b2Xi B 0 Xi X The linear probability model may make the nonsense predictions that an event will occur with probability greater than 1 or less than 0. 1

  2. BINARY CHOICE MODELS: LOGIT ANALYSIS The usual way of avoiding this problem is to hypothesize that the probability is a sigmoid (S-shaped) function of Z, F(Z), where Z is a function of the explanatory variables. 2

  3. BINARY CHOICE MODELS: LOGIT ANALYSIS Several mathematical functions are sigmoid in character. One is the logistic function shown here. As Z goes to infinity, e-Z goes to 0 and p goes to 1 (but cannot exceed 1). As Z goes to minus infinity, e-Z goes to infinity and p goes to 0 (but cannot be below 0). 3

  4. BINARY CHOICE MODELS: LOGIT ANALYSIS The model implies that, for values of Z less than -2, the probability of the event occurring is low and insensitive to variations in Z. Likewise, for values greater than 2, the probability is high and insensitive to variations in Z. 4

  5. BINARY CHOICE MODELS: LOGIT ANALYSIS To obtain an expression for the sensitivity, we differentiate F(Z) with respect to Z. The box gives the general rule for differentiating a quotient and applies it to F(Z). 5

  6. BINARY CHOICE MODELS: LOGIT ANALYSIS The sensitivity, as measured by the slope, is greatest when Z is 0. The marginal function, f(Z), reaches a maximum at this point. 6

  7. BINARY CHOICE MODELS: LOGIT ANALYSIS For a nonlinear model of this kind, maximum likelihood estimation is much superior to the use of the least squares principle for estimating the parameters. More details concerning its application are given at the end of this sequence. 7

  8. BINARY CHOICE MODELS: LOGIT ANALYSIS We will apply this model to the graduating from high school example described in the linear probability model sequence. We will begin by assuming that ASVABC is the only relevant explanatory variable, so Z is a simple function of it. 8

  9. BINARY CHOICE MODELS: LOGIT ANALYSIS . logit GRAD ASVABC Iteration 0: Log Likelihood =-162.29468 Iteration 1: Log Likelihood =-132.97646 Iteration 2: Log Likelihood =-117.99291 Iteration 3: Log Likelihood =-117.36084 Iteration 4: Log Likelihood =-117.35136 Iteration 5: Log Likelihood =-117.35135 Logit Estimates Number of obs = 570 chi2(1) = 89.89 Prob > chi2 = 0.0000 Log Likelihood = -117.35135 Pseudo R2 = 0.2769 ------------------------------------------------------------------------------ grad | Coef. Std. Err. z P>|z| [95% Conf. Interval] ---------+-------------------------------------------------------------------- asvabc | .1666022 .0211265 7.886 0.000 .1251951 .2080094 _cons | -5.003779 .8649213 -5.785 0.000 -6.698993 -3.308564 ------------------------------------------------------------------------------ The Stata command is logit, followed by the outcome variable and the explanatory variable(s). Maximum likelihood estimation is an iterative process, so the first part of the output will be like that shown. 9

  10. BINARY CHOICE MODELS: LOGIT ANALYSIS . logit GRAD ASVABC Iteration 0: Log Likelihood =-162.29468 Iteration 1: Log Likelihood =-132.97646 Iteration 2: Log Likelihood =-117.99291 Iteration 3: Log Likelihood =-117.36084 Iteration 4: Log Likelihood =-117.35136 Iteration 5: Log Likelihood =-117.35135 Logit Estimates Number of obs = 570 chi2(1) = 89.89 Prob > chi2 = 0.0000 Log Likelihood = -117.35135 Pseudo R2 = 0.2769 ------------------------------------------------------------------------------ GRAD | Coef. Std. Err. z P>|z| [95% Conf. Interval] ---------+-------------------------------------------------------------------- ASVABC | .1666022 .0211265 7.886 0.000 .1251951 .2080094 _cons | -5.003779 .8649213 -5.785 0.000 -6.698993 -3.308564 ------------------------------------------------------------------------------ In this case the coefficients of the Z function are as shown. 10

  11. BINARY CHOICE MODELS: LOGIT ANALYSIS Since there is only one explanatory variable, we can draw the probability function and marginal effect function as functions of ASVABC. 11

  12. BINARY CHOICE MODELS: LOGIT ANALYSIS We see that ASVABC has its greatest effect on graduating when it is in the range 20-40, that is, in the lower ability range. Any individual with a score above the average (50) is almost certain to graduate. 12

  13. BINARY CHOICE MODELS: LOGIT ANALYSIS . logit GRAD ASVABC Iteration 0: Log Likelihood =-162.29468 Iteration 1: Log Likelihood =-132.97646 Iteration 2: Log Likelihood =-117.99291 Iteration 3: Log Likelihood =-117.36084 Iteration 4: Log Likelihood =-117.35136 Iteration 5: Log Likelihood =-117.35135 Logit Estimates Number of obs = 570 chi2(1) = 89.89 Prob > chi2 = 0.0000 Log Likelihood = -117.35135 Pseudo R2 = 0.2769 ------------------------------------------------------------------------------ GRAD | Coef. Std. Err. z P>|z| [95% Conf. Interval] ---------+-------------------------------------------------------------------- ASVABC | .1666022 .0211265 7.886 0.000 .1251951 .2080094 _cons | -5.003779 .8649213 -5.785 0.000 -6.698993 -3.308564 ------------------------------------------------------------------------------ The t statistic indicates that the effect of variations in ASVABC on the probability of graduating from high school is highly significant. 13

  14. BINARY CHOICE MODELS: LOGIT ANALYSIS . logit GRAD ASVABC Iteration 0: Log Likelihood =-162.29468 Iteration 1: Log Likelihood =-132.97646 Iteration 2: Log Likelihood =-117.99291 Iteration 3: Log Likelihood =-117.36084 Iteration 4: Log Likelihood =-117.35136 Iteration 5: Log Likelihood =-117.35135 Logit Estimates Number of obs = 570 chi2(1) = 89.89 Prob > chi2 = 0.0000 Log Likelihood = -117.35135 Pseudo R2 = 0.2769 ------------------------------------------------------------------------------ GRAD | Coef. Std. Err. z P>|z| [95% Conf. Interval] ---------+-------------------------------------------------------------------- ASVABC | .1666022 .0211265 7.886 0.000 .1251951 .2080094 _cons | -5.003779 .8649213 -5.785 0.000 -6.698993 -3.308564 ------------------------------------------------------------------------------ Strictly speaking, the t statistic is valid only for large samples, so the normal distribution is the reference distribution. For this reason the statistic is denoted z in the Stata output. This z has nothing to do with our Z function. 14

  15. BINARY CHOICE MODELS: LOGIT ANALYSIS The coefficients of the Z function do not have any direct intuitive interpretation. 15

  16. BINARY CHOICE MODELS: LOGIT ANALYSIS However, we can use them to quantify the marginal effect of a change in ASVABC on the probability of graduating. We will do this theoretically for the general case where Z is a function of several explanatory variables. 16

  17. BINARY CHOICE MODELS: LOGIT ANALYSIS Since p is a function of Z, and Z is a function of the X variables, the marginal effect of Xi on p can be written as the product of the marginal effect of Z on p and the marginal effect of Xi on Z. 17

  18. BINARY CHOICE MODELS: LOGIT ANALYSIS We have already derived an expression for dp/dZ. The marginal effect of Xi on Z is given by its b coefficient. 18

  19. BINARY CHOICE MODELS: LOGIT ANALYSIS Hence we obtain an expression for the marginal effect of Xi on p. 19

  20. BINARY CHOICE MODELS: LOGIT ANALYSIS The marginal effect is not constant because it depends on the value of Z, which in turn depends on the values of the explanatory variables. A common procedure is to evaluate it for the sample means of the explanatory variables. 20

  21. BINARY CHOICE MODELS: LOGIT ANALYSIS . sum GRAD ASVABC Variable | Obs Mean Std. Dev. Min Max ---------+----------------------------------------------------- GRAD | 570 .9175439 .2753 0 1 ASVABC | 570 50.15088 9.214589 22 65 Logit Estimates Number of obs = 570 chi2(1) = 89.89 Prob > chi2 = 0.0000 Log Likelihood = -117.35135 Pseudo R2 = 0.2769 ------------------------------------------------------------------------------ GRAD | Coef. Std. Err. z P>|z| [95% Conf. Interval] ---------+-------------------------------------------------------------------- ASVABC | .1666022 .0211265 7.886 0.000 .1251951 .2080094 _cons | -5.003779 .8649213 -5.785 0.000 -6.698993 -3.308564 ------------------------------------------------------------------------------ The sample mean of ASVABC was 50.15. 21

  22. BINARY CHOICE MODELS: LOGIT ANALYSIS . sum GRAD ASVABC Variable | Obs Mean Std. Dev. Min Max ---------+----------------------------------------------------- GRAD | 570 .9175439 .2753 0 1 ASVABC | 570 50.15088 9.214589 22 65 Logit Estimates Number of obs = 570 chi2(1) = 89.89 Prob > chi2 = 0.0000 Log Likelihood = -117.35135 Pseudo R2 = 0.2769 ------------------------------------------------------------------------------ GRAD | Coef. Std. Err. z P>|z| [95% Conf. Interval] ---------+-------------------------------------------------------------------- ASVABC | .1666022 .0211265 7.886 0.000 .1251951 .2080094 _cons | -5.003779 .8649213 -5.785 0.000 -6.698993 -3.308564 ------------------------------------------------------------------------------ When evaluated at the mean, Z is equal to 3.371. 22

  23. BINARY CHOICE MODELS: LOGIT ANALYSIS . sum GRAD ASVABC Variable | Obs Mean Std. Dev. Min Max ---------+----------------------------------------------------- GRAD | 570 .9175439 .2753 0 1 ASVABC | 570 50.15088 9.214589 22 65 e-Z is 0.034. Hence f(Z) is 0.032. 23

  24. BINARY CHOICE MODELS: LOGIT ANALYSIS . sum GRAD ASVABC Variable | Obs Mean Std. Dev. Min Max ---------+----------------------------------------------------- GRAD | 570 .9175439 .2753 0 1 ASVABC | 570 50.15088 9.214589 22 65 The marginal effect, evaluated at the mean, is therefore 0.005. This implies that a one point increase in ASVABC would increase the probability of graduating from high school by 0.5 percent. 24

  25. BINARY CHOICE MODELS: LOGIT ANALYSIS 50.15 In this example, the marginal effect at the mean of ASVABC is very low. The reason is that anyone with an average score is very likely to graduate anyway. So an increase in the score has little effect. 25

  26. BINARY CHOICE MODELS: LOGIT ANALYSIS . sum COLLEGE ASVABC Variable | Obs Mean Std. Dev. Min Max ---------+----------------------------------------------------- COLLEGE | 570 .4964912 .5004269 0 1 ASVABC | 570 50.15088 9.214589 22 65 To show that the marginal effect varies, we will also calculate it for ASVABC equal to 30. A one point increase in ASVABC then increases the probability by 4.2 percent. 26

  27. BINARY CHOICE MODELS: LOGIT ANALYSIS 0.89 0.042 30 An individual with a score of 30 has only a 50 percent probability of graduating, and an increase in the score has a relatively large impact. 27

  28. BINARY CHOICE MODELS: LOGIT ANALYSIS . logit GRAD ASVABC SM SF MALE Iteration 0: Log Likelihood =-162.29468 Iteration 1: Log Likelihood =-133.21451 Iteration 2: Log Likelihood =-117.16714 Iteration 3: Log Likelihood =-116.51081 Iteration 4: Log Likelihood =-116.49969 Iteration 5: Log Likelihood =-116.49968 Logit Estimates Number of obs = 570 chi2(4) = 91.59 Prob > chi2 = 0.0000 Log Likelihood = -116.49968 Pseudo R2 = 0.2822 ------------------------------------------------------------------------------ grad | Coef. Std. Err. z P>|z| [95% Conf. Interval] ---------+-------------------------------------------------------------------- ASVABC | .1563271 .0224382 6.967 0.000 .1123491 .2003051 SM | .0645542 .0773804 0.834 0.404 -.0871086 .216217 SF | .0054552 .0616822 0.088 0.930 -.1154397 .12635 MALE | -.2790915 .3601689 -0.775 0.438 -.9850095 .4268265 _cons | -5.15931 .994783 -5.186 0.000 -7.109049 -3.209571 ------------------------------------------------------------------------------ Here is the output for a model with a somewhat better specification. 28

  29. BINARY CHOICE MODELS: LOGIT ANALYSIS . sum GRAD ASVABC SM SF MALE Variable | Obs Mean Std. Dev. Min Max ---------+----------------------------------------------------- GRAD | 570 .9175439 .2753 0 1 ASVABC | 570 50.15088 9.214589 22 65 SM | 570 11.65263 2.561449 0 20 SF | 570 11.81754 3.533178 0 20 MALE | 570 .5701754 .4954857 0 1 We will estimate the marginal effects, putting all the explanatory variables equal to their sample means. 29

  30. BINARY CHOICE MODELS: LOGIT ANALYSIS Logit: Marginal Effects mean b product f(Z) f(Z)b ASVABC 50.15 0.156 7.839 0.033 0.005 SM 11.65 0.065 0.753 0.033 0.002 SF 11.82 0.006 0.065 0.033 0.000 MALE 0.57 -0.279 -0.159 0.033 -0.009 Constant 1.00 -5.159 -5.159 Total 3.338 The first step is to calculate Z, when the X variables are equal to their sample means. 30

  31. BINARY CHOICE MODELS: LOGIT ANALYSIS Logit: Marginal Effects mean b product f(Z) f(Z)b ASVABC 50.15 0.156 7.839 0.033 0.005 SM 11.65 0.065 0.753 0.033 0.002 SF 11.82 0.006 0.065 0.033 0.000 MALE 0.57 -0.279 -0.159 0.033 -0.009 Constant 1.00 -5.159 -5.159 Total 3.338 We then calculate f(Z). 31

  32. BINARY CHOICE MODELS: LOGIT ANALYSIS Logit: Marginal Effects mean b product f(Z) f(Z)b ASVABC 50.15 0.156 7.839 0.033 0.005 SM 11.65 0.065 0.753 0.033 0.002 SF 11.82 0.006 0.065 0.033 0.000 MALE 0.57 -0.279 -0.159 0.033 -0.009 Constant 1.00 -5.159 -5.159 Total -3.338 The estimated marginal effects are f(Z) multiplied by the respective coefficients. We see that the effect of ASVABC is about the same as before. Every extra year of schooling of the mother increases the probability of graduating by 0.2 percent. 32

  33. BINARY CHOICE MODELS: LOGIT ANALYSIS Logit: Marginal Effects mean b product f(Z) f(Z)b ASVABC 50.15 0.156 7.839 0.033 0.005 SM 11.65 0.065 0.753 0.033 0.002 SF 11.82 0.006 0.065 0.033 0.000 MALE 0.57 -0.279 -0.159 0.033 -0.009 Constant 1.00 -5.159 -5.159 Total -3.338 Father's schooling has no discernible effect. Males have 0.9 percent lower probability of graduating than females. These effects would all have been larger if they had been evaluated at a lower ASVABC score. 33

  34. BINARY CHOICE MODELS: LOGIT ANALYSIS Individuals who graduated: outcome probability is This sequence will conclude with an outline explanation of how the model is fitted using maximum likelihood estimation. 34

  35. BINARY CHOICE MODELS: LOGIT ANALYSIS Individuals who graduated: outcome probability is In the case of an individual who graduated, the probability of that outcome is F(Z). We will give subscripts 1, ..., s to the individuals who graduated. 35

  36. BINARY CHOICE MODELS: LOGIT ANALYSIS Maximize F(Z1) x ... xF(Zs) x [1 - F(Zs+1)] x ... x [1 - F(Zn)] Individuals who graduated: outcome probability is Individuals did not graduate: outcome probability is In the case of an individual who did not graduate, the probability of that outcome is 1 - F(Z). We will give subscripts s+1, ..., n to these individuals. 36

  37. BINARY CHOICE MODELS: LOGIT ANALYSIS Maximize F(Z1) x ... xF(Zs) x [1 - F(Zs+1)] x ... x [1 - F(Zn)] Did graduate Did not graduate We choose b1 and b2 so as to maximize the joint probability of the outcomes, that is, F(Z1) x ... x F(Zs) x [1 - F(Zs+1)] x ... x [1 - F(Zn)]. There are no mathematical formulae for b1 and b2. They have to be determined iteratively by a trial-and-error process. 37

More Related