math - How to weigh percentage versus quantity? -


so have leader board i'm trying develop , i've run bit of problem... it's roulette game , want show best stats.

lets @ following examples scores:

21 wins, 15 losses
40 wins, 1 loss
40 wins, 10 losses
10 wins, 0 losses
1 win, 0 losses

in mind leader board should so:

#1 40 wins, 1 loss
#2 10 wins, 0 losses
#3 1 win, 0 losses
#4 40 wins, 10 losses
#5 21 wins, 15 losses

originally going percentage means 1 win 0 losses beats 40 wins , 1 loss doesn't make sense me. i'm trying find way weight quantity vs percentage.

i thinking:

%*total = score

but didn't give me reasonable result, tried:

(%)^2*total = score

but again failure... know there must formula somewhere!!! plz.

interesting question. i'd suggest create index defined as:

index = (total wins) - weight * (total losses). 

with example gave, if set weight 4 result be

#1 (index = 36) 40 wins, 1 loss #2 (index = 10) 10 wins, 0 losses #3 (index = 1) 1 win, 0 losses #4 (index = 0) 40 wins, 10 losses #5 (index = -39) 21 wins, 15 losses 

so give order want. can play around weight type of ordering desire.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -