Showing posts with label Consistency. Show all posts
Showing posts with label Consistency. Show all posts

Monday, September 3, 2007

Theory on Best Possible Accuracy in Prediction of Games

Previously, I've spoken about how predictions based on mean performance will always be flawed because teams almost always perform at a level above or below the mean. The problem is that without advanced statistical number-crunching, the mean is our best guess at what the performance in the next game will be. I've come up with an idea on how one might go about estimating a probability distribution for a range of possible performance levels, but I think I need to look into better methods of estimating such a distribution before going ahead with such an experiment. In the meantime, I was curious about the following: If our estimates were so good that we had 100% certainty that team X in game g would have stat line Sx,g, then how good would our game predictions be? In other words, if I told you the home team would average 4.3 yards a carry and 7.6 yards per pass, etc., along with the away team stats, how accurately could you guess the winner of that game?


This should be simple enough to figure out. We simply take the stats from box scores (rushing average, passing average, 3rd down efficiency, everything I use in the predictive models) and plug them into a regression model for either final score margin (linear regression) or classification as home team win/loss (logistic regression). Keep in mind, I'm avoiding total rush and pass yards because I don't think the application would be as useful. There'd be a wider margin of error trying to estimate a probability function for the exact number of rushing/passing yards gained/allowed in a game. It depends on how far a team gets ahead and other clock-related issues. Using data from the 1996-2006 seasons, I tested on every year after 1996 separately, training on all the years before each year.

The average win-loss classification accuracy is 84.351% for linear regression and 83.722% for logistic regression. That is a very big jump from what you get using means (~60-69% range). The average mean absolute error on predicting scoring margins was surprisingly high at 6.1798 points, but the estimated margins have a 0.84564 correlation with the actual margins. So even if you knew the exact stat lines, you'd still be off by a touchdown on average! With this model, the problem of classifying too many games as home team wins almost disappears. Only 59.137% (linear)/59.623% (logistic) of games are predicted to be won by the home team, as opposed to the actual 58.84%.

As has been documented several times, 2006 was a fluky year. An abnormally low percentage of home teams won (55.56%), largely because of how interconference games turned out. While all other models suffered in accuracy and classified far too many games as home team wins, both the regression models here classified 55.469% of games as won by the home team. Almost an exact match! 2006 was still yielded the lowest accuracy (82.031% lin/82.813% log), but the dropoff was still low. So maybe 2006 wasn't quite as fluky as I thought, and our methods of evaluating teams, specifically in inter-conference settings needs to change.

Of course, this is all based on 20/20 hindsight, but it gives a good idea of what could be achieved with prediction models. 82-85% accuracy is achievable, if you knew the stat lines beforehand, but any estimates of single-game performances will come with a good deal of error. The mean is a simple and efficient estimate, but big advances should be able to be made with more sophisticated performance projections. Brian Burke's estimate of 76% accuracy seems reasonable, but I wonder if the ceiling can't be pushed a little higher to ~80%.

Read More......

Monday, July 16, 2007

The Predictive Ability of Averages

The predictions made by my and others' models are simply an expected level of performance given the averages. In other words, if this game were played an infinite number of times, we'd expect the average result to converge towards this number. Players don't play at the mean, however. They play above and below it. On any given Sunday, numerous unpredictable factors can influence performance levels and thus the outcome. Weather, in-game injuries, the coaches' playcalls, bad seafood, a scorned woman (e.g. Mrs. Nick Harper), a player soliciting prostitution from a cop, a player soliciting prostitutes for opposing players. Over time, however, these factors should balance themselves out, and everything but ability should be filtered out of the averages. So how predictive of the next week's performance are the averages?


To find out, I took the to-date averages of weeks 3-16 for the years 1996-2006 and matched them up with the in-game averages from weeks 4-17 of the same years. This matches up with my testing methods for the prediction models except I'll start making predictions for week 3. You can't really expect to make good predictions based off 1 or 2 weeks of data, however. So the test is how well do averages based on weeks 1 through W-1 correlate with the results in week W?
























Correlation coefficients of averages up to week W-1 with performances in week W
StatUnadj.Adj. for Opponent
RO0.146470.15258
RD0.0912640.11125
PO0.16958 0.1335
PD-0.00132360.069243
SRM0.0289810.036354
SRA0.233580.22261
PR0.0263460.023044
PC0.0635920.066901
KR0.0488250.030787
KC0.0397680.0099349
3CM0.127930.12153
3CA0.0668260.060486
PFD0.0484450.052096
PY0.0887830.083038
IRG0.000466380.0038317
IRT0.0460330.025835
FRG0.0587330.039033
FRT0.0232680.002728



Here we see a fundamental problem with the prediction models: Players don't play at their mean level, and thus, the averages aren't terribly predictive of performance within a single game. Even adjusting for performance doesn't really help. The yards per carry and yards per pass attempt stats are highly dependent on down-and-distance and current scoring margin situations. Busted plays might cause huge shifts in "momentum," as Marcus Allen's 74-yard TD run and Joe Thiesmann's pre-halftime pick six in Super Bowl XVIII did. And if Don McNeal hadn't slipped as he stopped following the receiver in motion, maybe he would have tackled John Riggins for a 2-yard-gain instead of letting him break off a 43-yard TD run, and the Dolphins would have won Super Bowl XVII. Little things like that greatly affect the in-game averages. Excluding that one play, Riggins averaged 3.324 yards on 37 carries, not a particularly good performance against a poor run defense (4.38 yards/carry allowed). Considering that he had a paltry 3.1 yards/carry that season, the odds of him getting that one long play were probably very small. But the play call by Gibbs put McNeal in the position to slip up. Was it luck? I wouldn't say that. Actually, reading up on the 2006 Cardinals in Baseball Prospectus, I came across this fitting quote: "Luck is the residue of design." Was it a repeatable event with predictive value? I have my doubts.

