1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-06 04:20:57 +08:00

Add explanation for the evalution metrics of Qlib (#1090)

* Add explanation for the evalution metrics of Qlib

* Update evaluate.py
This commit is contained in:
you-n-g
2022-05-31 19:37:55 +08:00
committed by GitHub
parent e874ef2bc1
commit 1a4114b683

View File

@@ -26,6 +26,13 @@ logger = get_module_logger("Evaluate")
def risk_analysis(r, N: int = None, freq: str = "day"):
"""Risk Analysis
NOTE:
The calculation of annulaized return is different from the definition of annualized return.
It is implemented by design.
Qlib tries to cumulated returns by summation instead of production to avoid the cumulated curve being skewed exponentially.
All the calculation of annualized returns follows this principle in Qlib.
TODO: add a parameter to enable calculating metrics with production accumulation of return.
Parameters
----------