question archive The Bikeshare data (ISLR2) includes the hourly and daily counts of rental bikes in a bikeshare program from 2011 to 2012
Subject:Computer SciencePrice: Bought3
The Bikeshare data (ISLR2) includes the hourly and daily counts of rental bikes in a bikeshare program from 2011 to 2012. There are also more significant features present, such as weather and seasonal data. To forecast the daily number of rental bikes, you must build a regression tree.
a) To choose the best tree size, divide the data into test and training sets and perform model selection. Comment on the tree's effectiveness.
Which terminal zone will receive how many test samples?
b) The board is looking for the best moments to perform "repair" and "tune-ups."
They do, however, seek to limit usage interruption. The "low yield" situations, where the bikes are not being used (counts are low), are what you are asked to describe. Use your tree as a resource for advice on this.
want this code in R programming language