Ghost Rating formula incorrectly listed on /ghostRatings.php

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:points: :-D :eyeroll: :neutral: :nmr: :razz: :raging: :-) ;) :( :sick: :o :? 8-) :x :shock: :lol: :cry: :evil: :?: :smirk: :!:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is OFF
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Expand view Topic review: Ghost Rating formula incorrectly listed on /ghostRatings.php

Re: Ghost Rating formula incorrectly listed on /ghostRatings.php

by JECE » Mon Jul 24, 2023 7:21 pm

x3n wrote:
Mon Jul 24, 2023 5:50 pm
While I appreciate the work, if Ghost Rating still encourages people to . . . never help out a stalled game by taking up a doomed position, then I think it must still be considered a "work in progress".
Restore PPSC and restore the practice of betting on joining games in progress. Problem solved without touching the Ghost Rating code!

Re: Ghost Rating formula incorrectly listed on /ghostRatings.php

by x3n » Mon Jul 24, 2023 5:50 pm

While I appreciate the work, if Ghost Rating still encourages people to drop out of a game before they lose, and never help out a stalled game by taking up a doomed position, then I think it must still be considered a "work in progress".

Re: Ghost Rating formula incorrectly listed on /ghostRatings.php

by gimix » Mon Jul 24, 2023 12:03 pm

(newer members info):
Squigs44 has been a very active and important member of this site, and contributed some nice pieces of code, including the full Ghost Rating system.

We are happy that he reversed Actual and Expected in the explanation, not in the code :lol:

Re: Ghost Rating formula incorrectly listed on /ghostRatings.php

by gimix » Mon Jul 24, 2023 11:57 am

@Squigs, are you still around?

Re: Ghost Rating formula incorrectly listed on /ghostRatings.php

by Doug7878 » Mon Jul 24, 2023 10:31 am

The (inquisitive) force is strong with this one. Yes, its clearly stated in reverse.

Can you fix the info page? If not, I guess you would send it to kestas. ( ? )

Ghost Rating formula incorrectly listed on /ghostRatings.php

by echidna » Mon Jul 24, 2023 5:18 am

Hi, I looked at the details of GhostRatings, described on page https://webdiplomacy.net/ghostRatings.php
I believe the formula listed there:
ratingAdjustment = x * (expectedScore - actualScore)
is INCORRECT!
It should read:
ratingAdjustment = x * (actualScore - expectedScore)

I found the piece of code:
$grAdjustment[$userID] = (($grSum / $this->modvalue) * ($actualResult[$userID]-$expectedResult[$userID]));
this clearly shows actual... - expected...

Top