QuantStats CompatibilityΒΆ
finance-calcs uses QuantStats as a reference for report-oriented metric names
and definitions while retaining Polars expressions, explicit missing-value
semantics, and composability in lazy queries.
The following concepts have compatible definitions. finance-calcs exposes
only its canonical names; it does not export additional QuantStats spellings.
QuantStats name |
finance-calcs API |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Intentional interface differences:
expected_shortfallacceptstail_probability, so 5% istail_probability=0.05, rather than a confidence value of 95%.drawdown_detailsaccepts periodic returns and optional dates directly. It returns native Polars date/index values and decimal drawdowns rather than formatted date strings and percentage values.Missing
NaNand null returns are excluded from statistical aggregations and treated as neutral for compounding.Rolling maximum drawdown rebases equity and its initial 1.0 baseline inside each trailing window.
Fixed-fixture tests lock these semantics without adding QuantStats as a runtime or development dependency. See the upstream QuantStats statistics reference for the comparison implementation.