ERA Not Calculating Correctly?

If you are having an issue with iScore Baseball, please post it here and we will try and find solutions so everybody will be aware of them.
Post Reply
iklimon
Posts: 53
Joined: Tue Apr 28, 2009 2:11 pm
Location: Denver, CO

ERA Not Calculating Correctly?

Post by iklimon » Tue Mar 19, 2013 11:07 am

I just noticed this recently, so I don't know if this is a 4.x bug or a 4.03 bug.

My son's team has given up 63 earned runs over 102 innings so far this season. We play 6-inning games.

(ER / IP) x Inns per Game = ERA

63 / 102 = .61764706
.61764706 x 6 = 3.71 (rounded)
iScore is displaying an ERA of 4.04

I thought maybe it was calculating by 7 innings but I did that math...
.61764706 x 7 = 4.32 (rounded)

I checked against the ERA/9 which is obviously a 9 inning game:
.61764706 x 9 = 5.56 (rounded)
which is CORRECT

So, in the end it seems to calculate a correct ERA/9, but no a correct ERA/6.

First question, is does this calculation come off of the # of innings set in Game Options? Should it be a field in stats so that it is settable by the user?

Now, maybe this it the wrinkle that causes the bug, elucidates the problem: This team, even though we normally play 6-inning game has played two 7-inning games and two 9-inning games (in lieu of double headers, these were not extra inning games, but rather planned extended games).

Now, should that matter in a simple calculation of (ER / IP) * Inns per game, probably not, but what if it is actually take the average innings per game.

We have played 16 games so far this spring and the innings per game was set as follows:

7,7,6,6,6,6,9,9,6,6,6,6,6,6,6,6 = 104 scheduled innings or an average of 6.5 innings per game

I'm going to try to solve the formula with this new innings per game #:

(ER / IP) x Inns per Game = ERA

63 / 102 = .61764706
.61764706 x 6.5 = 4.01 (rounded)
iScore is displaying an ERA of 4.04

So actually taking the real average innings per game gets us really close, but not to the displayed ERA of 4.04.

Let's try again (again switching one variable, this time actual SCHEDULED innings with an average of 6 and an average of 6.5):

(ER / IP) x Inns per Game = ERA

63 / 104 = .60576923
.60576923 x 6 or 6.5 = 3.63 or 3.94 (rounded)
iScore is displaying an ERA of 4.04

So this isn't the answer.

We have played two extra innings games (games scheduled for 6 innings that went 7 and 8 respectively).

So, now, as I have typed this, I just realized something: Maybe the actual number of innings pitched is wrong? So I did that math:

7,7,6,6,6,6,9,9,5,7,3,5,6,8,6,6 = 102 innings actually pitched, so that is correct.

102 / 16 = 6.375 Maybe this is the problem?

(ER / IP) x Inns per Game = ERA

63 / 102 = .61764706
.61764706 x 6.375 = 3.94 (rounded)
iScore is displaying an ERA of 4.04

So, no, this isn't it either.

The ERA calculations for the individual players are wrong as well.

So...I think I found a bug. :)
Ian Klimon
Slammers Black 13U Major
http://www.slammersbaseball.com" onclick="window.open(this.href);return false;
iklimon
Posts: 53
Joined: Tue Apr 28, 2009 2:11 pm
Location: Denver, CO

Re: ERA Not Calculating Correctly?

Post by iklimon » Tue Mar 19, 2013 11:14 am

On a side note, for the 63/102 it would have to be using an innings per game of 6.54 to come up with an ERA of 4.04. Which is, odd.
Ian Klimon
Slammers Black 13U Major
http://www.slammersbaseball.com" onclick="window.open(this.href);return false;
iklimon
Posts: 53
Joined: Tue Apr 28, 2009 2:11 pm
Location: Denver, CO

Re: ERA Not Calculating Correctly?

Post by iklimon » Tue Mar 19, 2013 11:24 am

On another side note. I just did the calculations on the entire 218 games that I have in iScore that my son's team has played in. The ERA is wrong there as well. ERA/9 is correct.

