Description Usage Arguments Value Author(s) References See Also
View source: R/deflated.Sharpe.R
Per Bailey and Lopex de Prado (2014), construct a Deflated Sharpe Ratio and associated p-value based on an observed Sharpe ratio and information drawn from a series of trials (e.g. parameter optimization or other strategies tried before the candidate strategy)
1 2 3 4 5 | deflatedSharpe(portfolios, ..., strategy = NULL, trials = NULL,
audit = NULL, env = .GlobalEnv)
.deflatedSharpe(sharpe, nTrials, varTrials, skew, kurt, numPeriods,
periodsInYear = 252)
|
portfolios |
string name of portfolio, or optionally a vector of portfolios, see DETAILS |
... |
any other passtrhrough parameters |
strategy |
optional strategy specification that would contain more information on the process, default NULL |
trials |
optional number of trials,default NULL |
audit |
optional audit environment containing the results of parameter optimization or walk forward, default NULL |
env |
optional environment to find market data in, if required. |
sharpe |
candidate (annualized) Sharpe Ratio |
nTrials |
numeric number or trials |
varTrials |
variance of Sharpe ratios of the trials |
skew |
skewness of the candidate |
kurt |
non-excess kurtosis |
numPeriods |
total periods in the backtest |
periodsInYear |
number of periods in a year, default 252 (daily) |
a data.frame
containing:
original observed Sharpe ratio
deflated Sharpe ratio
p-value of the deflated Sharpe ratio
number of trials used for adjustment
this object may change in the future, and may be classed so that we can include more information
Brian G. Peterson
Ilya Kipnis, Brian G. Peterson
Bailey, David H, and Marcos Lopez de Prado. 2014. "The Deflated Sharpe Ratio: Correcting for Selection Bias, Backtest Overfitting and Non-Normality." Journal of Portfolio Management 40 (5): 94-107. http://www.davidhbailey.com/dhbpapers/deflated-sharpe.pdf
https://quantstrattrader.wordpress.com/2015/09/24/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.