HOW RIOT WORKS


How the numbers work

RIOT proves these numbers rather than estimating them. Every column below is settled with 100% certainty: a team either has met that condition or it has not, with no probability attached and nothing left to a projection.

Example: Playoff Elimination (POE)

Games left to play
Wins still required
16
Minnesota
7
Still possible
18
Washington
15
Still possible
17
Chicago
22
Out of reach

Read outward from the center. While the wins a team still needs fit inside the games it has left, the outcome is reachable. The moment the right bar runs past the left one, it is not. That is elimination, and the number on the left is what the clinch and elimination columns are measuring against.

Definition of terms

FPC
First Place Clinch

Wins still needed to guarantee finishing first, whatever everyone else does.

FPE
First Place Elimination

Wins still needed to keep first place mathematically possible. Out means no path is left; 0 means a path remains even without another win.

POC
Postseason Clinch

Wins still needed to guarantee a postseason place that cannot be taken away. In the NBA this column tracks a guaranteed top-6 seed.

POE
Postseason Elimination

Wins still needed to keep a postseason place mathematically possible. Out means no path is left; 0 means a path remains even without another win. In the NBA a team out here can still be alive in the play-in.

PIC
Play-In Clinch

NBA only. Wins still needed to guarantee a top-10 finish, even when a guaranteed top-6 seed is out of reach.

PIE
Play-In Elimination

NBA only. Wins still needed to keep a top-10 finish possible. Out here means fully out of the postseason.

Clinch answers "how many more wins make this certain?" Elimination answers "how many more wins keep this possible?"

Background

The traditional magic number is the smallest number such that any combination of wins by the first-place team and losses by the second-place team totaling the magic number guarantees that the first-place team will finish the season with a better record than the second-place team.

The clinch numbers provided by RIOT Sports can be thought of as improved replacements for traditional magic numbers. They are superior since their calculation accounts for teams' remaining schedules and the league's tiebreak procedures.

First Place Clinch Number

The first place clinch number is similar to the commonly reported magic number. If a team wins this number of additional games, it is guaranteed to finish the season with a better record than any of the other teams in the league, or to win the tiebreaker for first place. An asterisk (*) indicates that even if a team wins all of its remaining games, it will not necessarily clinch first place. In this case the team does not have a first place clinch number.

Postseason Clinch Number

If a team wins this number of additional games, it is guaranteed a spot in the postseason. As with the first place clinch number, an asterisk (*) indicates that even if a team wins all of its remaining games, it cannot guarantee itself a postseason berth.

The elimination numbers provided by RIOT allow fans to determine which teams are still in contention for the postseason, and how close those teams are to being eliminated.

First Place Elimination Number

This is the minimum number of games that a team must win in order to remain in contention for first place. Teams that are already eliminated from first place contention are labeled "Out" in this box. See the list of frequently asked questions for an example of the distinction between the interpretations of the First Place Elimination Number and the First Place Clinch Number.

Postseason Elimination Number

This is the minimum number of games that a team must win in order to remain in contention for the postseason. Teams that are already eliminated from the postseason are labeled "Out" in this box.

The magic number can be computed using the following numbers:

  • w1 - the number of games the team currently in first place has won so far
  • w2 - the number of games the team currently in second place has won so far
  • g2 - the number of games the team currently in second place has left to play

Now, suppose that the first-place team wins x more of its remaining games and the second-place team loses y more of its remaining games (i.e., it wins g2-y games). We will now derive a formula for the magic number, x + y. The team currently in first place will finish with w1 + x wins and the team currently in second place will finish with w2 + g2 - y wins. The team currently in first place will finish ahead of the team currently in second place as long as w1 + x > w2 + g2- y. The magic number is the smallest number x + y such that x + y > w2 + g2 - w1.

Since we are dealing with integers (whole numbers), the magic number is w2 + g2 - w1+ 1.

Take the Eastern Conference standings on the morning of March 7, 2019 for example.

