apaSharpeRatio.StandardError(Returns, RiskfreeReturns)
=apaSharpeRatio.StandardError(Returns, RiskfreeReturns)Result
Returns the standard error of the per-period Sharpe ratio of excess returns for non-normal, serially independent returns.
Syntax
Returns: r x c matrix of returns. Each column represents a different time series.
RiskfreeReturns: optional; single value, r x 1 vector (shared by all columns) or r x c matrix of riskfree returns per period; default: 0
Algorithm
σ(SR) = sqrt((1 − γ3·SR + (γ4 − 1)/4·SR²) / (n − 1)) (Mertens 2002, Opdyke 2007).
The Sharpe ratio is the per-period ratio SR = mean(r − rf) / s(r − rf), with the sample standard deviation s (denominator n − 1). Skewness γ3 = m3 / m2^1.5 and non-excess kurtosis γ4 = m4 / m2² use population central moments (denominator n).
Remarks
The result is a 1 x c row vector with one value per column of Returns.
#N/A is returned if the excess returns are constant or the variance factor is not positive.
