apaContribution.TrackingError.VariableWeights(PortfolioWeights, AssetReturns, BenchmarkReturns, IsSampleOtherwisePopulation)
=apaContribution.TrackingError.VariableWeights(PortfolioWeights, AssetReturns, BenchmarkReturns, IsSampleOtherwisePopulation)Result
Calculates the contributions to ex post portfolio tracking error, taking into account time-variable portfolio weights.
Syntax
PortfolioWeights: r x n matrix of time-variable portfolio constituent weights, each row summing to 1, or 1 x n vector of constant weights
AssetReturns: r x n matrix of constituent returns
BenchmarkReturns: r x 1 vector of benchmark returns
IsSampleOtherwisePopulation: optional; TRUE for sample volatilities (division by n-1), FALSE for population volatilities (division by n); default: FALSE
Remarks
Sample (denominator n − 1) or population (denominator n) volatilities are used, set by IsSampleOtherwisePopulation; default: population.
The output has two rows and as many columns as there are assets. The first row contains the contributions c(i) = correl(a(i), a) x vol(a(i)), where a(i) is the series of active return contributions w(i,t) x (r(i,t) - b(t)) and a is the active return; the contributions sum to the tracking error. The second row contains each contribution divided by the sum of the absolute contributions.
A constituent whose contribution series is constant, e.g. because its weight is zero in all periods, has a contribution of 0. If the active return is constant, all contributions are 0.
