Exercises — Chapter 30: The Elo Rating System

Difficulty: ⭐ recall and arithmetic · ⭐⭐ apply to a position or a dataset · ⭐⭐⭐ judgment, design or multi-step analysis · ⭐⭐⭐⭐ open-ended research.

All engine evaluations are Stockfish 19 from White's point of view. All positions come from real 2025–2026 OTB games in the book's broadcast data in which a player rated 2650+ lost to an opponent rated 250+ points lower; the diagrams and engine lines are produced by code/10_positions.py.


Part A — Concepts ⭐

A1. Compute, without code, the expected score of a 1720 against a 1520, and of a 2540 against a 2340. What assumption of the Elo formula does the comparison illustrate?

Answer

Both gaps are 200 points, so both expected scores are 1/(1+10^(−0.5)) = 0.760. The formula assumes a gap means the same at every level. Section 30.4 shows that assumption fails online (the favourite's shortfall shrinks from about −9 points at Lichess 1400–1599 to about −3 at 2400+) and is only approximately true OTB.

A2. A player rated 1600 (K = 20) plays five games against opponents rated 1500, 1550, 1650, 1700 and 1600 and scores 3/5. Using one FIDE-style rating period (ratings fixed at the start), what is the rating change? (Expected scores: 0.640, 0.571, 0.429, 0.360, 0.500.)

Answer

Expected total = 0.640 + 0.571 + 0.429 + 0.360 + 0.500 = 2.500. Change = 20 × (3 − 2.5) = +10. New rating 1610.

A3. Explain in two sentences why a draw against a much stronger player raises your rating.

Answer

A draw is a score of ½, and against a much stronger player your expected score is well below ½. Because the update is K × (S − E), any S above E raises your rating — for example a 1500 drawing a 1700 gains 20 × (0.5 − 0.24) = +5.2 with K = 20.

A4. State the three K-factors under current FIDE standard regulations and who gets each. Then explain why the rule gives the largest K to the youngest players.

Answer

K = 40 for new players until 30 rated games and for players under 18 rated below 2300; K = 20 for other players below 2400; K = 10 once a player has reached 2400 (permanently). Juniors' strength changes fastest, so their ratings need to move fastest to keep up; a small K would leave them badly underrated (the simulator in 30.7 shows the lag).

A5. What does a Glicko-2 rating deviation (RD) of 150 tell you, and how will it change the next rating update compared with an RD of 45?

Answer

The system is uncertain: the player's strength is roughly within ±294 points (1.96 × 150) of the rating. The update will be much larger — for a win against an equal opponent with RD 60, +54 points at RD 150 versus +5.9 at RD 45 (30.5) — and the RD will shrink noticeably after the game.

A6. Why do the expected scores of all players in a round-robin always add up to the total number of points available? Use the 2026 Candidates output in 30.2 as your example.

Answer

Each game's two expected scores add to exactly 1, and each game distributes exactly one point. Summed over all 56 games, both the expected and the actual totals equal 56 — which the script's zero-sum check prints ("Sum of expected scores 56.0 = sum of scores 56.0").

A7. Define "regression to the mean" as it applies to rating gaps, and explain why it makes the Elo formula over-predict favourites.

Answer

Ratings measure strength with error. Large observed gaps disproportionately include pairs whose gap was enlarged by error (an overrated favourite, an underrated underdog), so the average true gap behind an observed gap is smaller than the observed one. Applying the formula to the observed gap therefore overstates the favourite's edge — at a 200-point FIDE classical gap, 72.2% actual vs 76.0% predicted.

A8. True or false, with a reason: "Since Lichess ratings average around 1500 and the FIDE list's median is 1699, a Lichess 1500 equals roughly FIDE 1700."

Answer

False. The two are different pools with different populations, starting points (1500 vs a 1400 floor), rating systems (Glicko-2 vs Elo) and even different meanings of a gap (best-fitting scale ≈ 685 for Lichess blitz vs ≈ 478 for FIDE classical). Matching medians matches populations, not players.

A9. A player scores 0/7 in a tournament. Why can the iterative performance-rating method not return a finite number, and what does the toolkit do instead? What does that tell you about performance ratings from very short events?

Answer

The iterative method looks for the rating R at which the sum of expected scores equals the actual score. Expected scores are always above 0, so no finite R gives a total of exactly 0. The toolkit (like FIDE's table) caps the difference at 800 points below the average opponent. A cap is a convention, not an estimate — a clear sign that a handful of games cannot pin down strength, especially with an extreme score.

A10. On Lichess, the median "effective K" (rating change ÷ (S − E)) is about 12 in every rating band from below 1000 to 2400+. Explain, using Glicko-2, why it is flat across bands, and why classical games show a higher and more variable effective K.

Answer

In Glicko-2 the size of an update depends on the player's RD, not on their rating. Active players at every level settle at a similar small RD (a 6-point gain for a win against an equal opponent corresponds to RD ≈ 45), so the effective K is the same everywhere. Classical has proportionally more players who are new or play rarely — high-RD, provisional ratings — so their changes are larger (26.4% of classical player-games moved by 20+ points vs 3.0% in blitz).


Part B — Positions ⭐⭐

Each position is the favourite's critical decision in a real upset. Find the move that holds — and explain why the game move failed. Solutions give Stockfish 19 at depth 22 with MultiPV 3 (best three moves), plus the evaluation after the move actually played.

B1. Find the safe move. Saric (2654) – Goldbeck (2396), 2025. White to move.

Exercise B1

♟️ Position: White Kg1, Qb3, Ra1, Rf1, Bd2, a3, b2, c4, d3, f4, g2, h3; Black Kg8, Qe6, Rf7, Rf8, Bg7, a6, b7, d4, d6, e5, g6, h7 — White to move. FEN: 5rk1/1p3rbp/p2pq1p1/4p3/2Pp1P2/PQ1P3P/1P1B2P1/R4RK1 w - - 1 20

Solution

Stockfish 19, depth 22, MultiPV 3: 20.Qd1 −0.60, 20.Rae1 −0.70, 20.Qb6 −0.97. The game went 20.fxe5?, after which the position is −5.94 (engine line 20...Bxe5 21.Qb6 Bh2+ 22.Kxh2 Rxf1). Taking on e5 opens the f-file, where Black's rooks are already doubled against the lone f1-rook, and frees the g7-bishop to give a check on h2 that drags the white king away from the defence of f1. The safe moves keep the f-file closed and bring a second defender towards the kingside. White had 42.7 minutes after the move — this was not time trouble.

B2. Only move. Donchenko (2665) – Reuker (2380), Bundesliga 2026. White to move; the clock was down to its last minutes.

Exercise B2

♟️ Position: White Kh1, Qc2, Ra5, Rd1, Be3, Bg2, b3, c4, f2, h3, h5; Black Kg8, Qe6, Re8, Rf8, Bg7, Nf3, c5, d6, e4, g5 — White to move. FEN: 4rrk1/6b1/3pq3/R1p3pP/2P1p3/1P2Bn1P/2Q2PB1/3R3K w - - 0 36

Solution

Depth 22, MultiPV 3: 36.Rd5! −0.52, then a cliff: 36.Qe2 −2.98, 36.Ra7 −3.75. The game move 36.Ra6? gives −6.96 (36...Qe5 and the queen joins the f3-knight against h2). Only 36.Rd5 keeps Black's queen off the long dark diagonal by controlling e5 along the fifth rank. White had 2.3 minutes left after the move — a textbook case of an only-move position meeting a short clock (Chapter 13).

B3. Defend first. Bluebaum (2689) – Chinguun (2389), 2026. White to move.

Exercise B3

♟️ Position: White Kg2, Qd1, Re1, Rg1, Bf2, a4, d5, e4, f3, h4; Black Kh8, Qe7, Rc3, Rd8, Ng6, a7, b6, f4, g7, h7 — White to move. FEN: 3r3k/p3q1pp/1p4n1/3P4/P3Pp1P/2r2P2/5BK1/3QR1R1 w - - 5 32

Solution

Depth 22, MultiPV 3: 32.Qd2 −0.09, 32.Bd4 −0.20, then 32.Re2 −2.43. The game's 32.Rh1? is −4.46 (32...Ne5, hitting f3 while the c3-rook invades). Both good moves deal with the c3-rook and the weak f3-pawn first; 32.Rh1 defends the h4-pawn, which was not the problem. With 26.3 minutes left this was a judgment error, not a clock error.

B4. Don't loosen the king. Itgelt (2435) – Liang (2693), Olympiad 2026. Black to move (Black is the favourite).

Exercise B4

♟️ Position: White Kh2, Qc3, Re1, Rf1, Bg2, Nd4, b4, d5, e4, f4, g4, h3; Black Kh7, Qd8, Ra2, Re8, Bd7, Ng7, b5, c4, d6, f7, g6, h6 — Black to move. FEN: 3qr3/3b1pnk/3p2pp/1p1P4/1PpNPPP1/2Q4P/r5BK/4RR2 b - - 6 30

Solution

Depth 22, MultiPV 3: 30...Qe7 +0.47, 30...h5 +0.48, 30...Qh4 +0.65. The game's 30...f6? is +2.06 (31.Ra1, trading Black's active rook off the a-file). The pawn move weakens e6 and the g6-pawn's support while giving up Black's only active piece. Moves that keep Black's pieces active and the a-file in Black's hands (30...Qe7 eyeing e4 behind the e8-rook, or 30...h5 against g4) hold an almost level game.

B5. The only square for the rook. Concio (2405) – Christiansen (2656), Olympiad 2026. Black to move.

Exercise B5

♟️ Position: White Kg1, Qc3, Ra1, Rd1, Nd6, a2, c6, f2, f4, h2; Black Kf8, Qa8, Rh8, Be2, Nf6, a7, b6, e6, f7, g7, h3 — Black to move. FEN: q4k1r/p4pp1/1pPNpn2/8/5P2/2Q4p/P3bP1P/R2R2K1 b - - 0 22

Solution

Depth 22, MultiPV 3: 22...Rh5! +0.17; then 22...Rh6 +5.00 and 22...Rh4 +5.35. The rook has to reach the fifth rank because from h5 it swings to c5 (the engine's line 22...Rh5 23.Rdc1 Rc5) and stops the c6-pawn. The game's 22...Rh6? is +4.82: the rook is one rank short, and the passed pawn decides. Black had 33.4 minutes left — the clock was not the issue; the geometry was.

B6. Challenge the invader. Priasmoro (2408) – Christiansen (2659), 2026. Black to move.

Exercise B6

♟️ Position: White Kg1, Ra1, Rc7, Ba3, Bg2, Na4, Nd2, a2, b5, d4, e3, f2, g3, h2; Black Kg8, Ra8, Rd8, Bg4, Bg7, Nb8, Nf6, a7, b7, d5, e4, f7, g6, h7 — Black to move. FEN: rn1r2k1/ppR2pbp/5np1/1P1p4/N2Pp1b1/B3P1P1/P2N1PBP/R5K1 b - - 2 20

Solution

Depth 22, MultiPV 3: 20...Rc8! +0.31 (trading off the rook on the seventh: 21.Rac1 Rxc7 22.Rxc7), then 20...Bf8 +2.46 and 20...Ne8 +2.56. The game's 20...Ne8? is +2.43 after 21.Rxb7. A rook on the seventh rank with the queenside undeveloped (b8-knight, a8-rook) is worth more than a pawn; the principle — challenge the invader on the file it came from — was the only good option.


Part C — Data & Code ⭐⭐–⭐⭐⭐

C1. Database research ⭐⭐. Extend code/02_calibration.py to print the OTB rapid shortfall by level (gap 100–299, average FIDE bands 1400–1599 … 2400+), in the same format as the classical and Lichess tables. Expected output: a six-row table (n, expected, actual, diff_pp, lo_pp, hi_pp). Does rapid look more like OTB classical or like Lichess blitz?

C2. Database research ⭐⭐⭐. Use rt.fit_scale separately for each average-rating band of OTB classical games and of Lichess blitz games. Expected output: two short tables of (band, n, fitted scale). Prediction to test: the Lichess scale should fall towards 400 as the level rises; does the OTB scale do the same?

C3. Engine-free analysis of rating changes ⭐⭐. In code/03_k_factors.py, the effective K for Lichess classical is higher and more variable than for blitz. Count, by speed, the share of player-games where the absolute rating change is at least 30 points, split by the player's own band. Expected output: a band × speed table of percentages. Explain the result in terms of RD.

C4. Glicko-2 parameters ⭐⭐. Rerun Glickman's worked example (30.5) with τ = 0.3 and τ = 1.2, and then with the three results reversed (loss, win, win). Expected output: four lines of (τ, results, r', RD', σ'). Which parameter changes the outcome most, and why does τ barely matter for a single rating period?

C5. Simulator ⭐⭐. Use rt.rating_noise to compare the noise of a K = 20 rating for draw rates of 0.05 (online-like), 0.25 and 0.45 (elite-like). Expected output: three lines of (draw rate, SD, 90% band). Explain why draws make a rating less noisy.

C6. Database research ⭐⭐⭐. In code/07_juniors_deflation.py, replace age groups by the FIDE list's K-factor (std_k: 10, 20, 40). Expected output: a three-row residual table with intervals. Is K = 40 a better or a worse marker of "underrated" than age under 18? (Remember that the list's K is the K at the end of the window.)

