SOLUTION: Five-digit codes are selected at random from the set {0, 1, 2, ..., 9} with replacement. If the random variable X denotes the number of zeros in randomly chosen codes, then what ar

Algebra ->  Probability-and-statistics -> SOLUTION: Five-digit codes are selected at random from the set {0, 1, 2, ..., 9} with replacement. If the random variable X denotes the number of zeros in randomly chosen codes, then what ar      Log On


   



Question 1149314: Five-digit codes are selected at random from the set {0, 1, 2, ..., 9} with replacement. If the random variable X denotes the number of zeros in randomly chosen codes, then what are the space and the probability density function of X?
Answer by ikleyn(52805) About Me  (Show Source):
You can put this solution on YOUR website!
.
The first sentence means that repetitions are allowed in the code's digits.


The possible values for the random variable X are {0, 1, 2, 3, 4, 5}.



X= 0  means that there is NO zero among five digits of the code.

      The probability do not have zero in any one fixed/selected of 5 positions is  9%2F10;

      The provability do not have zero in ALL        5 positions, is, therefore,  %289%2F10%29%5E5.



X= 1  means that there is exactly one 0 among five digits of the code.

      The probability for it is  C%5B5%5D%5E1%2A%289%2F10%29%5E4%2A%281%2F10%29 = 5%2A%289%2F10%29%5E4%2A%281%2F10%29.



X= 2  means that there is exactly two 0 among five digits of the code.

      The probability for it is  C%5B5%5D%5E2%2A%289%2F10%29%5E3%2A%281%2F10%29%5E2.


The pattern is just clear.  The probability for X = k,  where  k= 0, 1, 2, 3, 4, 5,  is

            C%5B5%5D%5Ek%2A%289%2F10%29%5E%285-k%29%2A%281%2F10%29%5Ek.   

Solved.

-------------

CHECK. You may check that the sum of these 6 partial probabilities is 1.

    Indeed, this sum is equal to  %28%289%2F10%29+%2B+%281%2F10%29%29%5E5 = 1%5E5 = 1.