Non-Fiction, Student's Shortcut, Advanced Econometrics

Instrumental Variable Regression Primer eBook

Perform two-stage least squares using Excel's regr

by Sands Arron

  • English
  • 128 pages
  • 2026
  • SamEnrico

Perform two-stage least squares using Excel's regression tools. Address endogeneity for econometrics exam questions with valid instrument selection.

Formats

Free sample

Chapter 1: The Broken Promise--–- Every econometrics student hears the same promise on the first day of class: "Ordinary Least Squares is the workhorse of empirical economics. Learn it well, and you can answer causal questions from data." It sounds reassuring. It sounds scientific. It sounds, to the untrained ear, like truth.It is not the whole truth.The unspoken caveat—the one whispered in faculty lounges and muttered during dissertation defenses—is that OLS only works under conditions that almost never hold in the real world. The promise of unbiased estimation comes with fine print so small that most textbooks bury it in a footnote.

And when those conditions fail, OLS does not degrade gracefully. It lies. Systematically, predictably, and often with great confidence.This book exists because of that lie. Or rather, because of the gap between what OLS promises and what it actually delivers. That gap is called endogeneity.

And closing it requires a tool so counterintuitive that when it was first proposed in the 1920s, economists ignored it for nearly two decades. That tool is the instrumental variable.By the end of this chapter, you will understand exactly why OLS betrays you, how to detect that betrayal before it poisons your conclusions, and why the solution requires thinking backwards: finding a variable that does not belong in your model at all. You will also build your first Excel simulation that makes endogeneity visible—not as an abstract mathematical concept, but as a moving dot on a scatterplot.The OLS Assumption That Everyone Forgets Let us begin with the textbook definition. Ordinary Least Squares estimates the relationship between a dependent variable Y and one or more independent variables X by minimizing the sum of squared residuals. The magic of OLS—the property that makes it so beloved—is the Gauss-Markov theorem.

It states that under certain conditions, OLS produces the Best Linear Unbiased Estimator. Those conditions include linearity, random sampling, no perfect multicollinearity, conditional mean zero, and homoskedasticity.The one we care about is conditional mean zero. Formally: E[u|X] = 0. More intuitively: the error term u—which contains everything we cannot measure—must be uncorrelated with the independent variables. Cov(X, u) = 0.Think about what this assumption demands.

It requires that every variable you omit from your model, every measurement error in your data, every shred of randomness affecting Y—none of these can be correlated with X. Not a little bit. Not in a way that your sample size will wash out. Zero correlation. In the population.This is almost never true.The Three Ways OLS Lies When Cov(X, u) ≠ 0, OLS becomes biased and inconsistent.

Bias means the expected value of your coefficient differs from the true population parameter. Inconsistency means that even as your sample size approaches infinity, the bias does not disappear. You do not get more data and hope the problem fixes itself. It does not.The literature identifies three classic sources of this correlation. Every econometrics exam tests them.

Every applied researcher fears them. And every instrumental variable solution exists to defeat them.Source One: Omitted Variable Bias Imagine you want to estimate the effect of education on wages. You run a regression: wage = β₀ + β₁·education + u. Your coefficient β₁ comes out positive and statistically significant. You conclude that more education causes higher wages.But you forgot to include ability.

Smarter people both get more education and earn higher wages, regardless of education. Ability sits in the error term u. Because ability correlates with education, Cov(education, u) ≠ 0. Your β₁ now reflects both the true effect of education and the confounding effect of ability. It is biased upward.The direction of bias follows a simple rule: the omitted variable bias equals the correlation between the omitted variable and X, multiplied by the effect of the omitted variable on Y.

If both are positive, OLS overestimates. If one is negative, OLS underestimates. In the education-ability case, both correlations are positive. Your OLS coefficient is too high.Source Two: Simultaneous Causality Sometimes X causes Y, but Y also causes X. This is reverse causation or simultaneity.

Consider the relationship between crime and police presence. Does more police reduce crime? Or do higher crime areas attract more police? Both are true simultaneously.Your regression of crime on police will show a positive relationship—more police, more crime—because of reverse causation. The true causal effect (police reduce crime) is buried under the simultaneity.

Cov(police, u) is not zero because u contains the factors that drive crime, which also determine police deployment.This is not a data problem. This is a logical problem. You cannot untangle cause and effect using only two variables observed at the same time. You need something outside the system.Source Three: Errors-in-Variables Even when your model is correct and your causality runs one way, measurement error can destroy OLS. Suppose you want to estimate the effect of class size on test scores.

You have a perfect measure of class size? Probably not. Administrative records contain mistakes. Students transfer. You have the official count, not the actual count.If X is measured with error, the classical measurement error model shows that the OLS coefficient is attenuated—biased toward zero.

Why? Because the measurement error in X becomes part of the error term, and it correlates with the measured X. Cov(X_measured, u) ≠ 0. Your effect shrinks.Unlike omitted variable bias, measurement error bias is predictable: it always shrinks the coefficient toward zero. But knowing the direction does not fix the magnitude.Seeing Bias With Your Own Eyes Theory is necessary.

But seeing bias happen on your screen is transformative. Let us build a simulation in Excel that makes endogeneity visible.Open a new Excel workbook. We are going to generate three variables: a true independent variable X_true, an omitted variable Z (which we will call "ability"), and an outcome Y that depends on both. Then we will run OLS with Z omitted and watch the coefficient miss the target.Step 1: Generate the data In column A, create an index from 1 to 500. We will simulate 500 observations.In column B, generate Z (ability) using: =NORM.INV(RAND(), 0, 1).

This creates random normal draws with mean 0 and standard deviation 1. Copy down to row 500.In column C, generate X_true (education) using: =0.5*B2 + NORM.INV(RAND(), 0, 0.5). This makes education depend on ability plus random noise. The true relationship: education = 0.5*ability + error.In column D, generate Y (wage) using: =1*C2 + 0.8*B2 + NORM.INV(RAND(), 0, 0.5). This makes wages depend on education (coefficient 1.0) and ability (coefficient 0.8).

Notice the true effect of education is exactly 1. That is our target.Step 2: Run the misspecified regression Now run a regression of Y on X_true only, omitting ability. Use Data → Data Analysis → Regression. Dependent variable: Y. Independent variable: X_true.Record the coefficient on X_true.

It will not be 1. It will be something larger. With ability positively correlated with both education and wages, OLS absorbs the effect of ability into the education coefficient. In my simulation run, I got 1.38. Yours will differ because of random draws, but it will consistently exceed the true value of 1.Step 3: Run the correct regression Now run the regression with both X_true and Z.

Dependent variable: Y. Independent variables: X_true and Z.The coefficient on X_true will now be close to 1. In my run…

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

About this book

Perform two-stage least squares using Excel's regression tools. Address endogeneity for econometrics exam questions with valid instrument selection.

Details

Author
Sands Arron
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Student's Shortcut, Advanced Econometrics
Released
2026-05-29
Pages (approx.)
128
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 Sands Arron

See all

You may also like

See all