Clinch Avoid Elimination From
Team W L GB PCT GL 1st Postseason 1st Postseason
Milwaukee 4816- 0.75018 15Clinched 00
Toronto 46192.5 0.70817 *2 30
Indiana 42236.5 0.64617 *6 60

The first-place team, Milwaukee, has 48 wins and the second-place team, Toronto, has 46 wins and 17 games left to play. So, w1= 48, w2= 46 and g2= 17, and Milwaukee's magic number is 46 + 17 - 48 + 1 = 16. This means that any combination of wins by Milwaukee and losses by Toronto totaling 16 ensures that Milwaukee will finish with a better record than Toronto and presumably win the Eastern Conference. For example, if Milwaukee wins 16 more games, they will finish with at least 64 wins. The best Toronto can do is 46 + 17 = 63 wins. Thus, Milwaukee would finish ahead of Toronto. Likewise, if Toronto were to lose 16 games, they would have 1 game left to play and could finish with at most 47 wins. Since Milwaukee already has 48 wins, they would finish ahead of Toronto in this scenario as well.

Finally, suppose Milwaukee wins 6 games and Toronto loses 10, a combination adding up to the magic number, 16. In this scenario, Milwaukee would have 54 wins and Toronto would have 46 wins with 7 games left to play. This means that Toronto could finish with at most 46 + 7 = 53 wins and could not catch up with Milwaukee.

Notice that RIOT lists Milwaukee's first-place clinch number as 15, one less than the magic number. In this case, the difference is that first-place clinch number includes the possibility of ties for first place while the magic number does not. Another drawback with the magic number is that it really only applies to a pair of teams. For instance, if Milwaukee wins 6 more games and Toronto loses 10 games in the example above it does not necessarily mean that Milwaukee will finish the season in first place. It just means that the Bucks will finish ahead of the Raptors. Since Indiana has not yet been eliminated, it is still possible that they could move past both Milwaukee and Toronto. The first-place clinch number, however, is a guarantee: no matter what else happens, the Bucks will clinch first place if they win 15 more games.

As the end of the season approaches, fans like to engage in speculation about which teams will advance to the playoffs and whether their favorite team is still in contention. Sports media publish articles declaring that a particular team has been eliminated from contention or that the first place team has clinched a playoff berth. The worked example above ("How are magic numbers computed?") shows how these determinations can often be made by looking at the standings and making a few simple calculations, and how the RIOT numbers improve on those calculations by taking the remaining schedule of games and the league's tiebreakers into account.

RIOT re-scrapes results and re-solves every number nightly, after the day's games are complete. The "As of" stamp under each standings table shows when its numbers were last computed; between runs the numbers do not change. If a game is postponed or finishes late, it is picked up by the next nightly run.

The Remote Interactive Optimization Testbed (RIOT) project was initially made possible by Professor Dorit S. Hochbaum's Office of Naval Research (ONR) research grant N00014-91-J-1241 and National Science Foundation (NSF) Award DMI-9713482. The project started at the Industrial Engineering and Operations Research department of the University at California-Berkeley and subsequently moved to department of Operations Research and Engineering Management (OREM) of the Bobby B. Lyle School of Engineering at Southern Methodist University. RIOT is now a collaborative project between OREM and the Department of Mechanical Engineering at the Colorado School of Mines.

NBA

The top eight teams in each conference (Eastern and Western) reach the playoffs, seeded in a bracket; the winners of the two conference brackets face off in the NBA Finals. Since 2021 the NBA uses a permanent Play-In Tournament to decide the last two seeds: the top six teams in each conference clinch a guaranteed playoff berth, while the teams finishing 7th through 10th play Play-In games for the 7th and 8th seeds. The first-place team in each conference gets home-court advantage throughout the conference playoffs.

