Chapter 30 Instructor Notes: The Elo Rating System

Chapter text · Case study 1 · Case study 2 · Exercises · Quiz · Key takeaways

Chapter 30 opens Part VI, the data-science half of the book, with the number every player knows and few understand. Its central move is one sentence: a rating is a prediction, not a prize. Once students accept that, the rest of the chapter is a test of the prediction — on 208,460 OTB classical games and about four million Lichess games — and the verdict is mixed in an instructive way. The ranking is right everywhere; the size of the predicted edge is too large everywhere. The best-fitting scale is about 478 for FIDE classical and 670–750 for Lichess, not 400.

It is a mathematical chapter, but every formula is anchored to a game (Erigaisi–Laohawirapap, Pert–Van Foreest, Toncheva–Antón Guijarro) and to a cast member's question (Grace's K-factor, Dev's six points a game, Lena's two ratings, Sam's inflation). Keep both anchors visible.

Learning objectives

By the end, students should be able to:

  1. Compute expected score with the logistic formula, explain Elo's original normal model, and use the rules of thumb (100 ≈ 64%, 200 ≈ 76%, 400 ≈ 91%).
  2. Apply the update rule R' = R + K(S − E) with FIDE's K-factors, and compute a performance rating by three methods.
  3. Read a calibration table and explain why favourites fall short (regression to the mean, players changing faster than ratings), and what a fitted scale means.
  4. Describe how gaps behave at different levels and in different pools, including draw rates and the anatomy of upsets.
  5. Explain Glicko-2's rating deviation and volatility, and verify an implementation against a published example.
  6. Read real rating distributions with named pools, and refuse unsupported conversions.
  7. Use a simulator to separate rating noise from rating lag, and say how many games a rating needs to reflect a change.
  8. Explain the leaks in the rating "economy" and who beats their rating (juniors, older players; women and men equally predicted).

Timing plan

75-minute session

Minutes Activity Notes
0–8 Hook: Erigaisi–Laohawirapap Board demo below; then the 9.3% vs 15.9% upset rate.
8–18 30.1–30.2 the model and the update Rules of thumb; draw vs a stronger player is a gain; K-factors from the FIDE list.
18–32 30.3 calibration and fitted scale Data demo below. 72.2% not 76%; scale 478 vs 685.
32–42 30.4 level and upsets Lichess −9.2 at 1400–1599 vs −2.7 at 2400+; favourites below 5 minutes in 55.0% of upsets.
42–52 30.5 Glicko-2 The productive struggle (+175 vs +5.9 for the same win).
52–64 30.7 the simulator Noise ±63 at K = 20; a +50 change shows half of itself after 40 games in 61% of runs.
64–72 30.8 who beats their rating Juniors 45.3% vs 38.9% expected against adults; women and men both ≈ 0.
72–75 Exit ticket

3-hour block

Minutes Activity Notes
0–15 Hook; students compute both rating changes by hand −9.1 and +18.1.
15–40 30.1–30.2 Worked updates, a five-game rating period (Exercise A2), performance ratings from the Candidates.
40–70 30.3–30.4 Students fit a scale by eye from the calibration figure before seeing 478.
70–80 Break
80–105 30.5 Glicko-2 Walk the eight steps; reproduce Glickman's example (1464.05 / RD 151.52).
105–125 30.6–30.7 Distributions; the three-player season simulation.
125–145 30.8 The four leaks; inflation and deflation at once.
145–170 Case Study 1 (the 337-point upset) or Case Study 2 (prediction contest) Analysts take CS2, competitors CS1.
170–180 Exit ticket

Key numbers and games

