Home
/
Today's Focus
ML in Signal Generation
Hard
·
25 min read
Statistical / ML for Quants
Machine Learning
Alpha Signals
Regularisation
Cross-Validation
1
Article
2
Quiz
Quick Quiz
1.
Predicting 21-day forward returns from daily data with ridge, why is standard
k
k
k
-fold cross-validation invalid, and what minimum purge gap is needed?
Test folds can precede training folds and adjacent 21-day labels overlap; purge = 21 days
Invalid because returns are non-normal; purge gap of 21 days fixes the distribution
Invalid because of heteroskedasticity; purge gap of 1 day suffices
Invalid only for tree models; ridge is fine with
k
=
10
k=10
k
=
10
2.
For ridge
β
^
=
(
X
⊤
X
+
λ
I
)
−
1
X
⊤
y
\hat\beta=(X^\top X+\lambda I)^{-1}X^\top y
β
^
=
(
X
⊤
X
+
λ
I
)
−
1
X
⊤
y
, how do its bias and variance compare to OLS, and when does ridge beat OLS in MSE?
Same bias as OLS but higher variance from the penalty
Zero bias and lower variance, so it always dominates OLS
Beats OLS only when
X
⊤
X
X^\top X
X
⊤
X
is exactly singular
Adds bias, lowers variance; wins in MSE for a small penalty
λ
\lambda
λ
3.
A boosted-tree signal has in-sample IC = 0.12 and purged out-of-sample IC = 0.02. What does the ratio indicate and how should you respond?
The model needs more features to generalise
The signal is robust; the low OOS IC is just transaction costs
0.17 is normal for trees; raise n_estimators to lift OOS IC
Severe overfitting — reduce capacity (shallower trees, larger leaves)
4.
Impurity-based (Gini/gain) feature importance in gradient boosted trees is an unbiased estimate of each feature's true predictive contribution, even when features differ in cardinality or are correlated.
True
False
5.
Why is 12-1 momentum (12-month return excluding the most recent month) standard, and what is the danger of including the last month?
It is a regulatory requirement; using the last month is a look-ahead bias
It is only a computational convenience; both formulations are equivalent signals
It reduces transaction costs by avoiding high-turnover short-term signals
It excludes the last month to avoid 1-month short-term reversal contaminating the signal
6.
By the Fundamental Law of Active Management,
IR
≈
IC
N
\text{IR}\approx\text{IC}\sqrt N
IR
≈
IC
N
. With IC = 0.05 and
N
=
2400
N=2400
N
=
2400
independent bets/year, the theoretical IR — and why is realised IR usually lower — is:
≈
2.45
\approx2.45
≈
2.45
; realised equals it provided the IC estimate is unbiased
0.05
×
200
=
10
0.05\times200=10
0.05
×
200
=
10
; realised lower because of margin requirements
0.05
2400
≈
2.45
0.05\sqrt{2400}\approx2.45
0.05
2400
≈
2.45
; realised lower from costs and correlation
IR = IC = 0.05; the
N
\sqrt N
N
factor applies only to binary bets
Submit
←
Article