Home   >   User Resources   >   Online Help   >   apaSharpeRatio.MinTrackRecordLength
 

 

Function index Version 3.0.0

apaSharpeRatio.MinTrackRecordLength(Returns, RiskfreeReturns, BenchmarkSharpeRatio, ConfidenceLevel)

Excel=apaSharpeRatio.MinTrackRecordLength(Returns, RiskfreeReturns, BenchmarkSharpeRatio, ConfidenceLevel)

Result

Returns the minimum track record length (MinTRL): the number of observations needed to conclude, at the given confidence level, that the true Sharpe ratio exceeds the benchmark Sharpe ratio.

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

BenchmarkSharpeRatio: optional; per-period Sharpe ratio to test against (same frequency as the returns, not annualized); default: 0

ConfidenceLevel: optional; confidence level, e.g. 95%; default: 0.95

Algorithm

MinTRL = 1 + (1 − γ3·SR + (γ4 − 1)/4·SR²)·(Φ⁻¹(ConfidenceLevel) / (SR − SR*))² (Bailey and López de Prado 2012).

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.

The result is a number of observations at the frequency of the data. #N/A is returned if SR is not greater than the benchmark Sharpe ratio.