quantopian / empyrical

Common financial risk and performance metrics. Used by zipline and pyfolio.
https://quantopian.github.io/empyrical
Apache License 2.0
1.27k stars 398 forks source link

not able to use skew or kurtosis #95

Closed ruhkog closed 6 years ago

ruhkog commented 6 years ago

Looking at your stats.py code (see below), I see that you have the skew and kurtosis. However, I am not able to use it using empyrical.

SIMPLE_STAT_FUNCS = [ cum_returns_final, annual_return, annual_volatility, sharpe_ratio, calmar_ratio, stability_of_timeseries, max_drawdown, omega_ratio, sortino_ratio, stats.skew, stats.kurtosis, tail_ratio, cagr, value_at_risk, conditional_value_at_risk, ]

richafrank commented 6 years ago

Hi @ruhkog , those are attributes of the scipy.stats module imported at the top of empyrical.stats. Have you tried importing those functions from scipy.stats?

ruhkog commented 6 years ago

I ended up doing this! Thanks

richafrank commented 6 years ago

Great!