Item Value as quoted Where
Erigaisi (2759)–Laohawirapap (2363), Olympiad 2026 r1 Expected 90.7%; 28.h4! +1.42 (d24) vs 28.Bxd3 −0.20; 50.Qf4 0.00 (d20) vs 50.Qg7? −7.45 (d24); clocks 9.4 vs 1.4 min; changes −9.1 (K10) / +18.1 (K20) Hook
Upsets at 300–399 Formula 9.3% for the underdog; actual 15.9% of points (7.7% wins, 16.4% draws), n = 17,826 Hook
Logistic vs normal Never more than 1.5 percentage points apart 30.1
FIDE K-factors (223,908 active) K40 55.9%, K20 42.3%, K10 1.8%; under-18 99.2% on K40; 2300–2399 58.1% on K10 30.2
Candidates 2026 Sindarov 2911 (iterative) / 2921 (linear) / 2910 (FIDE table); +31 at K = 10 30.2
Calibration at 190–209 OTB classical 72.2%, rapid 71.5%, blitz 70.6%; Lichess bullet 68.6, blitz 68.0, rapid 66.7, classical 66.2 (formula 76.0%) 30.3
OTB classical overall Expected 70.8% vs actual 67.9% (n = 208,460) 30.3
Fitted scale OTB classical 478, rapid 492, blitz 523; Lichess 670–750 (blitz 685) 30.3
Log loss (OTB classical) 0.5992 at 400; 0.5966 fitted; coin 0.6931 30.3
White's edge in rating points +31.8 ± 1.6 OTB classical; +12.5 ± 0.5 Lichess blitz 30.3
Shortfall by level, gaps 100–299 Lichess blitz −9.2 (1400–1599) → −2.7 (2400+); OTB −1.4 → −5.0 (2000–2199) → −2.8 30.4
Draw rate, near-equals OTB 23.7% (1400–1599) → 60.2% (2400+) 30.4
Underdog wins outright, 200–299 Lichess blitz 27.1%; OTB classical 11.8% (draws 23.7%) 30.4
Upset anatomy (OTB, gap 200–399) Favourite blundered first 60.7%; favourite below 5 min 55.0% vs 27.9% when favourite won 30.4
Pert (2409)–Van Foreest (2716) 24...Rd5 0.00 (d24) vs 24...Rd6?? +6.17; expected 0.854 30.4
Glicko-2 check Our 1464.05 / RD 151.52 vs Glickman's 1464.06 / 151.52 30.5
One win vs equal opponent RD 45 → +5.9; RD 350 → +175.1 30.5
Lichess effective K Median 11.6 (blitz), 12.0 (rapid); typical win +6 30.5
Distributions Lichess medians: blitz 1520, rapid 1442, bullet 1622; FIDE active median 1699, floor 1400; 2400+ 0.76% (1,705) 30.6
Simulator noise K10/20/40: SD 27.1 / 38.3 / 53.3; K = 20 within ±63 90% of the time 30.7
Simulator lag +50 at K = 20: any gain after 40 games 86%, half the gain 61% 30.7
One season (40 games) Junior +73/yr K40 shows a loss 19% of runs; adult −4/yr K20 52%; +150/yr K20 lags a median 93 30.7
Age residual (205,367 OTB games) 12–14 +1.8, 15–17 +1.7, 18–24 +1.2, 40–59 −3.2, 60+ −4.0 points per 100 30.8
Juniors vs adults 45.3% vs 38.9% expected (+6.4, n = 30,535) 30.8
Women vs men (adults) +0.15 [−0.60, +0.89] vs −0.02 [−0.25, +0.22] 30.8
Toncheva (2320)–Antón Guijarro (2657) Expected 12.6%; 17...Nh4 +0.97 vs 17...Nf8 → +2.05 (d24); ACPL 14.7 vs 28.7 Case Study 1
Prediction contest (123,219 test games) Log loss A 0.60153 → D (edge, scale 471, age) 0.59309; live Elo 0.59565; live Glicko-2 0.59609 Case Study 2

Threshold concepts and likely misconceptions

Threshold concept: a rating is a prediction. Students who cross it stop asking "is my rating fair?" and start asking "how well does it predict, in which pool, at which gap?" That is the question every later Part VI chapter asks of its own metric.

Second threshold: noise and lag are a trade-off, not a bug. A rating can be fast or stable, not both. K and RD are two ways of choosing.

Misconceptions to expect:

  • "200 points means I should win three in four." 72.2% OTB classical; 66–69% online.
  • "The formula is wrong, so ratings are useless." The ranking is right in every pool and gap bin; only the edge's size is too big.
  • "Lichess = FIDE + 300" (or any fixed offset). Pools differ in start, floor, system and population. Even a gap means something different (scale 685 vs 478).
  • "The favourite falls short because of the first move." Favourites have each colour equally often; the cause is noisy ratings and players changing faster than ratings.
  • "A performance rating is my new rating." Over nine games its standard error exceeds 100 points.
  • "Upsets mean the underdog was secretly stronger." Upsets are mostly favourites beating themselves, often under the clock.
  • "My rating dropped 40 points this month, so I'm getting worse." Ordinary noise at K = 20.
  • "A bigger K fixes lag." It trades lag for noise.
  • "Chess.com's median is 800." The book can't check it: no Chess.com population in the data.
  • "Ratings must be biased against women." Among adults, the formula predicts women's and men's results equally well.

