qis.SharpeConvention

class qis.SharpeConvention(*values)[source]

Bases: Enum

which 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_data holds. The table columns SHARPE_EXCESS, SHARPE_LOG_EXCESS and SHARPE_ARITH_EXCESS are 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_RETURN and divided by VOL. The reporting default and the BarclayHedge tradition; leaves every pre-5.0.2 output unchanged

  • ARITHMETIC – sqrt(af) * mean / std of periodic simple returns - the Sharpe (1994) plug-in estimator and the convention of the Sharpe-inference literature. The regime contributions add up exactly to it

  • LOG – sqrt(af) * mean / std of periodic log returns; the regime contributions add up exactly to it

__init__(*args, **kwds)

Attributes

PA = 1
ARITHMETIC = 2
LOG = 3