A: \(r\) is a summary statistic between numerical variables that is often computed before a linear model is fit; \(R^2\) is fit to assess the performance of the linear model once it is fit.
B: Both \(r\) and \(R^2\) can take values between 0 and 1.
C: When fitting a linear regression model which involves multiple predictor variables, the goal is to fit a model which maximizes \(r\).
00:40
00:30
00:40
new_x
with a linear model that you built called m1
. What data type/data structure does the argument supplied to newdata
, new_x
, need to be?00:30
05:00
30:00
Which two models will exhibit the highest \(R^2\)?
01:00
# A tibble: 4 × 5
name hours cuteness food_eaten is_indoor_cat
<chr> <dbl> <dbl> <dbl> <lgl>
1 castiel 12 9 175 TRUE
2 frank 18 10 200 TRUE
3 luna 19 9.5 215 FALSE
4 luca 10 8 218 FALSE
(Intercept) cuteness food_eaten is_indoor_catTRUE
-3.800000e+01 6.000000e+00 2.815002e-16 -4.000000e+00
How many hours does the model predict Frank will sleep each day? Write out the linear equation of the model from the model output to help you.
03:00
Which is the most appropriate non-linear transformation to apply to time_being_pet
?
01:00
25:00
45:00