A Python library for calculating common financial risk and performance metrics used in quantitative finance.
Empyrical is a Python library that calculates common financial risk and performance metrics used in quantitative finance. It provides functions for metrics like max drawdown, alpha, beta, and capture ratios, enabling developers to analyze portfolio performance and risk characteristics. The library serves as the statistical foundation for popular quantitative finance tools like Zipline and Pyfolio.
Quantitative analysts, algorithmic traders, and financial developers who need reliable implementations of standard financial metrics for portfolio analysis and strategy backtesting.
Developers choose Empyrical because it offers well-tested, production-ready implementations of financial metrics that integrate seamlessly with pandas and NumPy. Its use as the statistical engine for established tools like Zipline ensures reliability and industry acceptance.
Common financial risk and performance metrics. Used by zipline and pyfolio.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Serves as the statistical engine for Zipline and Pyfolio, ensuring well-tested and accurate implementations of financial metrics used in production.
Functions seamlessly work with pandas Series and DataFrames, as shown in the README examples, fitting naturally into quantitative finance workflows.
Offers a wide range of essential metrics like max drawdown, alpha, beta, and capture ratios, reducing the need for custom implementations.
Provides easy-to-use functions such as max_drawdown() and roll_up_capture(), with clean examples in the README for straightforward integration.
Data reading functions from Yahoo and Google Finance are deprecated and unstable, forcing users to handle data ingestion separately, as admitted in the README.
Focused solely on financial risk metrics, lacking broader statistical tools or econometric models, which limits use outside quantitative finance.
Only calculates metrics without any plotting capabilities, requiring additional libraries like matplotlib for data visualization and reporting.