apaPortfolio.Resampled.VolatilityContr(Weights, ReturnMatrix, ConfidenceLevel, SampleSize, NumberOfResamples)
=apaPortfolio.Resampled.VolatilityContr(Weights, ReturnMatrix, ConfidenceLevel, SampleSize, NumberOfResamples)Result
Resamples the asset returns and calculates the mean and the lower/upper confidence bounds of the portfolio volatility contributions. The result is a matrix with the mean, the lower confidence bound and the upper confidence bound of the volatility contributions.
Syntax
Weights: 1 x c vector of portfolio constituent weights
ReturnMatrix: r x c matrix of asset returns, each column containing a times series
ConfidenceLevel: confidence level of the confidence interval, e.g. 95%
SampleSize: number of observations per resample. A good starting point is the number of observations in the return matrix
NumberOfResamples: number of times to resample. 1000 is a good starting point
Remarks
Bootstrapped volatilities and covariances are sample moments (denominator SampleSize − 1).
