Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This question should be answered using the Weekly data set, which is part of the ISLR package. Weekly percentage returns for the S&P 500 stock

This question should be answered using the Weekly data set, which is part of the ISLR package. Weekly percentage returns for the S&P 500 stock index between 1990 and 2010. (To learn more about the data in the help section in R search for Weekly S&P Stock Market Data).
a. Produce some graphical summaries of the Weekly data. Do there appear to be any patterns?
b. Use the full data set to perform a logistic regression with Direction as the response and the five lag variables plus Volume
as predictors. Use the summary function to print the results. Do any of the predictors appear to be statistically significant? If so, which ones?
c. Split the sample between training and test data and evaluate the forecast accuracy of the model from part b). Compare the forecast accuracy with the model that includes Lag 2 as the only predictor. (To do this part you need to apply cross validation method). Which model would you choose to predict the Direction of weekly returns?
using R studio

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

Personal Finance

Authors: Jack Kapoor, Les Dlabay, Robert J Hughes

9th Edition

0073382329, 9780073382326

More Books

Students also viewed these Finance questions

Question

What factors contribute most to the comprehension of read text?

Answered: 1 week ago