Skip to content

About

A small football forecasting project for Arsenal EPL and UCL title race title race.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

Arsenal Forecast

A small football forecasting project for Arsenal EPL and UCL title race title race. This project was written as at matcday 33 for Arsenal and matchday 33 for Manchester City.

Python Static Badge

Demo

It does two things:

  • trains a simple match outcome model from historical EPL data
  • simulates Arsenal vs Man City title outcomes from the remaining 2025/26 fixtures
  • simulates Arsenal vs Athletic UCL semi final outcomes from the remaining 2025/26 fixtures

Quick Start

python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install pandas numpy scikit-learn joblib requests python-dotenv
pip install -e .

Run

Prepare training data:

python3 src.data.prepare_training_data

Train the model:

python3 src.models.match_predictor

Build current-season strength:

python3 src.features.current_season_strength

Run the title simulation:

python3 scripts/simulate_epl_title.py

Required Files

  • data/raw/epl_historical_2022_2024.csv
  • data/raw/arsenal_epl_2025_26.csv
  • data/raw/mancity_epl_2025_26.csv
  • data/raw/epl_full_2025_26.csv

Outputs

  • outputs/models/match_predictor.pkl
  • outputs/models/team_strength.csv
  • outputs/models/current_season_strength.csv

Optional API Fetching

If you want to fetch data from API-Football, add a .env file:

API_FOOTBALL_KEY=your_api_key_here

Then run:

python3 scripts/fetch_historical_seasons.py
python3 scripts/fetch_current_season.py

Notes

  • The title simulator is currently hardcoded for Arsenal vs Man City.
  • scripts/train_model.py, scripts/run_forecast.py, and the YAML config files are placeholders.
  • Use python3, in linux environment.
  • Use python, in windows environment.

About

A small football forecasting project for Arsenal EPL and UCL title race title race.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages