Case Study 1 — Leclerc vs Hamilton at Ferrari, 2025–2026
Setup
When Lewis Hamilton moved from Mercedes to Ferrari for 2025, the move created one of the most watched teammate pairings of the decade. On one side, the driver with 397 timed teammate rounds in Jolpica qualifying since 2007. On the other, Charles Leclerc, whose teammate-chain rating in this chapter is −0.082 % relative to Hamilton (95 % interval −0.200 to +0.019): slightly faster, but not distinguishably so.
That chain rating is a career average. A teammate comparison inside one car answers a sharper
question: in these two seasons, in this car, who was faster, by how much, and did it change? This
case study works through the qualifying duel, the race-pace duel and the history behind them, using the
chapter's ratings module. The script is code/case_study_01.py.
The data
- Qualifying: Jolpica-F1, 2025 R1–R24 and 2026 R1–R21, canonical teammate gap (best common session, % of the pair mean; negative = faster), corrupt times removed. 23 rounds in 2025 and 21 in 2026 have a common session for both Ferrari drivers.
- Race pace: OpenF1 race laps,
ratings.teammate_race_pace: canonical clean laps, fuel-corrected with the toolkit's assumption defaults (100 kg, 0.03 s/kg), same dry compound, the lap window both drivers covered, and an OLS adjustment for tyre age. Races in which the drivers never overlapped for five clean laps on the same dry compound drop out: 20 of 24 races remain in 2025 and 18 of 21 in 2026. - Results: Jolpica race results (points from Grands Prix only; sprints are excluded here).
What the data cannot see: setup differences between the cars, any difference in parts, team instructions, or how either driver felt about the car. Everything below is what the timing shows.
Analysis
1. Qualifying: from a clear deficit to near parity
2025 qualifying: n=23 Hamilton median +0.277 % (CI +0.119 to +0.356); median +0.218 s; H2H Hamilton 5-18; within 0.1 %: 2; sessions {'Q3': 15, 'Q2': 4, 'Q1': 4}
first half median +0.250 (n=12), second half +0.277 (n=11)
2026 qualifying: n=21 Hamilton median +0.047 % (CI -0.014 to +0.181); median +0.044 s; H2H Hamilton 8-13; within 0.1 %: 10; sessions {'Q3': 18, 'Q2': 3}
first half median +0.089 (n=11), second half +0.028 (n=10)
In 2025 Hamilton was a median 0.277 % slower than Leclerc in qualifying, about 0.22 s, and lost the head-to-head 5–18. The bootstrap interval (+0.119 to +0.356) excludes zero comfortably. Nor was it a slow start that faded: the second half of the season (+0.277 %) was no better than the first (+0.250 %).
In 2026, with new cars, the gap collapsed to +0.047 % (about 0.04 s). The interval now includes zero
(−0.014 to +0.181). Half the sessions (10 of 21) were decided by less than 0.1 %. The head-to-head
still favours Leclerc 13–8, but a 62 % share on 21 sessions has a Wilson interval of 41–79 %: a coin
flip cannot be excluded. The sessions count also tells a story: in 2025 four rounds were compared on
Q1 times, meaning at least one Ferrari did not reach Q2; in 2026 every comparison came from Q2 or Q3.

📊 Figure (described): One bar per qualifying session (orange = Leclerc faster, blue = Hamilton faster), with a five-round rolling median in black. The 2025 half is almost entirely orange with the rolling median around +0.25 %; after the dashed line (2026) the bars alternate and the rolling median hovers near zero. The takeaway: the qualifying gap closed between seasons, not gradually within 2025.
2. Race pace: the same shape on Sundays
race pace, Hamilton minus Leclerc (same compound, same lap window, tyre-age adjusted):
2025: races 20, median +0.304 % (CI +0.199 to +0.656), median +0.277 s/lap; Hamilton faster in 3
2026: races 18, median +0.012 % (CI -0.125 to +0.257), median +0.007 s/lap; Hamilton faster in 9
The race-pace comparison reproduces the qualifying pattern almost exactly. In 2025 Hamilton was a median 0.304 % (0.28 s per lap) slower on the same compound and tyre age, faster in only 3 of 20 comparable races. In 2026 the median gap is 0.012 %, seven thousandths of a second per lap, and he was faster in 9 of 18. The interval again includes zero.
A few individual races are worth reading in the table from the script. Some 2025 comparisons rest on very few laps: Suzuka (7 laps, +2.43 %) and Silverstone (8 laps) should carry little weight, and the median protects us from them. The largest 2026 Hamilton advantage, at São Paulo (−1.212 % on 38 soft laps), came at the weekend whose qualifying session was wet; the race comparison uses dry-compound laps only.

📊 Figure (described): One bar per race with a same-compound comparison. In 2025 nearly every bar is orange (Leclerc faster) with a season median of +0.30 %; in 2026 the bars split evenly and the median is +0.01 %. The takeaway: Saturday and Sunday tell the same story, which makes it more likely to be real than a qualifying-only quirk.
The results follow. Jolpica's race results give Hamilton 135 points to Leclerc's 225 in 2025 (Grands Prix only) and 240 to 216 in 2026 after 21 rounds. Hamilton finished ahead of Leclerc in the results order in 4 of 24 races in 2025 and 11 of 21 in 2026. Points also depend on retirements and strategy, so they are the weakest of the three measures, but they point the same way.
3. The history behind it
How unusual was 2025 for Hamilton? His median gap to every teammate since 2013:
year mate n med lo hi h2h
2013 rosberg 19 -0.193 -0.494 +0.123 11-8
2014 rosberg 18 +0.092 -0.200 +0.256 7-11
2017 bottas 19 -0.356 -0.526 +0.026 13-6
2021 bottas 22 -0.225 -0.535 -0.127 17-5
2022 russell 22 -0.033 -0.258 +0.206 13-9
2023 russell 22 +0.022 -0.303 +0.185 11-11
2024 russell 24 +0.224 +0.092 +0.388 5-19
2025 leclerc 23 +0.277 +0.119 +0.356 5-18
2026 leclerc 21 +0.047 -0.014 +0.181 8-13
(Selected seasons; the script prints all fourteen.)

📊 Figure (described): One point per season, coloured by teammate, with bootstrap 95 % intervals. Against Rosberg (2013–2016) and Bottas (2017–2021) the points sit mostly below zero; against Russell they rise through zero to +0.22 % in 2024; against Leclerc they are +0.28 % in 2025 and back near zero in 2026. The takeaway: 2025 was not an isolated bad year but the continuation of a trend that started in 2023–2024, and 2026 broke it.
Only two seasons in this history have intervals entirely above zero: 2024 against Russell and 2025 against Leclerc. Both were seasons where Hamilton lost the head-to-head by more than 3 to 1. Two seasons in which his interval sits entirely below zero, 2018 and 2021, were both against Bottas.
4. Putting the three measures together
| Measure | 2025 | 2026 |
|---|---|---|
| Qualifying gap, Hamilton − Leclerc (median, 95 % CI) | +0.277 % (+0.119 to +0.356) | +0.047 % (−0.014 to +0.181) |
| Qualifying head-to-head (Hamilton) | 5–18 | 8–13 |
| Race-pace gap, same compound (median, 95 % CI) | +0.304 % (+0.199 to +0.656) | +0.012 % (−0.125 to +0.257) |
| Races with Hamilton faster on pace | 3 of 20 | 9 of 18 |
| Ahead in the results order | 4 of 24 | 11 of 21 |
Three measures built from different data (Jolpica qualifying times, OpenF1 race laps, Jolpica results) agree on the direction and roughly on the size in each season. That agreement is worth more than any single interval. A qualifying-only change could reflect run plans or tows; a race-only change could reflect strategy splits. When both move together, the simplest reading is that the underlying one-lap and long-run pace difference between the two drivers changed.
Notice also what the table does not show: a smooth trend. The change happened between seasons, at a regulation reset, and the within-season halves of each year are similar. Any model that lets a driver's rating drift slowly (exercise E1) would need several rounds of 2026 data before it caught up with the new level; exercise C3 asks you to measure how many rounds Elo needed for the Mercedes pair.
What it means (and doesn't)
What the data support. In 2025 Leclerc was clearly faster than Hamilton at Ferrari, by about a quarter of a percent, on Saturday and Sunday. In 2026 the pair were close to level on both, and the data cannot separate them.
What the data cannot say. Why the gap closed. Candidate explanations include Hamilton adapting to the team and the car, the 2026 car's characteristics suiting him better, changes in setup direction, and Leclerc's own form. They all predict the same timing data. Equally, the 2024–2025 decline could be age, the cars of that era (the ground-effect cars of 2022–2025), the strength of two very quick teammates, or a mix. A teammate gap tells you the size of a difference inside one car; it does not tell you the cause.
What it means for ratings. A career-long rating such as the teammate chain of 21.7 averages all of this into one number. Hamilton's rating mixes his strongest seasons against Bottas with his 2024–2025 deficits. Any statement that uses that number to compare him with a driver from a different era is comparing averages over different career phases.
Discussion questions
- The 2026 qualifying median (+0.047 %) and race median (+0.012 %) both sit near zero. Is agreement between two noisy measures stronger evidence than either alone? What would make it weaker?
- In 2025, four Ferrari comparisons used Q1 times. Why might comparisons from Q1 be noisier or systematically different from Q3 comparisons?
- Points (135 vs 225 in 2025) differ far more than pace (0.3 %). Use what you know about grid position and overtaking (Chapters 16, 17 and 35) to explain why small pace gaps become large points gaps.
- Suppose Ferrari ran different floor specifications on the two cars for part of 2025. How would that show up in this analysis, and could you detect it from timing data alone?
- Elo (21.5) ranks Leclerc well above Hamilton; the teammate chain puts them within 0.1 %. Using this case, explain why the two methods disagree.
Your turn
Repeat this analysis for Norris vs Piastri at McLaren, 2023–2026 (four seasons as teammates). Run
ratings.head_to_head and ratings.teammate_race_pace for each season and produce the three charts of
this case study for that pair. The chapter's scatter (21.3) already shows the McLaren race-pace gaps
(Norris −0.428 %, −0.262 %, −0.034 % and −0.475 % relative to Piastri for 2023–2026; qualifying
−0.215 %, −0.126 %, −0.035 % and −0.119 %). Your write-up should answer: in which season was the pair
closest, does race pace agree with qualifying every year, and which season's interval includes zero?