Work

F1 Race Volatility Analytics Dashboard

An independent analytics platform that quantifies the chaos level of Formula 1 races using mathematically grounded algorithms — MergeSort inversion counting, Fenwick Trees, and custom volatility metrics — covering 49+ races across the 2024, 2025, and 2026 seasons.

Role

Solo Developer

Year

2025

Source

GitHub
49+ Races Analyzed
3 Seasons
$0 Runtime Cost
6 Core Algorithms
TypeScript37.8%
Python30.3%
Astro26.5%
CSS5.3%
JavaScript0.1%
PythonTypeScriptAstroReactFastF1CSS

What It Does

F1Chaos replaces subjective “that was a crazy race” takes with a single, mathematically rigorous volatility score. It counts order inversions — how many driver pairs end up out of position relative to the grid — across every lap, then normalizes per driver to enable objective cross-race, cross-season comparison.

How It Works

Data Pipeline: FastF1 API → Python processing scripts → JSON metrics → Astro static build → Cloudflare Pages. No server, no database, no runtime API.

Core Algorithms: MergeSort inversion counter (O(n log n) total inversions), Fenwick Tree for per-lap tracking, pit-adjusted inversions to strip pit-cycle noise, SC-neutralized volatility (0.25× weight during safety cars), and DNF-aware movement calculation.

Decomposition: The v2 engine classifies every position change as on_track, pit_cycle, sc_vsc, or dnf — so you can see why a race was chaotic, not just that it was.

Key Features

  • Volatility Score — normalized chaos metric that makes any two races comparable
  • Overtake Classification — separates real overtakes from pit shuffles and safety car compression
  • Driver Battle Index — pairwise tracking of position swaps and proximity
  • No-SC Simulator — counterfactual: “what if there was no safety car?”
  • Tyre Strategy Viz — lap-by-lap compound tracking with pit window overlays
  • Cross-Season Comparisons — side-by-side charts spanning 2024, 2025, and 2026