math


How to weigh percentage versus quantity?


So I have a leader board I'm trying to develop and I've run into a bit of a problem...
It's a roulette game and I want to show who was the best stats.
Lets look at the following examples for scores:
21 wins, 15 losses
40 wins, 1 loss
40 wins, 10 losses
10 wins, 0 losses
1 win, 0 losses
In my mind the leader board should be like 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 I was going with just percentage but that means 1 win 0 losses beats 40 wins and 1 loss which doesn't make sense to me. I'm trying to find a way to weight quantity vs percentage.
I was originally thinking:
%*total = score
but that didn't give me a reasonable result, then I tried:
(%)^2*total = score
but again failure...
I know there must be a formula for this somewhere!!!
Help plz.
Interesting question. I'd suggest that you create an index which defined as:
Index = (Total wins) - Weight * (total losses).
With the example you gave, if you set Weight to 4 then the result would 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 it would give you the order that you want. But you can play around with the weight to get the type of ordering that you desire.

Related Links

Normalizing samples to 0 mean and 1 variance , in online machine learning algorithms
How to detect all regions that are surrounded by n line segments?
Remainder sequences
How is Hard Sigmoid defined
prolog in math - searching the level of node in prolog
Applying fast inverse to concatenated 4x4 affine transforms?
In Ada, is there a way to make an enumeration type act like a modulus type — to wrap to 0 after the last of it's range?
Round up to nickel, dime, quarters
Copy a math formula from Word DocX to CkEditor
Is there a difference between (n - (~r % n) - 1) and (n - (abs(r) % n)) when r < 0?
How determine two pairs of numbers are equal
How to find out the sum of products of all combinations of first n natural numbers taken r at a time?n and r are both constants [duplicate]
calculate bounding sphere radius in normalized space
Two positive integers 'a' and 'b' have a sum of 's' and a bitwise XOR of 'x'. How many possible values are there for the ordered pair (a, b)?
How to get the true Euclidean remainder?
How to find position of point that is x unit distant from AB line segment and y unit distant from BC line segment?

Categories

HOME
document
coffeescript
styling
localforage
xamarin.forms-listview
svg.js
android-dialer
webdriver-io
phpmailer
documentation
akka.net
superfish
wso2ei
zebble
proftpd
command-line-interface
vscode-settings
python-2.5
phpbb3
oracle11gr2
gitlab-ci-runner
exe4j
dotnetbar
centroid
ibm-datapower
missingmethodexception
py4j
hough-transform
jcrop
profiling
ratchet-2
naturallyspeaking
php-carbon
abstract-syntax-tree
weather-api
mathdotnet
toolbar
ucwa
meanjs
masstransit
codewarrior
buffer-overflow
reformatting
true-type-fonts
magento2.0.2
scatter-plot
django-users
bcel
nav
executorservice
chamilo-lms
phing
nio
json-rpc
flags
caldroid
windows-scripting
projection
tabview
php-deployer
hydra
gretl
kendo-chart
http-status-code-500
clientscript
name-mangling
xssf
recurrence
fasta
android-identifiers
tryton
catalina
android-camera-intent
ifc
configuration-profile
topojson
android-chips
webclient-download
gcloud-java
okuma
google-api-ruby-client
php-opencloud
wand
armv7
many-to-one
mailx
vbo
stringr
pencilblue
wso2as
iscroll4
office-2010
nhunspell
wmv
populate
deap
emitmapper
zephir
xcache
memoization
uptime
google-goggles
lungojs
libavg
datakey
zmodem
retain
coolstorage
net-ssh
iequalitycomparer
drwatson
stsadm
greensoftware
ants
usenet

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App