Home   >   User Resources   >   Online Help   >   apaSharpeRatio.Deflated
 

 

Function index Version 3.0.0

apaSharpeRatio.Deflated(Returns, RiskfreeReturns, nTrials, TrialSharpeVariance)

Excel=apaSharpeRatio.Deflated(Returns, RiskfreeReturns, nTrials, TrialSharpeVariance)

Result

Returns the deflated Sharpe ratio (DSR): the probabilistic Sharpe ratio measured against the Sharpe ratio expected from the best of several unskilled strategies, correcting for selection bias under multiple testing.

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

nTrials: optional; number of strategies tried, a whole number of at least 1; default: the number of columns of Returns

TrialSharpeVariance: optional; variance of the per-period Sharpe ratios across the trials; default: sample variance (denominator n − 1) of the Sharpe ratios of the columns of Returns, which requires at least two columns

Algorithm

SR0 = sqrt(V)·((1 − γ)·Φ⁻¹(1 − 1/N) + γ·Φ⁻¹(1 − 1/(N·e))), with N = nTrials, V = TrialSharpeVariance and the Euler-Mascheroni constant γ ≈ 0.5772 (Bailey and López de Prado 2014). SR0 = 0 if N = 1.

DSR = PSR with benchmark Sharpe ratio SR0, see apaSharpeRatio.Probabilistic.

Remarks

The result is a 1 x c row vector with one value per column of Returns.

If Returns contains all tested strategies, both optional arguments can be left empty.