Instant PDF download, name-and-email checkout. Complete bundle: every Economics and Statistics book
Statistics guide, Unit 6, step 22 of 22Previous stepAll steps

Step 22: A First Look at Multiple Regression

SyllabusUniversity · econometrics bridge
In 30 seconds
  • Multiple regression uses several predictors at once: \( \hat{y} = b_0 + b_1x_1 + b_2x_2 + \dots + b_kx_k \). All the inference tools from simple regression carry over.
  • Every coefficient means “the effect of this predictor, holding the other variables constant“. Change which variables are in the model and a coefficient can change size, significance, or even sign.
  • Use adjusted \( r^2 \), not plain \( r^2 \), to judge whether a new predictor earns its place. Highly correlated predictors (multicollinearity) inflate standard errors.
  • Exam point: never report a coefficient without saying what else was in the model. Categorical predictors enter as dummy variables, one fewer than the number of categories.
Video lesson coming soonA short animated lesson for this step will appear here.

The study that reversed itself

A health researcher records weekly exercise hours and blood cholesterol for twelve patients and fits a simple regression. The slope is +3.59, with p = 0.001. Taken at face value, each extra hour of weekly exercise goes with cholesterol about 3.6 points higher. Exercise looks harmful.

Then the researcher adds one more variable to the model: age. The exercise coefficient becomes −4.56, with p = 0.026. Still significant, but now firmly negative. Exercise lowers cholesterol after all.

Nothing about the data changed. Same twelve patients, same measurements. The only change was which variables the model was allowed to see. This step explains how that is possible.

Real outcomes rarely have one cause. Cholesterol depends on age, diet, genes and exercise together; house prices depend on size, location and age together. Multiple regression extends the simple regression of Step 15 to several predictors:

\[ \hat{y} = b_0 + b_1x_1 + b_2x_2 + \dots + b_kx_k \]

Each coefficient still has a standard error, a t-statistic, a p-value and a confidence interval. The residual standard error still measures typical prediction error, and the L-I-N-E conditions still apply. What changes, and changes a lot, is what a coefficient means.

Key termHolding constant: in multiple regression, each coefficient \( b_j \) is the effect of \( x_j \) among cases that are alike on all the other predictors in the model.

What “controlling for” means

“Controlling for age” sounds technical, but the idea is simple: compare people of similar age. Instead of asking “do people who exercise more have higher cholesterol?”, you ask “among people of the same age, do those who exercise more have higher cholesterol?” These are different questions, and they can have different answers.

In the researcher’s sample, the people who exercised most were also the oldest: the correlation between age and exercise is 0.97. Age strongly raises cholesterol, and that alone pushes the whole cloud of points upward as exercise increases. But within any age band, more exercise goes with lower cholesterol. The overall upward trend was age in disguise.

This is the lurking variable from earlier in the book, now with a remedy. Before, you could only warn that a third variable might be driving things. Multiple regression lets you put that variable in the model and ask the question you actually care about.

Key termConfounding variable: a variable related to both the predictor and the response, which distorts their apparent relationship if it is left out of the model.

The case study resolved: reading two models

Here are the two models for the same 12 patients.

ModelPredictorEstimateStd. Errortp
1exercise+3.5890.7914.540.001
2exercise−4.5551.711−2.660.026
2age+1.6130.3284.920.001

Model 1 has intercept 188.58, \( s_e = 5.72 \) on 10 df and \( R^2 = 0.673 \). Model 2 has intercept 147.23, \( s_e = 3.14 \) on 9 df, \( R^2 = 0.911 \) and adjusted \( R^2 = 0.892 \).

Reading Model 2. The exercise coefficient says: among patients of the same age, each extra weekly hour of exercise goes with cholesterol about 4.6 points lower. The age coefficient says: among patients who exercise the same amount, each extra year of age goes with cholesterol about 1.6 points higher.

Which model is right? Both are correctly calculated, but Model 2 answers the sensible question. Model 1 lumps 30-year-olds who barely exercise together with 65-year-olds who exercise daily, so its slope blends an exercise effect with an age effect. Model 2 separates them, explains more (\( R^2 \) up from 0.67 to 0.91) and predicts better (\( s_e \) down from 5.72 to 3.14).

Worked example

Using Model 2, \( \hat{y} = 147.2 – 4.56(\text{exercise}) + 1.61(\text{age}) \), predict cholesterol for a 50-year-old and a 30-year-old who each exercise 4 hours a week. Then build a 95% interval for the exercise coefficient (\( b = -4.555 \), SE = 1.711, \( t^{*} = 2.262 \) on 9 df).

Step 150-year-old: \( 147.2 – 4.56(4) + 1.61(50) = 147.2 – 18.24 + 80.5 = 209.5 \)
Step 230-year-old: \( 147.2 – 18.24 + 1.61(30) = 147.2 – 18.24 + 48.3 = 177.3 \)
Step 3Difference \( = 209.5 – 177.3 = 32.2 = 20 \times 1.61 \): all from the 20-year age gap, since exercise is held equal.
Step 4Interval: \( -4.555 \pm 2.262 \times 1.711 = -4.555 \pm 3.871 = (-8.43,\ -0.68) \)

