After all three teams lost Wednesday, the New York Mets, St. Louis Cardinals and San Francisco Giants remain locked in a three-way tie for the National League’s two wild-card slots. Our prediction model, which is based on a simulation that uses each team’s Elo rating, gives New York a 75 percent chance of grabbing at least one of those two slots, with St. Louis at 62 percent and San Francisco at 59 percent. But what are the odds all three end up tied after the final game of the regular season, thereby triggering a crazy three-game sprint to the Division Series?

Elo assigns a 3 percent chance that the Cardinals, Mets and Giants have the same record on Oct. 2. However, it also projects that there’s a 0.5 percent chance a three-way tie could include the Pirates, Marlins, Rockies or even the Dodgers, if San Francisco somehow chases them down for the NL West title. Add it all up, and there’s about a 3.5 percent chance of a three-way tie in the NL.

What might surprise you is that, although the NL has three teams tied right now, the odds of a three-way tie in the AL are almost double those of a tie in the NL. The AL’s possibilities are more varied; most include some combination of Toronto, Baltimore, Houston and Detroit, with other, more exotic combos that also involve the Mariners, the Yankees and even division leaders such as the Red Sox and Indians (if they botch the season’s final week and a half). No single AL trio is more likely than the NL’s Cardinals/Mets/Giants combo — the AL’s most likely is Baltimore/Houston/Toronto with a 1.1 percent chance of occurring — but because there are more viable contenders, the sum of all the various permutations comes out to a 6.2 percent probability of some three-team tie happening.

In any event, today’s odds of 3.5 percent in the NL and 6.2 percent in the AL imply a 9.6 percent chance that we’ll see a three-way tie somewhere. If we do, MLB’s tiebreaking rules are going to be a treat for those who love geeking out over strategies and hypotheticals.

Say Mets/Cardinals/Giants does happen in the NL. In that case, the Cardinals would have top priority among the three (because of their superior intradivision record over the Mets and head-to-head-record over the Giants) and host a game for one of the wild-card slots. But the fun really begins in determining their opponent. The Mets have the next-highest priority, and they could choose to play on the road against St. Louis and, if they lose, play on the road again versus San Francisco in the next tiebreaker. Or they could let the Giants travel to St. Louis for the first tiebreaker game, then face the loser in a do-or-die contest at home.

As Jayson Stark wrote Thursday morning, no team has chosen to slice its tiebreaker chances in half by taking the single-home-game option instead of having two cracks at it on the road, if necessary. The Mets’ injury-riddled staff is in such shambles, however, that the team might ponder it. Elo would give New York a 73 percent chance of winning at least one of two road games against the Cardinals and Giants with top two starters Noah Syndergaard and Steven Matz on the mound — if it can manage to set its rotation enough for that 1-2 punch — compared with only a 55 percent chance with Syndergaard starting one game at home. But burning through two starters could leave the Mets with a subpar starter on the hill — and as low as a 45 percent chance of winning the wildcard game. Compelling, but probably not enough to justify giving up the 18 percentage point difference between having two tiebreaker chances and just one.

Of course, that’s all assuming the 3.5 percent chance of a three-way tie even becomes a reality. A two-way tie is far more in the realm of possibility — 30 percent likely in the AL, and 22 percent in the NL — but right now it’s only about 50-50 that we’ll see any tiebreaker at all, despite how the standings look currently. Still, that’s a lot higher than the 1.4 percent chance of one before the season.