Skip to content
Prev 8097 / 15274 Next

Value-at-risk

braverock wrote:
Actually I didn't mean to compare marginal and component : I just use the
portfolio_method="component" to get the univariate VaR of the portfolio
($VaR slot). 
I have the same number using calculation like
qnorm(0.95,0,1)*sqrt(t(wghts)%*%var(tsdata)%*%wghts)-t(wghts)%*%colMeans(tsdata).

I would have expect to have the same number for this univariate portfolio
VaR in the "PortfolioVaR" column of VaR(...,portfolio_method="marginal"), -
all other parameters being equal - but this is not the case. 

Both should represent the univariate portfolio VaR aren't they ?
Nota : here again I just use the $VaR slot of component to get access to the
univariate VaR of portfolio.

I think I got the weight factor right implicitly since I don't set any
special weights vectors : the VaR functions sets these weights equally in
both members of my equation. 

Assume I'm working with 5 assets : 
- the univariate VaR of the portfolio :
VaR(tsdata,method="gaussian",portfolio_method="component")$VaR is computed
with default weights=c(0.2,0.2,0.2,0.2,0.2)
- the VaR of the portfolio without the asset 5 :
VaR(tsdata[,-5],method="gaussian",portfolio_method="component")$VaR is
computed with equally-weighted default weights=c(0.25,0.25,0.25,0.25). These
are indeed the weights of the 5-assets portfolio taking into account the
weight factor of sum(weightingvector)/sum(t(weightingvector)[, -5])=1.25


Marginal VaR is the difference between the univariate portfolio VaR of a
So with no weight specification, the stricto-sensu calculation :

VaR(tsdata,method="gaussian",portfolio_method="component")$VaR-VaR(tsdata[,-columnAsset],method="gaussian",portfolio_method="component")$VaR 

should work or this is non-sense ?
I'm having a look, maybe the difference stems from the application of
Return.portfolio in the marginal case...
It did, thank you very much Brian !

--
View this message in context: http://r.789695.n4.nabble.com/Value-at-risk-tp3516991p3609482.html
Sent from the Rmetrics mailing list archive at Nabble.com.