All projects
Data science · Research
Chess Openings and Elo
An analysis of 6.25 million Lichess games on how Elo ratings and opening choices relate to game outcomes, with predictive models.
- Role
- Sole researcher
- Team
- Solo
- Timeline
- Oct 2024 – Dec 2024
- Context
- Research project
- Lichess games
- 6.25M
- accuracy from Elo alone
- 64.9%
- win rate with a 500+ Elo edge
- 93%

Overview
How much do player ratings and opening choices actually predict who wins a chess game? I cleaned and analyzed more than six million games from Lichess.org to find out.
Approach
- Loaded and cleaned 6.25 million Lichess games from July 2016 with pandas. The average player was rated about 1750.
- Engineered features: five skill groups (Beginner up to Master), the average Elo per game, and opening names grouped across their variations.
- Mapped opening preferences across Elo groups and event types, from bullet to correspondence.
- Built logistic regression and random forest models (scikit-learn) to test how well Elo and game context predict results.
Findings
- Openings follow skill and format. The Sicilian Defense was the most popular opening in every group except Beginners, who favored the King’s Pawn. The English Opening and Caro-Kann stood out among Experts and Masters. Formats had their own favorites too, such as the Modern Defense in bullet and the Italian Game in classical tournaments.
- Elo difference was by far the strongest predictor of who wins. White’s win rate climbs from 50% at even ratings to 93% with a 500-point edge, closely tracking the Elo formula.
- A logistic regression on Elo features alone reached 64.9% accuracy, against a 50% baseline.
- Adding openings, event type, and time control in a random forest did not help: it scored 60.2% (cross-validated). Those features added noise rather than signal.
Better predictions would need context the game record doesn’t capture, like recent form, move quality, and time pressure.
Gallery



