marko: Compute the assets' weights and the associated CVaR using...

Description Usage Arguments Value Author(s) References See Also Examples

Description

Estimation of the assets' weights and the associated CVaR which minimize the variance

Usage

1
estim.Markowitz(n, Omega, A, B, alpha, beta, S, type, level, yield)

Arguments

With usual notations of DCC Garch

n

Number of observations used to compute the empirical quantile

Omega

Estimation of Omega

A

Estimated parameter for A

B

Estimated parameter for B

alpha

Estimated parameter for alpha

beta

Estimated parameter for beta

S

Estimated parameter for S

eps

Data

type

type="Engle" for a Engle-DCC
type="Aielli" for an Aielli-DCC

level

Level of the CVaR

yield

Data

Value

VaR

CVaR of the portfolio

weights

Matrix of the weights (time-dependant)

Author(s)

D. Taouss & C. Francq

References

C. Francq & J.M. Zakoian, Estimating multivariate GARCH and Stochastic Correlation models equation by equation
C. Francq & J.M. Zakoian, Joint inference on market and estimation risks in dynamic portfolios

See Also

EbEEMGARCH Homepage of the documentation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#####
# Sampling some data
#####

n <- 800
Omega <- c(0.001, 0.001, 0.001)
A <-matrix(c(0.03,0.01,0.01,0.01,0.03,0.01,0.01,0.01,0.03),nrow=3)
B <- c(0.1,0.1,0.1)
S <- matrix(c(1,0.4,0.4,0.4,1,0.4,0.4,0.4,1),nrow=3)
alpha <- 0.05;
beta <- 0.97 - alpha
nu <- 14
yield <- GarchDCC.sim(n, Omega, A, B, alpha, beta, S, nu = nu, noise = "student", model = "Aielli")

#####
# Estimation of the parameters
#####

EbEE <- estimDCC.EbEE(Omega, A, B, S, alpha, beta, yield$sim, type = "Aielli")

#####
# Estimation of the weights and the CVaR
#####

Marko <- estim.Markowitz(700,EbEE$Omega,EbEE$A,EbEE$B,EbEE$alpha,EbEE$beta,EbEE$S,type="Aielli",level=0.01,yield$sim)


#####
# Compute the yield of the portfolio
#####

yield_p<-c()
for (t in 1:n) {
    yield_p<-c(yield_p,drop(t(Marko$weights[t,])%*%yield$sim[t,]))
}

TaoussD/EbEEMGARCH documentation built on May 9, 2019, 4:18 p.m.