apaContribution.TrackingError(PortfolioWeights, BenchmarkWeights, PortfolioReturns, BenchmarkReturns, IsSampleOtherwisePopulation)
=apaContribution.TrackingError(PortfolioWeights, BenchmarkWeights, PortfolioReturns, BenchmarkReturns, IsSampleOtherwisePopulation)Result
Returns the marginal tracking errors, the contributions to tracking error and the percentage contributions to tracking error, given portfolio and benchmark weights and the constituent returns of portfolio and benchmark.
Syntax
PortfolioWeights: 1 x n vector of portfolio weights
BenchmarkWeights: 1 x n vector of benchmark weights
PortfolioReturns: r x n matrix of constituent returns in the portfolio, each column containing a time series
BenchmarkReturns: r x n matrix of constituent returns in the benchmark, each column containing a time series
IsSampleOtherwisePopulation: optional; TRUE for sample covariances (division by n-1), FALSE for population covariances (division by n); default: FALSE
Remarks
The output is a matrix consisting of twelve rows and as many columns as there are assets.
The first three output rows contain risk contributions from differences in asset weights between portfolio and benchmark. The next three rows contain risk contributions from differences in asset returns. The next three rows contain residual risk contributions which cannot be assigned to differences in weights or returns. The last three rows contain the total risk contributions.
Sample (denominator n − 1) or population (denominator n) covariances are used, set by IsSampleOtherwisePopulation; default: population.
