Learn R Programming

ghyp (version 1.6.5)

ghyp.attribution-class: Class ghyp.attribution

Description

The class “ghyp.attribution” contains the Expected Shortfall of the portfolio as well as the contribution of each asset to the total risk and the sensitivity of each Asset. The sensitivity gives an information about the overall risk modification of the portfolio if the weight in a given asset is marginally increased or decreased (1 percent).

The function contribution returns the contribution of the assets to the portfolio expected shortfall.

Usage

contribution(object, ...)

# S4 method for ghyp.attribution contribution(object, percentage = FALSE)

sensitivity(object)

# S4 method for ghyp.attribution sensitivity(object)

# S4 method for ghyp.attribution weights(object)

Value

contribution of each asset to portfolio's overall expected shortfall.

sensitivity of each asset to portfolio's overall expected shortfall.

weights of each asset within portfolio.

Arguments

object

an object inheriting from class ghyp.attribution.

...

additional parameters.

percentage

boolean. Display figures in percent. (Default=FALSE).

Slots

ES

Portfolio's expected shortfall (ES) for a given confidence level. Class matrix.

contribution

Contribution of each asset to the overall ES. Class matrix.

sensitivity

Sensitivity of each asset. Class matrix.

weights

Weight of each asset.

Objects from the Class

Objects should only be created by calls to the constructors ESghyp.attribution.

Author

Marc Weibel

Marc Weibel

Details

Expected shortfall enjoys homogeneity, sub-additivity, and co-monotonic additivity. Its associated function is continuously differentiable under moderate assumptions on the joint distribution of the assets.

See Also

ESghyp.attribution, ghyp.attribution-class to compute the expected shortfall attribution.

Examples

Run this code
if (FALSE) {
data(smi.stocks)
multivariate.fit <- fit.ghypmv(data = smi.stocks,
opt.pars = c(lambda = FALSE, alpha.bar = FALSE),
lambda = 2)

portfolio <- ESghyp.attribution(0.01, multivariate.fit)
summary(portfolio)
}

Run the code above in your browser using DataLab