11.ECTRIE Binary DV

📚 11.ECTRIE_Binary_DV (1).pdf

Brief overview

This document introduces binary choice models essential for analyzing decisions with two outcomes, explaining their necessity over traditional linear regression. It details advanced models and their applications in econometrics for understanding choices and probabilities.

Key points

  • Overview of binary dependent variables and limitations of linear regression.
  • How probit and logit models ensure probability bounds and address LPM issues.
  • Estimation, interpretation of coefficients, and inference for binary choice models.
  • Practical application of binary choice models using real-world data.
  • Relevant Stata commands for binary choice model implementation.

1. Introduction to binary choice models

1.1 Binary choice models: An overview

Binary choice models are used when the dependent variable indicates a choice between two options. These models analyze situations where an individual or entity makes a yes/no decision.

This is common in micro-economic problems, often requiring data at the individual, household, or firm level 5.

Examples of binary choice situations include:

  • A married woman deciding whether to take a paid job.
  • A consumer choosing between two brands, like Coke or Pepsi.
  • A family deciding whether to own a car or a house.
  • A high school graduate deciding whether to attend university.
  • Predicting if a bank will fail (bankruptcy = 1, solvency = 0).
  • Determining bond ratings (AA rating = 1, otherwise = 0).

Traditional linear regression is not suitable for these types of models. Instead, specialized models are used, such as ordered response models, multinomial models, Tobit models, and duration models.

These advanced models address the limitations of linear regression when dealing with discrete or limited dependent variables 3.

1.2 The linear probability model (LPM)

The Linear Probability Model (LPM) applies the standard linear regression framework to a binary dependent variable. The dependent variable, YiY_i, takes values of 0 (failure) or 1 (success).

The model is represented as: Yi=β0+β1X1i+β2X2i+⋯+βkXki+uiY_i = \beta_0 + \beta_1X_{1i} + \beta_2X_{2i} + \cdots + \beta_kX_{ki} + u_i In the LPM, the expected value of the binary dependent variable is interpreted as the conditional probability of success: E(Yi∣X1,…,Xk)=P(Yi=1∣X1,…,Xk)=β0+β1X1i+⋯+βkXkiE(Y_i | X_1, \dots, X_k) = P(Y_i = 1 | X_1, \dots, X_k) = \beta_0 + \beta_1X_{1i} + \cdots + \beta_kX_{ki} Here, β1\beta_1 represents the change in the probability that Yi=1Y_i=1 for a one-unit increase in X1iX_{1i}, holding other variables constant 9.

The regression coefficient β_1 represents the change in probability of Y_i=1 for a unit change in X_1, holding other regressors constant.

Regression coefficients in the LPM can be estimated using Ordinary Least Squares (OLS). The OLS predicted values, Y^i\hat{Y}_i, represent the estimated probabilities of the dependent variable equaling 1.

Standard OLS techniques for confidence intervals and hypothesis tests can be used, with heteroscedasticity-robust standard errors being appropriate 10.

1.3 Example: Mortgage denial

Consider a model predicting mortgage denial, where denyi=1denyi=1 if denied and 00 otherwise. The payment-to-income ratio (P/I ratio) is a key explanatory variable.

denyi=β0+β1P/I ratioi+uidenyi = \beta_0 + \beta_1P/I \text{ ratio}_i + u_i If β^1\hat{\beta}_1 is positive, an increase in the P/I ratio is associated with a higher probability of denial. The LPM estimates allow for direct interpretation of coefficients as changes in probabilities 7.

Scatterplot showing mortgage application denial versus the payment-to-income ratio, with a linear probability model line.

For instance, an estimated coefficient of 0.604 for the P/I ratio means a 0.1 increase in this ratio corresponds to a 0.060 or 6 percentage point increase in the probability of denial. If the P/I ratio is 0.3, the predicted probability of denial might be 10.1% 11 12.

1.4 Problems with the LPM

The LPM, despite its simplicity, suffers from significant drawbacks. These primarily relate to predicted values and the properties of the error term 13.

1.4.1 Predicted values outside.

The most critical issue is that the LPM does not guarantee that predicted probabilities lie within the valid range of 0 to 1. The linear equation can yield predicted values Y^i\hat{Y}_i that are less than 0 or greater than 1.

This violates the fundamental definition of a probability 14.

1.4.2 Non-normality and heteroscedasticity of errors

The error term uiu_i in the LPM has a non-normal distribution because YiY_i is binary. Specifically, uiu_i can only take two values.

