ANOTHER Ghost Rating formula (possibly) incorrect description!
Posted: Tue Jul 25, 2023 1:59 am
The description of Ghost Rating calculations on page https://webdiplomacy.net/ghostRatings.php states:
expectedScore = yourGR / sumOfEachPlayersGR
However in the code, it seems to involve the ratings SQUARED:
$expectedResult[$userID] = $expectedSquare[$userID] / $expectedSum;
where
$expectedSquare[$userID] = $rating * $rating;
and
$expectedSum is the sum of all the players' $expectedSquare values.
My apologies in advance if I am misunderstanding the code.
expectedScore = yourGR / sumOfEachPlayersGR
However in the code, it seems to involve the ratings SQUARED:
$expectedResult[$userID] = $expectedSquare[$userID] / $expectedSum;
where
$expectedSquare[$userID] = $rating * $rating;
and
$expectedSum is the sum of all the players' $expectedSquare values.
My apologies in advance if I am misunderstanding the code.