Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Instantiate an array lags-[1,2,3,5,10,15,20,30]. For each lag in lags compute and plot the history of the 60-day rolling autocorrelation of dow. Make your

  

1. Instantiate an array lags-[1,2,3,5,10,15,20,30]. For each lag in lags compute and plot the history of the 60-day rolling autocorrelation of dow. Make your plot(s) legible. 2.For each lag in lags, compute the average of the autocorrelation times series computed in the previous step and use these 8 values to plot the autocorrelation function (autocorrelation against lag). What do you observe? Does this plot suggest that the Dow Jones is a white noise process? If not, can you suggest a better model? 3. Compute and plot the daily returns of the Dow Jones (Return = 100* ((Closet/Closet-1)-1)), repeat the previous two steps and answer the same questions for this time series instead. import pandas_datareader.data as web import matplotlib.pyplot as plt data = web.DataReader ( '^DJI ' 3 data data.reset_index() dates = data["Date"] dow = data["Close"].to_numpy () plt.plot (dates, dow) plt.show() = 1 yahoo > start= 1995-01-01 3 end= 2022-12-05 1 )

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

Data Analysis And Decision Making

Authors: Christian Albright, Wayne Winston, Christopher Zappe

4th Edition

538476125, 978-0538476126

More Books

Students also viewed these Algorithms questions

Question

CL I P COL Astro- L(1-cas0) Lsing *A=2 L sin(0/2)

Answered: 1 week ago