Projects

These are side projects I’ve built outside work. Both the code and the write-ups are public.

xP-FPL

Expected Points for Fantasy Premier League

A machine learning sandbox that forecasts expected points (xP) for every Fantasy Premier League player and optimises squad selection: starting XI, captaincy, transfers and chip timing, with Monte Carlo simulation to show the range of likely outcomes.

F1 Stratbox

Race Results, Analysis & Forecasts for Formula 1

A Formula 1 strategy and forecasting site that tracks lap-by-lap race pace, pit stops and tyre degradation, and forecasts pole, podium and win chances for the next race, with title odds drawn from 10,000 simulated seasons.

More about xP-FPL

xP-FPL is my personal FPL “assistant manager”. It predicts how many points each player is likely to score, then uses those forecasts to plan the team week to week.

What it does

How it works

  1. Collects historical data and live data from the FPL API.
  2. Builds features such as rolling form, per-90 rates and team strength ratings.
  3. Predicts expected points with interchangeable models (MLP, GRU, LightGBM and a component-based ensemble).
  4. Optimises the squad with integer linear programming (PuLP).
  5. Simulates thousands of gameweeks to measure risk.

Forecasts, results and past performance are published at amparaj.github.io/xpfpl. The code is at github.com/amparaj/xpfpl.

More about F1 Stratbox

F1 Stratbox is my Formula 1 strategy desk. It turns live timing and historical data into race analysis and forecasts, so I can see why a race played out the way it did and what’s likely to happen next.

What it does

How it works

  1. Collects lap timing, pit stops, race control and weather data from the OpenF1 API, plus calendar and historical data from FastF1 and Jolpica.
  2. Adds weather forecasts from Open-Meteo.
  3. Refreshes the data with GitHub Actions every 10 minutes across race weekends.
  4. Publishes the results on a React + Vite website, with a local Streamlit dashboard for post-race reviews and a strategy sandbox to test pit stop timing and tyre choices.

Race results, analysis and forecasts are published at amparaj.github.io/f1-stratbox. The code is at github.com/amparaj/f1-stratbox.