C7. Tournament analysis ⭐⭐. Use code/08_performance_rating.py on any other round-robin in the broadcast data (search event for "Norway" or "Tata Steel"). Expected output: the score table with expected scores, the three performance-rating methods and K = 10 rating changes; identify the largest over-performance.

Hints for C1–C7

C1: filter otb[otb.speed == "rapid"] and reuse the level loop. C2: loop over pd.cut(avg, level_bins) groups and call rt.fit_scale(gap[m], sc[m]). C3: use P.d.abs() >= 30 grouped by cd.rating_bands(P.r) and speed. C4: rt.glicko2_update(rt.Glicko2Player(1500, 200, 0.06), games, tau=...). C5: rt.rating_noise(20, draw_rate=...); a draw moves the rating by K(0.5 − E), a smaller step than a decisive result when E is near 0.5. C6: merge std_k like birth_year. C7: table("Tata Steel") after adapting the event filter.


Part D — Judgment & Transfer ⭐⭐⭐

D1. A 1200-rated club player and a 2000-rated club player each say: "I'm 150 points above my opponent tonight, so I should score about 70%." Using the OTB and Lichess shortfall tables in 30.4, explain how good each prediction is if the game is (a) OTB classical, (b) Lichess blitz.

Answer

The formula gives 70.3% at a 150-point gap. OTB classical favourites fall short by about 1–5 points depending on level (−1.4 in the FIDE 1400–1599 band, −5.0 at 2000–2199 for gaps of 100–299), so both players should expect roughly 65–69%. Online the shortfall is much larger at lower levels (−9.2 at Lichess 1400–1599 vs −5.1 at 2000–2199), so the lower-rated player's "70%" is the more over-confident of the two. In every case, it is a prediction over many games, not tonight's.

