⚽ EdgeLab
Premier League prediction research, built for honest evaluation.
Baseline · Elo · Independent Poisson · Calibration · Market benchmark
EdgeLab is a reproducible research project for forecasting historical English Premier League match outcomes. It compares three transparent models using chronological, out-of-sample evaluation and keeps validation, held-out testing, calibration studies and a retrospective market benchmark clearly separated.
Research only. The dashboard displays saved forecasts for played matches. It does not predict upcoming fixtures or simulate betting. One held-out season is limited evidence and does not establish long-run superiority.
At a glance
| Dataset |
Evaluation |
Models |
Saved forecasts |
| 3,800 matches · 10 seasons |
Development through 2022–23 |
Baseline, Elo, Poisson |
2,280 validation/test rows |
Held-out results · 2024–25
Scores use the same 380 fixtures for every model. Lower Brier score and log loss are better; higher accuracy is better.
| Model |
Brier ↓ |
Log loss ↓ |
Accuracy ↑ |
| Class-frequency baseline |
0.6556 |
1.0809 |
40.79% |
| Elo |
0.6484 |
1.0682 |
39.74% |
| Independent Poisson |
0.6393 |
1.0614 |
46.05% |
These are observed results from one season, not proof of future performance. Poisson has better aggregate probability scores here, while calibration remains a limitation. The separate temperature-scaling experiment did not improve held-out Brier score or log loss; raw Poisson remains the default.
See validation results · 2023–24
| Model |
Brier ↓ |
Log loss ↓ |
Accuracy ↑ |
| Class-frequency baseline |
0.6371 |
1.0541 |
46.05% |
| Elo |
0.6325 |
1.0453 |
44.21% |
| Independent Poisson |
0.5609 |
0.9509 |
55.00% |
What’s inside
- Three models: a historical outcome-frequency baseline, Elo ratings with an explicit three-outcome conversion, and independent Poisson goal rates.
- Chronological evaluation: development (2015–16–2022–23), validation (2023–24), and held-out test (2024–25). All fixtures on a date are forecast before that date’s results update model state.
- Robustness study: seven expanding-window development folds with season-level metrics, reliability summaries and paired date-bootstrap intervals.
- Calibration experiment: temperature scaling fitted only on development out-of-sample forecasts, then assessed separately on validation and test.
- Research Explorer: read-only dashboard views of saved comparisons, reliability bins, and calibration results.
- Retrospective closing-market benchmark: aggregate comparison with Pinnacle closing 1X2 odds on matched fixtures. Quote timestamps are unavailable, so this is not a strictly time-aligned forecast contest or evidence of executable betting returns.
Quick start
Requires Python 3.12. From a fresh checkout:
git clone https://github.com/Matthew-Selvam/EdgeLab.git
cd EdgeLab
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python -m pip install -e . --no-deps
Download both pinned OpenFootball results sets into ignored local data/raw/
directories, then build the original and separate expanded datasets. Generate
the saved research artifacts before running the complete test suite:
.venv/bin/python scripts/fetch_openfootball.py
.venv/bin/python scripts/fetch_openfootball_expansion.py
.venv/bin/python -m edgelab.data
.venv/bin/python -m edgelab.data.expand
.venv/bin/python -m edgelab.evaluation --input data/processed/premier_league_matches.csv --output-dir data/processed
.venv/bin/python -m edgelab.evaluation.robustness --input data/processed/premier_league_matches.csv --reference-dir data/processed/predictions --output-dir data/processed/robustness
.venv/bin/python -m edgelab.evaluation.calibration --input data/processed/premier_league_matches.csv --robustness-dir data/processed/robustness --frozen-dir data/processed/predictions --output-dir data/processed/calibration
The ingestion pipeline applies the documented 66-match 2019–20 date correction (July 2019 to July 2020) and writes a fixture-level audit log. It preserves raw source files. The evaluation command writes saved predictions, metrics and a readable report under data/processed/predictions/.
The evaluation and research-study commands use only the original 3,800-match
CSV; the separate 5,320-match CSV has no model evaluation protocol. The
acquisition helpers fetch pinned OpenFootball results files, not odds.
Run the test suite and open the saved-results dashboard:
.venv/bin/python -m pytest -q
.venv/bin/streamlit run src/edgelab/dashboard/app.py
The dashboard does not train models or recompute historical forecasts. For exact environment pins, artifact checks and all study commands, see the reproducibility guide.
Reproduce the research studies
Separate historical EPL expansion
The dataset expansion report describes a separate
5,320-match EPL CSV covering 2011–12 through 2024–25. It adds four pinned,
CC0 OpenFootball seasons while preserving the original 3,800-match research
dataset and every frozen evaluation result. The quick start above acquires and
builds this separate dataset before running the full suite.
This output is for data research only; the existing backtest does not consume
it. See the source audit and
data dictionary.
The quick start also generates the seven-fold robustness and temperature
calibration studies from the original dataset. They do not consume the
expanded CSV.
The full report contains the methods, season-level robustness results, calibration findings and limitations: EdgeLab research report. See methodology for model assumptions, metrics and temporal rules.
Optional market benchmark
The closing-market study requires ten manually downloaded Football-Data.co.uk season CSVs. EdgeLab has no odds scraper or repeated download job. Check the source’s current fair-use policy and the local input instructions before use.
The benchmark uses only Pinnacle closing PSCH/PSCD/PSCA fields and proportional overround normalization. Raw odds and fixture-level market derivatives are excluded from Git and must remain local. Public summary results are retrospective; quote timestamps are unavailable and date-level model cutoffs prevent strict timing alignment. See the source audit and licensing boundaries.
Data, licensing and attribution
- The public repository contains original EdgeLab code and documentation, not the local match dataset, raw odds or generated fixture-level outputs. See the public file allowlist.
- OpenFootball results are sourced from a pinned revision and dedicated upstream under CC0. See the source manifest and OpenFootball license.
- Football-Data.co.uk odds retain their source terms. Their availability does not grant redistribution rights, and EdgeLab’s MIT License does not cover third-party data or content.
- The project’s licensing scope and source-use boundaries are documented in LICENSING.md.
Project activity
If you find EdgeLab useful, you can star the repository. The chart below is generated by Star History and updates with public GitHub star counts.
Made for careful, reproducible football research.