The interval lies entirely below zero, so, holding age constant, more exercise is significantly associated with lower cholesterol. The interval is wide, though: the effect could be under 1 point or over 8 points per hour.

Common mistake“Exercise raises cholesterol by 3.59 points” is not a defensible sentence, even though it came from a correctly fitted, significant regression. A coefficient means nothing outside the model that produced it. A variable left out of the model is a variable being ignored, and if it is a confounder, the coefficient absorbs its effect. Always ask: what else was in the model?

Adjusted \( r^2 \) and overlapping predictors

Adding a predictor can never reduce plain \( r^2 \). Even a column of random numbers nudges it up a little, because the extra flexibility lets the line fit the sample more closely. So plain \( r^2 \) is useless for deciding whether a predictor is worth including.

Adjusted \( r^2 \) fixes this by charging a penalty for each extra predictor. It rises only when a new variable adds more than the noise it brings, and falls otherwise.

ModelPredictors\( R^2 \)Adjusted \( R^2 \)
1exercise0.6730.640
2exercise, age0.9110.892
3exercise, age, shoe size0.9130.880

Adding age was clearly worthwhile: both measures jumped. Adding shoe size was not: plain \( R^2 \) crept up (as it always must), but adjusted \( R^2 \) fell from 0.892 to 0.880. Model 2 is preferred. Plain \( R^2 \) alone would have wrongly picked Model 3.

Throwing every available variable into a model is a reliable way to produce nonsense. Some predictors will look significant by chance (the multiple-comparisons problem from Step 14), the model will fit the sample’s quirks rather than the population (overfitting), and coefficients become unstable. Choose predictors because you have a reason to expect them to matter.

Key termMulticollinearity: when predictors are highly correlated with each other, so the model struggles to separate their individual effects; its main symptom is inflated standard errors.

The cholesterol data shows this too. Age and exercise correlate at 0.97, so they carry almost the same information. When age entered the model, the exercise coefficient’s standard error more than doubled, from 0.791 to 1.711. The model as a whole improved, but that individual estimate became less precise. Multicollinearity harms the interpretation of individual coefficients, not the model’s predictions. Report it, interpret individual coefficients with care, and if two predictors are near-duplicates, consider keeping only one.

Categorical predictors, and where statistics goes next

Many important variables are categorical: smoker or non-smoker, three regions, four store types. Regression handles them with a dummy variable, coded 1 if a case is in the category and 0 if not. The category coded 0 is the reference group.

Suppose a fitted model is \( \hat{y} = 145.0 – 4.2(\text{exercise}) + 1.5(\text{age}) + 9.3(\text{smoker}) \). The smoker coefficient means: comparing a smoker and a non-smoker of the same age who exercise the same amount, the smoker’s cholesterol is about 9.3 points higher. For a 45-year-old smoker who exercises 3 hours a week, \( \hat{y} = 145.0 – 12.6 + 67.5 + 9.3 = 209.2 \). An otherwise identical non-smoker gets 199.9, exactly 9.3 lower.

A category with more than two levels needs one fewer dummy than the number of categories. Three regions need two dummies, and the left-out region is the reference group. Using a dummy for every category would make the dummies add up to 1 for every case, which is perfect multicollinearity, and the model could not be solved.

With dummies, regression quietly contains earlier methods. A regression on one two-category dummy reproduces the two-sample t-test; a set of dummies for several groups reproduces one-way ANOVA. That generality is why regression dominates applied statistics.

Beyond a first course, the same estimate-and-standard-error logic extends to:

  • Logistic regression for yes/no outcomes (will a customer leave?). Ordinary regression could predict probabilities below 0 or above 1, so logistic regression models the odds instead.
  • Time series methods for ordered data where neighbours are correlated, such as forecasting sales.
  • Causal inference: randomised experiments remain the gold standard, and methods such as instrumental variables, difference-in-differences and regression discontinuity draw causal claims from observational data.
  • Machine learning, which puts prediction ahead of explanation.

Every one of these can be used to mislead. p-hacking (testing many things and reporting only what reached significance) manufactures false findings; the remedy is to decide the analysis in advance and report everything you tried. Models learn the biases in their training data, so “the algorithm decided” is no answer to a question about fairness. And “anonymised” data can often be re-identified by combining it with other datasets. The habit worth keeping is one question: what would have to be true for this conclusion to be wrong?

Exam tipWhen interpreting any coefficient, use the words “holding the other variables constant” (or “among cases with the same…”), give the units, and avoid causal language for observational data. When comparing models, quote adjusted \( R^2 \). If a standard error jumps when a predictor is added, name multicollinearity.

Practise: 6 questions

