I'm creating a game and can't seem to quite figure this out - driving me crazy.
- There are 8 questions in my game
- You can play the game an unlimited amount of times
- the test bank doesn't change. so when a new game starts it draws from the same test bank (the questions are not replaced by new ones). within a game, however, there are 8 unique questions.
how many total questions do I need in the test bank, where if i play the game twice, the probability of getting 4 questions repeated is less than 5%?
Let $n$ be the number of questions. We will calculate the chance that exactly four questions are repeated out of eight. There are ${n-8 \choose 4}{8 \choose 4}$ ways to choose four matching and four non-matching, and $n \choose 8$ ways to choose the questions overall. So we want $$\frac {{n-8 \choose 4}{8 \choose 4}}{n \choose 8}=0.05$$ I find $36$ gives a probability of $4.7\%$