stats_probabilistic-sharpe
Calculate the probabilistic Sharpe ratio to test if observed Sharpe is statistically significant. Returns probability, p-value, and required track record length.
Instructions
Probabilistic Sharpe Ratio — is the observed Sharpe statistically significant? Based on Bailey & Lopez de Prado (2012).
Use when testing whether a Sharpe ratio is statistically significant. Provide returns and a benchmark Sharpe. Returns: probabilistic Sharpe ratio (probability observed Sharpe exceeds benchmark), p-value, and required track record length.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| returns | Yes | Array of portfolio returns | |
| risk_free_rate | No | Annual risk-free rate | |
| benchmark_sharpe | No | Benchmark Sharpe ratio to test against | |
| annualization_factor | No | Trading days per year for annualization |