D2. A coach tells a 45-year-old student: "Your rating dropped 35 points this season, so your training isn't working." Using 30.7, write the reply.

Answer

With K = 20 and constant strength, a rating wanders ±63 points around the truth 90% of the time; in simulated 40-game seasons, an adult whose strength barely changed (−4/yr, the panel median for adults) ended the season lower in 52% of runs. A 35-point drop is within normal noise. Judge the training on more games and on direct measures — score against expectation, accuracy, time use — not on one season's rating.

D3. An organiser wants to seed a junior tournament by FIDE rating alone. Using 30.8 and Case Study 2, what would you recommend, and what are the limits of your advice?

Answer

Juniors beat their ratings by about 1.7–1.8 points per 100 games on average (12–17), and the out-of-sample age adjustment values 12–14-year-olds about 35 points above their ratings. Within an all-junior field this matters less (everyone is underrated), but the fastest improvers — often the youngest with the fewest games — are the most underrated. Recommend seeding by rating but using the most recent available rating (including national ratings or recent performance), and accept that seeding is noisy. Limits: these are group averages from broadcast-level events; they say nothing about any individual child.

D4. Engine versus rating: a 2700 plays a 2400 and loses. Stockfish says the 2700's ACPL in the game was 42 and the 2400's 21. Does the game tell you the 2400 is "really" stronger? What would?

