document.write( "Question 995872: Suppose that of 100 computers checked for viruses 30 where infected and 70 where not. If we select 10 computers at random what is the probability that at most 4 of them are infected \n" ); document.write( "
Algebra.Com's Answer #614525 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
the probability that at most 4 of them are infected is equal to the probability that 0 of them are infected plus 1 of them are infected plus 2 of them are infected + 3 of them are infected + 4 of them are infected.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "this uses the binomial probability formula which is:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p(x) = nCx * p^x * q^(n-x)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p is the probability of infected which is 30 / 100 = .3
\n" ); document.write( "q is the probability of not infected which is 1 - .3 = .7\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "for example:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the probability that exactly 1 out of the 10 will fail is 10C1 * .3^1 * .7^9.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p(1) is therefore equal to 10 * .3 * .040353607 = .121060821.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the sum of all the probabilities must be equal to 1 or you did something wrong.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "here's the probabilities for all the possibilities.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "in this spreadsheet p*(3) whould really have been just p(3).
\n" ); document.write( "the * is a typo.
\n" ); document.write( "my keyboard likes to add extra characters sometimes and i don't always catch it before publishing.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"$$$\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "here's a reference on how to use the binomial probability formula.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "http://regentsprep.org/regents/math/algtrig/ATS7/BLesson.htm\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the combination formula can be referenced as nCx, C(n,x) or the form that is shown in the reference.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );