qis.SharpeConvention¶
- class qis.SharpeConvention(*values)[source]¶
Bases:
Enumwhich Sharpe ratio numerator a statistic reports.
The three are different numbers on the same data, not roundings of each other, so a Sharpe ratio should be quoted with its convention. Summary in
qis/docs/sharpe_conventions.md; derivations in the handbook chapter on Sharpe ratios.The enum is read only by the regime-conditional Sharpe contributions, which are computed on total returns: no cash is deducted in any of the three branches, whatever
PerfParams.rates_dataholds. The table columnsSHARPE_EXCESS,SHARPE_LOG_EXCESSandSHARPE_ARITH_EXCESSare the excess-of-cash versions of the same conventions.- Variables:
PA – compound annual return over annualised volatility. For the regime contributions, the per-annum regime returns are patched to add up to the table’s
PA_RETURNand divided byVOL. The reporting default and the BarclayHedge tradition; leaves every pre-5.0.2 output unchangedARITHMETIC –
sqrt(af) * mean / stdof periodic simple returns - the Sharpe (1994) plug-in estimator and the convention of the Sharpe-inference literature. The regime contributions add up exactly to itLOG –
sqrt(af) * mean / stdof periodic log returns; the regime contributions add up exactly to it
- __init__(*args, **kwds)¶
Attributes
- PA = 1¶
- ARITHMETIC = 2¶
- LOG = 3¶