In a game like Carcassonne, sometimes you need a specific type of tile to score points.
- All tiles are face down so everyone selects the tiles at random.
- All tiles will eventually be selected by someone playing the game.
- The number of players can vary from 2 - 5 players.
In a 2 player game, if I need a certain tile (Tile M) and there is only 1 left I have 50% chance of getting it.
| Player A | Player B |
|----------| ---------------|
| 0 | Tile M |
| Tile M | 0 |
Player A gets at least 1 certain tile 1/2 of the time = 50% chance.
In a 2 player game, if I need a certain tile (Tile M or Tile N) and there are 2 left (Tile M & Tile N) I have 75% chance of getting one of them.
| Player A | Player B |
| -----------| -------------- |
| Tile M & N | 0 |
| Tile M | Tile N |
| Tile N | Tile M |
| 0 | Tile M & N |
Player A gets at least 1 of the certain tiles 3/4 of the time = 75% chance.
Solving these using truth tables doesn't scale well. Is there a general solution to solve for X tiles with Y players?
Probability(Get atleast one tile) = 1 - Probability(Getting no tiles)
This second probability is easier to calculate : for each tile among the $X$ tiles, it can go to any of the other players with probability $\frac{Y-1}{Y}$
As these tiles seem independent of each other, the total probability of all tiles going to other players, or you getting no tiles is $\left(\frac{Y-1}{Y}\right)^X$, so the final probability of you getting at least one tile is $1-\left(\frac{Y-1}{Y}\right)^X$
Note : Also if $Y\gg X$, $1-\left(\frac{Y-1}{Y}\right)^X = 1-\left(1-\frac{1}{Y}\right)^X \approx 1-\left(1-\frac{X}{Y}\right) = \frac{X}{Y}$ which is kinda what you would expect