Sharpe Ratio Statistics
workflow.run_sharpe_statsSharpe ratio with the Lo (2002) serial-correlation-aware annualization correction (the naive sqrt(periods_per_year) scaling overstates or understates the true annualized Sharpe when returns are autocorrelated), plus the Probabilistic Sharpe Ratio (Bailey & Lopez de Prado): the probability the true Sharpe exceeds a benchmark, adjusted for the sample's skewness/kurtosis and length, not just its point estimate. Use when user asks "what's my real annualized Sharpe, not the naive one?" or "how confident can I be this Sharpe ratio is actually good?". Returns: sharpe_period, sharpe_annualized_naive, sharpe_annualized_lo, autocorrelation_lag1, psr, skewness, kurtosis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| returns | Yes | Return series, one value per period | |
| benchmark_sharpe | No | Benchmark Sharpe ratio for the PSR test, same periodicity as returns (default 0) | |
| periods_per_year | No | Periods per year for annualization (default 365, crypto convention - trades every day) |