I'd like to set up a game for our friends with the following rule:
+ There are 10 balls in a box, consisting of 1 green, 2 red, 3 yellow, and 4 colorless balls.
+ The rules of the game are simple: keep picking up one ball at a time until you encounter either 1 green ball, 2 red balls, or 3 yellow balls.
I'm interested in creating a table that calculates the probability of drawing the entire set of balls by the Nth attempt:
The calculation is really difficult for the following cases, please help me find a general calculation
+ There are 10 balls in a box, consisting of 1 green, 2 red, 3 yellow, and 4 colorless balls.
+ The rules of the game are simple: keep picking up one ball at a time until you encounter either 1 green ball, 2 red balls, or 3 yellow balls.
I'm interested in creating a table that calculates the probability of drawing the entire set of balls by the Nth attempt:
| Drawn | Green | Red | Yellow |
| 1 | P=1/10P1 | P=0 | P=0 |
| 2 | P=(9*1)/10P2 | P=2!/10P2 | P=0 |
| 3 | P=3!/10P3 | ||
| 4 | |||
| 5 | |||
| 6 | |||
| 7 |