Section 4.3 Lecture: The Multiple Linear Regression Model
Overview
Brad Hall explains multiple linear regression as an extension of simple regression that predicts one response from two or more predictors, with each coefficient interpreted while holding the other predictors constant. Using Excel’s Regression tool, he builds and interprets models for employee wages, college football scoring, used-car prices, and coffee-shop sales, including how to encode categorical predictors as 0/1 dummy variables.
Key takeaways
- In multiple linear regression, each coefficient describes the predicted response change for a one-unit increase in its predictor while all other predictors stay fixed.
- The wage model predicts $20.96 per hour for a 28-year-old employee with 4 years of education and 6 years of experience using 9.50 + 2.10E + 0.65X - 0.03A.
- Excel’s Regression tool accepts multiple predictors when their columns are selected together as one contiguous X range, as with football passing and rushing yards in columns L and M.
- A 0/1 dummy variable lets regression include categories such as certified-car status or campus proximity; its coefficient measures the predicted difference from the 0 reference group.
- Check the units used by each model before interpreting coefficients: 40 in the sedan example means 40,000 miles, and a coffee-shop sales coefficient of 5 means $5,000.
- In the football example, the estimated coefficient for rushing yards per game, 0.1160, is slightly larger than the passing-yards coefficient, 0.1036, so an additional 10 rushing yards yields a marginally higher predicted score.
Chapters
- Section 4.3 expands the simple linear regression model from one predictor to two or more predictors for a single response.
- The apartment example adds distance from LSU to square footage when predicting monthly rent.
- The population model uses an intercept, predictor coefficients, and an error term: beta zero, beta coefficients, and epsilon.
- Population beta coefficients are unknown, so sample coefficients are written as lowercase b values.
- The fitted sample equation uses predicted response y-hat, distinguishing its estimate from the observed response Y.
- Each predictor has its own slope, interpreted as the predicted response change for a one-unit increase while the other predictors remain constant.
- The intercept is the predicted response when every predictor equals zero, though that value may not be practically meaningful.
- A wage regression uses education, years of experience, and age as three predictors.
- The education coefficient is 2.10, corresponding to an estimated $2.10 higher hourly wage per additional year of education, holding experience and age constant.
- The experience coefficient is 0.65, or an estimated 65 cents higher hourly wage per additional year of experience, holding the other predictors constant.
- The age coefficient is -0.03, indicating a predicted three-cent decrease per year; Brad Hall notes that its relatively large p-value merits caution.
- The estimated wage equation is 9.50 + 2.10 times education + 0.65 times experience - 0.03 times age.
- For an employee with 4 years of education, 6 years of relevant experience, and age 28, the predicted hourly wage is $20.96.
- A negative coefficient already carries its minus sign, so adding the age term with its negative coefficient avoids accidentally reversing the calculation.
- Residuals retain their usual definition, while predicted values now use all predictors in the model.
- The football example predicts points per game from passing yards per game and rushing yards per game.
- Per-game measures help compare teams that played different numbers of games.
- Unlike the wage example, this analysis starts with raw data and requires Excel’s Data Analysis Regression tool to estimate coefficients.
- Set points per game in column K as the Y range, from K1 through K137.
- Select both passing-yards and rushing-yards columns, L1 through M137, as the X range.
- The X range can contain multiple adjacent predictor columns; Excel returns a coefficient for each predictor.
- The coefficient output provides the values needed to write the sample regression equation.
- The fitted equation is approximately -14.2357 + 0.1036 times passing yards per game + 0.1160 times rushing yards per game.
- Scaling the passing coefficient to 100 yards gives an estimated 10.36 additional points per game, with the other predictor held constant.
- A team with 250 passing yards and 150 rushing yards per game is predicted to score about 29.05 points; adding 10 passing yards gives about 30.08, while adding 10 rushing yards gives about 30.21.
- The rushing coefficient is slightly larger, though Brad Hall notes that the two 10-yard changes produce very similar rounded predictions.
- Categorical predictors such as furnished versus unfurnished cannot be entered as text in Excel regression.
- A dummy, or indicator, variable uses 0 for the reference category and 1 for the category being represented; here, unfurnished is 0 and furnished is 1.
- The dummy-variable coefficient estimates the predicted difference between categories, holding numerical predictors such as apartment size and distance from LSU constant.
- With D equal to 0, the intercept is b0; with D equal to 1, it becomes b0 plus the dummy coefficient.
- The sedan-price model uses car age in years, mileage in thousands of miles, and certified pre-owned status.
- Age and mileage have negative coefficients, representing depreciation as cars get older or accumulate miles.
- The certification indicator is 1 for certified pre-owned and 0 otherwise, making non-certified cars the reference category.
- Mileage entered as 40 represents 40,000 miles because the model measures mileage in thousands.
- For a 4-year-old certified sedan, the model predicts $21,500 at 40,000 miles and $19,700 at 60,000 miles.
- For a 4-year-old non-certified sedan, the predictions are $19,300 at 40,000 miles and $17,500 at 60,000 miles.
- The certification coefficient of 2.20 means a predicted increase of $2,200, since the price output is in thousands of dollars.
- The mileage coefficient of -0.09 corresponds to a $90 decrease per additional 1,000 miles, with age and certification status held constant.
- The coffee-shop model predicts weekly sales from advertising spending, drive-through availability, and proximity to a college campus.
- Advertising and sales are measured in thousands of dollars; drive-through and campus status are categorical yes/no variables.
- Excel regression requires the predictor columns to be numeric and contiguous, so the three inputs are copied into adjacent columns.
- IF formulas convert each yes/no predictor into 1 for yes and 0 for no before running the regression.
- The fitted equation is predicted sales = 12 + 4 times advertising + 8 times drive-through + 5 times near-campus status.
- The drive-through coefficient of 8 represents $8,000 higher predicted weekly sales, holding advertising and campus proximity constant.
- The advertising coefficient of 4 represents $4,000 higher predicted weekly sales for an additional $1,000 in advertising, with the dummy variables held constant.
- When both dummy variables equal 0, the shop has no drive-through and is not near a college campus.
- A shop spending $3,000 on advertising, with a drive-through and near a campus, has predicted weekly sales of $37,000.
- Changing only the campus indicator from 1 to 0 lowers the prediction to $32,000.
- The $5,000 predicted difference matches the near-campus coefficient of 5, with sales measured in thousands of dollars.
- The next section moves from constructing regression models to goodness-of-fit measures.
Transcript excerpt
0:01 Everyone, this is the start of the module six material. This is where we start talking about multiple linear regression. And we will follow it up with goodness of fit testing in the following section. But, essentially, section 4.3 is just an extension of section 4.2, where that was the simple linear regression model, which only dealt dealt with one predictor inputs that corresponded to a response variable or an output. In this section, though, our we're still going to have just one response variable, the output.
0:49 But, instead of having just one predictor variable, we may have two predictor variables, three predictor variables. Really, we can have as many as necessary. And what all of these represent, as the name implies, these are different variables that may contribute towards predicting a response variable. So, essentially, again, if you see multiple linear regression, that's just referring to two or more predictor variables. So, we talked about before in the previous section how we could use the apartment size to try to predict the monthly rent of some apartment that might be near LSU. So, of course, if an apartment has
1:37 a lot more square footage, you can probably anticipate, on average, it'll have more or a higher monthly rent. But, that's not the only variable that comes into play. Obviously, a an apartment that is closer or perhaps right adjacent to the LSU is going to be more expensive on average than an apartment that's down Sherwood. Or if you get an apartment out maybe even in Denham Springs just to be a little egregious with this example. So, that's another predictor that we can consider the distance that an apartment is to the LSU campus.
2:25 So, that's another thing that we can factor in. And we'll talk about how we can
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Brad Hall.