Skip to content
Prev 8090 / 15274 Next

Value-at-risk

On Sun, 2011-06-19 at 03:19 -0700, sadako wrote:
Marginal and component VaR *are* different.  So I'm not sure I
understand what you're asking, entirely.

Component VaR is a coherent risk measure per Artzner.  The component
risks will add up to the univariate VaR of the entire portfolio.  The
univariate portfolio VaR is given in the $VaR slot you reference in your
code.  The additive measures are available two different ways, in the
$contribution slot (which will add up to the univariate portfolio VaR)
and in the $pct_contrib_VaR slot which will add up to 1(100%)
Marginal VaR is the difference between the univariate portfolio VaR of a
a portfolio with the instrument in question and the VaR of the portfolio
without that instrument.  It is not guaranteed to add up to anything.
Frankly, I think it is a useless measure *unless* you are comparing two
otherwise similar instruments for inclusion in a portfolio, and want to
see which of those two instruments would add less risk to the portfolio
"at the margin".
Component VaR and marginal VaR aren't interchangeable, as described
above, and as described in the documentation.

simple subtraction doesn't work, because the portfolio (capital) needs
to be redistributed.

The weighting factor is

weightfactor = sum(weightingvector)/sum(t(weightingvector)[, -column])

you can see the code with:

PerformanceAnalytics:::VaR.Marginal
I hope this helps,

    - Brian