I gave a small local decision model sixteen years of daily market data and asked it one question. It answered confidently, and it was wrong. This is the whole experiment, the numbers, and the part of the pipeline I would keep.
Train on 2010–2021, validate on 2022–2023. Every model is scored the same way: it either says buy, hold or sell; a buy is scored by the mean return of the barrier trade that follows; edge is that return minus the mean return of every day in the block. Costs are 0.30% per round trip.
| model | accuracy | macro F1 | buy signals | return per buy | edge | net of cost | std. error |
|---|---|---|---|---|---|---|---|
| always buy (market drift) | 0.301 | 0.154 | 9,838 | +0.13% | +0.00% | -0.17% | 0.05% |
| always most common class | 0.401 | 0.191 | 0 | — | — | — | — |
| random by class prior | 0.342 | 0.332 | 3,062 | +0.10% | -0.03% | -0.20% | 0.09% |
| rule: SMA + momentum | 0.332 | 0.330 | 3,192 | +0.22% | +0.09% | -0.08% | 0.08% |
| logistic regression | 0.422 | 0.406 | 3,642 | +0.45% | +0.32% | +0.15% | 0.08% |
| gradient boosting | 0.430 | 0.411 | 3,410 | +0.49% | +0.35% | +0.19% | 0.09% |
| Laya, zero-shot | 0.324 | 0.316 | 4,463 | +0.29% | +0.15% | -0.01% | 0.06% |
So I did the boring test. For every year from 2013 to 2023, train only on the years before it — and purge any training row whose ten-day label had not resolved before the test year began — then predict that year. Same features, same models, same costs. One good year proves nothing; a real edge has to show up again and again.
That is the result: no stable edge. Not "a weak edge" — an edge that changes sign year to year and averages to nothing, measured on data that the model never saw. The honest conclusion is that ten technical features on twenty liquid tickers do not contain a signal this model can extract, not that a better hyperparameter would fix it.
Laya is a small decision model run locally: one ~0.8 GB checkpoint, one forward pass, no text generation, no API call — a classifier with a fixed interface, not an LLM. Zero-shot, with no training at all, it answered the question for all 9,838 validation rows. The model was asked to pick one of three outcomes for the next 10 trading days, and it answered buy on 45.4% of them, hold on 32.4% and sell on 22.2%.
Its accuracy was 32.4%, against 40.1% for always answering the most common class. That is the whole story in two numbers: a confident-sounding model that is less accurate than a constant.
| said buy | said hold | said sell | |
|---|---|---|---|
| actually buy | 1,31644% of buy days | 86129% of buy days | 78527% of buy days |
| actually hold | 1,91249% of hold days | 1,25032% of hold days | 77920% of hold days |
| actually sell | 1,23542% of sell days | 1,08037% of sell days | 62021% of sell days |
The interesting part is not that it is wrong. It is that the probabilities it emits are tidy, ordered and useless — a model that picks the most likely label still sounds certain when the ranking behind it carries no information.
A real signal here would need all of: a positive edge in most walk-forward years, a standard error small enough to separate it from zero, survival after costs, and a portfolio-level simulation instead of per-trade barrier returns. Any one of those on its own is easy to produce by accident, which is exactly why this repo reports all of them.
results/*.csv by python run.py report ·
no dependencies, no build step. Data: Yahoo daily bars, 20 tickers, 2010–2026,
labels scored through 2023. Code and text: MIT.