When two teams are tied for a playoff spot then the following sequence of criteria are applied until the tie is broken:

  1. Head-to-head: the team with the better record in the season series between the two teams wins the tie.
  2. Division winner: if one team is a division winner and the other isn't, the division winner wins the tie.
  3. Division record: if the teams are in the same division, the team with the better record against teams in that division wins the tie.
  4. Conference record: the team with the better record against teams in the conference wins the tie.
  5. Record against conference playoff teams: the team with best record against teams in the conference that qualify for the playoffs (including teams tied for a playoff spot) wins the tie.
  6. Record against the other conference's playoff teams: the team with best record against teams in the other conference that qualify for the playoffs (including teams tied for a playoff spot) wins the tie.
  7. Point differential: the team with the larger difference between total points scored during the season and total points allowed during the season wins the tie.

The process for breaking ties between three or more teams is described at the bottom of the official NBA standings page. There have only been four times since 2000 that this process has been used and in all of those cases all of the tied teams went to the playoffs, and the tiebreakers were needed solely for seeding in the playoff bracket. This process can be quite complicated and we are still working on incorporating it in our calculations.

Not necessarily. In the example above, the first-place elimination numbers for Milwaukee and Toronto are 0 and 3, respectively. With 17 games left, Toronto still has a chance to finish in first place. So, Milwaukee hasn't clinched anything yet. Having a first-place elimination number of 0 simply means that it's possible for Milwaukee to finish in first place without winning another game. In other words there is at least one scenario in which no team in the Eastern Conference wins more than 48 games. Based on the current standings and schedule of remaining games, Milwaukee needs to win at least 15 more games to guarantee a first-place finish. Meanwhile if Toronto doesn't win at least 3 more games, they can't possibly catch up to Milwaukee. So, they need to win at least 3 more games to avoid being eliminated from first place.

Not necessarily. In the example above, RIOT shows * for Toronto's first-place clinch number. This means that even if Toronto wins all of their remaining games there is still the possibility of some other team finishing in first place. Notice, however, that Toronto's first-place elimination number in the example is 3. That means that there is a scenario in which Toronto finishes in first place with as few as 49 wins if other teams lose most of their remaining games. So, the RIOT numbers in the example show that Toronto can finish in first place, but cannot guarantee themselves a first-place finish solely by winning a particular number of games.

Because the NBA has a Play-In Tournament, RIOT shows two extra columns for the NBA. POC and POE (Playoff Clinch and Playoff Elimination) track a guaranteed top-six seed, an automatic playoff berth. PIC and PIE (Play-In Clinch and Play-In Elimination) track a top-ten finish in the conference, which earns at least a Play-In game. Because they measure different things, a team can be eliminated from a guaranteed top-six seed (POE shows "Out") while still being alive for the play-in (PIE shows a number). In the PIC column, "Clinched" means the team has clinched at least a play-in berth; in the PIE column, "Out" means the team is out of the postseason entirely. The numbers and the * symbol mean the same thing they do for the other columns.

WNBA

The top eight teams are seeded in a playoff bracket.

When two teams are tied for a playoff spot, then the following criteria are applied until the tie is broken:

  1. Head-to-Head Record: the team with the better record in the season series between the two teams wins the tie.
  2. Winning Percentage Against Winning Teams: the team with the better winning percentage against all teams with .500 or better record at the end of the season wins the tie.
  3. Head-to-Head Point Differential: the team that scored more points in the season series between the two teams wins the tie.
  4. Overall Point Differential: the team with the larger difference between total points scored during the season and total points allowed during the season wins the tie.

The process for breaking ties between three or more teams is described at the bottom of the official WNBA standings page.

Not necessarily. Suppose Seattle's first-place elimination number is zero with 5 games left, while Las Vegas still has a chance to finish in first place. Then Seattle hasn't yet clinched first place. A first-place elimination number of zero simply means that it's possible for Seattle to finish in first place without winning another game. There is at least one scenario in which no team wins more than 15 games. Based on the current standings and schedule of remaining games, Seattle would still need to win several more games to guarantee a first-place finish. Meanwhile, if Las Vegas doesn't win at least 2 more games, they can't possibly catch up, so their first-place elimination number is 2.

