SDS 291
October 8, 2025
Multiple Linear Regression
\[ Y_i = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} + \cdots + \beta_k x_{ik} + \epsilon, \quad\text{where } \epsilon_i \overset{iid}{\sim} N(0, \sigma) \]
Pretty much everything else!
Note
Which of the following mathematical models for the mean are examples of multiple linear regression models?
Tip
Scientists collected body measurements (including flipper length, body mass, and bill dimensions) for 344 adult foraging penguins sampled from the Palmer Archipelago in Antarctica


How does a penguin’s expected bill depth (in mm) change as a function of its bill length (in mm)?
\[ \widehat{depth} = 20.89 - 0.09 \cdot \left( bill \right) \]
How does a penguin’s expected bill depth (in mm) change as a function of its flipper length (in mm)?
\[ \widehat{depth} = 33.63 - 0.08 \cdot \left( flipper \right) \]
How does a penguin’s expected bill depth (in mm) change as a function of both its bill length (in mm) and its flipper length (in mm)?
\[ \widehat{depth} = 34.31 + 0.09\cdot \left( bill \right) - 0.11 \cdot \left( flipper \right) \]
Call:
lm(formula = bill_depth_mm ~ bill_length_mm + flipper_length_mm,
data = penguins)
Residuals:
Min 1Q Median 3Q Max
-3.0875 -1.1351 -0.0724 1.0879 4.5167
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 34.308407 1.219366 28.136 < 2e-16 ***
bill_length_mm 0.094050 0.020510 4.586 6.38e-06 ***
flipper_length_mm -0.105956 0.007963 -13.306 < 2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 1.56 on 339 degrees of freedom
(2 observations deleted due to missingness)
Multiple R-squared: 0.3794, Adjusted R-squared: 0.3757
F-statistic: 103.6 on 2 and 339 DF, p-value: < 2.2e-16
Research Question
What is the predicted bill length for an individual penguin on the Palmer archipelago with a bill length of 50 mm and flipper length of 195 mm?

# A tibble: 1 × 3
.fitted .lower .upper
<dbl> <dbl> <dbl>
1 16.6 12.8 20.4
# A tibble: 1 × 3
.fitted .lower .upper
<dbl> <dbl> <dbl>
1 18.3 15.3 21.4

SDS 291