MCPcopy Create free account
hub / github.com/Open-Quant/openquant / register

Function register

crates/pyopenquant/src/backtest_stats.rs:123–138  ·  view source on GitHub ↗
(py: Python<'_>, parent: &Bound<'_, PyModule>)

Source from the content-addressed store, hash-verified

121/// benchmark_out : bool, default False
122/// Return the benchmark `SR_0` instead of the deflated Sharpe ratio.
123///
124/// Returns
125/// -------
126/// float
127/// The deflated Sharpe ratio (a probability in `[0, 1]`), or `SR_0` when `benchmark_out`
128/// is True.
129///
130/// Raises
131/// ------
132/// ValueError
133/// If `sr_estimates` has fewer than two values, or `estimates_param` is True and the
134/// number of trials `sr_estimates[1]` is NaN or not above 1.
135#[pyfunction(name = "deflated_sharpe_ratio")]
136#[pyo3(signature = (
137 observed_sr,
138 sr_estimates,
139 number_of_returns,
140 skewness,
141 kurtosis,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected