Menu

LSTM, GRU and LightGBM against a 2-line trend rule: the rule came first
πŸ“°

LSTM, GRU and LightGBM against a 2-line trend rule: the rule came first

DEV Community: pythonΒ·QuantoooxΒ·1 day ago
#H8OSP8ew
#devtopython#devto#dev#every#model
Reading 0:00
15s threshold

Every model in our "zoo" gets the same features, the same label (stock minus S&P 500 over the next 20 trading days) and the same walk-forward schedule: refit every 63 trading days on the trailing 756, with a 20-day gap so no label leaks into training.

The leaderboard (development period, mean daily rank IC)

Model IC t-stat

Trend rule (price vs 100-day average + 12-1 momentum) +0.0149 0.64

GRU +0.0101 0.50

Ridge regression +0.0091 0.50

LightGBM +0.0086 0.53

LSTM βˆ’0.0018 βˆ’0.09

MLP βˆ’0.0090 βˆ’0.49

Low-volatility rule βˆ’0.0251 βˆ’0.98

Twelve families in total. The best Deflated Sharpe probability, which accounts for how many we tried, was 0.16.

Three observations

Nothing is significant. A t-stat of 0.64 is well inside the noise. "Top of the table" here means "least bad".

The year-by-year numbers swing. LSTM's IC was βˆ’0.07 in 2022 and +0.14 in 2025. A model that looks brilliant in one year and broken in the next has not found structure; it has found that year.

Complexity added nothing.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.