Skip to content

"Vibe-Trading: Your Personal Trading Agent"

docs(quantlib): clarify factor_ic_analysis Raises docstring

santhrealaae2b507fb9f
diff --git a/agent/src/quantlib/factormodel.py b/agent/src/quantlib/factormodel.py
index 3389ee9de..d69ba7fd0 100644
--- a/agent/src/quantlib/factormodel.py
+++ b/agent/src/quantlib/factormodel.py
@@ -570,7 +570,7 @@ def factor_ic_analysis(
higher moments, and full IC time series.
Raises:
- ValueError: If inputs are empty, mismatch in shape, or method is unknown.
+ ValueError: If inputs are empty, share no common dates or assets, or method is unknown.
"""
if method not in ("spearman", "pearson"):
raise ValueError(f"method must be 'spearman' or 'pearson', got {method!r}")