Lab 4F
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.test that includes the
remaining 25%.set.seed.training data, that predicts gross using
runtime.
test 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.
test data than the model that included only
runtime and reviews_num.test
data.