Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#8: Split the dataframe Q8 into a training sample (75%) and holdout sample (25%). Build a predictive logistic regression model predicting Buy from all predictors

image text in transcribed
image text in transcribed
#8: Split the dataframe Q8 into a training sample (75%) and holdout sample (25%). Build a predictive logistic regression model predicting Buy from all predictors (no interactions), choosing as your final model the one suggested by the one standard deviation rule. Fit the model on the training sample, then report its misclassification RATE on your holdout sample. Note: in the Two places where it is necessary, be sure to set the random number seed to 320. #9: Build a partition model predicting Buy on the training set you made in #8. Copy/paste the value of cp corresponding to the tree suggested by the one standard deviation rule. Again, in the place(s) where it is necessary, be sure to set the random number seed to 320. #10: Use the Q10 dataframe. Consider three standard multiple linear regression models predicting Sales from both predictors and no interaction (i.e., ignoring the time series nature of the data): one with a linear trend, one with a quadratic trend, and one with a cubic trend. In the model with lowest of the three AICs, report the STANDARD ERROR of the difference in average sales between First Quarter and Third Quarter

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

WebAssign For Applied Calculus For The Life And Social Sciences, Enhanced Edition

Authors: Ron Larson

1st Edition

1337768197, 9781337768191

More Books

Students also viewed these Mathematics questions