Question
1.Build a linear model to forecast a number of total rentals ( count ) using potential predictors, season, holiday, workingday, weather, atemp, and registered .
1.Build a linear model to forecast a number of total rentals (count) using potential predictors,season, holiday, workingday, weather, atemp,andregistered.
2. Perform best subset selection using bestglm() function based on BIC. What's the best model based on BIC?
3. Compute the test error of the best model based on BIC using LOOCV.
4. Calculate the test error of the best model based on BIC using 10-fold CV.
5. Perform best subset selection using bestglm() function based on CV. What's the best model based on CV?
6. Perform the backward stepwise selection using stepAIC() function. What's the best model?
dataset- https://github.com/MyGitHub2120/bike
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started