My Math Forum  

Go Back   My Math Forum > Science Forums > Computer Science

Computer Science Computer Science Forum


Reply
 
LinkBack Thread Tools Display Modes
January 7th, 2013, 05:43 PM   #1
Newbie
 
Joined: Jan 2013

Posts: 2
Thanks: 0

Formula Help

Im trying to figure out an equasion to put into a php base website to calculate win percentage, im going to try my best to give you the correct information.

So in a game called world of tanks we have a win/loss ratio in each game and im trying to figure out the formula for how to get an extra 1% win

we have a total ammount of games + win/loss

3368 games played/1744 losses/1578 wins/46 draws = 47% win ratio. how many battles left do i have to do to increase it by 1%

Im not after the answer to this question, i want the matmatical formula to figure this out so i can put it on my website so members in the clan can add there current stats into it and also get the number for there ammount of games left to play.
NuNu_dagobah is offline  
 
January 8th, 2013, 04:45 AM   #2
Math Team
 
Joined: Apr 2010

Posts: 2,780
Thanks: 361

Re: Formula Help

Will you be assuming, all the next battles played must be won? To apply such a formula, current winratio must be less than 99%. How are you rounding?
In your example, 1578/3368~=0.4685. Do you want the formula to give the amount of games to win to get a quotient of 0.475 or 0.48?
Hoempa is offline  
January 8th, 2013, 06:10 AM   #3
Newbie
 
Joined: Jan 2013

Posts: 2
Thanks: 0

Re: Formula Help

if im on 47.9% victories it will be 47% and 48.1% will be 48.

You also need to take into account that there are games that no one wins, these are the draws, so the first part of the equasion will be ((total games (- win+loss=)
NuNu_dagobah is offline  
January 8th, 2013, 06:17 AM   #4
Math Team
 
Joined: Apr 2010

Posts: 2,780
Thanks: 361

Re: Formula Help

So you use floor(x); round down to the nearest lower integer. Than the win ratio you gave would be 46% instead of 47%.

What will the "number for there ammount of games left to play" tell the players? You want them to give information of what to do to get a 1%. (percent point) extra win. What must they do for that? Win all next games?

One interpretation:
Let a be the amount of games won
Let b be the amount of games played
Let c be the win ratio
Let d be the amount of games that must be played and won (no losses or draws) to raise the win ratio by 1 percent point.
Then c = a/b (though you return floor(a/b)) right now.
And (quick result)
Hoempa is offline  
January 8th, 2013, 08:31 AM   #5
Global Moderator
 
CRGreathouse's Avatar
 
Joined: Nov 2006
From: UTC -5

Posts: 16,046
Thanks: 938

Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms
Re: Formula Help

I'd say where t is the total games played and w is the games won. This doesn't take rounding into account but that seems appropriate to me.
CRGreathouse is offline  
Reply

  My Math Forum > Science Forums > Computer Science

Tags
formula



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
My new formula for pi(x) nsrmsm Number Theory 7 October 15th, 2012 06:36 AM
why we use this formula r-soy Physics 3 December 23rd, 2010 09:54 PM
Formula to always get 28 djx18 Algebra 1 September 20th, 2009 06:25 PM
De Moivre's formula and Newton's binomial formula agro Probability and Statistics 3 August 27th, 2009 07:17 AM
Formula Help NuNu_dagobah Abstract Algebra 0 December 31st, 1969 04:00 PM





Copyright © 2019 My Math Forum. All rights reserved.