ECON 310 · Econometrics I

Multiple Regression and Holding Things Constant

Multiple regression adds more predictors so each slope shows the link between x and y with the other variables held fixed.

Key takeaways

  • Multiple regression puts two or more predictors in one equation and estimates all slopes together.
  • Each slope means: the predicted change in y for a one-unit rise in that variable, holding the other predictors fixed.
  • Adding a relevant predictor can change the slope on another one, often a lot.
  • R² never falls when you add a predictor, so adjusted R² is used to compare models with different numbers of predictors.
  • Holding constant works only for variables you actually measure and include.

A real estate agent notices that houses with more bedrooms sell for much more. A line through the data says each extra bedroom goes with $30,000 more in price. A buyer thinks: "So if I add a bedroom, my house is worth $30,000 more!"

Not so fast. Houses with more bedrooms are also bigger. A four-bedroom house usually has more square feet than a two-bedroom house, and size is a big reason prices differ. Part of that $30,000 "bedroom effect" is really a size effect wearing a bedroom costume.

We want to ask a sharper question: compare two houses of the same size. Does the one with an extra bedroom sell for more? That is the question multiple regression is built to answer. It is the next step after the one-predictor line in The Line of Best Fit.

The equation

With two predictors, the model is:

y = β₀ + β₁ × x₁ + β₂ × x₂ + u

For our houses, y is the price in thousands of dollars, x₁ is the size in square feet, and x₂ is the number of bedrooms. OLS works just as before: it picks b₀, b₁ and b₂ to make the sum of squared residuals as small as possible. The arithmetic is heavier, which is why software does it, but the idea is unchanged. You can still call the estimates "the line of best fit," although now it is a flat surface (a plane) in three dimensions.

A two-predictor model for house prices
Price = b₀ + b₁ × Size + b₂ × Beds Price = Outcome Sale price in thousands of dollars b₀ = Intercept Predicted price when both predictors are zero b₁ × Size = Size effect Per extra square foot, bedrooms held fixed b₂ × Beds = Bedroom effect Per extra bedroom, size held fixed Price = b₀ + b₁ × Size + b₂ × Beds Price = Outcome Sale price in thousands of dollars b₀ = Intercept Predicted price when both predictors are zero b₁ × Size = Size effect Per extra square foot, bedrooms held fixed b₂ × Beds = Bedroom effect Per extra bedroom, size held fixed

What "holding constant" means

Suppose a researcher fits the house data and gets:

Price = 50 + 0.12 × Size + 8 × Bedrooms        (price in $ thousands, size in square feet)

Read the slopes:

  • 0.12 on size. Two houses with the same number of bedrooms, one square foot apart in size, are predicted to differ by 0.12 thousand dollars, or $120. So an extra 100 square feet goes with $12,000.
  • 8 on bedrooms. Two houses of the same size, one bedroom apart, are predicted to differ by 8 thousand dollars, or $8,000.

Compare this with the earlier simple line, where bedrooms alone seemed worth $30,000. Once we compare houses of equal size, the bedroom's pull falls to $8,000. The other $22,000 was size sneaking in. That change is the whole point of multiple regression: it separates the overlapping effects of variables that tend to travel together.

Notice that "holding constant" is a statistical statement about comparison, not a physical act. Nobody actually fixed the size of any house. The regression compares houses that happen to be alike on the included variables.

One predictor versus two
Simple regression Price on bedrooms only Bedroom slope: $30,000 Bedrooms also stand in for size Multiple regression Price on size and bedrooms Bedroom slope: $8,000 Compares houses of equal size VS Simple regression Price on bedrooms only Bedroom slope: $30,000 Bedrooms also stand in for size Multiple regression Price on size and bedrooms Bedroom slope: $8,000 Compares houses of equal size

Worked example: predictions and comparisons

Using Price = 50 + 0.12 × Size + 8 × Bedrooms:

