‹ Back to projects

Tyche

An honest measure of what predicting a lottery draw is worth, not a promise to win.

Tyche downloads the entire SuperEnalotto draw history since December 1997 — over 4,260 draws — and walks it through four steps: Archive checks that the data is clean, Proof tests the draws against five independence hypotheses, Validation compares every method against chance with walk-forward backtests, and Forecast delivers the final play, from TimesFM 3.0 or three reference methods, together with what it costs and what it's worth.

The tests give a clear answer: the draws are independent, and every method — including a 330-million-parameter forecasting model — scores 0.4 hits out of six in backtesting, exactly what chance gives. The one statistical anomaly it did find, a skew in the sum of the six numbers, turns out to have faded away years ago and was never economically exploitable anyway.

Tyche uses Google's TimesFM 3.0 to forecast the archive's ninety time series, split into groups of 32 because that's the most the model accepts at once. The program itself is AGPL v3 with no commercial license and no CLA; TimesFM 3.0's model weights, a separate thing from the code, remain non-commercial under their own license.

  • Platform
    Desktop — Windows, macOS, Linux
  • Engine
    TimesFM 3.0 + three reference methods
  • Path
    Archive → Proof → Validation → Forecast
  • Result
    0.4 hits out of six, same as chance
  • License
    AGPL v3
The name, in myth

Tyche was the Greek goddess of fortune and chance, dispensing success or ruin unpredictably. The name is almost a preemptive admission: the program exists to measure how much of fortune can actually be predicted, and its own analysis concludes the answer is close to none.

  • Downloads and checks the integrity of the entire SuperEnalotto history since 1997
  • Runs the draws through five independence and uniformity tests
  • Backtests every method against chance walk-forward, without ever peeking at the future
  • Measures the validation's sensitivity against known, dial-in advantages
  • Generates the play from TimesFM 3.0 or three reference methods, the random one included
  • Computes exact cost and odds for a single ticket or integral systems up to twelve numbers
Path: the three steps, from the archive to the TimesFM model to the forecast
Path: the three steps, from the archive to the TimesFM model to the forecast
Archive: the draw history with integrity checks
Archive: the draw history with integrity checks
Forecast: combinations generated by different methods, side by side
Forecast: combinations generated by different methods, side by side
Settings: TimesFM checkpoint and backtest parameters
Settings: TimesFM checkpoint and backtest parameters

The application interface is in Italian.

Keep exploring

The other ideas that took shape, from the same instinct to build.