With the strength rating in hand, we now turn to the first rating actually shown on the rankings pages: the predictive rating. The predictive rating is intended to do what the name suggests -- predict the outcomes of future games. The strength rating is a great starting point for this, but I have found that a team's future results are predicted slightly more accurately if more emphasis is placed on the most recent games. This can be accomplished by weighting games by a factor:
   W = exp(-days/c)

where "days" is the number of days ago the game was played and "c" is the time scale (the number of days ago at which the weight of a game is 37% of the weight of a recent game). The value of "c" depends primarily on how much information can be drawn from a single week's worth of games. For baseball, where randomness is the highest, c is infinite. For basketball, where college teams play twice per week and scores are high enough to allow easy statistical analysis, c is only about three months.

To calculate a team's predictive rating, I make two calculations, one using the weights described in the previous paragraph and one using a constant weight for all teams. The probabilities pertinent to a team's games, from the strength rating page, can be written as:

   -2 lnP = sum(i=games) Wi (r-oi-G(sai,sbi))^2/(1+doi^2) + (r-m)^2/d^2

where Wi is the weight given the game, r is the team's rating, oi is the location-adjusted opponent's rating in game i, m is the mean for the prior, and d is the width of the prior. There is an additional factor in the denominator of 1+doi^2, which is the typical deviation of one game, allowing for the fact that the opponent's rating oi is known only to an accuracy of doi.

As before, this simplifies into a simple Gaussian of the team's rating r. Redefining Wi to include the 1/(1+doi^2) term, defining ri as oi+G, and defining PW to equal 1/d^2, this becomes:

   -2 lnP = sum(i=games) Wi (r-ri)^2 + PW (r-m)^2
   r = [ PW m + sum(i=games) Wi ri ] / [ PW + sum(i=games) Wi ]

In effect, r is a weighted average of the mean of the prior and the ri rating values from each game.

I should note that this is simplified from the full equation used for the strength ratings, and is slightly less accurate. This is why I calculate r using the weights and using constant weights. The team's predictive rating is set to equal the team's strength rating plus "weighted r" minus the "unweighted r". Thus, for baseball (where the weights are constant), the predictive rating equals the strength rating.


The Score Rating

The predictive rating calculates the odds that one team will beat another in a future game. A second piece of useful data is whether a team tends to play in high-scoring or low-scoring games. This is the P-SCR rating.

It might be tempting to calculate an offense and defense rating separately, but combining this with the predictive ratings gives three ratings for a team when there should be two. Instead, I use the predictive rating and the score rating to calculate the expected total score and score difference.

The basis of my score rating is the calculation of the "typical score" of two opponents, where "typical score" is defined such that:

   m1 = sqrt(S) + x*sqrt(m1) and
   m2 = sqrt(S) - x*sqrt(m2),

where "m1" and "m2" are the expected scores of the two teams and "x" is the same value in each equation. In short, sqrt(S) is defined such that m1 is x-sigma away in one direction and m2 is x-sigma in the opposite direction. (This could be done equally accurately by replacing sqrt(S) with S; I use this for convenience) One could alternately define S to be the sum of m1 and m2, but this could lead to a situation where a team was predicted to have a negative score.

Solving for x and requiring that it be the same in the two equations, one finds:

   S = m1*m2.

The second piece of data comes from the predictive ratings, which are defined such that:

   dr = (m1-m2)/sqrt(m1+m2),

where "dr" is the difference between team 1's predictive rating and team 2's predictive rating, accounting for home field advantage if applicable.

The other loose end is how "S" is calculated from the team's scoring ratings. It should be defined such that two teams that tend to have average-scoring games will be predicted to have an average-scoring game. It should also be defined such that a team that tends to be in games with twice the average score playing a team that tends to be in games of the average score will be predicted to have twice the average score. Finally, regardless of how low the teams tend to score, S can never be negative. These constraints are satisfied by:

   S = s1*s2,

where s1 and s2 are the teams' scoring ratings.

Working through a little bit of math, one finds:

   m1+m2 = 0.5*dr^2+0.5*sqrt(dr^4+16*s1*s2)
   m1-m2 = dr * sqrt [ 0.5*dr^2+0.5*sqrt(dr^4+16*s1*s2) ]

Thus, given the teams' predictive ratings and a typical score S, one knows the predicted number of scores for each team. If a team were to play itself, dr would equal zero and these would simplify to:
   m1 = m2 = s1 = s2

Thus the scoring rating is understood as the number of scores a team would make if it played against itself.

To calculate the teams' scoring ratings, one must maximize the likelihood of the outcome of all games that season. As noted above, the odds that a team predicted to score "m1" times will score "n1" times AND that a team predicted to score "m2" times will score "n2" times is given by:

   P(n1,n2|m1,m2) = exp(-m1-m2) * m1^n1 * m2^n2 / n1! / n2!

For an entire season, the probabilities are multiplied. Again requiring that the derivative with respect to each team's scoring rating is zero to maximize the probability, this becomes:
   0 = sum(i=games) (n1/m1-1) dm1/ds + (n2/m2-1) dm2/ds.

One must then solve for the set of team ratings that satisfies this.

A note must be made in regards to overtime games. Naturally overtime creates higher scores that do not reflect the number of points a particular team tends to score in its games. In sports with sudden-death overtime, one can use the knowledge that both teams had the lower score after regulation and replace (n1+n2) accordingly. In sports with constant-length overtime periods, it is fair to scale the combined score (n1+n2) to reflect the extra time played. In college football, I simply ignore scores of overtime games because of the fundamental difference in the way the game is played.

You may be wondering why I don't just calculate the score ratings at the same time as the predictive ratings. The main reason is that, while win/loss and G values are distributed according to the expected statistical distribution, there is more scatter than expected in the total scores. In other words, my statistical model works perfectly in calculating team predictive ratings and the odds of team A beating team B, but does not work perfectly in predicting expected total scores of future games. Thus I do what can be done perfectly first and follow with the imperfect so as to not hinder the accuracy of the predictive ratings.


Return to ratings main page

Note: if you use any of the facts, equations, or mathematical principles on this page, you must give me credit.

copyright ©2001-2003 Andrew Dolphin