6
$\begingroup$

I'm playing this video game where people can get kills, deaths, and assists , and all this is recorded on a stats website. The stats website gives you a rating by directly manipulating these numbers.

In the first entry, I have 26 kills, 5 deaths, and 19 assists. The KDA ratio the website gave me was 29.8. At first thought, I guessed that the formula was ratio = (kills*5 + assists)/deaths.

But then the second entry threw me off. 21.33 Kills, 1.33 deaths, and 4.33 assists. And the ratio outputted here is 24.58.

Is there a good approach to figuring out the formula or function when the inputs and outputs are given?

  • 0
    You've already give$n$ enough data to determine the values of a and b in any formula of the form KDA=(a*kills+b*assists)/deaths that would fit your data - and it implies a negative value of a! (to first approximation, b=8 and a=-.1) - this suggests that your 'meta-formula' is the wrong formulation to use.2014-07-03

2 Answers 2

1

You should be able to use a regression to figure out the function based on the fundamental type of function that you want. For example, if you want an linear function, you would be able to find some equation in the form $y=mx+b$.

1

Well, an easier method I think is (if you can get more data) is to just plot it. You might just "see" what is happening with a reasonable number of points plotted. This will also help with guessing the form of the fitting function if you want to use regression.