Question: Problem 1 : In - Sample ( IS ) Market Prediction ( 5 0 points ) Objective: In this exercise, you will predict the time
Problem : InSample IS Market Prediction points
Objective: In this exercise, you will predict the time series of S&P returns usign the volatility index VIX
Instructions:
Install yfinance.
Import the necessary libraries.
Download daily adjusted closing prices for tickers GSPC and VIX since
Calculate monthly returns of S&P and endofmonth levels of VIX.
Regress S&P returns in month t on VIX at the end of month t
Report the regression results using the summary method.
In a markdown cell or a comment in a code cell, interpret the regression results. Does VIX predict market return?
Problem : OutOfSample OOS Market Prediction points
Objective: In this problem, you will test the predictive power of VIX out of sample.
Instructions:
Repeat steps from the previous problem.
Create the historical expanding window average of S&P returns with a minimum window of months.
In a for loop, create the expanding window prediction of S&P returns using VIX as a predictor.
Plot the two predictions in one figure.
Calculate and print the sum of squared residuals for both predictions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