So happenstance can make the statistics more retrodictive than predictive, judging by the correlations with next-game scoring margins, next-game averages, and with season win totals. Sixteen games doesn't seem to be a large enough sample size to filter out all of the happenstances from the stats.

Read More......

Thursday, July 12, 2007

Consistency of Offensive and Defensive Efficiency Part I - Regular Season

Looking at the correlations of the stats to regular season win totals, offense seems to be more important than defense to winning. For example,


  • Rush offense efficiency: 0.2052
  • Rush defense efficiency: -0.13296


However, Football Outsiders did a study that showed that defense was more important to postseason success. This seems to fall in line with the 2002-6 Colts. And the same pattern can be found in baseball, where pitching metrics (especially for relievers) become the most highly correlated to playoff success (Baseball between the Numbers). But correlation does not equal causation. Why does offense suddenly drop in importance?

With the the single elimination playoffs, the better team does not always necessarily win. Teams never perform at their absolute average, which makes predicting wins through teams' average performance fairly difficult. The Jaguars by a fair share of metrics perform really well on average, but it hasn't translated to a great record because of their inconsistency. Over one game, anything can happen. So the team that gets deeper into the playoffs should be reliable and consistent.

If defense is the better predictor of postseason success, then is defense more consistent from game to game? Over a 16 game sample, if it is more consistent, then because the outcomes of games are so varied, the more consistent defensive metrics are more lowly correlated with win totals. Or an alternative hypothesis might be that because defensive performance is less consistent, that you need a very good defense, for whom rock bottom isn't that bad, to overcome the consistently excellent offenses in the playoffs. From year to year, defensive efficiency changes more than offensive efficiency (according to FO), so more week-to-week inconsistency would be reasonable to expect. Let's take a look at what the numbers have to say.



















Correlation of week's performance with next week's performance, Unadjusted for opponent
StatCorr. Coef.
RunOff0.08295
RunDef0.039186
PassOff0.17349
PassDef0.010152
SackRateMade(Def)0.01733
SackRateAllow(Off)0.18595
3rdDownOff0.071573
3rdDownDef0.011514
IntRateGiven(Off)-0.012781
IntRateTaken(Def)0.01926
FumRateGiven(Off)0.025166
FumRateTaken(Def)0.025957




















Average in-season standard deviation of metric, Unadjusted for opponent
StatAvg. Std. Dev.
RunOff1.1732yds
RunDef1.1885yds
PassOff1.8195yds
PassDef1.8962yds
SackRateMade(Def)4.919%
SackRateAllow(Off)4.6111%
3rdDownOff13.096%
3rdDownDef13.405%
IntRateGiven(Off)2.9114%
IntRateTaken(Def)2.8889%
FumRateGiven(Off)2.7177%
FumRateTaken(Def)2.7259%



According to these methods using the unadjusted-for-opponent stats, defensive performance is less consistent than offensive performance (except maybe with turnovers). The differences between the average std. deviations of the offensive and defensive metrics are small, but they are at least consistent in favor of offense. The differences in correlation coefficients are more significant. Surprisingly, the week-to-week correlation of defensive performance is near zero. The performance of defense one week seemingly has no bearing on performance the following week whatsoever. And momentum is, at best, a small factor on offensive performance, which apparently doesn't matter as much in the playoffs anyway. Much of this variance likely has to do with the opponents, so now is the time when we adjust for opponents.


















Correlation of week's performance with next week's performance, Adjusted for opponent
StatCorr. Coef.
RunOff0.095318
RunDef 0.052455
PassOff0.13248
PassDef0.026777
SackRateMade(Def)0.022664
SackRateAllow(Off)0.17386
3rdDownOff0.071013
3rdDownDef0.017221
IntRateGiven(Off)-0.0048146
IntRateTaken(Def)0.010823
FumRateGiven(Off)0.018135
FumRateTaken(Def)0.024204




















Average in-season standard deviation of metric, Adjusted for opponent
StatAvg. Std. Dev.
RunOff1.1083yds
RunDef1.1073yds
PassOff1.9546yds
PassDef1.7601yds
SackRateMade(Def)4.6508%
SackRateAllow(Off)4.5034%
3rdDownOff12.682%
3rdDownDef12.788%
IntRateGiven(Off)2.9403%
IntRateTaken(Def)2.9135%
FumRateGiven(Off)2.6759%
FumRateTaken(Def)2.6853%



As it turns out, adjusting for opponents closes the gap a little, but offense is still more consistent overall. Adjusted for opponent, rush pass off. eff. have more variance than their defensive counterparts, but the week-to-week correlation is still well in favor of the offense.

Three out of the four tests I ran say that offensive performance is actually more consistent than defensive performance. So the conclusion seems to be that the defense needs to be very good so it can matchup okay with the consistently good offenses of playoff teams, even when they're not performing at their optimum. Does this reasoning make sense to anyone else? Definitely a topic for further exploration/discussion.


Addendum: Reply to bettingman's post
Do defenses adapt over the season and improve? Makes sense as they have to react to the offense. I just threw together these graphs. It's by game rather than week, so the two rates won't exactly sync up.







Rushing offense improves over the year by about .2 yards/attempt, but passing offense worsens over the year by about .2 yards/attempt. Sack rates don't trend either way, but interception rates increase by about .3%. So the passing game does indeed become less effective as the year progresses. The improvement in the rushing game might stem from defenses focusing more on the passing game. Also of note, kick and punt return averages decrease over the season but start to pick up again towards the end of the season. Clearly, special teams do a good job of adapating their return coverages. Do the return units start to adapt to the coverages as well?



Read More......