(I thought it may be limited to the more recent data).
Ian Klimon
Slammers Black 13U Major
http://www.slammersbaseball.com" onclick="window.open(this.href);return false;
User avatar
mprusak
Posts: 1348
Joined: Tue Jun 29, 2010 7:27 pm
Location: Montgomery, IL

Re: ERA Not Calculating Correctly?

Post by mprusak » Tue Mar 19, 2013 11:46 am

I skimmed a lot of what you wrote :-)

It uses the scheduled number of innings for each game to calculate.
Mark
iScore Baseball 4.533 on iOS8-iPad4 and iPhone 6-Plus

iScore Baseball User Manual:
http://iscoreleagues.com/manual/ <- Check it Out!
iklimon
Posts: 53
Joined: Tue Apr 28, 2009 2:11 pm
Location: Denver, CO

Re: ERA Not Calculating Correctly?

Post by iklimon » Tue Mar 19, 2013 1:13 pm

Yeah, most of what I wrote was me removing possibilities for what was wrong.

I'm guessing it has to do with us having 104 scheduled innings for 16 games.

BTW, I took a look at your site: http://www.nireds.com/" onclick="window.open(this.href);return false; nice work. Cool site. Do you guys ever travel beyond the midwest? If you ever get to Cali for baseball, we should schedule a double header.

You can check out our 11u team at http://www.ocsundevils.com/" onclick="window.open(this.href);return false;

:)
Ian Klimon
Slammers Black 13U Major
http://www.slammersbaseball.com" onclick="window.open(this.href);return false;
User avatar
mprusak
Posts: 1348
Joined: Tue Jun 29, 2010 7:27 pm
Location: Montgomery, IL

Re: ERA Not Calculating Correctly?

Post by mprusak » Tue Mar 19, 2013 1:23 pm

I like your website as well. Very nice.

I would love to get to So Cal, but we wont even get out of Chicago this year :-(
Mark
iScore Baseball 4.533 on iOS8-iPad4 and iPhone 6-Plus

iScore Baseball User Manual:
http://iscoreleagues.com/manual/ <- Check it Out!
iklimon
Posts: 53
Joined: Tue Apr 28, 2009 2:11 pm
Location: Denver, CO

Re: ERA Not Calculating Correctly?

Post by iklimon » Tue Mar 19, 2013 2:32 pm

Bummer! Are you guys going to do Cooperstown? Or any of the big national tournaments? Vegas/So Florida? Despite being a real hotbed (and home to some of the best teams in the country) SoCal seems to lag behind in hosting big national tournaments. go figure.
Ian Klimon
Slammers Black 13U Major
http://www.slammersbaseball.com" onclick="window.open(this.href);return false;
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: ERA Not Calculating Correctly?

Post by FTMSupport » Tue Mar 19, 2013 5:13 pm

We have looked at your data, and it looks like everything is calculating correctly.

When viewing the pitching stats for your team, if you tap the Gear icon in the bottom right corner, it will bring up a list of all available stats. Select pitching, and put a check next to the Game Innings Average (GI) stats. Then view the pitching stats. You will see that in fact the average IS 6.54 for your data. That is where the 4.04 ERA comes in.

This is all based on the Scheduled Innings you enter per game.

If you want it to be a pure ERA6, then enter 6 for scheduled innings for every game. If you want a pure ERA7, then enter a 7 for every game. If you have a variable number of innings scheduled per game, it will taking an average of all the games when doing the calculations.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
User avatar
mprusak
Posts: 1348
Joined: Tue Jun 29, 2010 7:27 pm
Location: Montgomery, IL

Re: ERA Not Calculating Correctly?

Post by mprusak » Tue Mar 19, 2013 5:28 pm

iklimon wrote:Bummer! Are you guys going to do Cooperstown? Or any of the big national tournaments? Vegas/So Florida? Despite being a real hotbed (and home to some of the best teams in the country) SoCal seems to lag behind in hosting big national tournaments. go figure.
I think we intend to do Cooperstown next year. I am looking forward to that very much!
Mark
iScore Baseball 4.533 on iOS8-iPad4 and iPhone 6-Plus

iScore Baseball User Manual:
http://iscoreleagues.com/manual/ <- Check it Out!
Post Reply