canli-mcp / Quant finance
Deflated Sharpe ratio
Deflate a backtest's Sharpe ratio for the number of strategies tried (Bailey and López de Prado 2014): the expected maximum Sharpe under the null and the probability the result beats it. Takes returns or prices, or just the observed Sharpe and the number of observations, with the trials' Sharpe variance or Sharpes.
The tool is deflated_sharpe_ratio in canli-mcp 0.22.0, free and MIT-licensed, with no account and no API key. It comes from canli-quant-mcp, which canli-mcp includes, and it is also its own server.
Arguments
| Argument | Required | Type |
|---|---|---|
returns | no | number[] |
prices | no | number[] |
periods_per_year | no | number |
sharpe_annual | no | number |
observations | no | integer |
skew | no | number |
kurtosis | no | number |
trials | yes | integer |
trial_sharpes | no | number[] |
trial_sharpe_variance | no | number |
How a model reaches it
Ask in plain words. The model finds deflated_sharpe_ratio with canli-mcp's find_tool, reads its arguments with describe_tool if it needs to, and runs it with run_tool. The call has this shape, with your values in place of the angle brackets:
{
"name": "deflated_sharpe_ratio",
"arguments": {
"trials": "<integer>"
}
}Words that find it
Besides its name, title and description, find_tool matches a question to deflated_sharpe_ratio on these words: overfit, overfitting, variants, trials, tried, multiple, testing, luck, deflated, sharpe, ratio, dsr, selection, bias, backtest, data, snooping.
More
Nothing here is investment advice.