readme_backtest
This repo contains a detailed simulation engine that retroactively tests the accuracy of different predictive models on Georgia Cash 3 draws. Instead of predicting future numbers, this system walks day-by-day through historical data, pretending it's in the past and generating predictions using only past results.
To measure the true real-world effectiveness of various prediction models by:
- Running them on only the data available before each draw.
- Comparing their output to the known actual winning number. d
- Recording match statistics over hundreds of draws to determine if any method performs better than chance.
- Load full Cash 3 dataset (sorted from oldest to newest).
- Starting after the first 10 draws (to build initial model memory):
- At draw i:
- Use draws 0 to i to generate predictions.
- Compare prediction against draw i+1 (which the model has not seen).
- At draw i:
- Repeat for all draws until the latest.
- Log the following:
- Actual winning number
- Each method's prediction
- Hit type (Exact, 2-digit, 1-digit match)
- Rolling accuracy for each method
- Markov Chain
- Frequency-Weighted
- ARIMA Time Series
- Hot/Cold Digit Analysis
- Sum & Parity Heuristics
- Digit Difference Patterns
- Gap Time Since Last Seen
- Modulo Cycles
- Entropy Scoring
- Machine Learning Model (RandomForest)
- Bayesian Probabilities
historical_predictions_2025.csvβ Daily model predictions + actualshistorical_accuracy_2025.csvβ Summary of how well each method performed
Example accuracy metrics logged:
Exact Match %2-digit Match %1-digit Match %Top N performance if we pick top 10 guesses per day
β
No need to wait for new draws to validate your models
β
Shows how each method behaves over time β helps fine-tune or eliminate underperformers
β
Letβs you train hybrid models or ensemble methods using the best of all techniques
β
Allows for future "live" model deployment with high confidence in baseline performance
full_backtest.pyβ Runs the full day-by-day simulationhistorical_predictions_2025.csvβ All model outputs per dayhistorical_accuracy_2025.csvβ Final scorecard
**Built with curiosity by hamza/knightinfected ** """