Original Post
I'm working on a probability calculation problem and just cannot get the computed probability to match an empirical observation. I hope I can describe it, below, and no, it is not homework. The problem is very general, but here's a specific description.
Let's say I choose 10 numbers at random between 1 and 50 with replacement. What is the probability that the number 13 will occur 3 times in that sequence of 10?
I've approached it this way:
For 3 of the selections, I want a specific number, so that gives me (1/50)^3.
The other 7 selections, can be anything except my specific number (49/50)^7.
I don't care what the order of occurrence is, so I could have 10 Choose 3 different ways to get the same number 3 times in that series of 7, or combin(10,3)
Putting it all together, I should have (1/50)^3 * (49/50)^7 * combinations(10 choose 3)
This always over-estimates the actual rate of occurrence that I see in a simulation of the problem. Where have I gone wrong??
Let's say I choose 10 numbers at random between 1 and 50 with replacement. What is the probability that the number 13 will occur 3 times in that sequence of 10?
I've approached it this way:
For 3 of the selections, I want a specific number, so that gives me (1/50)^3.
The other 7 selections, can be anything except my specific number (49/50)^7.
I don't care what the order of occurrence is, so I could have 10 Choose 3 different ways to get the same number 3 times in that series of 7, or combin(10,3)
Putting it all together, I should have (1/50)^3 * (49/50)^7 * combinations(10 choose 3)
This always over-estimates the actual rate of occurrence that I see in a simulation of the problem. Where have I gone wrong??