Solveeit Logo

Question

Question: On an average, 20% of the computers in a firm are virus infected. If 10 computers are chosen at rand...

On an average, 20% of the computers in a firm are virus infected. If 10 computers are chosen at random from this firm, find the probability that at least one computer is virus infected, using Binomial distribution.

Answer

The probability that at least one computer is virus infected is 87170499765625\frac{8717049}{9765625}.

Explanation

Solution

Let nn be the number of computers chosen, so n=10n=10.

Let pp be the probability that a computer is virus infected, so p=20%=0.20p = 20\% = 0.20.

Let qq be the probability that a computer is not virus infected, so q=1p=10.20=0.80q = 1 - p = 1 - 0.20 = 0.80.

The number of virus infected computers among the 10 chosen follows a Binomial distribution XB(n,p)X \sim B(n, p), i.e., XB(10,0.20)X \sim B(10, 0.20).

The probability of getting exactly kk virus infected computers in 10 trials is given by the Binomial probability formula:

P(X=k)=(nk)pkqnk=(10k)(0.20)k(0.80)10kP(X=k) = \binom{n}{k} p^k q^{n-k} = \binom{10}{k} (0.20)^k (0.80)^{10-k}.

We need to find the probability that at least one computer is virus infected, which is P(X1)P(X \ge 1).

The event "at least one computer is virus infected" is the complement of the event "no computer is virus infected".

So, P(X1)=1P(X<1)=1P(X=0)P(X \ge 1) = 1 - P(X < 1) = 1 - P(X=0).

Now, we calculate P(X=0)P(X=0):

P(X=0)=(100)(0.20)0(0.80)100P(X=0) = \binom{10}{0} (0.20)^0 (0.80)^{10-0}

P(X=0)=11(0.8)10P(X=0) = 1 \cdot 1 \cdot (0.8)^{10}

P(X=0)=(0.8)10P(X=0) = (0.8)^{10}

We can write 0.80.8 as a fraction: 0.8=810=450.8 = \frac{8}{10} = \frac{4}{5}.

So, P(X=0)=(45)10=410510P(X=0) = \left(\frac{4}{5}\right)^{10} = \frac{4^{10}}{5^{10}}.

Calculate 4104^{10} and 5105^{10}:

410=(22)10=220=(210)2=10242=10485764^{10} = (2^2)^{10} = 2^{20} = (2^{10})^2 = 1024^2 = 1048576.

510=(55)2=(3125)2=97656255^{10} = (5^5)^2 = (3125)^2 = 9765625.

So, P(X=0)=10485769765625P(X=0) = \frac{1048576}{9765625}.

Now, we calculate P(X1)P(X \ge 1):

P(X1)=1P(X=0)P(X \ge 1) = 1 - P(X=0)

P(X1)=110485769765625P(X \ge 1) = 1 - \frac{1048576}{9765625}

P(X1)=9765625976562510485769765625P(X \ge 1) = \frac{9765625}{9765625} - \frac{1048576}{9765625}

P(X1)=976562510485769765625P(X \ge 1) = \frac{9765625 - 1048576}{9765625}

P(X1)=87170499765625P(X \ge 1) = \frac{8717049}{9765625}

Alternatively, using decimal form:

P(X=0)=(0.8)100.107374P(X=0) = (0.8)^{10} \approx 0.107374

P(X1)=10.107374=0.892626P(X \ge 1) = 1 - 0.107374 = 0.892626 (rounded to 6 decimal places).

The exact fractional answer is 87170499765625\frac{8717049}{9765625}.

Explanation of the solution:

The problem follows a Binomial distribution with n=10n=10 trials (computers chosen) and probability of success p=0.2p=0.2 (virus infected). The probability of failure is q=1p=0.8q=1-p=0.8. We want to find the probability of at least one success, P(X1)P(X \ge 1). This is calculated as 1P(X=0)1 - P(X=0). Using the Binomial probability formula P(X=k)=(nk)pkqnkP(X=k) = \binom{n}{k} p^k q^{n-k}, we find P(X=0)=(100)(0.2)0(0.8)10=(0.8)10P(X=0) = \binom{10}{0} (0.2)^0 (0.8)^{10} = (0.8)^{10}. Calculating (0.8)10=(4/5)10=410510=10485769765625(0.8)^{10} = (4/5)^{10} = \frac{4^{10}}{5^{10}} = \frac{1048576}{9765625}. The required probability is 1P(X=0)=110485769765625=976562510485769765625=871704997656251 - P(X=0) = 1 - \frac{1048576}{9765625} = \frac{9765625 - 1048576}{9765625} = \frac{8717049}{9765625}.