Answer

No. One game is one draw from a distribution; in OTB classical games with a 300–399 gap the underdog takes about 16% of the points, and in upsets the favourite's ACPL is typically about double the underdog's (40.8 vs 20.9 in 30.4) — that is what upsets look like. Evidence that the 2400 is stronger would require many games (a performance rating over dozens of games with a confidence interval) or a large sample of positions analysed for accuracy — and even accuracy depends on the positions and opponents (Chapter 32).


Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐

M1. (with Chapter 13) ⭐⭐. Exercise B2 was played with about two minutes on the clock and was an only-move position. Using Chapter 13's findings on only-move positions and blunder rates by remaining clock, explain why this combination is the single most dangerous situation for a favourite — and what the favourite could have done 15 moves earlier to avoid it.

M2. (with Chapter 20) ⭐⭐. Dev's composite Najdorf score was 36.0% [24.1–49.9] in 50 games. Compute his expected score in those games under the assumption that opponents were rated exactly as he was, and then use the simulator idea from 30.7 to argue how many games he would need before a 10-point gap in score could be distinguished from noise.

M3. (with Chapter 24) ⭐⭐⭐. Chapter 24's scouting tool compares an opponent's score in a line with their own average rather than with the raw Elo expectation. Using the calibration results of 30.3, explain why that is the right design for online opponents in particular.

