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, Yi, takes values of 0 (failure) or 1 (success).
The model is represented as: Yi=β0+β1X1i+β2X2i+⋯+βkXki+ui 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+⋯+βkXki Here, β1 represents the change in the probability that Yi=1 for a one-unit increase in X1i, holding other variables constant 9.

Regression coefficients in the LPM can be estimated using Ordinary Least Squares (OLS). The OLS predicted values, 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=1 if denied and 0 otherwise. The payment-to-income ratio (P/I ratio) is a key explanatory variable.
denyi=β0+β1P/I ratioi+ui If β^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.

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 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 ui in the LPM has a non-normal distribution because Yi is binary. Specifically, ui can only take two values.
| Yi value | ui value | Probability |
|---|---|---|
| 1 | 1−(β0+β1X1i+⋯+βkXki) | $P(Y_i=1 |
| 0 | −(β0+β1X1i+⋯+βkXki) | $P(Y_i=0 |
This can be summarized as:
| Yi value | ui value | Prob. |
|---|---|---|
| 1 | 1−(β0+β1X1i+⋯+βkXki) | $P(Y_i=1 |
| 0 | −(β0+β1X1i+⋯+βkXki) | $P(Y_i=0 |
| var(ui)=var(Yi)=pi(1−pi) var(ui)=(β0+β1X1i+⋯+βkXki)(1−(β0+β1X1i+⋯+βkXki)) 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+⋯+βkXki, to a probability, P(Yi=1∣X)=F(zi). The choice of the cumulative distribution function (CDF), F(zi), 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). This function is derived from the integral of the normal density function.

-
Logit regression: Uses the CDF of the logistic distribution, denoted as Λ(zi). This function is given by 1+eziezi.
Both functions ensure that predicted probabilities stay between 0 and 1. They are similar in shape, especially in the central range of zi.
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 (β) represent the change in the z-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.
| Model | CDF Name | CDF Formula |
|---|---|---|
| Probit | Normal CDF (Φ) | Φ(zi) |
| Logit | Logistic CDF (Λ) | Λ(zi)=1+eziezi |
[page=26 [page=27 20.

🔑 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).
- 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).
- 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

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).
The probability of observing a 0 is P(Yi=0)=1−F(zi), where zi=β0+β1X1i+⋯+βkXki and F(⋅) is the cumulative distribution function (CDF) 30 31.
The likelihood contribution for observation i is: P(Yi)=[F(zi)]Yi×[1−F(zi)]1−Yi The total likelihood for the sample is the product of individual likelihoods, assuming independence. Working with the log-likelihood function is easier: lnL(β0,…,βk)=∑i=1n[Yilog(F(zi))+(1−Yi)log(1−F(zi))] The MLEs are the β^0,…,β^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 X1i, the marginal effect is the partial derivative of the probability with respect to X1i.
The formula for the marginal effect of Xki is: ∂Xki∂P(Yi=1)=f(zi)βk where f(zi) is the probability density function (PDF) of the chosen distribution (probit or logit) 37.
- Probit: f(zi)=ϕ(zi) (standard normal PDF).
- Logit: f(zi)=(1+exp(zi))2exp(zi) (logistic PDF).
The sign of β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.

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=0)P(Yi=1)=1−pipi=exp(zi) Taking the log of the odds gives the logit: logit(pi)=log(1−pipi)=zi=β0+β1X1i+⋯+βkXki.
The exponentiated coefficient, exp(βk), represents the multiplicative change in the odds ratio for a one-unit increase in Xki 39.
- Odds Ratio Table:
| Variable | Odds Ratio (exp(βk)) | Interpretation |
|---|---|---|
| Continuous | exp(βk) | For a one-unit increase in X, odds multiply by exp(βk). |
| Dichotomous | exp(βk) | The odds for the group with X=1 are exp(βk) times the odds for X=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=0).
- Multiple restrictions: Tests if a subset of coefficients are jointly zero (H0:β3=β4=β5=0).
The LR test statistic is calculated as LR=2(lnLUR−lnLR), where LUR is the maximized likelihood under no restrictions and LR is the maximized likelihood under the restrictions. The LR statistic follows a chi-square distribution (χr2) with r degrees of freedom, where r is the number of restrictions 40 41.
- Decision Rule: Reject H0 if LR>χr,α2 or if the p-value ≤α.
🔑 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 R2 from linear regression. Common measures include pseudo-R2 and the percentage of correct predictions.
-
McFadden's Pseudo-R2: This measure compares the log-likelihood of the unrestricted model (lnLUR) to the log-likelihood of a restricted model with only a constant (lnLR). McFadden’s R2=1−lnLRlnLUR 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=1 and the predicted probability is ≥0.5, or if Yi=0 and the predicted probability is <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 Negative | Predicted Positive | |
|---|---|---|
| Actual Negative | True Negative (TN) | False Positive (FP) |
| Actual Positive | False Negative (FN) | True Positive (TP) |
- Key Metrics:
- Sensitivity (Recall): TP+FNTP (Proportion of actual positives correctly identified).
- Specificity: TN+FPTN (Proportion of actual negatives correctly identified).
- Accuracy: TP+TN+FP+FNTP+TN (Overall proportion of correct predictions).

🔑 Important: Pseudo-R2 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.

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
probitandlogitprovide coefficients whose signs are interpretable. For precise impact on probability, usemarginsto 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
marginscommand.
© 2026 Maeve. All rights reserved. This content is protected by copyright.