Compute the factor contributions to Value-at-Risk (VaR) of portfolio returns based on Euler's theorem, given the fitted factor model. The partial derivative of VaR w.r.t. factor beta is computed as the expected factor return given portfolio return is equal to its VaR and approximated by a kernel estimator. Option to choose between non-parametric and Normal.
portVaRDecomp(object, ...)# S3 method for ffm
portVaRDecomp(
object,
weights = NULL,
factor.cov,
p = 0.05,
type = c("np", "normal"),
invert = FALSE,
...
)
A list containing
factor model VaR of portfolio return.
number of observations beyond VaR.
a numeric vector of index values of exceedances.
length-(K + 1) vector of marginal contributions to VaR.
length-(K + 1) vector of component contributions to VaR.
length-(K + 1) vector of percentage component contributions to VaR.
Where, K is the number of factors.
fit object of class tsfm, or ffm.
other optional arguments passed to quantile and
optional arguments passed to cov
a vector of weights of the assets in the portfolio. Default is NULL, in which case an equal weights will be used.
optional user specified factor covariance matrix with named columns; defaults to the sample covariance matrix.
tail probability for calculation. Default is 0.05.
one of "np" (non-parametric) or "normal" for calculating VaR. Default is "np".
a logical variable to choose if change VaR to positive number, default is False
Douglas Martin, Lingjie Yi
The factor model for a portfolio's return at time t has the
form
R(t) = beta'f(t) + e(t) = beta.star'f.star(t)
where, beta.star=(beta,sig.e) and f.star(t)=[f(t)',z(t)]'. By
Euler's theorem, the VaR of the asset's return is given by:
VaR.fm = sum(cVaR_k) = sum(beta.star_k*mVaR_k)
where, summation is across the K factors and the residual,
cVaR and mVaR are the component and marginal
contributions to VaR respectively. The marginal contribution to VaR
is defined as the expectation of F.star, conditional on the loss
being equal to portVaR. This is approximated as described in
Epperlein & Smillie (2006); a triangular smoothing kernel is used here.
fitFfm
for the different factor model fitting functions.
portSdDecomp for factor model Sd decomposition.
portEsDecomp for factor model ES decomposition.