Not necessarily. Suppose RIOT shows * for Los Angeles's first-place clinch number. This means that even if Los Angeles wins all of their remaining games, there is still the possibility of some other team finishing in first place. Notice, however, that if Los Angeles's first-place elimination number is 3, there is a scenario in which Los Angeles finishes in first place with as few as 16 wins if other teams lose most of their remaining games. So the RIOT numbers show that Los Angeles can finish in first place, but cannot guarantee themselves a first-place finish solely by winning a particular number of games.

MLB

Each league (American and National) sends six teams to the postseason: the three division winners and three wild card teams. The wild card teams are the three teams in the league with the best records among all teams that did not win their division. The top two division winners in each league receive first-round byes; the remaining division winner (the 3 seed) hosts the third wild card, and the first wild card hosts the second, in the best-of-three Wild Card Series. It's possible for multiple wild card teams to come from the same division, and for a wild card team to have a better record than a division winner in another division.

MLB uses tiebreakers to settle ties for division titles, wild card spots, and seeding. Since 2022 these are decided mathematically rather than by a winner-take-all game (the old "Game 163" is gone). Two-team ties are broken in this order:

  1. Head-to-head record between the tied teams.
  2. Intradivision record (record within their own division).
  3. Interdivision record (record against the rest of their own league).
  4. Record over the final stretch of intraleague games.

See the official Major League Baseball web site for the complete rules, including ties among three or more teams.

Not necessarily. Suppose the American League East first-place elimination numbers for Tampa Bay, Toronto, New York, and Baltimore are 0, 5, 5, and 10. With more than 20 games left to play, Toronto, New York, and Baltimore each still have a chance to win the division, so Tampa Bay hasn't clinched anything yet. A first-place elimination number of zero simply means there is at least one scenario in which Tampa Bay finishes first without winning another game, one where no other team in the division passes their current win total. To guarantee first place, Tampa Bay would still need to win several more games. Meanwhile, if Toronto doesn't win at least 5 more games they can't catch Tampa Bay, which is exactly why Toronto's first-place elimination number is 5.

Not necessarily. The asterisk means the team does not currently have a clinch number: even if they win all of their remaining games, it is still possible for another team to finish ahead of them. Whether the team is still alive is shown by their elimination number. A team can carry an asterisk and still be very much in the race, it just can't finish the job on its own wins alone.

KBO

The top five teams determined by winning percentage ignoring ties (wins/(wins + losses)) make the postseason. The team with the best record during the regular season receives a bye all the way to the championship series. The No. 4 and No. 5 seeds face off in a wild-card round with the winner meeting the No. 3 seed, and then the winner of that series plays the No. 2 seed for a chance to reach the finals. The higher-seeded team gets home-field advantage in each series.

The wild-card round gives the No. 4 seed a real head start: the No. 4 seed advances with a single win, and a draw counts in their favor, while the No. 5 seed must win both games to move on. So when you read a 4th-place versus 5th-place clinch on the standings, the two spots are not interchangeable: clinching 4th is worth roughly a game in hand before the round starts.

  • If two teams finish the regular season tied for first place, they play a special first-place game to break the tie.
  • If two teams finish the regular season tied for fifth place, they play a special fifth-place game to break the tie.
  • If two teams are tied for 2nd through 4th place, their win-loss record against each other is the first tiebreaker. If the season series between the two teams is tied, then the team that scored more runs in the series wins the tiebreaker, and if that doesn't break the tie then the team that finished higher in the previous year's standings wins the tie.
  • If three or more teams are tied for any postseason spot, win total in the games played between the tied teams is the first tie-breaker, runs scored in the games played between the tied teams is the second, and the previous year's standings is the third tie-breaker.

Not necessarily. It simply means that there is at least one scenario in which the remaining games in the season play out in a way that your team doesn't win any more games but ends up finishing in first place anyway.

Not necessarily. It simply means that the team cannot guarantee themselves a first-place finish solely by winning all of their remaining games.


Watch the explainer