apaTrackingError.FromActiveWeightsReturns(PortfolioWeights, BenchmarkWeights, PortfolioReturns, BenchmarkReturns, IsSampleOtherwisePopulation)
=apaTrackingError.FromActiveWeightsReturns(PortfolioWeights, BenchmarkWeights, PortfolioReturns, BenchmarkReturns, IsSampleOtherwisePopulation)Result
Calculates the tracking error from portfolio and benchmark weights, if the constituent returns of portfolio and benchmark are different.
Syntax
PortfolioWeights: 1 x n vector of portfolio constituent weights
BenchmarkWeights: 1 x m vector of benchmark constituent weights
PortfolioReturns: r x n matrix of portfolio constituent returns
BenchmarkReturns: r x m matrix of benchmark constituent returns
IsSampleOtherwisePopulation: optional; TRUE for sample covariances (division by n-1), FALSE for population covariances (division by n); default: TRUE
Algorithm
The tracking error is calculated as the volatility of the active return time series, i.e. the portfolio return minus the benchmark return.
Remarks
Portfolio and benchmark can have different numbers of constituents. Both return matrices must have the same number of observations.
Sample (denominator n − 1) or population (denominator n) covariances are used, set by IsSampleOtherwisePopulation; default: sample.
