Determining probability of ‘thirteen orphans’ hand in riichi mahjong

combinatorial-game-theorycombinatoricsgame theorypermutationsprobability

For anyone not familiar with how riichi mahjong is played, it uses 34 unique tiles with 4 duplicates of each tile, adding up to 136 in total. There are numbers 1 to 9 in 3 different suits, as well as two types of special honor tiles: winds, which have 4 unique tiles – east, west, south and north, and dragons, which have 3 unique tiles – red, green, and white dragon. This is what they look like:

Players discard and draw from this deck and try to build their hand which contains 13 tiles along with 1 tile they have drawn.

Can one determine the likelihood of getting a mahjong hand mathematically without using programs to simulate the hands? For instance, such as the thirteen orphans:

Discarding and other players can be ignored, I just want to know the the likelihood of it happening from just drawing tiles from the deck.

The criteria are as follows:

  • The hand must contain a 1 and a 9 from all 3 numbered suits
  • All four wind tiles
  • All three dragon tiles
  • One duplicate of any wind or dragon tile to complete the hand

Calculating the odds of something like the nine gates

is fairly straightforward as there is only one suit to choose from which leaves us with something like
$\frac{{4 \choose n_1} . . . {4 \choose n_9}}{34 \choose 13}$ where $n_j$ is the amount of duplicates of a tile and $j$ is the number of the number of the tile ($n_1$ for the first tile, all the way up to $n_9$). However, I cannot figure out what to do when honor tiles get involved.

Best Answer

You need:

  • A 1 from each of the 3 suites ($4^3$ ways)
  • A 9 from each of the 3 suites ($4^3$ ways)
  • Exactly 2 of an honor tile ($4 \choose 2$ ways)
  • Exactly 1 of every other honor card ($4^6$ ways)
  • 7 ways of choosing which honor card is repeated

Total ways of selecting a 13 orphans = $4^{12} \times 7 \times {4 \choose 2}$

Total ways of selecting a valid deck = $136 \choose 14$

Probability = $\dfrac{7 \times 4^{12} \times {4 \choose 2}} {{136 \choose 14}}$