YiY_i valueuiu_i valueProbability
11−(β0+β1X1i+⋯+βkXki)1 - (\beta_0 + \beta_1X_{1i} + \cdots + \beta_kX_{ki})$P(Y_i=1
0−(β0+β1X1i+⋯+βkXki)-(\beta_0 + \beta_1X_{1i} + \cdots + \beta_kX_{ki})$P(Y_i=0

This can be summarized as:

YiY_i valueuiu_i valueProb.
11−(β0+β1X1i+⋯+βkXki)1 - (\beta_0 + \beta_1X_{1i} + \cdots + \beta_kX_{ki})$P(Y_i=1
0−(β0+β1X1i+⋯+βkXki)-(\beta_0 + \beta_1X_{1i} + \cdots + \beta_kX_{ki})$P(Y_i=0
var(ui)=var(Yi)=pi(1−pi)var(u_i) = var(Y_i) = p_i(1 - p_i) var(ui)=(β0+β1X1i+⋯+βkXki)(1−(β0+β1X1i+⋯+βkXki))var(u_i) = (\beta_0 + \beta_1X_{1i} + \cdots + \beta_kX_{ki})(1 - (\beta_0 + \beta_1X_{1i} + \cdots + \beta_kX_{ki})) This heteroscedasticity violates a key assumption of standard OLS 15 16.

🔑 Important: While the Central Limit Theorem can help with non-normality in large samples, heteroscedasticity requires special handling, such as using Generalized Least Squares (GLS) or heteroscedasticity-robust standard errors.

1.5 Alternatives to LPM

Due to the issues with predicted values and error term properties, alternative models like Probit and Logit are preferred for binary choice situations. These models are specifically designed to ensure probabilities remain within the interval and handle the error structure appropriately 1 17.

🔑 Important: The Linear Probability Model is conceptually simple but flawed for binary outcomes. More advanced models like Probit and Logit are essential for accurate analysis of binary choices.

2. Probit and logit regression models

2.1 Introduction to S-shaped models

Linear Probability Models (LPM) have a drawback: predicted probabilities can fall outside the range. To address this, nonlinear models use S-shaped functions.

These functions map the linear combination of predictors, zi=β0+β1X1i+⋯+βkXkiz_i = \beta_0 + \beta_1X_{1i} + \dots + \beta_kX_{ki}, to a probability, P(Yi=1∣X)=F(zi)P(Y_i=1 | X) = F(z_i). The choice of the cumulative distribution function (CDF), F(zi)F(z_i), defines the specific model 1 19.

2.2 Probit and logit models

Probit and logit regressions are two common types of nonlinear models. They differ in the specific S-shaped function used.

  • Probit regression: Uses the cumulative distribution function (CDF) of the standard normal distribution, denoted as Φ(zi)\Phi(z_i). This function is derived from the integral of the normal density function. The formula for Probit regression shows the cumulative distribution function of the standard normal distribution.

  • Logit regression: Uses the CDF of the logistic distribution, denoted as Λ(zi)\Lambda(z_i). This function is given by ezi1+ezi\frac{e^{z_i}}{1 + e^{z_i}}.

Both functions ensure that predicted probabilities stay between 0 and 1. They are similar in shape, especially in the central range of ziz_i.

2.3 Interpreting and applying probit and logit models

These models are used to estimate the probability of a binary outcome. For example, they can model the probability of mortgage denial based on financial ratios.

The coefficients (β\beta) represent the change in the zz-value for a one-unit change in the predictor. However, the effect on the probability is nonlinear 21.

  • Marginal effects: The change in predicted probability due to a unit change in an independent variable depends on the initial value of that variable. This is because the CDF is nonlinear. [page=23.
  • Example: Increasing the Payment-to-Income (P/I) ratio from 0.3 to 0.4 might increase the denial probability by 6.2 percentage points. Increasing it from 0.4 to 0.5 might increase it by 8.0 percentage points. [page=23 22.

2.3.1 Model comparison

The choice between probit and logit often makes little practical difference in applied work. Their predictions are usually very close.

The main difference lies in the specific distribution assumed for the error term.

ModelCDF NameCDF Formula
ProbitNormal CDF (Φ\Phi)Φ(zi)\Phi(z_i)
LogitLogistic CDF (Λ\Lambda)Λ(zi)=ezi1+ezi\Lambda(z_i) = \frac{e^{z_i}}{1 + e^{z_i}}

[page=26 [page=27 20.

This chart compares the Probit and Logit models for predicting mortgage denial based on the payment-to-income ratio. Comparison of the cumulative distribution functions for the normal and logistic distributions.

🔑 Important: Both models produce similar S-shaped curves and are widely used for binary outcomes. The choice often depends on theoretical preference or empirical fit27.

📝 Example: Estimating mortgage denial probability using P/I ratio shows similar curves for probit and logit models, indicating their comparable performance 26.

2.3.2 Example: Race and mortgage denial

Consider a probit model estimating mortgage denial based on P/I ratio and a dummy variable for race (black).

  • Probit estimation: P^(deny=1∣P/I ratio, black)=Φ(−2.26+2.74×P/I ratio+0.71×black)\hat{P}(\text{deny}=1 | \text{P/I ratio, black}) = \Phi(-2.26 + 2.74 \times \text{P/I ratio} + 0.71 \times \text{black}).
  • Race effect: Holding P/I ratio at 0.3, a Black applicant has a 23.3% predicted denial probability, while a White applicant has a 7.5% predicted probability. This is a 15.8 percentage point difference.

Now, consider the same scenario with a logit model:

  • Logit estimation: P^(deny=1∣P/I ratio, black)=Λ(−4.13+5.37×P/I ratio+1.27×black)\hat{P}(\text{deny}=1 | \text{P/I ratio, black}) = \Lambda(-4.13 + 5.37 \times \text{P/I ratio} + 1.27 \times \text{black}).
  • Race effect: With P/I ratio at 0.3, a Black applicant has a 22.2% predicted denial probability, and a White applicant has a 7.4% probability. This is a 14.8 percentage point difference.

🔑 Important: While the absolute differences in predicted probabilities vary slightly between probit and logit, the overall conclusions about the significance and direction of variables are generally consistent. [page=25.

🔑 Important: The marginal effect of a variable depends on its value. In the probit example, the predicted probability of denial increases more when the P/I ratio rises from 0.4 to 0.5 than from 0.3 to 0.4 23.

🔑 Important: Probit and logit models often yield similar practical conclusions for variable significance and direction of effects, even with different functional forms. [page=25 24 25.

3. Estimation, interpretation, and inference for binary choice models

3.1 Estimation methods

Binary choice models, like probit and logit, cannot be estimated using Ordinary Least Squares (OLS). This is because the relationship between the dependent and explanatory variables is non-linear.

Nonlinear Least Squares (NLS) can be used. NLS finds parameter values that minimize the sum of squared prediction errors.

However, the NLS estimator is not efficient, so Maximum Likelihood Estimation (MLE) is preferred 29.

The NLS estimator minimizes the sum of squared differences between actual and predicted values: ∑i=1n[Yi−Φ(b0+b1X1i+⋯+bkXki)]2\sum_{i=1}^{n} [Y_i - \Phi(b_0 + b_1X_{1i} + \dots + b_kX_{ki})]^2 This diagram illustrates the formula for the nonlinear least squares estimator of the probit coefficients, which minimizes the sum of squared prediction mistakes.

Maximum Likelihood Estimation (MLE) selects parameter values that are most likely to have generated the observed data. For each observation, the probability of observing a 1 is P(Yi=1)=F(zi)P(Y_i = 1) = F(z_i).

The probability of observing a 0 is P(Yi=0)=1−F(zi)P(Y_i = 0) = 1 - F(z_i), where zi=β0+β1X1i+⋯+βkXkiz_i = \beta_0 + \beta_1X_{1i} + \dots + \beta_kX_{ki} and F(⋅)F(\cdot) is the cumulative distribution function (CDF) 30 31.

The likelihood contribution for observation ii is: P(Yi)=[F(zi)]Yi×[1−F(zi)]1−YiP(Y_i) = [F(z_i)]^{Y_i} \times [1 - F(z_i)]^{1-Y_i} The total likelihood for the sample is the product of individual likelihoods, assuming independence. Working with the log-likelihood function is easier: ln⁡L(β0,…,βk)=∑i=1n[Yilog⁡(F(zi))+(1−Yi)log⁡(1−F(zi))]\ln L(\beta_0, \dots, \beta_k) = \sum_{i=1}^{n} [Y_i \log(F(z_i)) + (1 - Y_i) \log(1 - F(z_i))] The MLEs are the β^0,…,β^k\hat{\beta}_0, \dots, \hat{\beta}_k that maximize this log-likelihood function The MLE is consistent, normally distributed in large samples, and the most efficient estimator 32 33 34 35.

3.2 Interpretation of coefficients

Coefficients in probit and logit models are not directly interpretable as the change in probability for a one-unit change in the independent variable. Instead, we use marginal effects and odds ratios.

3.2.1 Marginal effects

Marginal effects measure the change in the probability of the dependent variable being 1 for a one-unit change in an explanatory variable. For a continuous variable X1iX_{1i}, the marginal effect is the partial derivative of the probability with respect to X1iX_{1i}.

The formula for the marginal effect of XkiX_{ki} is: ∂P(Yi=1)∂Xki=f(zi)βk\frac{\partial P(Y_i = 1)}{\partial X_{ki}} = f(z_i) \beta_k where f(zi)f(z_i) is the probability density function (PDF) of the chosen distribution (probit or logit) 37.

  • Probit: f(zi)=ϕ(zi)f(z_i) = \phi(z_i) (standard normal PDF).
  • Logit: f(zi)=exp⁡(zi)(1+exp⁡(zi))2f(z_i) = \frac{\exp(z_i)}{(1 + \exp(z_i))^2} (logistic PDF).

The sign of βk\beta_k indicates the direction of the effect on the probability, but the magnitude is modified by the density function 36.

When reporting marginal effects, we can use:

  • Marginal effect at the means (MEM): Evaluates the effect at the average values of all variables.
  • Average marginal effect (AME): Averages the marginal effects across all observations.

This diagram illustrates the formula for calculating the marginal effect in probit and logit regression for a continuous explanatory variable.

3.2.2 Odds ratios

In logit models, the odds ratio is often more interpretable. The odds are the ratio of the probability of success to the probability of failure: Odds=P(Yi=1)P(Yi=0)=pi1−pi=exp⁡(zi)\text{Odds} = \frac{P(Y_i = 1)}{P(Y_i = 0)} = \frac{p_i}{1 - p_i} = \exp(z_i) Taking the log of the odds gives the logit: logit(pi)=log⁡(pi1−pi)=zi=β0+β1X1i+⋯+βkXki\text{logit}(p_i) = \log\left(\frac{p_i}{1 - p_i}\right) = z_i = \beta_0 + \beta_1X_{1i} + \dots + \beta_kX_{ki}.

The exponentiated coefficient, exp⁡(βk)\exp(\beta_k), represents the multiplicative change in the odds ratio for a one-unit increase in XkiX_{ki} 39.

  • Odds Ratio Table:
VariableOdds Ratio (exp⁡(βk)\exp(\beta_k))Interpretation
Continuousexp⁡(βk)\exp(\beta_k)For a one-unit increase in X, odds multiply by exp⁡(βk)\exp(\beta_k).
Dichotomousexp⁡(βk)\exp(\beta_k)The odds for the group with X=1X=1 are exp⁡(βk)\exp(\beta_k) times the odds for X=0X=0.

3.3 Hypothesis testing

Hypothesis tests for binary choice models are similar to those for linear models, often using the Likelihood Ratio (LR) test.

  • Overall significance: Tests if all slope coefficients are jointly zero (H0:β1=⋯=βk=0H_0: \beta_1 = \dots = \beta_k = 0).
  • Multiple restrictions: Tests if a subset of coefficients are jointly zero (H0:β3=β4=β5=0H_0: \beta_3 = \beta_4 = \beta_5 = 0).

The LR test statistic is calculated as LR=2(ln⁡LUR−ln⁡LR)LR = 2(\ln L_{UR} - \ln L_R), where LURL_{UR} is the maximized likelihood under no restrictions and LRL_R is the maximized likelihood under the restrictions. The LR statistic follows a chi-square distribution (χr2\chi^2_r) with rr degrees of freedom, where rr is the number of restrictions 40 41.

  • Decision Rule: Reject H0H_0 if LR>χr,α2LR > \chi^2_{r,\alpha} or if the p-value ≤α\le \alpha.

🔑 Important: The LR test is the counterpart to the F-test in linear regression.

3.4 Goodness-of-fit

Binary choice models do not have a direct equivalent to the R2R^2 from linear regression. Common measures include pseudo-R2R^2 and the percentage of correct predictions.

  • McFadden's Pseudo-R2R^2: This measure compares the log-likelihood of the unrestricted model (ln⁡LUR\ln L_{UR}) to the log-likelihood of a restricted model with only a constant (ln⁡LR\ln L_R). McFadden’s R2=1−ln⁡LURln⁡LR\text{McFadden's } R^2 = 1 - \frac{\ln L_{UR}}{\ln L_R} A higher value indicates a better fit, with values typically ranging from 0.2 to 0.4 for good models 42.

  • Percentage of Correct Predictions: This counts how often the model correctly predicts the outcome. A prediction is correct if Yi=1Y_i=1 and the predicted probability is ≥0.5\ge 0.5, or if Yi=0Y_i=0 and the predicted probability is <0.5< 0.5.

  • Classification Table: A confusion matrix displays actual versus predicted outcomes. It shows True Positives, True Negatives, False Positives, and False Negatives. This helps assess performance metrics like sensitivity and specificity 43.

  • Confusion Matrix:

Predicted NegativePredicted Positive
Actual NegativeTrue Negative (TN)False Positive (FP)
Actual PositiveFalse Negative (FN)True Positive (TP)
  • Key Metrics:
  • Sensitivity (Recall): TPTP+FN\frac{TP}{TP + FN} (Proportion of actual positives correctly identified).
  • Specificity: TNTN+FP\frac{TN}{TN + FP} (Proportion of actual negatives correctly identified).
  • Accuracy: TP+TNTP+TN+FP+FN\frac{TP + TN}{TP + TN + FP + FN} (Overall proportion of correct predictions).

A confusion matrix for a probit model used to classify mortgage applications.

🔑 Important: Pseudo-R2R^2 and classification accuracy are key metrics to assess how well a binary choice model fits the data.

🔑 Important: Marginal effects and odds ratios are crucial for interpreting probit and logit coefficients, as they provide meaningful insights into the probability and odds of the outcome.

4. Application and Stata commands

4.1 Boston HMDA data analysis

This section applies econometric models to the Boston HMDA data. The goal is to analyze mortgage denial rates.

Researchers aimed to see if race affected denial probability. They controlled for legally permissible applicant characteristics.

The data comes from mortgage applications in the greater Boston area in 1990 45.

The study used a subset of the data. It included single-family residences only.

It also focused only on black and white applicants. This reduced the total observations to 2380 46.

The dependent variable is the probability of mortgage denial. Explanatory variables include applicant financial burden and credit history.

Other factors are employment status, marital status, and education. Property characteristics and race are also included 47.

4.1.1 Regression models and interpretation

Regression models were used to analyze mortgage denial. These included the Linear Probability Model (LPM) and Probit models.

The dependent variable indicated denial (1 if denied, 0 if accepted). Regressors included race (black), debt-to-income ratio, and housing expense-to-income ratio 49.

This table presents mortgage denial regressions using the Boston HMDA data, showing coefficients and standard errors for various regressors across different models.

The LPM regression results can be interpreted directly. Logit and Probit coefficients are not directly interpretable as probabilities.

Instead, their sign indicates the direction of the effect. To understand the magnitude, marginal effects or odds ratios are needed 51.

To assess the overall fit and significance of the models, F-statistics and p-values were used. These values help determine if groups of variables significantly contribute to explaining mortgage denial 50.

4.2 Stata commands for binary choice models

Stata offers specific commands for estimating and analyzing binary choice models. The probit command estimates a probit model, while logit estimates a logit model.

To interpret the effects of these models, the margins command is used. It calculates marginal effects, showing how a small change in an independent variable impacts the probability of the outcome.

The marginsplot command can then visualize these effects.

  • probit y x1 x2: Estimates a probit model.
  • logit y x1 x2: Estimates a logit model.
  • margins: Calculates marginal effects.
  • marginsplot: Graphs the results of the last regression.
  • estat classification: Provides a cross-tabulation of actual and predicted outcomes.
  • lrtest: Performs likelihood ratio tests for model comparison.

Additional commands exist for more complex scenarios. hetprob fits a heteroskedastic probit model.

ivprobit handles probit models with endogenous covariates.

🔑 Important: Stata commands like probit and logit provide coefficients whose signs are interpretable. For precise impact on probability, use margins to calculate marginal effects.

🔑 Important: For this topic, understanding how to apply LPM, Logit, and Probit models using Stata is crucial. Focus on interpreting marginal effects and statistical significance to answer research questions about discrimination.

The estat classification command is useful for evaluating model performance. It compares actual outcomes to those predicted by the model.

This helps in understanding how well the model distinguishes between denied and accepted applications 53.

🔑 Important: Remember that coefficients from logit and probit models are not direct probabilities. Interpret them cautiously and always use marginal effects for practical interpretation.

🔑 Important: The core task in this application is to determine if race is a statistically significant factor in mortgage denial after controlling for other relevant variables.

🔑 Important: For exam success, be ready to interpret LPM coefficients directly and to explain how to derive interpretable probabilities from logit/probit models using Stata's margins command.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also