How the four tracks use this chapter

  • ♟️ Improver: 30.1–30.3 (what a rating means), 30.6 (where you sit) and 30.7 (how many games before your rating tells you anything); the Decision Checklist. Exercises A1, A3, A8, B1–B6, D1, D2.
  • 📊 Analyst: 30.3–30.4 calibration and level, 30.8 residuals and the fairness check, Case Study 2's out-of-sample contest. Exercises A7, A10, C1, C2, C3, C6, D3, D4, E1, E2.
  • 🏆 Competitor: K-factors and performance ratings (30.2), upset anatomy with two real upsets (30.4), Case Study 1. Exercises A2, A4, A6, A9, C7, M5.
  • 💻 Developer: The Project Checkpoint, ratings.py: expected_score (and scaled/normal variants), elo_update, elo_series, fide_k_factor, performance_rating, Glicko2Player/glicko2_update (verified against Glickman's example), calibration_table, fit_scale, log_loss, brier, simulate_elo, rating_noise, games_to_detect. Exercises C4, C5, E3.

Running the code

Script What it shows Notes
code/ch30_common.py Palette, Wilson interval, OTB loader (both FIDE ≥ 1400), column-pruned Lichess loader —
code/01_elo_model.py Logistic vs normal; worked updates Seconds
code/02_calibration.py Seven calibration tables; fitted scales; log loss About 30 s
code/03_k_factors.py FIDE K mix; Lichess rating changes and effective K
code/04_distributions.py Lichess and FIDE distributions Percentiles match the book's reference table; player counts differ by a few hundred because of filtering
code/05_glicko2.py Glickman's worked example; the one-win RD table
code/06_simulator.py Noise, lag, three seasons About 20 s; seeded
code/07_juniors_deflation.py Age residuals; juniors vs adults; women and men
code/08_performance_rating.py, 09_upsets.py (SF19 d16, 14 games), 10_positions.py (d20/22/24) Performance ratings; upset list; hook positions
case_study_01.py (d18 + d20/d24), case_study_02.py (about 70 s), project_checkpoint.py Case studies and module demo Outputs in code/out_*.txt

Expect 5 board diagrams in the text (16 board files in all) and 12 charts. Technical notes for students who extend the code: engine.evaluate returns a dict for multipv=1 and a list for multipv>1; the Women's Candidates event name contains a replacement character, so match with str.contains("Women"); and [%clk] values are the clock after the move. Case Study 2's Glicko-2 parameters (start RD 100, floor 50, τ 0.5) are the book's choices, not Lichess's.

In-class demos

Board demo

Project the hook position, Erigaisi–Laohawirapap before White's 28th move. State only the ratings (2759 vs 2363) and ask: "What's the formula's expected score?" (90.7%). Then: "The black knight on d3 blocks the c3-rook and eyes b2, e1, f2. What do you play?" Most will take it ("remove the intruder"). Reveal Stockfish 19: 28.h4! +1.42 (depth 24), only +0.92 at depth 20 — the engine needs depth too — against 28.Bxd3 −0.20. Ask what h4 is for (adding the h-pawn to the f6 wedge). Then jump to move 50: 50.Qf4 holds 0.00; 50.Qg7? loses to a net of checks (−7.45, depth 24), with the clocks at 9.4 vs 1.4 minutes. Finish with the arithmetic: −9.1 for Erigaisi at K = 10, +18.1 for his opponent at K = 20. "Two decisions under pressure, and two numbers that measure skill changed."

Data demo

Before showing anything, ask each student to write the favourite's score at a 200-point gap in three pools: FIDE classical, Lichess blitz, Lichess rapid. Most will write 76% three times. Project the 190–209 rows from 02_calibration.py: 72.2%, 68.0%, 66.7%. Then show the fitted-scale table and ask the class to interpret "478" in words. (A FIDE 200-point gap behaves like a 167-point gap on the formula's scale.) Close with the log-loss column: ratings beat a coin flip comfortably over the board (0.597 vs 0.693) but only barely online (0.680). Ask why. (Most online games are between near-equals.)

Exercise guidance

  • Part A: everyone. A2 (a five-game rating period: expected 2.5, change +10) and A9 (why 0/7 has no finite performance) are mechanical checks; A7 (regression to the mean) and A10 (why Lichess's effective K is flat) are conceptual.
  • Part B: six real upset-or-near-upset positions, each a "safe move" for the favourite or a defensive only move. B2 (Donchenko–Reuker, 36.Rd5! −0.52; the cliff is next to it) and B5 (Concio–Christiansen, 22...Rh5! +0.17) are only moves; B1 (20.Qd1 −0.60 vs 20.fxe5 −5.94), B3 (32.Qd2 −0.09), B4 (30...Qe7 +0.47) and B6 (20...Rc8! +0.31) reward the defensive reflex. Ask students to say which favourite-upset pattern from 30.4 each position illustrates.
  • Part C: C2 (fit the scale by band) and C6 (residuals by K-factor instead of age) are the best analysis tasks; C4 (Glicko-2 sensitivity to τ) and C5 (noise by draw rate) are the best coding tasks.
  • Part D: D2 (the coach and the 35-point drop) and D4 (one upset with ACPL 42 vs 21) are excellent short essays.
  • Part M: M2 (Dev's Najdorf through the Elo lens) and M5 (Grace's nine rounds) connect Part VI back to Parts IV–V.
  • Part E: E1 (a draw-aware model) is a natural semester project.

Assessment ideas

  1. Calculation set. Expected scores for three gaps; a rating period with mixed K; a performance rating by two methods; a Glicko-2 update given g(RD) and E values. Short, auto-gradable.
  2. Calibration report. Students run calibration_table and fit_scale on one pool and write a one-page report: is the formula well calibrated, what is the fitted scale, what does it mean in words, and what are the limits (pool, filter, sample size)?
  3. Short answer. "Why do underrated juniors push adult ratings down and the pool's total up at the same time?" A strong answer separates the transfer from adults (deflation for adults) from the K-factor asymmetry (more points enter the pool).
  4. Quiz. The chapter quiz (20 questions: multiple choice, true/false, short answer, one position) fits a 25-minute slot.
  5. Developer milestone. glicko2_update reproducing Glickman's example to two decimals, plus games_to_detect for the student's own K and a one-paragraph interpretation.