- Learn
- Business & Economics
- Economics
- Econometrics 1
- Multiple Regression Estimation
Multiple Regression: Estimation
IntermediateLesson 2 of 8 in Econometrics 1 Course
What you will learn
- Write a linear model with several explanatory variables, explain what holding other factors fixed means, and read estimated coefficients, fitted values and residuals in the units of the data.
- Explain why a regression needs more than one explanatory variableWrite the multiple linear regression model, name its parts, and explain how adding variables lets you estimate the effect of one factor while other observed factors are held fixed.
- Interpret estimated partial effects, fitted values and residualsRead an estimated equation in the units of its variables, predict the dependent variable for given values, compute residuals, and explain why a coefficient changes when another regressor is added.
- Explain why a regression needs more than one explanatory variable
- Explain how ordinary least squares chooses the estimates, what each coefficient captures after the other regressors are partialled out, and how R-squared and adjusted R-squared summarize the fit.
- Find OLS estimates and read regression outputExplain the least squares criterion and its first-order conditions, check the algebraic properties of residuals, and run and read a multiple regression in R, Stata or Python.
- Explain a coefficient by partialling out the other regressorsShow that a multiple-regression slope is the simple slope of the dependent variable on the part of one regressor that the others do not explain, and relate simple and multiple regression estimates exactly.
- Measure goodness of fit with R-squared and adjusted R-squaredDecompose the variation in the dependent variable, compute and interpret R-squared and adjusted R-squared, and explain what a high or low value does and does not show.
- Find OLS estimates and read regression output
- State the assumptions under which OLS is unbiased, work out the direction of omitted variable bias, and choose control variables that support a causal reading of the coefficient of interest.
- State the assumptions for unbiased OLSList the four assumptions behind the unbiasedness of OLS, explain what unbiasedness means across repeated samples, and recognize situations in which the zero conditional mean assumption fails.
- Work out the direction and size of omitted variable biasDerive the bias from leaving out a relevant regressor, sign it from the effect of the omitted variable and its correlation with the included one, and explain why more data do not remove it.
- Choose control variables for a causal questionDecide which variables to include when one coefficient is of interest, explain conditional mean independence, avoid controlling for outcomes of the variable of interest, and read a treatment effect from a regression with controls.
- State the assumptions for unbiased OLS
- Explain what determines the sampling variance of an OLS coefficient, estimate the error variance and standard errors, and recognize perfect and imperfect multicollinearity and their consequences.
- Explain what drives the sampling variance of an OLS coefficientState the homoskedasticity assumption and the variance formula for an OLS slope, and explain how the error variance, the variation in the regressor and its correlation with other regressors change precision.
- Estimate the error variance and standard errorsEstimate the error variance with the right degrees of freedom, compute the standard error of the regression and of each coefficient, and explain what standard errors measure.
- Recognize multicollinearity and weigh dropping a variableDistinguish perfect from imperfect multicollinearity, measure it with variance inflation factors, explain its consequences and remedies, and weigh the bias against the variance when a correlated regressor is left out.
- Explain what drives the sampling variance of an OLS coefficient
- State what makes OLS the best linear unbiased estimator and what the theorem does not claim, and, as an optional extension, express the model, the estimator and its variance with matrices.
- State and interpret the Gauss–Markov theoremExplain each part of best linear unbiased estimator, show that OLS is linear in the dependent variable, compare it with another linear unbiased estimator, and state what happens when an assumption fails.
- Write the model and the OLS estimator in matrix formAn optional extension for learners who know matrix algebra: stack the observations, derive the OLS formula from the normal equations, and restate unbiasedness and the variance of OLS with matrices.
- State and interpret the Gauss–Markov theorem
Multiple Regression Estimation study guide
1Read a model with several explanatory variables
Economic factors often move together. Larger houses tend to have more bedrooms, and workers with different schooling also differ in experience. Multiple regression separates their measured relationships with an outcome. You will write the population model, interpret its estimated slopes in the right units, and calculate predictions and residuals. The central question is what a comparison holds fixed—and what it leaves unaccounted for.
1.1 What a multiple regression describes
A house's price depends on more than its size. Its room layout also matters, as do location, condition, and other features. A multiple regression gives several measured factors their own places in one equation.
Name the parts of the model
With two explanatory variables, the population model is
The dependent variable is the outcome. The regressors and are measured explanatory variables. The intercept and slopes are unknown population parameters. The error collects the determinants of the outcome that the equation leaves out. With regressors there are parameters, including the intercept. Subscripts identify observations: is regressor for observation .
In a wage model with schooling and experience, ability, motivation, health, and luck remain in the error. Adding experience moves that measured factor out of the error. This matters when experience both affects wages and is related to schooling: a schooling-only regression can mix the two effects.
Read a partial effect
In the linear model, is the change in the outcome for a one-unit increase in , with the other regressors and the error unchanged:
This is a partial effect, also called a ceteris paribus effect. In a house-price model with area and bedrooms, the bedroom slope compares houses with the same area but different numbers of bedrooms. It describes a different comparison from one that lets larger bedroom counts come with larger floor areas.
Regression can make this statistical comparison even when researchers never physically held area fixed. But including area holds fixed only that measured regressor. Location and condition remain in the error unless they also enter the equation.
For a causal reading, the remaining unobserved determinants must have zero mean conditional on the regressors:
Then the model's measured part is the conditional average of the outcome. Adding experience to a wage regression removes one source of confounding; it does not settle whether ability is still related to schooling.
Linear refers to the parameters
The equation may include a square:
This is linear in the unknown coefficients. However, increasing experience also changes its square, so the coefficient on experience alone is not the full experience effect. With coefficients 0.30 and −0.005, the approximate effect at 10 years is currency units per hour. The exact increase from 10 to 11 years is 0.195.
The model describes a population relationship. Ordinary least squares, or OLS, is the method used to estimate its coefficients from a sample. A population coefficient has no hat; its sample estimate does, as in .
Key Takeaways
- The error collects determinants of the outcome that are absent from the regressors.
- A partial effect holds the other included regressors fixed.
- Zero conditional mean supports a causal interpretation.
- Linearity concerns the coefficients; regressors may include transformed variables.
- OLS estimates a model; it is an estimation method.
1.2 Slopes, predictions, and prediction errors
An estimated equation turns the model into numerical comparisons. Read the measurement units before interpreting a slope: changing the units changes the number attached to the coefficient.
Interpret the house equation
Eight houses give the fitted equation
where price is in thousands of currency units and area is in square meters. The area coefficient says that an extra square meter is associated with 2 thousand more in predicted price, holding bedroom count fixed. Ten extra square meters correspond to 20 thousand.
The bedroom coefficient says that a house with one more bedroom has a predicted price 6 thousand higher at the same floor area. It compares different room layouts within the same total space. An extension changes more than bedroom count. If it adds 20 m² and one bedroom, the predicted increase is
thousand. Adding the partial changes accounts for both features of the extension.
Calculate a fitted value and residual
For the sampled house with 100 m² and 3 bedrooms,
It sold for 239 thousand. Its residual is the observed price minus the fitted price:
The equation overpredicts this sale by 9 thousand. A positive residual would mean the observed price exceeded the prediction. The residual is calculated after fitting; the population error is unobserved because the true population coefficients are unknown.
The intercept is the predicted outcome when every regressor is zero. A house with no area and no bedrooms is not a useful economic comparison, so 30 thousand has no practical baseline meaning here. The intercept still helps position the fitted equation.
Keep units attached to effects
A slope's units are outcome units per regressor unit. The area slope is 2 thousand currency units per m². If area is recorded in tens of square meters, its slope becomes 20. If price is recorded in single currency units, all three coefficients become 1,000 times larger: 30,000, 2,000, and 6,000.
Raw coefficient sizes therefore do not rank importance. One bedroom and one square meter are different changes. Compare plausible changes in the variables, such as 20 extra m² versus rearranging the same area to fit one more bedroom.
Understand why a coefficient changes
For these same houses, the bedroom-only equation is
Houses with another bedroom also have about 26.7 m² more area on average. The simple slope picks up both differences. The multiple slope of 6 compares houses at the same area, so the two slopes answer different questions.
A careful interpretation is: “At a fixed floor area, one more bedroom is associated with a predicted price 6 thousand higher.” Whether that comparison is causal also depends on the unobserved features, such as location and building age. The fitted equation alone does not establish that changing a room layout would raise a sale price by that amount.
Key Takeaways
- Interpret each slope in outcome units per regressor unit.
- Add the partial changes when several regressors change together.
- A residual is observed minus fitted; negative means overprediction.
- An intercept can be needed even when its zero-input comparison is unrealistic.
- A simple slope and a partial slope can answer different economic questions.
- Compare realistic changes, not raw coefficient sizes.
2Compute the fit and uncover partial relationships
OLS chooses all coefficients together to fit the observed outcomes. Its equations explain several useful properties of residuals, but those properties alone say nothing about causality. Partialling out shows exactly which variation identifies a slope. R-squared then describes the fit of the whole equation. These three views—computation, partial comparisons, and sample fit—help you read software output without asking one statistic to answer every question.
2.1 How least squares chooses coefficients
OLS tries possible coefficient values and chooses the combination with the smallest total squared prediction error. Squaring keeps positive and negative residuals from canceling and gives large errors more weight.
Minimize one criterion jointly
With regressors, the criterion is
All coefficients are chosen together. Running a separate simple regression for each regressor generally produces different slopes, because those regressions make different comparisons.
Differentiating with respect to the intercept and each slope gives the normal equations:
A unique coefficient vector requires at least as many observations as parameters and no exact linear dependency among the regressor columns, including the intercept. If a column duplicates information in the others, software may drop it. With exactly as many independent observations as parameters, the fit is exact, leaving no residual degrees of freedom for estimating error variance.
Check what the equations imply
For OLS with an intercept, residuals average to zero. Each regressor has zero sample covariance with the residuals, and so do the fitted values. The fitted equation passes through the point of sample means:
These are algebraic properties of the fitted sample. They hold even when an omitted variable makes the population error related to a regressor.
Here are the eight houses used throughout the calculations:
| Area (m²) | Bedrooms | Price (thousands) | Residual (thousands) |
|---|---|---|---|
| 55 | 1 | 137 | −9 |
| 70 | 2 | 182 | 0 |
| 80 | 2 | 210 | 8 |
| 90 | 3 | 233 | 5 |
| 100 | 3 | 239 | −9 |
| 115 | 3 | 285 | 7 |
| 130 | 4 | 320 | 6 |
| 160 | 5 | 372 | −8 |
The residuals sum to zero, as do their products with area and with bedrooms. The means are 100 m², 2.875 bedrooms, and 247.25 thousand, and .
Fit the same equation in software
Use a data table named houses containing price, area, and bedrooms.
- R:
summary(lm(price ~ area + bedrooms, data = houses)) - Stata:
regress price area bedrooms - Python:
import statsmodels.formula.api as smf
smf.ols("price ~ area + bedrooms", data=houses).fit().summary()
Each call includes an intercept by default. Read the coefficient column, standard errors, number of observations, and R-squared. R calls the estimated error standard deviation “Residual standard error”; Stata calls it “Root MSE.”
OLS minimizes squared residuals, not their signed sum. Adding a regressor generally changes existing coefficients because it changes the partial comparisons. If its estimated coefficient is zero, all old estimates stay the same. If the new regressor is sample-uncorrelated with every existing regressor, the existing slopes stay the same; the intercept can still change to keep the fitted equation passing through the sample means.
Key Takeaways
- OLS minimizes the sum of squared residuals jointly over all coefficients.
- The normal equations make residuals sample-uncorrelated with the included regressors.
- With an intercept, average fitted and observed outcomes agree.
- A unique fit requires no perfect collinearity.
- Regression software reports estimates and their standard errors separately.
2.2 The variation behind a partial slope
Two houses may have different floor areas largely because one has more bedrooms. To estimate the area slope at a fixed bedroom count, isolate the area differences that bedroom count does not explain.
Remove the other regressors
First regress area on bedrooms, with an intercept. For the eight houses this gives
Subtract each fitted area from its actual area. Call these residuals . They measure area above or below what the bedroom count predicts. The first house has 55 m² and one bedroom; its fitted area is 50 m², so its residualized area is 5 m².
Using unrounded calculations, the residualized areas are approximately 5, −6.67, 3.33, −13.33, −3.33, 11.67, 0, and 3.33 m². Their sum is zero, and their sample covariance with bedrooms is zero.
Recover the area coefficient
The Frisch–Waugh–Lovell theorem, or partialling out, gives
The numerator is about 833.33 and the denominator about 416.67, giving the slope 2. You can also remove bedrooms from price first and regress residualized price on residualized area. Both routes recover the multiple-regression area slope.
An added-variable plot uses the second route: residualized price on the vertical axis and residualized area on the horizontal axis. Its slope is 2. The plot helps reveal which houses contribute strongly to the partial relationship.
Residualizing only price and then using the original area is a different calculation. Here it divides the same numerator by area's full centered variation, 8,150, giving about 0.102. The denominator must measure the variation left after removing the other regressors.
Connect partialling out to information
For regressor , the available variation is
Here is its total centered sample variation and comes from regressing that regressor on all the others, with an intercept. For area, . Most area variation is shared with bedrooms, leaving little to distinguish their separate effects. If the denominator were zero, the slope would not be uniquely estimable.
Link the short and long equations
With two regressors, the simple slope obeys the exact sample identity
where is the slope from regressing the omitted regressor on the retained one. Taking bedrooms as the retained variable gives . The simple bedroom slope combines the partial bedroom effect with the area difference associated with another bedroom.
The slopes agree if the added regressor's estimated effect is zero or the two regressors are sample-uncorrelated. This is a sample identity; explaining why a shorter regression is biased requires a population model and assumptions about its error.
Key Takeaways
- Residualize the regressor against the other regressors, including an intercept.
- Regressing the outcome on that residualized regressor recovers its partial slope.
- An added-variable plot residualizes both axes.
- The remaining regressor variation is .
- The simple slope equals the partial slope plus the added variable’s estimated contribution.
2.3 Measure fit without confusing it with causality
A fitted equation separates observed outcomes into predictions and residuals. R-squared uses that split to describe how closely the equation fits its estimation sample.
Decompose the sample variation
With an intercept, define
The total variation equals explained plus residual variation: . The fitted deviations and residuals are orthogonal, so their cross-products do not add another term to this decomposition.
The notation needs care. Here SSE means explained sum of squares and SSR means residual sum of squares. Other books call them ESS and RSS, or use SSE for squared errors. Read the definitions before inserting a reported number into a formula.
Calculate R-squared
For the houses, total variation is 40,351.5 and residual variation is 400. Explained variation is therefore 39,951.5, and . About 99% of the sample variation in price is explained by area and bedrooms together. This percentage concerns price variation, not the percentage of each house's price predicted correctly.
The area-only regression already has R-squared 0.9896. Adding bedrooms raises it only slightly, even though the partial bedroom coefficient is 6 thousand. A small improvement in total fit can accompany an economically meaningful coefficient.
Why adding variables raises ordinary R-squared
Compare OLS fits using the same outcome and observations. The larger model can always set the extra coefficient to zero and reproduce the smaller model. Its minimum SSR cannot be higher, so ordinary R-squared cannot fall.
Adjusted R-squared charges for the extra estimated parameters:
For the houses, there are 8 observations and 2 slopes. The residual degrees of freedom are 5. Thus . Adjusted R-squared can fall after adding a variable and can be negative when the adjusted residual variation exceeds the adjusted total variation.
Decide what the fit tells you
A low R-squared can coexist with unbiased coefficients: individual outcomes contain substantial variation that the regressors may not explain. A high R-squared can coexist with omitted-variable bias or an incorrect causal story. Two quantities that trend upward may fit closely without either causing the other.
Compare fit statistics on the same outcome measured the same way and the same observations. If a new regressor has missing values, first put both models on their common sample. Otherwise changes in the data and changes in the equation are mixed together.
The usual decomposition relies on an intercept. Without one, centered R-squared can be negative and loses its usual fraction-explained interpretation. A close fit to these eight houses also needs separate evidence before it can support accurate predictions for new houses.
Key Takeaways
- With an intercept, total variation equals explained plus residual variation.
- Ordinary R-squared cannot fall when regressors are added on the same sample.
- Adjusted R-squared accounts for the number of estimated parameters.
- Fit does not establish unbiasedness or causality.
- Compare models on the same observations and dependent variable.
- Check each textbook’s sum-of-squares notation.
3Judge bias and choose useful controls
A coefficient can be computed perfectly and still answer a causal question badly. Unbiasedness depends on how the sample was collected and how the unobserved determinants relate to the regressors. You will separate those assumptions from properties OLS guarantees mechanically, trace omitted variable bias through two signed relationships, and choose controls by their role in the economic process. The timing of a variable matters as much as its predictive power.
3.1 The assumptions behind unbiased estimates
Unbiasedness is a property of an estimation procedure across repeated samples. To establish it for OLS, start with the population model and the data-generating process, not the appearance of one fitted equation.
Four assumptions
MLR.1: linear in parameters. The population equation is . Squares or logarithms may be regressors; the unknown coefficients enter linearly.
MLR.2: random sampling. The observations are independent draws from the same population distribution. A survey restricted to people above an earnings threshold is not a random sample of all workers. Its results cannot be justified for that whole population merely by increasing the number surveyed.
MLR.3: no perfect collinearity. No explanatory regressor is constant or an exact linear function of the others, allowing for the intercept. There must be at least as many observations as parameters. Strong correlation is permitted; an exact dependency prevents unique estimation.
MLR.4: zero conditional mean. At every combination of regressor values,
The unobserved factors have no systematic mean relationship with the regressors. This is stronger than having errors that average to zero overall. Positive average errors in one group and negative average errors in another could cancel overall while violating the conditional requirement.
What unbiasedness means
Under MLR.1–MLR.4,
Here denotes the sample regressor values. Averaging the estimates over repeated outcomes at those regressor values centers them on the population coefficient. It does not require a particular sample estimate to equal the truth or to be close to it. The spread of the estimates is a separate issue.
Neither constant error variance nor normal errors are required for this result. The regressors also need not be uncorrelated with one another. Exact collinearity and correlation with the error are different problems.
Reason about the unobserved factors
Consider crop yield on fertilizer and rainfall. Yield is measured in metric tons per hectare, fertilizer in kilograms per hectare, and rainfall in millimeters. If farmers apply more fertilizer to better soil, soil quality both raises yield and is related to fertilizer. Leaving it in the error undermines zero conditional mean and can inflate the fertilizer coefficient.
Random assignment of fertilizer removes that selection mechanism. Including soil quality can address the measured confounder in observational data. The full zero conditional mean claim still concerns all factors remaining in the error and all included regressors.
A regressor correlated with the population error is endogenous. Sources include omitted determinants, an incorrect functional form, measurement error, or joint determination of the regressor and outcome.
Residuals cannot verify the assumption
OLS residuals are sample-uncorrelated with included regressors by construction. They therefore cannot establish that the unknown population errors have zero conditional mean. Assess that assumption using the study design, variable definitions, and economic reasoning about what remains unobserved.
Key Takeaways
- MLR.1–MLR.4 give unbiased OLS estimates.
- Unbiasedness describes a repeated-sample average, not one estimate’s accuracy.
- Zero conditional mean concerns the population error, not fitted residuals.
- Homoskedasticity and normality are not needed for unbiasedness.
3.2 Trace omitted variable bias
A short regression may attribute to one variable an effect that belongs partly to another. Omitted variable bias needs two links: the omitted variable affects the outcome and is related to the included regressor.
Start from a two-regressor population model
Suppose the correctly specified model satisfies MLR.1–MLR.4:
You omit and regress the outcome on alone. Let be the sample slope from regressing on . The exact relation between the short and long sample slopes is
Conditioning on the full regressor sample and taking expectations gives
Thus the conditional bias is . One factor measures the omitted variable's partial outcome effect; the other measures how much it tends to change with the included regressor. The product has the units of the retained slope.
Calculate a size
Suppose the true hourly wage equation has a schooling effect of 1.20 currency units per year and an ability effect of 0.90 currency units per test-score point. In the sample, ability rises by 0.40 points per schooling year. Leaving ability out gives bias and an expected schooling slope of 1.56. The bias is 30% of the true schooling effect.
This expectation concerns a procedure. It does not say that every schooling-only estimate equals 1.56. Random sampling variation remains around the shifted center.
Work out the direction
| Omitted variable's effect on outcome | Relation to included regressor | Bias |
|---|---|---|
| Positive | Positive | Upward |
| Positive | Negative | Downward |
| Negative | Positive | Downward |
| Negative | Negative | Upward |
For example, suppose a larger class lowers scores by 2 points per pupil. Family income raises scores by 0.5 points per thousand, and income is related to class size with slope −0.8. Omitting income gives bias . The expected class-size slope is −2.4: downward bias makes a negative effect more negative, so it is also away from zero.
“Upward” means numerically larger. It is not a synonym for “away from zero.” For a negative true effect, a modest positive bias moves the estimate toward zero.
Check when bias disappears
There is no omitted-variable bias from if its population effect is zero or its auxiliary slope on is zero. If neither link vanishes, collecting more of the same population data improves precision around the wrong target; it does not remove the omitted relationship.
With several retained regressors, use the omitted variable's relationship with the retained regressor after accounting for the other controls. A simple pairwise correlation can miss that partial relationship. Economic reasoning may establish a likely bias direction even when the omitted factor, such as ability, cannot be measured.
Key Takeaways
- Omitted variable bias requires both an outcome effect and a relationship with the included regressor.
- Multiply those two signed effects to find the bias in the two-regressor setup.
- Upward and downward describe numeric direction, not distance from zero.
- More observations do not remove a persistent omitted-variable relationship.
- With several controls, partial relationships matter.
3.3 Choose controls for the effect you want
A useful control has a reason to be in the equation. Begin with the effect you want to estimate, then ask which variables precede it, confound it, predict the outcome, or lie on its causal path.
Separate confounding from prediction
A confounder affects the outcome and is related to the regressor of interest. In a school-score regression, the share of pupils from low-income families may capture background differences related to class size. Controlling for it makes class-size comparisons among schools with similar measured backgrounds.
A variable can also help precision without removing confounding. A characteristic fixed before treatment that predicts the outcome can reduce unexplained variation even if it is unrelated to treatment. By contrast, a truly irrelevant variable has a zero population coefficient. Including it preserves unbiasedness under MLR.1–MLR.4, but can increase sampling variances when it overlaps with useful regressor variation.
State the identifying claim
Let be the variable of interest and the controls. Conditional mean independence says
Once the controls are fixed, the remaining mean of the unobserved determinants does not vary with . To obtain an unbiased coefficient on by linear regression, the conditional mean on the right must also be captured by the included control terms, alongside random sampling and no perfect collinearity. If it curves with a control, a straight-line term alone may not capture it.
The class-size slope may then have a causal interpretation even though the low-income-share slope does not. That control may stand in for several background factors, so its coefficient mixes relationships. Its purpose is to make the class-size comparison credible.
Avoid blocking the effect you want
Suppose schooling improves access to occupations that pay more. Controlling for occupation removes that route from the schooling comparison. The resulting coefficient addresses schooling at a fixed occupation, not schooling's total effect through all routes.
Likewise, if a beer tax reduces traffic deaths through lower beer consumption, holding consumption fixed blocks that pathway. A variable caused by the treatment can also introduce selection bias. Choose the intended effect before deciding which variables to hold fixed; post-treatment controls are unsuitable for estimating a total effect through those pathways.
Read a treatment coefficient
Each person has a potential outcome under treatment and without it. Only one is observed, so the individual difference cannot be observed directly. The average treatment effect is . Random assignment makes the difference in group sample means unbiased for this average.
For observational training data, regression adjustment might use
With treatment as good as randomly assigned given the controls, a correctly captured linear control relationship, no perfect collinearity, random sampling, and a common treatment effect, OLS estimates that effect without bias. A training coefficient of 1.8 means 1.8 thousand more annual earnings for trained workers at the same prior earnings and education. It is not justified merely because training improves R-squared.
Key Takeaways
- Select controls using economic roles and timing.
- A control may remove confounding or improve precision by predicting the outcome.
- Conditional mean independence also needs the conditional control relationship to be captured.
- A post-treatment control can block part of a total effect.
- Control coefficients need not themselves have causal interpretations.
- Regression adjustment requires an identifying assumption about treatment after controls.
4Explain why some coefficients are imprecise
Two unbiased estimates can differ greatly in how much they vary across samples. Precision depends on unexplained outcome variation and on how much independent variation the sample contains in each regressor. You will turn that idea into a variance formula, estimate standard errors from residuals, and diagnose multicollinearity. The house example shows why excellent overall fit can coexist with a bedroom coefficient that is hard to pin down.
4.1 Noise and independent regressor variation
Imagine repeatedly collecting a random sample and fitting the same model. The coefficient estimates change from sample to sample. Their sampling variance measures that spread, conditional on the regressor values.
Add constant error variance
MLR.5, homoskedasticity, states
The error variance is the same at every regressor combination. It concerns the conditional spread, not the mean. A saving regression may violate it if high-income households have much more dispersed saving than low-income households. That pattern is heteroskedasticity.
Under MLR.1–MLR.5, a slope's conditional variance is
Here . The auxiliary comes from regressing on the other regressors with an intercept. It is different from the main equation's R-squared for the outcome.
Read each part of the formula
- Larger error variance raises sampling variance. More unexplained noise makes the partial effect harder to estimate.
- Larger regressor spread lowers sampling variance. A broader range of independent input values provides more information about a slope.
- Larger auxiliary R-squared raises sampling variance. The other regressors explain more of this regressor, leaving less variation for its separate effect.
The denominator is exactly the sum of squared residuals from partialling out . The computation of the coefficient and the formula for its precision therefore depend on the same remaining variation.
Calculate a variance and standard deviation
Suppose , , and . Independent variation is . The variance is , and the standard deviation is .
If a larger comparable sample doubles the regressor variation to 200 while the other quantities stay the same, variance falls to 0.08 and standard deviation to about 0.28. Doubling observations roughly halves variance; it does not halve standard deviation. Four times the observations gives about half the standard deviation.
Decide whether an added variable helps
An added regressor may lower unexplained outcome variance and also absorb some of the variation identifying another slope. The net effect on precision depends on both changes.
If the new variable is unrelated to the part of left after the existing controls, it does not raise the sample auxiliary R-squared. If it also explains the outcome, it can improve precision. Merely being pairwise-uncorrelated with the original is not sufficient when other controls are present.
Homoskedasticity is not required for unbiasedness. If MLR.1–MLR.4 hold but MLR.5 fails, OLS remains unbiased. The displayed variance formula and conventional standard errors are then generally invalid; valid standard errors require a formula that allows unequal error variances.
Key Takeaways
- Sampling variance describes coefficient estimates across samples.
- MLR.5 makes conditional error variance constant.
- Noise raises variance; independent regressor variation lowers it.
- Auxiliary R-squared measures overlap among regressors.
- Adding a variable can change both noise and overlap.
4.2 Estimate error variance and coefficient uncertainty
The variance formula contains the unknown population error variance. Estimate it from the fitted residuals, allowing for the parameters OLS has already used the data to estimate.
Count residual degrees of freedom
There are observations and estimated parameters: slopes and one intercept. With positive residual degrees of freedom,
Residuals satisfy one normal equation for each parameter. Those restrictions leave freely varying residual components. Dividing by that number makes the estimator unbiased under MLR.1–MLR.5. Dividing by the sample size ignores the variation used in fitting and understates the error variance on average.
The square root is the standard error of the regression, or SER:
It measures unexplained outcome spread in the units of the outcome. It is not the standard error of any particular coefficient.
Work through the houses
The eight-house equation estimates three parameters. Its residual degrees of freedom are . Since SSR is 400,
Prices are in thousands, so the estimated unexplained standard deviation is 8.94 thousand currency units. The variance 80 is in squared thousands.
For the area slope, remaining regressor variation is about 416.67. Substitute the estimated error variance into the slope variance formula:
For bedrooms, the corresponding remaining variation is about 0.556, giving
Use unrounded auxiliary values when calculating these results; rounded displays can slightly alter the final digit.
Read the two kinds of standard error
| Quantity | What it describes | Units in the house example |
|---|---|---|
| SER | Unexplained outcome spread | Thousands of currency units |
| Area coefficient standard error | Sampling spread of the area estimate | Thousands per m² |
| Bedroom coefficient standard error | Sampling spread of the bedroom estimate | Thousands per bedroom |
A coefficient standard error estimates how much that coefficient would vary across samples. It is itself calculated from a sample and varies across samples. The area estimate of 2 has standard error about 0.44; the bedroom estimate of 6 has standard error 12.0. The latter is very uncertain relative to its estimated magnitude.
For comparable samples, standard errors shrink roughly with . More observations improve precision without making the population error variance smaller. R reports SER as “Residual standard error,” while Stata uses “Root MSE.” Under heteroskedasticity, conventional coefficient standard errors generally cease to estimate sampling spread correctly even when the coefficient estimates remain unbiased.
Key Takeaways
- Residual degrees of freedom subtract all estimated parameters, including the intercept.
- Divide SSR by to estimate error variance without bias under MLR.1–MLR.5.
- SER is in outcome units; a coefficient standard error is in coefficient units.
- A standard error estimates a sampling standard deviation.
4.3 Multicollinearity and the cost of dropping a control
When regressors move together, the sample may reveal their combined relationship with the outcome much more clearly than their separate effects. First distinguish exact redundancy from strong overlap.
Perfect versus imperfect collinearity
Perfect collinearity is an exact linear dependency. Including total income together with labor income and all other income creates one: total equals the sum of its parts. A constant plus shares that add to one creates another. The coefficient vector is not unique; remove a redundant column.
A nonlinear transformation does not itself create a linear dependency. A variable and its square can both enter when the observed values provide enough distinct variation. For a binary variable, however, the square equals the variable, so including both is redundant. For positive values, , so those two log columns are exactly collinear.
Imperfect multicollinearity is strong overlap without exact dependency. It violates none of the Gauss–Markov assumptions. OLS remains unbiased and BLUE when those assumptions hold, but coefficients can be imprecise.
Measure variance inflation
At auxiliary R-squared 0.9, VIF is 10. Holding noise and total regressor spread fixed, the coefficient variance is ten times the zero-overlap benchmark. Its standard deviation is multiplied by , not by ten.
For the houses, area and bedrooms have correlation about 0.974, auxiliary R-squared about 0.9489, and VIF about 19.6. The bedroom estimate has standard error 12.0 even though the overall price R-squared is about 0.99. Close fitted prices do not require precise separate slopes.
VIF above 10 is a common rule of thumb, not a universal decision rule. Precision also depends on noise and regressor spread. High correlation between two controls matters for the coefficient of interest through how well the full set of controls explains that regressor; their pairwise correlation alone is not decisive.
Weigh remedies against bias
More independent data can raise the available regressor variation. You may also report the imprecision or study a combined change the data support, such as an extension adding area and a bedroom. Prediction for new observations needs separate validation.
Dropping a relevant correlated control can lower variance while introducing bias. In the house example, dropping bedrooms changes the area slope from 2 to about 2.21. Holding error variance at 80 for the conditional comparison, the area slope's standard deviation falls from about 0.438 to . If the population bedroom effect is 6, the omitted-variable bias is about 0.21 thousand per m².
For this comparison, variation across errors is evaluated at the full fixed set of regressor values. If instead the omitted regressor also varies across samples, its contribution can add variability to the shorter model's error. A smaller reported standard error cannot settle the total accuracy question. As sample sizes grow, persistent bias remains while sampling variance falls.
To inspect VIFs, use estat vif after regress in Stata, vif() from R's car package, or statsmodels' variance_inflation_factor function in Python.
Key Takeaways
- Perfect collinearity prevents unique coefficients; imperfect collinearity reduces precision.
- VIF inflates variance, while its square root inflates standard deviation.
- High outcome R-squared can coexist with imprecise coefficients.
- VIF thresholds do not replace a judgment about needed precision.
- Dropping a relevant control can exchange variance for omitted-variable bias.
- Correlation among controls matters through the variation identifying the coefficient of interest.
5Understand BLUE and the matrix formula
The Gauss–Markov theorem explains a precise advantage of OLS: among linear unbiased estimators, it has the smallest variance under five assumptions. Its meaning depends on the comparison class, not on the word “best” alone. You will compare estimators and connect the result to partialling out. An optional matrix section then collects the same model, normal equations, and variance results into a compact notation for all coefficients at once.
5.1 What makes OLS best linear unbiased
OLS is a standard starting point because it combines unbiasedness with a variance guarantee. The guarantee compares specific kinds of estimators under specific assumptions.
Unpack BLUE
Under MLR.1–MLR.5, OLS is the best linear unbiased estimator, or BLUE.
- An estimator is a rule for producing an estimate from a sample.
- Linear means a weighted sum of observed outcomes. Weights can depend on the regressors, but not on the outcomes.
- Unbiased means the estimate averages to the true parameter over repeated samples.
- Best means smallest sampling variance among linear unbiased estimators of the same parameter.
Linearity here concerns the estimator's dependence on outcomes. It is distinct from the model being linear in its parameters.
Partialling out shows OLS linearity directly:
The residualized regressors depend only on the regressor data. For the first house, the area weight is approximately . Multiplying prices by all such weights and adding gives the area coefficient.
Compare two estimators
Take simple regression at fixed regressor values 1, 2, 3, and 4, with error variance 1 and the Gauss–Markov assumptions. The endpoint slope is
Its expectation is the true slope: the intercept cancels and the mean error difference is zero. Independent endpoint errors give variance .
OLS uses all four observations. The centered regressor sum of squares is 5, so its slope variance is . The endpoint estimator is linear and unbiased, yet has a larger variance. This is the comparison the theorem settles.
Apply the guarantee to combined effects
Any fixed linear combination of OLS coefficients is also best linear unbiased for the corresponding population combination. This covers a conditional mean at specified inputs and an effect such as for an extension. It does not remove the uncertainty of an individual future outcome, which also contains a new error.
The comparison class matters. A biased estimator may have lower variance, and the theorem makes no universal claim about estimators nonlinear in the outcomes. Normal errors are not required. A single OLS estimate can still be far from the population coefficient.
Keep the assumption ladder straight
MLR.1–MLR.4 establish unbiasedness. Adding constant conditional error variance supplies the conventional variance formula and BLUE result. High but imperfect multicollinearity leaves the theorem intact, even when standard errors are large.
If error variance changes with regressors, unbiasedness remains under the first four assumptions, but the conventional variance formula and the best-variance guarantee generally fail. If zero conditional mean fails, unbiasedness itself is no longer guaranteed. The algebraic normal equations continue to hold in the fitted sample in either case.
Key Takeaways
- BLUE compares OLS with other linear unbiased estimators under MLR.1–MLR.5.
- Linear means linear in observed outcomes, with weights determined by regressors.
- Best means smallest variance within that comparison class.
- The theorem covers fixed linear combinations of coefficients.
- Heteroskedasticity removes the BLUE guarantee without removing unbiasedness under MLR.1–MLR.4.
5.2 Optional: collect OLS in matrix form
Matrix notation stores all observations and coefficients together. This section assumes you can multiply matrices, transpose them, and take the inverse of a square matrix.
Stack the model
Write . The outcome and error vectors are . The regressor matrix is , with row equal to . The parameter vector is . The column of ones represents the intercept.
OLS minimizes
The normal equations become
If the columns of the regressor matrix are linearly independent, is invertible and
The inverse is , and the resulting coefficient vector is . A tall regressor matrix has no ordinary inverse, so writing its inverse times the outcome is not a valid shortcut.
Work through a small example
For and , including an intercept gives
The determinant is 20. Its inverse is
Multiplication gives an intercept and slope . These are the same estimates obtained from the scalar formulas. For the house data, solving the three-column system gives .
Read expectation and variance
Substituting the population model yields
Zero conditional mean makes the last term's conditional expectation zero. Under random sampling and homoskedasticity, the conditional error covariance matrix is , so
Diagonal entries are coefficient variances; off-diagonal entries are covariances. Estimate this matrix by replacing error variance with when residual degrees of freedom are positive.
Connect to partialling out
The projection matrix gives fitted outcomes . The residual-maker gives residuals and satisfies .
If contains the other controls and removes their fitted component, partialling out is
The matrix Gauss–Markov result says every competing linear unbiased estimator has a covariance matrix whose difference from OLS is positive semidefinite. That means no fixed coefficient combination has smaller variance under the competitor.
Key Takeaways
- The intercept is a column of ones in the regressor matrix.
- Full column rank makes invertible.
- The matrix normal equations collect all residual orthogonality conditions.
- The covariance matrix’s diagonal contains coefficient variances.
- A residual-maker removes fitted components and expresses partialling out.
- The matrix BLUE result covers every fixed linear combination.
Multiple Regression Estimation examples
1Turn an equation into economic comparisons
10 steps
- 1IntroductionAsk what differs between two houses
Houses with more bedrooms also tend to have more floor area. A bedroom-only comparison mixes those differences. A regression using both features lets you ask two distinct questions: how price changes with area at fixed room count, and how it changes with room count at fixed area. Start with those comparisons before reading any coefficient as a causal effect.
- 2ExplanationSeparate measured and unmeasured factors
The population model is . Area and bedrooms get their own coefficients. Location, condition, and any other omitted determinants remain in the error. Adding a measured determinant changes which factors the equation explicitly accounts for; it also changes the comparison represented by each slope.
- 3ConnectionGive causality its own assumption
Including area does not hold location fixed. A causal interpretation needs the unobserved factors to have zero conditional mean: . Then differences in the conditional average price come from the modeled factors. OLS is the method for estimating the coefficients; it cannot make that population assumption true by fitting the sample well.
- 4ChallengeRead a squared-regressor model
An equation contains experience and experience squared. Can the experience coefficient alone describe one more year of experience?
---reveal---
No. Another year changes both regressors, so both terms contribute. The equation can still be linear in its unknown coefficients. “Linear model” concerns the parameters, while the total experience change must respect the relationship between experience and its square.
- 5ExampleRead the two house slopes
The fitted equation is . Price is in thousands of currency units and area in m². Another square meter adds 2 thousand to predicted price at fixed bedrooms. Another bedroom adds 6 thousand at fixed total area—a comparison of room layouts, not a comparison that adds more floor space.
- 6ExampleBuild the prediction one part at a time
For the sampled 100 m² house with 3 bedrooms, the area contribution is thousand and the bedroom contribution is thousand. Add the intercept: thousand. The intercept locates the fitted equation, even though a zero-area, zero-bedroom house is not a useful practical baseline.
- 7ExampleCompare the prediction with the sale
That house sold for 239 thousand. Its residual is thousand. The negative sign means the observed sale lies below the fitted price: the equation overpredicts by 9 thousand. Keep the order “observed minus fitted.” The residual is calculated from the sample estimates; the population error depends on the unknown true coefficients.
- 8TipAttach changes to their units
A bedroom and a square meter are not comparable input changes. The coefficient 6 is larger than 2, but that does not rank economic importance. An extra 20 m² adds 40 thousand to predicted price at fixed bedrooms; rearranging the same area to add one bedroom adds 6 thousand. Compare plausible changes with their units attached.
- 9ChallengePrice an extension
An extension adds 20 m² and one bedroom. What does the fitted equation predict for the price change?
---reveal---
The area contribution is 40 thousand and the bedroom contribution is 6 thousand, giving 46 thousand altogether. Using only 6 treats floor area as unchanged. This is a fitted comparison; interpreting it as the effect of construction also needs a credible claim about the factors left in the error.
- 10RecapKeep three questions distinct
For any fitted equation, identify the comparison each slope makes, calculate the prediction in the outcome’s units, and read the residual as observed minus fitted. Assess the causal assumptions separately from those calculations.
2See how OLS uses the house data
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionFollow the calculation behind the output
- 2ExplanationChoose all coefficients together
- 3ExampleCheck the point of means
- 4ChallengeDistinguish signed and squared errors
- 5ExplanationRemove bedrooms from floor area
- 6ExampleRecover the slope from what remains
- 7Key InsightUse a residualized horizontal axis
- 8ChallengeExplain the much larger short slope
- 9ExampleSplit the outcome variation
- 10ExampleCompute the explained fraction
- 11ExplanationCharge for extra coefficients
- 12ChallengeCompare the same observations
- 13ChallengeConnect partial information with overall fit
- 14RecapRead the right statistic for the question
3Trace bias and choose a defensible comparison
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionAsk what remains in the error
- 2ExplanationBuild the unbiasedness argument
- 3ExampleFind the fertilizer selection problem
- 4ChallengeUse the right evidence for exogeneity
- 5ExplanationSeparate the two bias links
- 6ExampleCalculate the wage bias
- 7Key InsightKeep direction separate from magnitude
- 8ChallengePredict what more observations change
- 9ExplanationGive each control a purpose
- 10ExplanationState what conditioning achieves
- 11ChallengeDecide whether occupation is a good control
- 12ConnectionRecognize the missing potential outcome
- 13ChallengeInterpret the training and control slopes
- 14RecapChoose an effect before choosing controls
4Turn independent variation into standard errors
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionExplain the bedroom uncertainty
- 2ExplanationPut noise over information
- 3ExampleSeparate variance from standard deviation
- 4ChallengeKeep unbiasedness when variance changes
- 5ExplanationCount the parameters used in fitting
- 6ExampleEstimate error spread first
- 7ExampleCalculate two coefficient standard errors
- 8ChallengeTell the standard errors apart
- 9ExplanationIdentify exact redundancy
- 10ExampleConvert overlap into a VIF
- 11ChallengeChoose what a high VIF tells you
- 12ChallengeWeigh the shorter house equation
- 13RecapReport uncertainty with its source
5Understand the theorem and its matrix expression
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionGive “best” a precise meaning
- 2ExplanationDefine the comparison class
- 3ExampleConstruct an endpoint competitor
- 4ExampleCompare with all-observation OLS
- 5ChallengeKeep the theorem under multicollinearity
- 6ExplanationStack the observations
- 7ExplanationSolve the normal equations together
- 8ExampleForm the small matrix products
- 9ExampleMultiply by the inverse
- 10ConnectionRead the covariance matrix
- 11ChallengeConnect matrix rank to partialling out
- 12ChallengeExtend the guarantee to a combined effect
- 13RecapRecognize one result in two forms
Multiple Regression Estimation practice questions
Set 1: Assess assumptions and select controls10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Interpret equations and check the fit10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Measure uncertainty and regressor overlap10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Connect estimation, bias, and the matrix result10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Added-variable plot
Adjusted R-squared
Auxiliary regression
Average treatment effect
B
Bias–variance trade-off
BLUE
C
Ceteris paribus
Coefficient covariance matrix
Coefficient standard error
Conditional mean independence
Confounder
Control variable
D
Dependent variable
Downward bias
E
Endogeneity
Error term
Estimated error variance
Estimator
Exogeneity
Explained sum of squares
F
Fitted value
Frisch–Waugh–Lovell theorem
Full column rank
G
Gauss–Markov theorem
H
Heteroskedasticity
Homoskedasticity
I
Independent regressor variation
Intercept
Irrelevant variable
L
Linear estimator
M
Multicollinearity
Multiple regression
N
Normal equations
O
Omitted variable bias
Ordinary least squares
P
Partial effect
Partialling out
Perfect collinearity
Point of means
Population parameter
Potential outcome
Projection matrix
R
R-squared
Random sampling
Regressor
Regressor matrix
Residual
Residual degrees of freedom
Residual orthogonality
Residual sum of squares
Residual-maker matrix
S
Sample regression function
Sampling variance
Standard error of the regression
T
Total sum of squares
U
Unbiasedness
Underspecification
Upward bias
V
Variance inflation factor
Z
Zero conditional mean
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.