setPortfolioParam: setPortfolioParam

Description Usage Arguments Value References Examples

View source: R/CVaRMultiNTS.R

Description

Please use getPortNTSParam instead of setPortfolioParam.

Portfolio return with capital allocation weight is R_p=<w,r>, which is a weighted sum of of elements in the N-dimensional NTS random vector. R_p becomes an 1-dimensional NTS random variable. setPortfolioParam find the parameters of R_p.

Usage

1
res <- setPortfolioParam(strPMNTS,w)

Arguments

strPMNTS

Structure of parameters for the n-dimensional NTS distribution.

strPMNTS$ndim : dimension

strPMNTS$mu : μ mean vector (column vector) of the input data.

strPMNTS$sigma : σ standard deviation vector (column vector) of the input data.

strPMNTS$alpha : α of the std NTS distribution (X).

strPMNTS$theta : θ of the std NTS distribution (X).

strPMNTS$beta : β vector (column vector) of the std NTS distribution (X).

strPMNTS$Rho : Σ matrix of the std NTS distribution (X).

w

Capital allocation weight vector.

Value

The weighted sum follows 1-dimensional NTS.

R_p = <w, r> = μ + diag(σ) X,

where

X follows stdNTS_1(α, θ, β, 1).

Hence we obtain

res$mu : μ mean of R_p.

res$sigma : σ standard deviation of R_p.

res$alpha : α of X.

res$theta : θ of X.

res$beta : β X.

References

Kim, Y. S. (2020) Portfolio Optimization on the Dispersion Risk and the Asymmetric Tail Risk https://arxiv.org/pdf/2007.13972.pdf

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
library("temStaR")
strPMNTS <- list(ndim = 2,
                 mu = c( 9.876552e-05, 4.747343e-04 ),
                 sigma = c( 0.01620588, 0.02309643 ),
                 alpha = 0.1888129 ,
                 theta = 0.523042,
                 beta =  c( -0.04632938,  0.04063555 ),
                 Rho = matrix( data = c(1.0, 0.469883,
                                       0.469883, 1.0),
                               nrow = 2, ncol = 2)
                 CovMtx = matrix( data = c(0.0002626304, 0.0001740779,
                                         0.0001740779, 0.0005334452),
                                 nrow = 2, ncol = 2)
)
w <- c(0.3, 0.7)
res <- setPortfolioParam(strPMNTS,w)

aaron9011/temStaR-v0.814 documentation built on Dec. 24, 2021, 6:16 p.m.