131k views
4 votes
A certain virus infects one in every 400 people. A test used to detect the virus in a person is positive 90% of the time if the person has the virus and 10% of the time if the person does not have the virus. Let A be the event "the person is infected" and B be the event "the person tests positive." (a) Find the probability that a person has the virus given that they have tested positive. (b) Find the probability that a person does not have the virus given that they have tested negative.

2 Answers

4 votes

the probability of a person having the virus given that they tested positive is approximately 2.21%.

Given Information:

  • Virus Infection Rate: 1 in 400 people (infected = 1/400, not infected = 399/400)
  • Test Positivity:
  • Positive if infected: 90% (true positive)
  • Positive if not infected: 10% (false positive)

Events:

  • A: Person is infected (probability = 1/400)
  • B: Person tests positive (probabilities depend on being infected or not)

Part (a): Probability of Infection Given Positive Test

We want to find P(A|B), the probability of someone being infected (event A) given that they tested positive (event B). This is a Bayes' theorem application.

Using Bayes' theorem:

P(A|B) = P(B|A) * P(A) / P(B)

where:

  • P(A|B) is the probability of being infected given a positive test (what we want to find)
  • P(B|A) is the probability of testing positive given someone is infected (true positive rate = 90%)
  • P(A) is the prior probability of being infected (1/400)
  • P(B) is the overall probability of someone testing positive (need to calculate this)

Calculating P(B):

P(B) is the probability of someone testing positive, which can happen due to a true positive (infected and test positive) or a false positive (not infected but test positive).

P(B) = P(B|A) * P(A) + P(B|not A) * P(not A)

where:

  • P(B|A) is the true positive rate (already mentioned as 90%)
  • P(A) is the prior probability of being infected (1/400)
  • P(B|not A) is the false positive rate (10%)
  • P(not A) is the probability of not being infected (399/400)

Plugging in the values:

P(B) = 0.9 * (1/400) + 0.1 * (399/400) = 0.102

Back to Bayes' theorem:

Now we have all the values to solve for P(A|B):

P(A|B) = (0.9 * 1/400) / 0.102 = 0.0221

Therefore, the probability of a person having the virus given that they tested positive is approximately 2.21%.

User Jacktrades
by
5.0k points
5 votes

Answer:Given:

P(A)=1/400

P(B|A)=9/10

P(B|~A)=1/10

By the law of complements,

P(~A)=1-P(A)=399/400

By the law of total probability,

P(B)=P(B|A)*P(A)+P(B|A)*P(~A)

=(9/10)*(1/400)+(1/10)*(399/400)

=51/500

Note: get used to working in fraction when doing probability.

(a) Find P(A|B):

By Baye's Theorem,

P(A|B)

=P(B|A)*P(A)/P(B)

=(9/10)*(1/400)/(51/500)

=3/136

(b) Find P(~A|~B)

We know that

P(~A)=1-P(A)=399/400

P(~B)=1-P(B)=133/136

P(A∩B)

=P(B|A)*P(A) [def. of cond. prob.]

=9/10*(1/400)

=9/4000

P(A∪B)

=P(A)+P(B)-P(A∩B)

=1/400+51/500-9/4000

=409/4000

P(~A|~B)

=P(~A∩~B)/P(~B)

=P(~A∪B)/P(~B)

=(1-P(A∪B)/(1-P(B)) [ law of complements ]

=(3591/4000) ÷ (449/500)

=3591/3592

The results can be easily verified using a contingency table for a random sample of 4000 persons (assuming outcomes correspond exactly to probability):

===....B...~B...TOT

..A . 9 . . 1 . . 10

.~A .399 .3591 . 3990

Tot .408 .3592 . 4000

So P(A|B)=9/408=3/136

P(~A|~B)=3591/3592

As before.

Step-by-step explanation: its were the answer is

User Suresh Suthar
by
5.1k points