House A: 1,500 square feet, 3 bedrooms. Price = 50 + 0.12 × 1,500 + 8 × 3 = 50 + 180 + 24 = 254, so about $254,000.

House B: 1,500 square feet, 4 bedrooms. Price = 50 + 180 + 32 = 262, so about $262,000. The difference from A is 262 − 254 = 8, exactly the bedroom slope.

House C: 1,600 square feet, 3 bedrooms. Price = 50 + 0.12 × 1,600 + 24 = 50 + 192 + 24 = 266. The difference from A is 266 − 254 = 12, exactly 100 × 0.12.

Each prediction is a straight application of the equation. The comparison trick, changing one variable and keeping the rest the same, is how you check you are reading a slope properly.

Two parallel lines: 3 bedrooms versus 4
Predicted price ($ thousands) 4 bedrooms 3 bedrooms Size (hundreds of square feet) Predicted price ($ thousands) 4 bedrooms 3 bedrooms Size (hundreds of square feet)

At any size, the 4-bedroom house is predicted $8 thousand higher. The lines are parallel because the size slope is the same.

Why the other slopes change

How much a slope shifts when you add a variable depends on two things: how strongly the new variable affects y, and how strongly it is related to the old one. In our example, size matters a lot for price, and size is closely tied to bedrooms. So adding size slashes the bedroom slope.

If the new variable were unrelated to bedrooms, the bedroom slope would barely move, even if the new variable mattered a great deal for price. That is a useful pattern. When the slopes you care about are stable as you add controls, you gain a little more trust in them. When they swing, you have learned that the first estimate was mixing in other influences. This idea leads straight to Omitted Variable Bias, the next lesson.

The cost of "controls": adjusted R²

You may remember that R² measures the share of y's variation the model explains. It has a quirk: adding any predictor, even a useless one like the house's street number, will not lower R², and will usually nudge it up by a hair. So R² alone would always favor the bigger model.

Adjusted R² corrects for this by charging a small penalty for each predictor:

adjusted R² = 1 − (1 − R²) × (n − 1) ÷ (n − k − 1)

Here n is the number of observations and k is the number of predictors (not counting the intercept). With n = 30 and k = 2, suppose R² = 0.600:

adjusted R² = 1 − 0.400 × 29 ÷ 27 = 1 − 0.4296 = 0.570

Now add one junk variable, so k = 3, and suppose R² creeps up to 0.601:

adjusted R² = 1 − 0.399 × 29 ÷ 26 = 1 − 0.4450 = 0.555

R² rose a little, but adjusted R² fell from 0.570 to 0.555. The adjusted measure notices that the extra variable did not earn its keep. It is a rough guide, not a rule; the lesson on Choosing Which Variables to Include discusses better judgment.

A subtle point: inference for each slope

Each coefficient comes with its own standard error, t statistic and confidence interval, built just as in Standard Errors and Inference in Regression. The degrees of freedom change: they equal n − k − 1 now, because each added predictor uses up one more piece of information.

Suppose the bedroom slope is 8 with a standard error of 5. Then t = 8 ÷ 5 = 1.6, below the rough cutoff of 2. The data, once size is accounted for, do not firmly show that bedrooms matter at all. In this made-up case, the large simple-regression effect of $30,000 melted to something small and uncertain. That is a very common outcome.

A second picture: wages

The house story is not special. Economists run the same kind of regression on wages. Suppose a researcher regresses hourly pay on years of schooling and years of work experience. In a simple regression with schooling alone, the slope may look odd, because people with more schooling are often younger and so have less experience. Pay rises with experience, so the schooling slope gets muddied by age differences.

Put both in the equation and each slope speaks about a cleaner comparison. The schooling slope now compares two workers with the same experience. The experience slope compares two workers with the same schooling. Neither is perfect, but each is less tangled than before. Think of the equation as a way of asking many fair comparisons at once.

You can also use multiple regression to compare groups, such as workers in different cities, by adding variables that stand for the group. The next lessons, starting with Dummy Variables, show how.

