| View previous topic :: View next topic |
| Author |
Message |
Spangwiches

Joined: Thu Sep 22, 2011 3:50 am Posts: 77
|
Posted: Wed Oct 26, 2011 8:48 am Post subject: weighted scores |
|
|
edit: This thread is in programming, just as one would expect.
I'm making a kinda endless flag web quiz/game. Nowt serious/clever, just for the fun of it. Here:
http://uoou.info/flags/
(probably won't yet work well on older browsers)
I originally had the 'score' as the %age of right answers but then people who only played a couple of times, with all correct answers, stayed at the top of the table.
So obviously I needed some sort of weighting. I want to reward people for a combination of playing lots and being right. I currently have:
rv + cm / v + m
r = player's %age right answers
v = player's number of plays
m = global average number of plays per player
c = global average %age right answers
(c is everyone's %age score added together then divided by the number of players NOT percentage of total right answers / total answers)
Ok so this is all fine. Works pretty well for the top and middle of the table:
http://uoou.info/flags/stats.php
But not at the bottom. The bottom player, with 63% right answers and lots of plays should ideally be somewhere mid-table I think. Certainly not below someone with 40% right and quite few plays.
I'm not great at maths. I kinda see what it's doing - punishing for high plays while being below the average %age. Can anyone with more of a maths-head than me suggest a way to rectify that sort of thing without messing too much with the top of the table?
Thanks! _________________ http://uoou.info/
Last edited by Spangwiches on Wed Oct 26, 2011 9:41 am; edited 1 time in total |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 7997 Location: Warrington, UK
|
Posted: Wed Oct 26, 2011 9:37 am Post subject: |
|
|
Moved to Programming. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
Spangwiches

Joined: Thu Sep 22, 2011 3:50 am Posts: 77
|
Posted: Wed Oct 26, 2011 9:41 am Post subject: |
|
|
Thank you! _________________ http://uoou.info/ |
|
| Back to top |
|
 |
johnhudson LXF regular
Joined: Wed Aug 03, 2005 2:37 pm Posts: 767
|
Posted: Wed Oct 26, 2011 10:06 am Post subject: |
|
|
What about rv/cm?
Putting r over c rewards those who get higher scores; putting v over m rewards those who play more often? |
|
| Back to top |
|
 |
Spangwiches

Joined: Thu Sep 22, 2011 3:50 am Posts: 77
|
Posted: Wed Oct 26, 2011 10:22 am Post subject: |
|
|
Just tried that and it's too closely tied to 'right answers', in fact it's exactly the same order and the resultant score is ~half 'right answers'. _________________ http://uoou.info/ |
|
| Back to top |
|
 |
Spangwiches

Joined: Thu Sep 22, 2011 3:50 am Posts: 77
|
Posted: Wed Oct 26, 2011 10:25 am Post subject: |
|
|
... that sounds wrong. Maybe I did it wrong. I shall retry. _________________ http://uoou.info/ |
|
| Back to top |
|
 |
Spangwiches

Joined: Thu Sep 22, 2011 3:50 am Posts: 77
|
Posted: Wed Oct 26, 2011 10:36 am Post subject: |
|
|
Yeah, just verified that. Not entirely sure why it behaves that way but it essentially gives a proportion of the right answers figure (not saying it actually does - it just tracks it perfectly).
edit: Actually, it makes perfect sense. %right x total answers is of course going to relate to right answers. Hmm.
Another edit:
just tried:
%player_right * player_right_answers / %global_right * global_total_answers
Now it overly rewards number of plays. Far too far in the other direction. Maths is hard. _________________ http://uoou.info/ |
|
| Back to top |
|
 |
kvonh

Joined: Tue Apr 12, 2005 10:46 pm Posts: 19
|
Posted: Fri Nov 11, 2011 9:40 am Post subject: |
|
|
Perhaps you could post it as a question in your quiz?  |
|
| Back to top |
|
 |
Spangwiches

Joined: Thu Sep 22, 2011 3:50 am Posts: 77
|
Posted: Fri Nov 11, 2011 9:31 pm Post subject: |
|
|
Ahaha  _________________ http://uoou.info/ |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|