Non-FictionStudent's ShortcutDiscrete Choice

Logit and Probit Models Workbook eBook

Estimate binary choice models for economics exam d

by Alves Janee

  • English
  • 151 pages
  • 2026
  • SamEnrico

Estimate binary choice models for economics exam data using Excel's logistic regression. Predict probabilities and calculate marginal effects correctly.

Formats

Free sample

Chapter 1: The Straight-Line Trap--–- Every economics student learns to love the straight line. From supply and demand curves to ordinary least squares regression, the linear assumption is elegant, interpretable, and computationally convenient. It works beautifully when predicting continuous outcomes like income, crop yields, or housing prices. But when your outcome is a binary choice—pass or fail, buy or not buy, hire or reject—that straight line becomes a snare. It produces predictions that are mathematically impossible, standard errors that are systematically wrong, and policy recommendations that can be actively misleading.

This chapter will lead you through the wreckage of the Linear Probability Model. You will make the mistakes yourself, inside Excel, so that you never repeat them with real data. By the final page, you will understand precisely why the LPM is a trap, and why the remaining eleven chapters of this book exist to pull you out of it.The Illusion of a Quick Answer Imagine you are an economist at a regional development bank. Your team has collected data on 500 small businesses that applied for loans. Each business either received funding (1) or was denied (0).

You have information on their annual revenue, years in operation, number of employees, and credit score. Your task is to build a model that predicts which businesses will receive funding, and to identify which factors matter most for loan approval.You open Excel. You load the dataset. You run a linear regression. The output appears clean.

The coefficients have signs that match your intuition: higher revenue, longer operation history, more employees, and better credit scores all increase the predicted probability of approval. The R-squared is 0.38. The p-values are below 0.05. You feel a wave of satisfaction. You have an answer.But you have walked into a trap.The model you just estimated—the Linear Probability Model—is fundamentally flawed for binary outcomes.

Its flaws are not subtle technicalities. They are dramatic, visible, and logically devastating. And they emerge the moment you try to use your model for its intended purpose: predicting probabilities.What Happens When You Ignore the Boundaries of Probability Open a new Excel workbook. Let us build a small dataset to see the LPM in action. In Column A, create 100 observations labeled 1 through 100.

In Column B, generate a single independent variable X that ranges from 0 to 10 in increments of 0.1. Now create a binary outcome Y that equals 1 when X is high and 0 when X is low, but with some randomness. Use the following rule: for each observation, calculate a true probability P_true = 1 / (1 + EXP(-(X - 5))). This is the logistic function, which produces an S-curve. Then generate Y using =IF(RAND() < P_true, 1, 0).

This gives you a realistic binary dataset.Now estimate a linear regression with Y as the dependent variable and X as the independent variable. Use Excel's LINEST function or the Regression tool in the Data Analysis add-in. Write down the estimated equation. It will look something like Y_hat = -0.20 + 0.15X.Now compute predicted probabilities for all 100 observations using this linear equation. For X = 0, the predicted probability is -0.20.

Negative twenty percent. For X = 10, the predicted probability is 1.30. One hundred thirty percent.These are not rounding errors. They are not edge cases. They are the logical consequence of forcing a linear function to approximate a non-linear, bounded relationship.

The LPM does not know that probabilities cannot go outside the [0,1] interval. It has no mechanism to enforce those boundaries. It will happily predict -50 percent or 200 percent if the data push it there.And the data will push it there. Because the true relationship between X and Y is S-shaped, the linear approximation must be too steep in the middle and too shallow at the extremes. That mismatch forces predictions outside the boundaries whenever X takes on extreme values.

In many real datasets, extreme values are not rare. They are the observations you care about most.The Mechanical Source of the Problem Why does the LPM fail so spectacularly? The answer lies in what the model is trying to do. The LPM assumes that the conditional expectation of Y given X is linear:E[Y|X] = β₀ + β₁X₁ + ... + βₖXₖBut Y is binary, taking only the values 0 and 1.

The conditional expectation E[Y|X] is simply P(Y=1|X), the probability that Y equals 1 given X. So the LPM is asserting that:P(Y=1|X) = β₀ + β₁X₁ + ... + βₖXₖThe left-hand side of this equation must always be between 0 and 1. It is a probability. The right-hand side is a linear function that can take any value from negative infinity to positive infinity.

There is no mathematical constraint forcing the linear function to stay within [0,1]. The only way the equality can hold for all possible values of X is if the coefficients are zero and the intercept is between 0 and 1. But that trivial model is useless. For any useful model, there will be some combination of X values that pushes the linear function outside the unit interval.This is not a fixable problem. You cannot patch the LPM by capping predictions at 0 and 1.

If you manually set all negative predictions to 0 and all predictions above 1 to 1, you destroy the properties of the estimator. The coefficients were estimated under the assumption that the linear function was correct. If you then transform the predictions, you are no longer using the model you estimated. Moreover, the marginal effects—the quantities you actually care about—become zero at the boundaries, which is inconsistent with the constant marginal effects implied by the linear coefficients.The Heteroskedasticity That Cannot Be Cured Even if you ignore the boundary problem—even if your predicted probabilities happen to fall between 0 and 1 for your particular dataset—the LPM suffers from a second fatal flaw. The errors are inherently heteroskedastic.Recall the definition of the error term:εᵢ = Yᵢ - (β₀ + β₁X₁ᵢ + ...

+ βₖXₖᵢ)Since Yᵢ is either 0 or 1, εᵢ can take only two possible values given the predicted probability P̂ᵢ:If Yᵢ = 1, then εᵢ = 1 - P̂ᵢIf Yᵢ = 0, then εᵢ = 0 - P̂ᵢ = -P̂ᵢThe variance of εᵢ is therefore:Var(εᵢ) = P̂ᵢ(1 - P̂ᵢ)This is the variance of a Bernoulli random variable with probability of success P̂ᵢ. Notice the crucial feature: the variance depends on P̂ᵢ, which depends on the independent variables. When P̂ᵢ is near 0.5, the variance is near 0.25. When P̂ᵢ is near 0 or 1, the variance is near 0. Variance is not constant across observations.

It varies systematically with the predicted probability.This is heteroskedasticity by construction. It is not an accident. It is not something you can test for and possibly accept. It is a mathematical certainty for any binary outcome estimated with OLS. The only way to avoid it is to have all predicted probabilities equal to 0.5, which would mean the model has no predictive power.You can see this yourself.

After estimating your LPM, compute the predicted probability P̂ for each observation. Then compute the squared residual (Y - P̂)² for each observation. Create a scatter plot with P̂ on the x-axis and squared residuals on the y-axis. You will observe a distinct pattern. When P̂ is near 0.5, the squared residuals are large.

When P̂ is near 0 or 1, the squared residuals are small. The points form a downward-opening parabola. That is heteroskedasticity.What are the…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

Estimate binary choice models for economics exam data using Excel's logistic regression. Predict probabilities and calculate marginal effects correctly.

Details

Author
Alves Janee
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Student's Shortcut, Discrete Choice
Released
2026-06-01
Pages (approx.)
151
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Alves Janee

See all

You may also like

See all