document.write( "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? \n" ); document.write( "
Algebra.Com's Answer #770674 by ikleyn(52810)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "
\r\n" );
document.write( "The first sentence means that repetitions are allowed in the code's digits.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The possible values for the random variable X are {0, 1, 2, 3, 4, 5}.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "X= 0  means that there is NO zero among five digits of the code.\r\n" );
document.write( "\r\n" );
document.write( "      The probability do not have zero in any one fixed/selected of 5 positions is  \"9%2F10\";\r\n" );
document.write( "\r\n" );
document.write( "      The provability do not have zero in ALL        5 positions, is, therefore,  \"%289%2F10%29%5E5\".\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "X= 1  means that there is exactly one 0 among five digits of the code.\r\n" );
document.write( "\r\n" );
document.write( "      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\".\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "X= 2  means that there is exactly two 0 among five digits of the code.\r\n" );
document.write( "\r\n" );
document.write( "      The probability for it is  \"C%5B5%5D%5E2%2A%289%2F10%29%5E3%2A%281%2F10%29%5E2\".\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The pattern is just clear.  The probability for X = k,  where  k= 0, 1, 2, 3, 4, 5,  is\r\n" );
document.write( "\r\n" );
document.write( "            \"C%5B5%5D%5Ek%2A%289%2F10%29%5E%285-k%29%2A%281%2F10%29%5Ek\".   \r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "CHECK. You may check that the sum of these 6 partial probabilities is 1.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "    Indeed, this sum is equal to  \"%28%289%2F10%29+%2B+%281%2F10%29%29%5E5\" = \"1%5E5\" = 1.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );