Answer the question
In order to leave comments, you need to log in
How to calculate the probability of a number appearing K times on a segment N?
The random number generator generates N numbers from A to B. How to count the number of possible occurrences of the number n exactly K times?
For example:
10 numbers are generated from 1 to 5. Total possible variations of the number series: 5^10 = 9765625.
How many of these 9765625 ones will be generated exactly 4 times?
Answer the question
In order to leave comments, you need to log in
(number of ways to select k elements from n)*(number of ways to fill in nk elements)
for the first see "combinations", 2 you already know how to count.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question