Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Obtain daily data of SPY from 2010- 10-01 to 2016-02-19. Compute the daily log return using the adjusted closing price. Divide the dataset into two
- Obtain daily data of "SPY" from 2010- 10-01 to 2016-02-19.
- Compute the daily log return using the adjusted closing price.
- Divide the dataset into two parts: the first 1254 for training and the rest 100 days as holdout samples.
- (a) Construct the best ARMA model based on the first 1254 daily log return data using the auto.arima function in the fpp package. We call this model 1. We will then fix the order of the arima model, and at each step, only parameter estimation changes.
- Use this model to predict one day ahead.
- Compare the predicted direction (namely if the prediction return is positive or negative) with the direction of the actual return. Were you right?
- For the next day re-estimate the parameters using data 2 to 1255 and predict the next day's direction.
- Repeat until the test data is exhausted.
- Report the probability of being correct (calculated as the percentage of times the model predicts the directions correctly).
- (b) Now, look at the ACF plot of the training data only, propose an MA(q) model.
- Look at the PACF plot of the training data only, propose an AR(p) model.
- Please give your reasons for choosing the p and q values. Call these model 2 and 3
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