Deflated Sharpe ratio calculator

Calculator by Stochastly. The formulas, the worked example and the sources are on the full deflated Sharpe ratio calculator.

Inputs and results

Enter each figure per period: one period is the interval of one return in the track record, such as a day or a month. The default inputs are the worked example of the DSR paper.

Track record, per period

Mean return divided by the standard deviation of returns, both over one period.

Count of returns in the track record, at least 2.

Normal returns have a skewness of 0.

Raw kurtosis: 3 for normal returns. Add 3 to an excess kurtosis.

252 or 250 for daily returns, 52 for weekly, 12 for monthly. Used for the annual figures.

Benchmark and confidence

With SR* = 0, the PSR is the probability of a positive true Sharpe ratio.

Strictly between 0.5 and 1, for example 0.95.

Trials

Count of strategy variants tried, discarded ones included, at least 1.

A short note on where N comes from, such as the size of the grid in your run log. It is printed with the results and carried by the shared link.

The variance of the per-period Sharpe ratios across your own trials. The default 0.002 is the paper's 0.5 per year at 250 periods. Left empty, V = 1/T: the dispersion of Sharpe ratios estimated on T independent returns with a true Sharpe ratio of 0.

Convert from annual figures

SR per period = annual SR / sqrt(periods per year). V per period = annual V / periods per year.

Results

Annual Sharpe ratio, SR · sqrt(periods per year)
2.5000
PSR at the benchmark SR*
0.999997
MinTRL, in observations
166.64
MinTRL, rounded up to the next observation
167
MinTRL, in years
0.67
Standard deviation of the trials' Sharpe ratios, σ(SR) = sqrt(V), per period
0.0447
σ(SR) per year, σ(SR) · sqrt(periods per year)
0.7071
SR0, the expected maximum Sharpe ratio of N trials with no skill, per period
0.1132
DSR, the PSR at the benchmark SR0
0.9004

Assumptions behind the DSR

Null dispersion V
Null dispersion from the entered V: 0.002 per period.
Number of trials
Deflated for N = 100 declared trials.
How N was counted
not stated
Version of the method
1

Link to these inputs

The link carries the numbers in the fields above, the note on N and the version of the method in its address. It holds no return series.

Sensitivity of the DSR to N

DSR against the number of trials N, from 1 to 10,000, log scale00.250.50.7511101001k10kNumber of trials N, log scaleDSR

With the inputs above and V = 0.002 per period, the DSR is 0.999997 at N = 1, 0.9004 at the entered N = 100 (the marked point), and 0.3389 at N = 10,000. SR0 rises with N, so the DSR falls as N grows.

DSR at selected N, with the other inputs fixed
NSR0 per periodDSR
10.00000.999997
20.02320.9999
50.05330.9986
100.07040.9939
200.08500.9816
500.10180.9462
100 (entered)0.11320.9004
2000.12370.8374
5000.13650.7314
1,0000.14560.6399
2,0000.15420.5449
5,0000.16490.4229
10,0000.17270.3389

Download the 103 points of the curve as CSV