apaResidualRisk(PortfolioReturns, BenchmarkReturns)
Excel
=apaResidualRisk(PortfolioReturns, BenchmarkReturns)Result
Calculates the residual risk, i.e. the volatility of the residuals of a single-index (one-factor) model, a measure of tracking error.
Syntax
PortfolioReturns: r x 1 vector of portfolio returns
BenchmarkReturns: r x 1 vector of benchmark returns
Algorithm
σε = √max(0, σP² − Cov(rP, rB)² / σB²), with sample moments (denominator n − 1).
