Question

Let's say you need to display a graphical representation of how well a baseball team is doing (my software problem is not related to sports but...).

Let say you chose that 25% of a gauge is related to the percentage of batters who hit during the first time at bat. The next 25% related to the percentage of pitchers on the team who threw n number of strikes in a game. The final 50% related to the percentage of batters on the team who scored during a game.

The obvious calculation is (.25 * percentage1) + (.25 * percentage2) + (.5 * percentage3). This will equal some final calculation < 100.

Let's say that you wanted to add some "negative" portion to the algorithm. Example, percentage of fielders who has an error during the game. How would that work as part of the algoritm? I don't think you can say that this percentage is -50% (negative) and then add an additional 50% somewhere to add up to 100%. That won't work because you'll potentially end up with a final calculation > 100.

UPDATED: (to give actual example)

  • Percentage 1 at 25%
  • Percentage 2 at 25%
  • Percentage 3 (this is negative) at -50%
  • Percentage 4 at ??? 100%

If we total the percentages then we are at 100%, but the calculations can come out to be > 100.

Was it helpful?

Solution

Just add it in. If the fielders are perfect, their error rate is 0, 0*(-.5) = 0, your calculation still has a possible maximum of 1. You don't need any correction factor.

OTHER TIPS

You can measure how well a team did in comparison to an arbitrary limit, or possibly the worst of all the teams.

So, if you want errors to count for 50%, with an arbitrary limit of 100

.5 * (100 - NumberOfErrors)

Or you can measure a team against the worst in the league

.5 * 100 * (MostErrorsInTheLeague - NumberOfErrors) / MostErrorsInTheLeague

This way, the worst team will get a score of zero for that factor, and a team with zero errors will get the full fifty.

Mean Squared Error
Root Mean Square Deviation

One of these two terms should work well for comparing two algorithms where the error can be negative as well as positive.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top