Strikingloo

Elo Score

In Elo ratings, a player’s expected score is defined as their probability of winning plus half their probability of drawing. That is, if the payoff for winning were 1 and for drawing .5, the expected utility of playing.

If players A and B have ratings RA, RB, the expected score of player A vs B is EA = 1/(1 + 10\^(RA - RB)/400). That 400 makes it so that a 200 points difference predicts a score of .75 for player A.

Another way of expressing this would be EA = QA/(QA + QB). Where QA = 10\^(RA/400). This way we can see the sum of the expected scores is always 1.

It then follows that for each 400 rating points of advantage over the opponent, the expected score is magnified ten times in comparison to the opponent’s expected score. (e.g. both at 1500 => 50\%. 1900 vs 1500 => 10/11 odds for the stronger one).

After a game, a player A’s rating is updated as

R’A = RA + K * (SA - EA)

Where S is the actual score the player got, and E the expected one, while K is some constant bound for maximum update.

In effect, the Elo rating is training a sigmoid that predicts probability of winning given the two ratings, assuming prob{A wins} = sigmoid(RA,B) = 1/(1 + 10\^(RB - RA)/s) for some s (typically 400).

Then the update step is RA <- RA + K * (SA - A)

for K = η* log (10/s)

This is so because log(10/s) * (SA - A) is the gradient of the loss of the sigmoid (a cross entropy for the prob of winning).

[Share on twitter]

16 Sep 2023 - importance: 5