AllegSkill - Commander's ranking
From FreeAllegiance Wiki
What follows is the simplest incarnation of the Trueskill update algorithm, as used for commander ratings. Note that in this example the teams only consist of one player each, the commander. As we said, simple example.
We've provided as much information as is sensible, and we only assume that the reader is familiar with (or able to look up) the error function (erf).
The update formulae
After the game is played the commanders' ranks are updated as follows (in all cases, the apostrophe refers to the updated version):
|Mu, μ||Sigma, σ|
|Draws||Substitute with .||Substitute with .|
Where β is constant, and γ and ε are variables:
- is the standard variance around performance
- is the dynamics variable, which prevents sigma from ever reaching zero, which in turn determines how quickly mu can in/decrease once sigma has stabilised. If we discover that sigma-stabilised ratings are moving too slowly to reflect genuine changes in skill, we will increase gamma.
- is derived empirically from the percentage of games which result in a draw, currently ~1.01%. If the draw-rate changes, we will update epsilon accordingly.
c is a variable that expresses the general uncertainty of the system:
and Vwin and Wwin are TrueSkill functions based on
- The normal distribution (with a mean of zero and variance of one), and more precisely its probability density function.
- The cumulative distribution function of the normal distribution:
No idea what they are? Don't worry, they are just scary maths that stats dudes use to try and represent a large group of unknowns (every tiny detail of your in-game actions) based on a small number of samples (the game outcomes).
Developed by Microsoft, the Trueskill update functions are:
There are also two special versions of V and W when draws take place.
So, what are t and e used in these formulae? Well, if you know your maths, you realise they can be anything that you choose to 'pass into' the function. In our case we are letting
The V and W functions are the core of the Trueskill system, and vary depending on whether the game resulted in a win or a draw. In both instances, positive values for t represent an unsurprising outcome: the winner was more skilled than the loser. Positive values result in the functions returning small values, which in turn result in small μ and σ updates. The converse is also true: Negative values for t represent a surprising outcome, and result in large updates.
This scenario pits a newbie commander (, i.e. normal rank, high uncertainty) against a slightly more experienced commander (, i.e. high rank, medium uncertainty).
Let's now get our favourite computer assisted algebra system and do the calculations. Let's assume the experienced commander, B, won.
Now let's run the same scenario in reverse, with commander A winning.
Let's compare the possible scenarios. Data is shown in the (mu, sigma) form.
| Commander A|
| Commander B|
|Before the game|| (25.0 , 8.33)|
| (32.0 , 5.0)|
|Commander A wins|| (32.5 , 6.4)|
| (29.3 , 4.6)|
|Commander B wins|| (22.2 , 7.2)|
| (33.0 , 4.8)|
As you can see, when the uncertainty is high, ranks can change quickly. But if you look at the players' ratings (the first number in brackets) you will see the variability is much less pronounced.
When the outcome closely matches expectations (Vet beats newb) we can observe how little changes occur:
- Commander A loses little rating, μ, but the confidence of the system on his rating has increased (σ has decreased) (After playing a game AllegSkill now knows more about this player).
- Given the way the conservative rank is calculated, this ultimately results in a higher rank. This effectively replaces ELO's and HELO's newbie modifiers (the modifiers that allowed newbies to gain ranks faster than they lost them).
- Commander B receives a boost from his victory as but since his σ is lower, the change to his rating, μ, is not as big.
- This is controlled by the σ2 / c factor in the updating formulas.
When AllegSkill receives a surprising outcome there are much bigger variations:
- Commander A, the (0) comm, gains a whopping 13 ranks (6 of which come from the drop in sigma).
- This is because AllegSkill received very significant information about commander A.
- Commander B's loses a bit of rating, μ, but that is somewhat limited by his lower σ.
- The σ reduction (gain in certainty about accuracy of commander B's rank) is also smaller in this scenario: a loss is less significant than a win.