Multiple Linear Regression

STAT 20: Introduction to Probability and Statistics

Concept Questions

Question 1

m1 <- lm(bill_depth_mm ~ bill_length_mm, data = penguins)
m2 <- lm(bill_depth_mm ~ bill_length_mm + body_mass_g + species, 
         data = penguins)

How many more coefficients does the second model have than the first?

Questions 2-4

Consider the following multiple linear regression model, which will be the subject of the next three review questions.

Question 2

01:00


m2

Call:
lm(formula = bill_depth_mm ~ bill_length_mm + body_mass_g + species, 
    data = penguins)

Coefficients:
     (Intercept)    bill_length_mm       body_mass_g  speciesChinstrap  
        10.33083           0.09484           0.00117          -0.90748  
   speciesGentoo  
        -5.80117  

Which is the correct interpretation of the coefficient in front of bill length? Select all that apply.

Question 3

01:00


m2

Call:
lm(formula = bill_depth_mm ~ bill_length_mm + body_mass_g + species, 
    data = penguins)

Coefficients:
     (Intercept)    bill_length_mm       body_mass_g  speciesChinstrap  
        10.33083           0.09484           0.00117          -0.90748  
   speciesGentoo  
        -5.80117  

Which is the correct interpretation of the coefficient in front of Gentoo?

Question 4

01:00


m2

Call:
lm(formula = bill_depth_mm ~ bill_length_mm + body_mass_g + species, 
    data = penguins)

Coefficients:
     (Intercept)    bill_length_mm       body_mass_g  speciesChinstrap  
        10.33083           0.09484           0.00117          -0.90748  
   speciesGentoo  
        -5.80117  

How would this linear model best be visualized?

Problem Set: Multiple Linear Regression

20:00

Break

05:00

Lab: Flights II

25:00