Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Run the following code, using R, to simulate 15-day log returns assuming that daily log returns are t-distributed with parameters (0.0002,0.012,4). The number of simulations

Run the following code, using R, to simulate 15-day log returns assuming that daily log returns are t-distributed with parameters (0.0002,0.012,4). The number of simulations is 25,000.

set.seed(4886)

library(rugarch)

niter = 25000

N = 15

muTrue = 0.0002

sigmaTrue = 0.012

nuTrue = 4

## Create vector of niter * T daily returns

DailyReturns = rdist(niter*N, distribution="std", mu=muTrue, sigma=sigmaTrue, shape=nuTrue)

## Reshape vector to a niter by T matrix

DailyReturns = matrix(DailyReturns,nrow=niter)

R = sort(rowSums(DailyReturns)) ## order statistics of 15-day log returns

(a) Fit a t-distribution to the 25,000 15-day log returns by maximum likelihood. The MLE of , hat, should be larger than 4. Why?

(b) What is the estimate of ?

(c) Make a qq plot of the 15-day log returns using hat in the theoretical distribution. How well does a t-distribution fit the 15-day returns?

(Include code)

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

Discrete and Combinatorial Mathematics An Applied Introduction

Authors: Ralph P. Grimaldi

5th edition

201726343, 978-0201726343

More Books

Students also viewed these Mathematics questions

Question

How may criteria for project reserve be selected?

Answered: 1 week ago

Question

Mention the bases on which consumer market can be segmented.

Answered: 1 week ago

Question

Explain consumer behaviour.

Answered: 1 week ago

Question

Explain the factors influencing consumer behaviour.

Answered: 1 week ago