Major League Baseball 
RIOT
HOME
Baseball:

Frequently Asked Questions
The magic number can be computed using the following numbers (see [1]
for alternative formulae):
The team currently in first place will finish with w_{1}+ x wins and the team currently in second place will finish with w_{2 }+ g_{2 } y wins. The team currently in first place will finish ahead of the team currently in second place as long as w_{1 }+ x > w_{2 }+ g_{2} y. The magic number is the smallest number x + y such that x + y > w_{2} + g_{2}  w_{1}. Since we are dealing with integers (whole numbers), the magic number is w_{2} + g_{2}  w_{1}+ 1. Here is an example using the National League East standings as of 9 am, EST, Sunday September 8 1996: National League East
The firstplace team, Atlanta, has 86 wins and the secondplace team, Montreal, has 78 wins and 21 games left to play. So, w_{1}= 86, w_{2}= 78 and g_{2}= 21. Thus, Atlanta's magic number is 78 + 21  86 + 1 = 14. This means that any combination of wins by Atlanta and losses by Montreal totaling 14 ensures that Atlanta will win the National League East. For example, if Atlanta wins 14 more games, they will finish with at least 100 wins. The best Montreal can do is 78 + 21 = 99 wins. Thus, Atlanta would finish ahead of Montreal. Likewise, if Montreal were to lose 14 games, they would have 7 games left to play and could finish with at most 78 + 7 = 85 wins. Since Atlanta already has 86 wins, they would finish ahead of Montreal in this scenario as well. Finally, suppose Atlanta wins 4 games and Montreal loses 10  a combination adding up to the magic number, 14. In this scenario, Atlanta would have 90 wins and Montreal would have 78 wins with 11 games left to play. This means that Montreal could finish with at most 78 + 11 = 89 wins and could not catch up with Atlanta. Notice that RIOT lists Atlanta's firstplace clinch number as 13  one
less than the magic number. In this case, the difference is
that firstplace clinch number includes ties for first place while the
magic number does not. The firstplace clinch number is often
just one less than the magic number, but sometimes there is a larger difference.
For example, consider another example from September 8 1996:
National League West
Here, Los Angeles' magic number is 78 + 19  78 + 1 = 20, but the firstplace clinch number is only 17. What you can't see from the standings is that Los Angeles and San Diego will play each other 7 more times before the end of season. Thus, if L.A. wins 17 more games, then at least 3 of them will be against San Diego. Notice that 17 wins for L.A. plus 3 losses for San Diego adds up to the magic number, 20. This example illustrates how the magic number does not always tell the whole story. Another drawback with the magic number is that it really only applies to a pair of teams. For instance, if San Diego loses 20 of its remaining games in the example above it does not necessarily mean that Los Angeles will win the division. It just means that L.A. will finish ahead of San Diego. Since Colorado has not yet been eliminated, it is still possible for the Rockies to win the division. The firstplace clinch number, however, is a guarantee; no matter what else happens, the Dodgers will at least clinch a tie for first place if they win 17 more games. Each league (American and National) sends five teams to the postseason: the three division winners and two wild card teams. The wild card teams are the two teams in the league with the best records among all teams that are not division winners. In princple the wild card teams are the teams with the 4th and 5th best records in the league, and are the two best secondplace teams. However, it's possible that the wild card teams come from the same division, and it's possible that a wild card team could have a better record than the division winner of another division. This can get quite complicated; see Wikipedia or the official Major League Baseball web site for details.
References [1] M. T. Battista "Mathematics in Baseball." Mathematics Teacher. 86:4. 336342. 1993
