Lab 4E
Directions: Follow along with the slides, completing
the questions in blue on your
computer, and answering the questions in red in your
journal.
Space, Click, Right Arrow or swipe left to move to
the next slide.
Will including more variables in our model improve its predictions?
movie
data and
split it into two sets (See Lab 4C for help).
training
that includes
75% of the data.testing
that includes
the remaining 25%.set.seed
.training
data, that predicts gross
using
runtime
.
testing
data.runtime
is the only
factor that goes into how much a movie will make? What else might affect
a movie’s gross
?gross
using runtime
and
reviews_num
.lm()
.movie
data you think would help you make better predictions.
testing
data than the model that included only
runtime
and reviews_num
.testing
data.