apaTrackingError.Contributions.ActiveWeights(ActiveWeights, Returns, IsSampleOtherwisePopulation)
=apaTrackingError.Contributions.ActiveWeights(ActiveWeights, Returns, IsSampleOtherwisePopulation)Result
Returns the marginal tracking errors, the contributions to tracking error and the percentage contributions to tracking error, given a vector of active weights and constituent returns.
Syntax
ActiveWeights: 1 x n vector of active constituent weights (portfolio weight minus benchmark weight); active weights sum up to zero
Returns: r x n matrix of constituent returns, 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
It is implicitly assumed that the constituent returns in the portfolio and in the benchmark are identical.
The output is a matrix consisting of three rows and as many columns as there are assets.
The contributions are based on the sample (denominator n − 1) or population (denominator n) covariance matrix, set by IsSampleOtherwisePopulation (default: population); their sum equals the tracking error of the same type.