Try each one on paper first, then check the worked answer.

EasyQ1. \( \hat{y} = 20 + 5x_1 – 2x_2 \). Interpret \( b_1 \) and predict \( y \) when \( x_1 = 3 \) and \( x_2 = 4 \). Show worked answer
Holding \( x_2 \) constant, a one-unit rise in \( x_1 \) is associated with a 5-unit rise in \( y \).
\( \hat{y} = 20 + 5(3) – 2(4) = 20 + 15 – 8 = 27 \).
EasyQ2. A categorical predictor has 4 levels. How many dummy variables are needed, and why not 4? Show worked answer
3 dummies. The level left out becomes the reference group.
Using 4 would make the dummies sum to 1 for every case, which is perfect multicollinearity, so the model could not be solved.
MediumQ3. Model 1 has adjusted \( R^2 = 0.65 \). Model 2 adds a variable: plain \( R^2 \) rises slightly but adjusted \( R^2 \) is 0.63. Which model is preferable, and why? Show worked answer
Model 1. Plain \( R^2 \) always rises when a predictor is added, so its increase tells you nothing.
Adjusted \( R^2 \) fell (0.65 to 0.63), so the extra variable added more noise than information.
MediumQ4. Using \( \hat{y} = 145.0 – 4.2(\text{exercise}) + 1.5(\text{age}) + 9.3(\text{smoker}) \), interpret the smoker coefficient and predict cholesterol for a 40-year-old non-smoker who exercises 5 hours a week. Show worked answer
Comparing a smoker and a non-smoker of the same age and exercise level, the smoker’s cholesterol is about 9.3 points higher. Non-smokers (coded 0) are the reference group.
\( \hat{y} = 145.0 – 4.2(5) + 1.5(40) + 9.3(0) = 145.0 – 21.0 + 60.0 + 0 = 184.0 \).
MediumQ5. Model 2’s age coefficient is 1.613 with SE 0.328 on 9 df. Compute t and a 95% interval using \( t^{*} = 2.262 \). Is age significant? Show worked answer
\( t = 1.613 \div 0.328 = 4.92 \).
Margin \( = 2.262 \times 0.328 = 0.742 \); interval \( = 1.613 \pm 0.742 = (0.87,\ 2.35) \).
Zero is excluded, so age is significant at 5%: holding exercise constant, each extra year goes with between about 0.9 and 2.4 points higher cholesterol.
ExamQ6. A simple regression of cholesterol on exercise gives a significant positive slope (+3.59). Adding age gives a significant negative exercise coefficient (−4.56), and its standard error rises from 0.79 to 1.71. Age and exercise correlate at 0.97. (a) Explain how both results can be correct. (b) Which model answers the more useful question, and why? (c) Explain the rise in the standard error. (d) Can this regression prove that exercise lowers cholesterol? [8 marks] Show worked answer
(a) They answer different questions [1]. The simple slope mixes the effect of exercise with the effect of age, because heavy exercisers in the sample are older and age raises cholesterol [1]. The controlled slope compares patients of the same age [1].
(b) Model 2, because it compares like with like and isolates the exercise effect rather than blending in the confounder [1]. It also has higher \( R^2 \) (0.91 against 0.67) and lower \( s_e \) [1].
(c) Multicollinearity: age and exercise are almost duplicates (r = 0.97), so the model struggles to separate their effects and the exercise estimate is less precise [2].
(d) No. It controls only for variables that were measured; an unmeasured confounder could still be at work. Only a randomised experiment settles causation firmly [1].

Check yourself

1. What silent qualifier attaches to every coefficient in multiple regression?

Each coefficient is the effect of its predictor among cases alike on the other predictors.

2. Does multicollinearity mainly harm prediction or interpretation?

Predictions can stay good while individual effects become hard to separate, with inflated standard errors.

3. Why can plain \( r^2 \) never fall when a predictor is added?

That is why adjusted \( r^2 \), which penalises extra predictors, is used to compare models.

Your score: 0 out of 3

The short version

  • Multiple regression \( \hat{y} = b_0 + b_1x_1 + b_2x_2 + \dots \) extends simple regression to several predictors, with the same inference tools.
  • Each coefficient means “holding the others constant”, so it has no meaning apart from its model. Controlling for a confounder can change a result’s size, significance or sign, as the flip from +3.59 to −4.56 shows.
  • Judge new predictors with adjusted \( r^2 \). Multicollinearity inflates standard errors and makes individual coefficients unstable.
  • Categorical predictors enter as dummies (one fewer than the number of categories); each coefficient is the difference from the reference group.
  • Avoid p-hacking, remember models inherit biases, and treat privacy seriously. The full chapter in Statistics Made Simple has 44 practice questions with a complete answer key, plus an appendix showing every result in R and Stata.
Want more questions like these, with worked answers?
The practice book has hundreds more, graded from easy to exam level.
You have finished the statistics guideNow plan your revision with an exam guide