Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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