A new computer virus attacks a folder consisting of 200 files

  • Context: Undergrad 
  • Thread starter Thread starter TomJerry
  • Start date Start date
  • Tags Tags
    Computer files Virus
Click For Summary

Discussion Overview

The discussion revolves around the application of the normal approximation to a binomial distribution in the context of a computer virus affecting a folder of 200 files, where each file has a 0.2 probability of being damaged. Participants are analyzing the probability that fewer than 50 files get damaged, focusing on the mathematical steps involved in the approximation.

Discussion Character

  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant calculates the mean (μ = 40) and standard deviation (σ ≈ 5.7) for the binomial distribution and attempts to find the probability that fewer than 50 files are damaged using a normal approximation.
  • Another participant points out that npq is the variance, not the standard deviation, and raises the issue of applying a continuity correction to the normal approximation.
  • A similar point is reiterated by another participant, who suggests that the upper bound should be adjusted from 50 to 49, questioning the correctness of the original calculation.
  • One participant proposes using 49.5 as the upper bound for the continuity correction.

Areas of Agreement / Disagreement

Participants express disagreement regarding the correct upper bound for the continuity correction in the normal approximation, with some suggesting 49 and others proposing 49.5. There is no consensus on the final probability calculation.

Contextual Notes

Participants note the discrete nature of the binomial distribution and the implications for using a continuous approximation, highlighting the need for continuity correction without resolving the specific adjustments needed.

TomJerry
Messages
49
Reaction score
0
Question:
A new computer virus attacks a folder consisting of 200 files. Each file gets damaged with probability 0.2 independently of other files. Using Normal approximation of binomial distribution, find the probability that fewer than 50 files get damaged.


Solution:

Here n=200, p =0.2, q=0.8.

Formulae for normal approx is Z = X - \mu/\sigma

For binomial distribution \mu = np and \sigma2 = npq

Therefore
\mu = 40

\sigma = 5.7

when X=50

Z = 50 - 40 / 5.7 = 1.8

P(X<50) = P(Z<1.8) = 0.5 - P(0<Z<1.8) = 0.5 - 0.4641 = 0.0359

Is this correct ?
 
Physics news on Phys.org
I think that you have made some minor mistakes.
First of all, npq is not the standard deviation, it is the variance (which is related to the st.dev. how?)

Moreover, this distribution is actually discrete and you are only using the normal distribution as an approximation. This means that you should probably apply the so-called continuity correction, by changing your upper bound a bit (it should not be 50 but ...?)
 
CompuChip said:
I think that you have made some minor mistakes.
First of all, npq is not the standard deviation, it is the variance (which is related to the st.dev. how?)

Moreover, this distribution is actually discrete and you are only using the normal distribution as an approximation. This means that you should probably apply the so-called continuity correction, by changing your upper bound a bit (it should not be 50 but ...?)
Thanks X should be 49 and not 50 ...Isnt that correct
 
How about 49.5?
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
4K
Replies
4
Views
2K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
5K
  • · Replies 12 ·
Replies
12
Views
2K