Minor updates/fixes to docs

main
Gabe Farrell 2 years ago
parent 39eee32cfb
commit cfcfd9362c

@ -1,6 +1,7 @@
# How Elo is Calculated # How Elo is Calculated
## Calculating the expected chance to win ## Calculating the expected chance to win
The probability a player has to win is calculated as follows: The probability a player has to win is calculated as follows:
$R_1=10^{Elo_1/V}$ $R_1=10^{Elo_1/V}$
@ -12,6 +13,7 @@ $E_1=R_1/(R_1+R_2)$
$E_2=R_2/(R_1+R_2)$ $E_2=R_2/(R_1+R_2)$
Where: Where:
- $Elo_1$ is the elo of player one, - $Elo_1$ is the elo of player one,
- $Elo_2$ is the elo of player two, - $Elo_2$ is the elo of player two,
- $V$ is the deviation parameter, - $V$ is the deviation parameter,
@ -20,22 +22,24 @@ Where:
There are two factors that influence the probability that a player has to win: the difference in elo, and the deviation parameter. The greater the difference in elo, the more likely it is for the higher-elo player to win, whereas the greater the deviation, the less likely the higher elo player to win. There are two factors that influence the probability that a player has to win: the difference in elo, and the deviation parameter. The greater the difference in elo, the more likely it is for the higher-elo player to win, whereas the greater the deviation, the less likely the higher elo player to win.
## Unscored (win/loss) matches ## Unscored (win/loss) matches
Scored matches have two factors that determines how much the players' elo will change after the match. These variables are the chance the winner had to win, and the other is the $K$-Factor. Scored matches have two factors that determines how much the players' elo will change after the match. These variables are the chance the winner had to win, and the other is the $K$-Factor.
The higher the $K$-Factor, the more rapid changes in elo will occur. Basically, with a higher $K$-Factor, more elo will be gained per win, and more will be lost per loss. The higher the $K$-Factor, the more rapid changes in elo will occur. Basically, with a higher $K$-Factor, more elo will be gained per win, and more will be lost per loss.
## Scored matches ## Scored matches
Scored matches have two variables that determine how much the players' elo will change after the match, other than the $K$-Factor and the probability the winner had to win. Scored matches have two variables that determine how much the players' elo will change after the match, other than the $K$-Factor and the probability the winner had to win.
- How dominant the scoreline was ($D$) - How dominant the scoreline was ($D$)
- The Score Weight parameter ($W$) - The Score Weight parameter ($W$)
The greater the dominance factor $D$ is, the more elo will move around. A dominant victory will result in more elo being The greater the dominance factor $D$ is, the more elo will move around. A dominant victory will result in more elo being
given to the winner, and more being taken from the loser. given to the winner, and more being taken from the loser.
And the greater the Score Weight parameter $W$ is, the more $D$ is taken into account when calculating elo, and the less elo The greater the Score Weight parameter $W$ is, the more $D$ is taken into account when calculating elo, and the less elo
will move around in general. Increasing W will result in only more dominant matches being given a large elo change, and closer will move around in general. Increasing $W$ will result in only more dominant matches being given a large elo change, and closer
matches only moving a small amount of elo. This overall reduction in elo changes can be counteracted by increasing $K$, which will matches only moving a small amount of elo. This overall reduction in elo changes can be counteracted by increasing $K$, which will
result in closer matches being given a moderate elo change, and dominant matches moving a lot of elo. result in closer matches being given a moderate elo change, and dominant matches moving a lot of elo.
@ -50,10 +54,11 @@ $Elo_W=K(S_1-E_W)$
$Elo_L=K(S_2-E_L)$ $Elo_L=K(S_2-E_L)$
Where: Where:
- $E_W$ is the expected win chance of the winner, - $E_W$ is the expected win chance of the winner,
- $E_L$ is the expected win chance of the loser, - $E_L$ is the expected win chance of the loser,
- $D$ is calculated as $Score_W/{(Score_W+Score_L)}$ - $D$ is calculated as $Score_W/{(Score_W+Score_L)}$
- $Elo_W$ is the amount of elo gained by the winner, and - $Elo_W$ is the amount of elo gained by the winner, and
- $Elo_L$ is the amount of elo gained by the loser (a negative value). - $Elo_L$ is the amount of elo gained by the loser (a negative value).
The $Elo$ values are then added to the players' current elo. The $Elo$ values are then added to the players' current elo.

@ -1,3 +1,5 @@
Note: This package is currently under active development and may have significant changes between versions. If you choose to use this package, please be careful when updating!
# go-elo: A flexible elo calculator for Go # go-elo: A flexible elo calculator for Go
![coverage](https://raw.githubusercontent.com/gabehf/go-elo/badges/.badges/main/coverage.svg) ![coverage](https://raw.githubusercontent.com/gabehf/go-elo/badges/.badges/main/coverage.svg)

Loading…
Cancel
Save