The Elo algorithm is a method for calculating the relative skill levels of players in competitive games or activities, most famously used in chess but also applied in sports, video games, and other ranking systems. Here's a structured explanation of how it works:
Core Concepts
- Player Ratings: Each participant has a numerical rating that represents their skill level. Higher ratings indicate stronger players.
- Expected Outcomes: Before a match, the algorithm predicts the probability of each player winning based on their ratings.
- Rating Adjustments: After a match, ratings are updated to reflect the actual outcome compared to expectations. The magnitude of the change depends on a K-factor (a constant that determines sensitivity to results).
Step-by-Step Process
1. Calculate Expected Scores
For two players, A (rating ( R_A )) and B (rating ( R_B )):
2. Determine Actual Outcome
- Win: The winner receives ( S = 1 ), the loser ( S = 0 ).
- Draw: Both players receive ( S = 0.5 ).
3. Update Ratings Using the K-Factor
- The K-factor (( K )) determines how much ratings change. Common values include 16, 24, or 32, with higher ( K ) leading to larger adjustments.
- New Rating for Player A:
[
R_A' = R_A + K \times (S_A - E_A)
]
- New Rating for Player B:
[
R_B' = R_B + K \times (S_B - E_B)
]
- Key Insight: If a player performs better than expected (e.g., an underdog wins), their rating increases significantly. Conversely, overperforming favorites see smaller changes.
Example
Suppose Player A (1500 rating) plays Player B (1400 rating):
- Expected Scores:
[
E_A = \frac{1}{1 + 10^{(1400-1500)/400}} \approx 0.64 \quad (64% \text{ chance to win})
]
[
E_B = 1 - 0.64 = 0.36
]
- Outcome: Player A wins (( S_A = 1 ), ( S_B = 0 )).
- Rating Updates with ( K = 32 ):
- Player A: ( 1500 + 32 \times (1 - 0.64) = 1500 + 10.88 = 1510.88 )
- Player B: ( 1400 + 32 \times (0 - 0.36) = 1400 - 11.52 = 1388.48 )
Key Features
- Zero-Sum: Total rating points remain constant; one player’s gain equals the other’s loss.
- Adaptive: Ratings adjust based on performance relative to expectations.
- Stability vs. Sensitivity: The K-factor balances responsiveness (higher ( K )) and stability (lower ( K )).
Applications & Limitations
- Used In: Chess, video games (e.g., League of Legends), esports, and sports rankings.
- Limitations:
- Assumes outcomes depend only on skill (ignores luck, teamwork, or external factors).
- Doesn’t account for schedule strength (e.g., beating weak opponents inflates ratings).
- Pairwise system; complex for multi-team scenarios (variations like Glicko address this).
Why 400?
The denominator 400 in the exponent ensures that a 400-point difference corresponds to a 10:1 odds ratio (e.g., a 400-point higher-rated player is expected to win ~91% of the time). This scaling makes the system intuitive and consistent.
Summary
The Elo algorithm dynamically adjusts player ratings based on match outcomes, balancing stability and responsiveness. By comparing expected vs. actual results, it provides a simple yet effective way to rank competitors in competitive environments.