User Pass
Home Sign Up Contact Log In
Forum > Bugs > League Ranking Math Problem
-Phaytle-
offline
Link
 
Just noticed this.


http://glb2.warriorgeneral.com/game/compare_teams/130/175


Jeb's = #1 offense
2274.5 Passing + 580.0 Rushing = 2854.5 yards

Bruins = #3 offense
1953.0 Passing + 942.5 Rushing = 2895.5 yards

2895.5 > 2854.5


See the problem here?
 
Merik
offline
Link
 
hmm probally yards sacked is a last category......
 
NiborRis
offline
Link
 
Originally posted by Merik
hmm probally yards sacked is a last category......


That would be weird since it doesn't seem to count in net yards anywhere else in the game.
 
Merik
offline
Link
 
Originally posted by NiborRis
That would be weird since it doesn't seem to count in net yards anywhere else in the game.


well weird seems to be common some times in this game
 
-Phaytle-
offline
Link
 
Originally posted by NiborRis
That would be weird since it doesn't seem to count in net yards anywhere else in the game.


Exactly, that is whole separate statistical miscue in GLB2. Yes, sacks should take away from the net passing yards of the QB, but it never shows this in a box score or in a QB's game game log stats.

It's not the biggest deal in the world, but if there are simple math errors in the area I posted, you can bet a decent amount there are other simple mistakes elsewhere.
 
-Phaytle-
offline
Link
 
The numbers now show us as ~500 yards total ahead of the supposedly #1 ranked offense in our league but we are still ranked 3rd.

Can we get this issue sorted out? Not massively taking away from the game, but annoying and probably a simpler and quicker fix than a change to the engine.

EDIT: If it helps, I think the answer may be found looking at rush yards. I doubt it's displaying the number after yards taken away by TFLs.

Also, while whoever is looking at this, they might as well include the math to calculate and display total passing yards after sack yards have been taken away - and make sure the numbers are correct for the defense's yards allowed too please.
Edited by -Phaytle- on Mar 6, 2014 00:02:24
 
Corndog
Admin
offline
Link
 
Well, two things.

One, it looks like it might be counting passing yards twice. It's adding "passing_yards", and "receiving_yards" for teams to the total, even though they are the same thing.

Two, it's also adding interception return yards, kick return yards, and punt return yards.
 
NiborRis
offline
Link
 
Originally posted by Corndog
Well, two things.

One, it looks like it might be counting passing yards twice. It's adding "passing_yards", and "receiving_yards" for teams to the total, even though they are the same thing.

Two, it's also adding interception return yards, kick return yards, and punt return yards.


Was it also adding fumble return yards?

btw all those should probably be included in the "net yards" on the box score, just not the total offense on the matchup page. Except the receiving_yards, of course.
 
-Phaytle-
offline
Link
 
So I guess I can try to offer whatever help this might be to push this fix along. Somebody please correct me if I miss or put something out of place.


Team Pass Yards should be:
Net Passing Yards of all players that had an a pass attempt or sack (Passing Yards - Sack Yards)

Pretty easy correction here with only 2 constants and one operation - which gets minutely more complicated if you have multiple players with either a pass or sack.



Team Rushing Yards should be:
Net Rushing Yards for all players with a rush attempt (Rushing Yards - Tackled For Loss Yards)

Looks simple too but there is one thing that might make the calculation tricky. Offensive fumble recoveries should be counted as rush attempts by the player recovering the fumble. This means if you are going to allow for recorded rush yards on a fumble recovery the point at which you receive negative yards is no longer the LOS like a regular non-aborted rush and TFL. The point at which you measure positive and negative rush yards is now the point of the fumble recovery. (http://www.nflgsis.com/gsis/documentation/stadiumguides/guide_for_statisticians.pdf)

If you look at fumbled snaps by the punter in GLB2 specifically, you can see they are incorrectly recorded. For instance, this game http://glb2.warriorgeneral.com/game/game/11155 shows the punter fumbling, recovering the fumble for 21 yards, but being credited with -15 rushing yards. He should be credited with 21 rushing yards. The same logic would apply to any other offensive player recovering a fumble. If they advance or regress the fumble from the point at which they recovered, they should gain those yards as rushing yards, whether they are an OLineman, or WR or whoever. (http://www.nflgsis.com/gsis/documentation/stadiumguides/guide_for_statisticians.pdf)

The reason you don't need something like (fumble return yards + rush yards - TFL yards) is because for the offense there shouldn't be a different recorded statistical category for fumble return yards and rushing yards. Fumble return yards is a purely defensive stat.

So if we get that right then we can incorporate that into rushing yards and get an accurate number.


Total Offensive Yards would then simply be:
The addition of both passing a rushing yards gained after considering negatives (Net Rushing Yards + Net Passing Yards)

This is plain. I think the problem was just a mistake in adding erroneous extra statistics, so this should be very easy and quick to clean up.



Passing Yards Allowed would then be:
The total yards given up by the defense after considering negatives (Net Passing Yards of the opponent)

There a couple ways to calculate this (total yards allowed - sack yards) or (total pass yards of opponent - sack yards) but I think it would be easiest to just use the net passing yards since that is already going to be calculated for the offensive team to apply to their team. But if you can't go off the number calculated and attributed to the offense, say maybe because it wants to calculate pass yards allowed for the defense first, then you can still accomplish an accurate measure by one of the two calculations above.

I thought there may be a problem with sack yards if the rusher forced a fumble as well as a sack similar to the rush yards/offensive fumble recovery thing, but it seems to be still correctly crediting the rusher with a sack, forced fumble, and sack yards (although not a TFL or tackle). So that's good, just in case anybody was thinking of investigating that.


Rushing Yards Allowed would then be:
Total yards the ball was advanced by the offense after considering negatives (Total rush yards - TFL yards from opponent's players with a rushing attempt)

It is important to note there is a difference in a RB's TFL and a LB's TFL. One is tackled for a loss, and one is a tackle for a loss. Since tackle for loss yards is not shown for defensive players like sack yards are, I'm going to allow for possibility it is not even recorded. Therefore you can use the opponent's yards counted as tackled for loss, add those up and subtract that total from the opponent's rushing total. We just have to make sure offensive fumble recoveries are counted as rushes and credited with the correct amount of rush yards, based on the point of recovery.


Total Yards allowed would then be:
(Net Passing Yards of Opponent + Net Rushing Yards of Opponent)



This whole thing seems over-simplistic. I have no idea how I wrote this much about something that simple. Talking it out wouldn't take nearly as long, just looks like more when you are trying to justify each thing :/

So we clearly just need to remove a couple things like receiving yards, because that is the same measure of passing yards - just attributed to a different player, and return yards, and anything else not listed above. It's probably already fixed and I just wasted my time. Oh well, at least through this I found out offensive fmble recoveries were being recorded incorrectly.

 
Xavori
offline
Link
 
Actually, it should be pretty easy. Just do a query that totals up the pass yards, a second to total the blitz yards lost, subtract the blitz from the pass, and tada!

p.s. Seekwill is teh debul.
 
-Phaytle-
offline
Link
 
Originally posted by Xavori
Actually, it should be pretty easy. Just do a query that totals up the pass yards, a second to total the blitz yards lost, subtract the blitz from the pass, and tada!

p.s. Seekwill is teh debul.


Exactly, I'm still trying to figure out how I put that into so many words

Maybe I was thinking I should just be super thorough so something this simple doesn't get all combobulated again. I know I took many breaks and didn't pay attention or proofread what I had already put down.
 


You are not logged in. Please log in if you want to post a reply.