# Lottery problem - Chance of 4 out of 5 balls matching?

In a lottery, an urn contains 40 balls that are numbered 1, 2, ..., 40. Each week, 5 balls are drawn from the urn without replacement. To enter, one chooses 5 numbers. Anyone who correctly predicts exactly (and only) four of the five numbers (order doesn't matter) wins the jackpot. What's the probability of winning this lottery?

My approach was to do $\frac{{5 \choose 4} \times 34}{{40 \choose 5}}$, as I have to choose 4 out of the 5 balls, and there are $40-5-1=34$ ways to choose the last number so it does not match the final ball. As well, there should be $40 \choose 5$ ways to select five balls from the urn. However, this doesn't seem to work... Where have I gone wrong?

• There are $35$ numbers that do will not match the drawn balls , not 34. $\dfrac{{5\choose 4}{35\choose 1}}{40\choose 5}$ Commented Sep 28, 2014 at 23:41

$$\frac{{5\choose 4}{35\choose 1}}{40\choose 5}$$
• Thanks! I didn't realize that $35 \choose 1$ was the correct way to choose the final number. Commented Sep 28, 2014 at 23:53
• Note that if you didn't put that $-1$ in your calculations, yours were right as well (${35\choose 1} = 35$). Commented Sep 29, 2014 at 0:06
If the question is exactly 4, than I'd say out of ${40 \choose 5}$, you have 5 chances for the ball that can go wrong, and that can have 35 values. So I'd say 175 / ${40 \choose 5}$.