Skip to content

A Formula 1 Elo Engine based off of historical data from every race since 1950, using algorithms loosely based off of Chess.com's ranking system.

Notifications You must be signed in to change notification settings

rbala25/F1-Elo-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formula 1 Elo Engine

Uses historical data from every Formula 1 race since 1950 provided by the Ergast API to calculate each driver's elo ranking.


Basic Information

Each driver starts with a ranking of 1500, and as the server works through each race, that ranking changes in accordance to algorithms losely based off of Chess.com's ranking system.

The highest elo ever achieved was 1910.582 by Fernando Alonso after the 2014 Hungarian Grand Prix.

A driver can gain or lose elo points based off of if they 'beat' their teammate(s). For instance, if Max Verstappen were to beat Sergio Pérez in a particular race, Verstappen would gain a certain amount of elo points and Pérez would lose a certain amount. The algorithm excludes Mechanical DNF's and disqualifications.


The Elo Rating System

The elo model was originally created for chess, but in this case, it was adapted for Formula 1. The difference in ratings between two teammates determines the expected outcome and the total points won or lost for that particular matchup. If the higher-rated driver 'wins' (relative to their teammate), each driver's ranking will change little. However, if the lower-rated player wins, there will be a big change in rankings.


The driver who 'beats' their teammate gets a score of 1, while the loser gets a score of 0. If two teammates had equal ratings, their expected ratings would be 0.5 each. The formula to determine the expected scores can be seen below.


The new rating for a player is calculated by a formula shown in the image below. Notably, K, the K-factor, is set to 32 in this elo engine.

About

A Formula 1 Elo Engine based off of historical data from every race since 1950, using algorithms loosely based off of Chess.com's ranking system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages