January 2020
Beginner to intermediate
432 pages
11h 24m
English
Execute the following steps to estimate the ARCH(1) model.
import pandas as pdimport yfinance as yffrom arch import arch_model
RISKY_ASSET = 'GOOG'START_DATE = '2015-01-01'END_DATE = '2018-12-31'
df = yf.download(RISKY_ASSET, start=START_DATE, end=END_DATE, adjusted=True)
returns = 100 * df['Adj Close'].pct_change().dropna()returns.name = 'asset_returns'returns.plot(title=f'{RISKY_ASSET} returns: {START_DATE} - {END_DATE}')
Running the code generates the following plot:

In the plot, we can ...
Read now
Unlock full access