diff --git a/qlib/contrib/evaluate.py b/qlib/contrib/evaluate.py index 37853942a..cb703cc20 100644 --- a/qlib/contrib/evaluate.py +++ b/qlib/contrib/evaluate.py @@ -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 ----------