Metrics¶
This module contains some tools to compute financial metrics, such as annualized returns (annual_return), annualized volatility (annual_volatility), Calmar ratio (calmar), diversification ratio (diversified_ratio), maximum drawdown (mdd), Sharpe ratio (sharpe), Z-score (z_score), etc.
There is also rolling version of some metrics, annualized returns (roll_annual_return), annualized volatility (roll_annual_volatility), Calmar ratio (roll_calmar), maximum drawdown (roll_mdd), Sharpe ratio (roll_sharpe), Z-score (roll_z_score), etc.
Classical version of metrics¶
|
Compute the accuracy of prediction. |
|
Compute compouned annual returns of each X' series. |
|
Compute the annualized volatility of each X' series. |
|
Compute the Calmar Ratio for each X' series. |
|
Compute diversification ratio of a portfolio. |
|
Measures the drawdown of each X' series. |
|
Compute the Mean Absolute Deviation of each X' series. |
|
Compute the maximum drawdown for each X' series. |
|
Compute performance of prices or index values along time axis. |
|
Compute performance of returns along time axis. |
|
Compute the performance of strategies for each X' series. |
|
Compute the Sharpe ratio for each X' series. |
|
Compute the Z-score of each X' series. |
Rolling version of metrics¶
|
Compute rolling compouned annual returns of each X' series. |
|
Compute the annualized volatility of each X' series. |
|
Compute the rolling Calmar ratio of each X' series. |
|
Measures the rolling drawdown of each X' series. |
|
Compute rolling Mean Absolut Deviation for each X' series. |
|
Compute the rolling maximum drawdown for each X' series. |
|
Compute rolling sharpe ratio of each X' series. |
|
Compute vector of rolling/moving Z-score function. |