M4. (with Chapter 1) ⭐⭐. Both the win-% model (engine eval → expected score) and the Elo formula (rating gap → expected score) are logistic curves. For each, name one reason the curve over-states the stronger side's score at lower levels.

M5. (with Chapter 27) ⭐⭐⭐. Grace (composite, FIDE ~1850, K = 40) plays a 9-round open. Using rt.expected_points and rt.fide_k_factor, build a table of what her rating change would be for scores of 3, 4½ and 6 out of 9 against an average opposition of 1900. Then explain why a +60 event would still be weak evidence of real improvement (30.7).

Answers for M1–M5 (outline)

M1: Only-move positions produce far more errors than positions with several safe moves, and blunder rates rise sharply as the clock runs down; together they multiply. Earlier: bank time in the opening and early middlegame (Chapter 13's time budget), and steer towards positions with several safe moves when short of time. M2: With equal ratings his expected score is 50% per game. A 10-point gap in score needs a standard error of about 5 points to reach two SEs; with game-score SD ≈ 0.5, SE = 0.5/√n → n ≈ 100 games, and more with draws accounted for. The simulator makes the same point for ratings: a 50-point strength change needs dozens of games to show. M3: Online, the Elo formula over-predicts favourites by up to 10+ points at large gaps, so a raw comparison would flag many lines as "weak" for strong players simply because of calibration. Comparing with the player's own average cancels that bias. M4: Win %: lower-rated players convert advantages less reliably (Chapter 1's +3.00 example). Elo: lower-level ratings are noisier, so gaps are exaggerated (regression to the mean), especially online. M5: For K = 40 and nine opponents at 1900, expected ≈ 9 × 0.429 = 3.86 points; changes ≈ 40 × (3 − 3.86) ≈ −34, 40 × (4.5 − 3.86) ≈ +26, 40 × (6 − 3.86) ≈ +86. A +60 swing is within the noise band of a K = 40 rating (SD ≈ 53, 90% within ±88 for constant strength).


Part E — Research & Extension ⭐⭐⭐⭐

E1. A draw-aware rating model. The Elo formula predicts only an expected score. Using the OTB classical data, fit a model that predicts win, draw and loss probabilities separately from the rating gap and the average rating (for example an ordered logistic model with scikit-learn or a simple multinomial fit). Compare its log loss on the test half of Case Study 2 with system C. Does knowing the average rating improve predictions of draws specifically?

E2. Online drift. The common claim that online ratings drift upward cannot be tested with a 34-hour sample. Design a study that could test it using the Lichess open database (which is published monthly): what would you download, what would you measure (hint: the rating of a fixed strength, e.g. players' results against bots of fixed strength, or the rating distribution of players with a long history), and what confounds would you need to remove?

E3. Tune Glicko-2. Grid-search the starting RD (50–200), the RD floor (30–80) and τ (0.3–1.2) for the live Glicko-2 system in Case Study 2, fitting on the training half only. Report the best test log loss. Can a tuned Glicko-2 beat system D (official ratings + age)? Write up what the best parameters imply about how fast OTB players' strength changes.