Search the whole station

# 波动率预测代写 时间序列代写 Python代写 数据统计代写

305

## Volatility Forecasting Homework

### 1.

You will estimate the parameters of a few GARCH-type models using about ten years of data (from Jan 1, 2013 to Nov 30, 2022) for SPY (the S&P 500 ETF). I would like you to build this from scratch, rather than use a package. As I demonstrated in class, it’s easy to do in Excel, which has a built-in solver, but you can code it in Python and use its optimization library as well. I used the scipy.optimize.minimize function with method=’SLSQP’, which allows you to specify bounds on thevariables.

#### (a)

Estimate the parameters of a GARCH(1,1) model.

#### (b)

Estimate a GARCH(1,1) model with conditional returns having a Generalized Error Distribution.

#### (c)

Estimate a TGARCH(1,1) model with conditional returns having a normal distribution.

#### (d) 波动率预测代写

Compare the maximum value of the likelihood function for the models in parts (a), (b), and (c) to rank the three models. The maximum value of the likelihood function for parts (b) and (c) can be compared directly since they have the same number of parameters. Use the Schwartz Bayesian Criteria to compare likelihood functions when the number of parameters is different.

One way to download historical prices for SPY in Python is to pip install the yfinance library, import the library using

import yfinance as yf

### 2.波动率预测代写

The figure below lists prices and implied volatilities for puts and calls on SPY options as of the close on Wednesday, November 30, 2022. The middle column in the figure are the strikes, and the data on the left side are for the call options, and the data on the right side are for the put options. The column ”IVM” is the midmarket implied volatility. Thecolumn ”DM” is the midmarket delta of the options. The closing price for SPY on November 30, 2022 was 407.68. Use the TGARCH(1,1) model from part (c) above to price two options: the 416 strike call options (the delta is approximately 0.25), and the 400 put options (the delta is approximately -0.25). You should price these using a Monte Carlo simulation. These options expire on Friday, December 9, 2022, which is 7 trading days from Wednesday, November 30. Assume that the annual risk-free rate, rf , is 4.71% and there are no dividends.

Figure 1: Option Prices at the Close on Nov 30, 2022 for expiration Dec 9, 2022

#### (a)

What are the prices, and the corresponding Black-Scholes implied volatilities, for the two options?

#### (b)

There have been several stories in the news recently that the skewness in the volatility smile, as measured by the difference in volatilities between out-of-money put options and out-of-the-money call options, is the lowest it’s been since 2009.

The figure below shows a graph of the CBOE SKEW Index. Is that reduction in the skew justified, according to the results above? In other words, given the current difference in implied vols for 0.25 delta puts and calls of 18.88 17.01 = 1.87 Would your TGARCH model prefer to buy the puts and sell the calls, or sell the puts and buy the calls? A one-sentence explanation is sufficient.

Figure 2: The CBOE SKEW Index over the past 20 years

### 3.波动率预测代写

Consider the stochastic volatility (SV) model we discussed in class,given by:

rt= µ + σtϵt

ln(σt) = α + ϕ(ln(σt1) α) + ηt

You can use the class notes to find the expectations above. Just like with the first exercise, I would like you to estimate the parameters from scratch, rather than using a package. Also, to make things easier, you can choose to do two-step GMM rather than iterated GMM, and you can compute the weighting matrix assuming the data are uncorrelated so you don’t have to compute the Newey-West adjustment if you would like.

The prev: The next:

### Related recommendations

• #### 计量经济数据分析代写 时间序列代写 计量经济代写 论文代写

277

Assignment 2 计量经济数据分析代写 There are numerous sources that provide datasets that can be used for pursuing time series analysis. Below are some indicative examples: There are numerou...

View details
• #### 运筹学练习题代写 IEOR 3402代写 时间序列代写 预测分析代写

447

IEOR 3402: More Practice Questions 运筹学练习题代写 1.We consider the forecasting of stationary time series, where each observation is represented by a constant plus a random fluctuation, i.e.,...

View details
• #### 数据科学代写 data1x02代写 Python代写 数据作业代写

625

data1x02 Project 数据科学代写 Submission 1: Report Submit a written report on your work, as a PDF document. • This should be submitted through the link in the Canvas site. Submission 1: Repo...

View details
• #### 国外python代考-学计算机的留学生一定要了解什么是python代考

664

学计算机的留学生一定要了解什么是python代考 国外python代考 计算机在现在是一个非常热门的行业，但是计算机专业也是非常难学的，计算机专业和法学、医学齐名，这三个专业被称之为最难熬的三个专业。这...

View details
1