Reading the fit of several variables at once

When a model has several predictors, a high R² does not tell you which predictor is doing the work. Two predictors that move together can share credit in confusing ways. To see each variable's own contribution, look at its slope, its standard error and how it changes when other variables join or leave. A predictor whose slope stays steady across several versions of the model is behaving like a real, separate influence. One whose slope jumps around is borrowing strength from its neighbors.

Common mistakes

Reading a slope without "holding constant." Always say what else is in the model. "Each bedroom adds $8,000" is incomplete. "Each bedroom adds $8,000 for houses of the same size" is accurate.

Assuming you can hold fixed what you did not measure. Regression can only hold constant the variables in the equation. Hidden factors, like the quality of the neighborhood, still lurk in the error term and can bias the slopes.

Throwing in everything. More controls are not always better. Variables that are nearly copies of each other make slopes unstable, a problem named in Multicollinearity. And a control that is itself caused by your variable of interest can erase the effect you want to see.

Confusing prediction with explanation. A model can predict prices well without every slope having a causal meaning. Decide which job, predicting or explaining, before choosing the variables.

Words to know

Multiple regression a regression with two or more predictors estimated together.

Holding constant comparing cases that are the same on the other included variables.

Control variable a predictor included mainly to account for its influence, not because we care about its own slope.

Partial effect the change in the outcome from a one-unit rise in one predictor, with the other predictors fixed.

Adjusted R² a version of R² that penalizes the model for each additional predictor.

Plane the flat surface that a two-predictor regression fits through the data in three dimensions.

Overfitting adding so many predictors that the model fits noise in the sample rather than real patterns.

Check yourself

  1. In your own words, what does the slope on size mean in a model that also has bedrooms?
  2. With Price = 50 + 0.12 × Size + 8 × Bedrooms, what price does the model predict for 2,000 square feet and 4 bedrooms?
  3. Why did the bedroom slope fall from 30 to 8 when size was added?
  4. With n = 30, k = 2 and R² = 0.600, confirm adjusted R² is about 0.570.
  5. A new junk predictor raises R² slightly. Why might adjusted R² still fall?
  6. Explain why "holding constant" works only for measured variables.
Show the answers
  1. The predicted change in price for one more square foot among houses with the same number of bedrooms.
  2. 50 + 0.12 × 2,000 + 8 × 4 = 50 + 240 + 32 = 322, so about $322,000.
  3. Bigger houses have more bedrooms and higher prices, so the simple slope mixed in size; comparing equal sizes removes that part.
  4. 1 − 0.400 × 29 ÷ 27 = 1 − 11.6 ÷ 27 = 1 − 0.4296 = 0.570.
  5. Adjusted R² charges a penalty for each extra predictor, and a tiny rise in R² does not cover the penalty.
  6. The regression can only compare cases that are alike on variables in the equation; unmeasured factors stay in the error term.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: Multiple regression

  1. Multiple Regression and Holding Things ConstantMultiple regression adds more predictors so each slope shows the link between x and y with the other variables held fixed.10 min
  2. Omitted Variable BiasLeaving out a variable that affects the outcome and relates to your predictor makes the slope wrong. Learn the size and direction of the error.10 min
  3. Testing Several Coefficients: The F TestLearn how the F test checks whether a group of regression variables matters together, even when each one looks weak alone.11 min
  4. Dummy VariablesSee how 0-or-1 variables let a regression handle categories like seasons or yes-or-no features, and how to avoid the dummy trap.11 min
  5. Interaction TermsLearn how multiplying two variables lets a regression say that the effect of one thing depends on the level of another.10 min
  6. Logs, Squares and Functional FormLearn how squares and logarithms let a straight-line regression fit curves, and how to read the coefficients in each form.10 min
  7. Choosing Which Variables to IncludeLearn how to decide what goes into a regression, and why leaving out and piling in variables both cause trouble.10 min

In the news