Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

weighted scores

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Spangwiches



Joined: Thu Sep 22, 2011 3:50 am
Posts: 81

PostPosted: Wed Oct 26, 2011 8:48 am    Post subject: weighted scores Reply with quote

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
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8450
Location: Warrington, UK

PostPosted: Wed Oct 26, 2011 9:37 am    Post subject: Reply with quote

Moved to Programming.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Spangwiches



Joined: Thu Sep 22, 2011 3:50 am
Posts: 81

PostPosted: Wed Oct 26, 2011 9:41 am    Post subject: Reply with quote

Thank you!
_________________
http://uoou.info/
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 870

PostPosted: Wed Oct 26, 2011 10:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Spangwiches



Joined: Thu Sep 22, 2011 3:50 am
Posts: 81

PostPosted: Wed Oct 26, 2011 10:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Spangwiches



Joined: Thu Sep 22, 2011 3:50 am
Posts: 81

PostPosted: Wed Oct 26, 2011 10:25 am    Post subject: Reply with quote

... that sounds wrong. Maybe I did it wrong. I shall retry.
_________________
http://uoou.info/
Back to top
View user's profile Send private message
Spangwiches



Joined: Thu Sep 22, 2011 3:50 am
Posts: 81

PostPosted: Wed Oct 26, 2011 10:36 am    Post subject: Reply with quote

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
View user's profile Send private message
kvonh



Joined: Tue Apr 12, 2005 10:46 pm
Posts: 19

PostPosted: Fri Nov 11, 2011 9:40 am    Post subject: Reply with quote

Perhaps you could post it as a question in your quiz? Very Happy
Back to top
View user's profile Send private message
Spangwiches



Joined: Thu Sep 22, 2011 3:50 am
Posts: 81

PostPosted: Fri Nov 11, 2011 9:31 pm    Post subject: Reply with quote

Ahaha Very Happy
_________________
http://uoou.info/
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast