Why the Same Coefficient Does Not Mean the Same Standard Error
Two-stage least squares (2SLS) produces coefficients by using instruments to isolate variation in endogenous regressors. Its uncertainty calculation must reflect that instrument-based construction. A coefficient may match the coefficient from an ordinary least squares (OLS) regression on fitted regressors, but the standard OLS variance formula does not follow merely from that equality.
The key distinction is between the coefficient calculation and its sampling variability. OLS treats the regressors as the source of the fitted variation. 2SLS instead weights the outcome and regressors through the instrument space. That distinction changes the variance formula, even when the estimated coefficient is identical.
For a structural equation \(y=X\beta+u\), the OLS formula is conventionally paired with a homoskedastic error model and exogenous regressors: \(E[u\mid X]=0\) and \(\operatorname{Var}(u\mid X)=\sigma^2 I\). The IV model allows some columns of \(X\) to be correlated with \(u\), so OLS exogeneity fails for those columns. Instead, IV relies on valid instruments: in particular, the instruments satisfy the required orthogonality conditions with the structural error, and the instruments provide enough independent variation to identify the coefficients. Those conditions do not make endogenous regressors exogenous.
For the conventional homoskedastic 2SLS variance, assume the structural equation is correctly specified, the instruments are valid and relevant, and the errors have common variance \(\sigma^2\) with no cross-observation covariance. In a sample or moment-based variance calculation, homoskedasticity makes the covariance of the instrument-weighted error score proportional to \(Z'Z\). The formula below is the conventional variance approximation under these conditions; it is not a claim that OLS exogeneity holds for \(X\).
Deriving the Conventional Homoskedastic Formula
Substitute \(y=X\beta+u\) into the 2SLS estimator. Its estimation error is
The random error enters through \(Z'u\), the vector of instrument-error cross-products. Under homoskedasticity and no cross-observation error covariance, the covariance of this score, conditional on the instruments, is \(\sigma^2 Z'Z\). Treating the design matrices in the variance calculation as fixed, or using their sample counterparts in the usual moment-based approximation, gives
The simplification follows because the middle factors reduce to \(X'Z(Z'Z)^{-1}Z'X=X'P_ZX\), and the inverse matrix is symmetric. In practice, \(\sigma^2\) is unknown. A conventional estimate uses the structural residuals \(\hat{u}=y-X\hat{\beta}_{2SLS}\), not the residuals from regressing \(y\) on fitted regressors:
The \(n-k\) denominator is a common degrees-of-freedom convention for this estimate; software and finite-sample conventions may differ. The central point for this comparison is the matrix \(X'P_ZX\), not \(X'X\). The next sections show what that difference means in calculations and in two-stage software workflows.
Worked Example: Comparing OLS and 2SLS Standard Errors
Consider a hypothetical model with one slope coefficient and an intercept already accounted for in the matrices. Suppose the design summaries are \(X'X=100\) and \(X'P_ZX=25\), and use the same illustrative variance estimate \(\hat{\sigma}^2=4\) to compare the two design contributions. These summaries are chosen to make the comparison transparent; they are not study data.
For the conventional OLS calculation, the slope variance contribution is
For 2SLS, the corresponding calculation uses the instrument-projected design:
In this hypothetical comparison, the conventional 2SLS standard error is twice as large as the OLS standard error because the instrument-projected design quantity is smaller. If the coefficient measures an outcome change per one-unit increase in a treatment, both standard errors have the coefficient's units: outcome units per treatment unit. This comparison alone does not show that the formulas target the same parameter. When treatment is endogenous, OLS generally does not identify the same causal parameter as valid-instrument 2SLS.
Why Naive Second-Stage OLS Standard Errors Can Mislead
In the first stage, each endogenous regressor is projected onto the instruments and included exogenous regressors. Let \(\hat{X}=P_ZX\) denote the resulting fitted-regressor matrix, with the included exogenous columns represented consistently in \(Z\). Regressing \(y\) on \(\hat{X}\) reproduces the 2SLS coefficient, because \(X'P_ZX=\hat{X}'\hat{X}\) and \(X'P_Zy=\hat{X}'y\). But a software command that treats \(\hat{X}\) as observed data and applies the ordinary second-stage OLS variance calculation may use the wrong residual variance. The fitted regressors are estimated from the same sample, and second-stage residuals \(y-\hat{X}\hat{\beta}_{2SLS}\) are not the structural residuals \(y-X\hat{\beta}_{2SLS}\).
Worked Example: Two Residual Sums of Squares
Suppose a hypothetical sample has \(n=8\) observations, \(k=2\) structural regressors, and \(\hat{X}'\hat{X}=X'P_ZX=25\) for a single coefficient of interest. Suppose the structural residual sum of squares is \(\hat{u}'\hat{u}=40\), while the residual sum of squares from the regression of \(y\) on \(\hat{X}\) is \(64\). These are hypothetical summary values illustrating why the residual definition matters.
Using the stated \(n-k=6\) convention, the structural variance estimate is \(40/6=6.667\). Thus the conventional homoskedastic 2SLS standard error for this coefficient is
If an ordinary second-stage OLS calculation instead uses its own residual sum of squares divided by six, it gives \(64/6=10.67\), and the resulting standard error is
The two values differ because the residual sums of squares come from different residuals. The point is not that the naive number must always be larger; it is that treating fitted regressors as if they were the original observed regressors does not, by itself, establish a valid 2SLS variance calculation. Use a procedure that explicitly computes 2SLS uncertainty, and check the assumptions behind the selected variance estimator.
Diagnostics, Alternatives, and Limits
A conventional homoskedastic standard error can be inappropriate even when the coefficient calculation is correct. If error variance differs across observations, the covariance of \(Z'u\) is not \(\sigma^2 Z'Z\); the simplifying cancellation in the derivation does not apply. The heteroskedasticity-robust 2SLS variance replaces that homoskedastic score covariance with a residual-weighted “sandwich” calculation. If observations are dependent within clusters or over time, the variance calculation must also reflect that dependence. These are different uncertainty estimators, not different 2SLS coefficient estimators.
The first diagnostic is substantive and design-based: ask whether a common error variance and independence across observations are credible. Residual plots can reveal patterns such as spread increasing with fitted values, but a flat plot cannot prove homoskedasticity. Also check that the instrumented design is informative. When instruments predict the endogenous regressors only weakly, \(X'P_ZX\) can be small in relevant directions, making conventional standard errors large or making ordinary approximations unreliable. A small standard error is not evidence that instruments are valid or strong.
The main alternatives answer different needs. OLS with its classical standard error is appropriate for an exogenous-regressor model under its error assumptions; it is not a substitute for IV inference when regressors are endogenous. Conventional homoskedastic 2SLS uses the common-variance restriction. Heteroskedasticity-robust 2SLS relaxes that restriction but still requires the relevant instrument and sampling assumptions. Cluster-robust or other dependence-aware procedures address additional forms of dependence. No standard error formula repairs an invalid instrument, and conventional formulas should not be treated as a guarantee of reliable finite-sample inference with weak instruments.
A standard error describes estimated sampling uncertainty for a specified estimator under a specified variance model. It does not measure bias from invalid instruments, and comparing an OLS standard error with a 2SLS standard error does not rank the methods without considering their estimands and assumptions. Under endogeneity, OLS can appear more precise partly because it uses variation that 2SLS excludes precisely because that variation may be confounded.
Worked Example: How Heteroskedasticity Changes the Variance Calculation
For a scalar illustration, suppose the instrument-projected regressor has values \(q=(1,1,2,2)'\), so \(q'q=10\). Suppose the squared structural residuals are \((9,1,1,1)\). The homoskedastic formula uses one common variance estimate. The average squared residual is \((9+1+1+1)/4=3\), giving the illustrative conventional variance \(3/10=0.3000\).
The heteroskedastic score instead weights each squared residual by the squared projected-regressor value. Its scalar sandwich variance is
The difference arises because observations with different projected-regressor values contribute differently to the score variance. These illustrative residuals are not sufficient to choose between estimators in an actual analysis; the error structure must be assessed using the design and substantive knowledge. The calculation shows why substituting a single common variance is not algebraically justified when variances differ.
Common Mistakes
- Using the OLS formula because the output contains an OLS coefficient. A coefficient equality between second-stage OLS on fitted regressors and 2SLS does not establish equality of their standard-error calculations.
- Using second-stage residuals as structural residuals. The conventional 2SLS variance estimate uses \(y-X\hat{\beta}_{2SLS}\), not \(y-\hat{X}\hat{\beta}_{2SLS}\).
- Interpreting a smaller OLS standard error as proof of greater precision for the causal effect. The estimators can target different quantities when regressors are endogenous.
- Assuming robust standard errors validate the instrument. Robustness changes the variance calculation; it does not establish instrument relevance or validity.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- In one coefficient dimension, suppose \(\hat{\sigma}^2=9\), \(X'X=144\), and \(X'P_ZX=36\). Calculate the conventional OLS and 2SLS standard errors using these design contributions.
- Why does a second-stage regression on fitted regressors reproduce 2SLS coefficients but not automatically justify ordinary OLS standard errors?
- State one key condition behind the conventional homoskedastic 2SLS variance formula and name one situation in which it is inappropriate.
- Does a larger 2SLS standard error than OLS show that the instrument is invalid? Explain.
Solutions. (1) The OLS standard error is \(\sqrt{9/144}=\sqrt{0.0625}=0.2500\). The conventional 2SLS standard error is \(\sqrt{9/36}=\sqrt{0.25}=0.5000\). (2) The fitted-regressor normal equations give the same coefficient, but ordinary second-stage software may use residuals from \(y-\hat{X}\hat{\beta}\) as if fitted regressors were observed. Conventional 2SLS uncertainty uses structural residuals and the instrument-projected design. (3) A common error variance and no cross-observation error covariance support the conventional formula; heteroskedastic errors require a different variance estimator. (4) No. A larger standard error may reflect less information in the instrument-projected variation. Instrument validity is a separate substantive and design assumption, not determined by the relative size of standard errors.