Bayes' Theorem

I tried the problem and my answers are still coming up wrong?. You can compare to mine to see where you (or I) went wrong. I'm a little rusty on
Virus infects one in every 200 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. (This 10% result is called a false positive.) 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, i.e. find P(A|B). Round your answer to the nearest tenth of a percent and do not include a percent sign. P(A|B)= .0045

b) Find the probability that a person does not have the virus given that they test negative, i.e. find P(A'|B'). Round your answer to the nearest tenth of a percent and do not include a percent sign. P(A'|B')

Bayes' Theorem problems.
Bayes' Theorem:
P( A|B ) = P(B|A) * P(A)/P(B)

P(A) = Pr{person is infected}
P(B) = Pr{person tests positive}
P(B|A) = Pr{person tests positive given that they are infected}
P(A) = 1/200 = 0.005
P(B) = (1/200)*0.90 + (199/200)*0.10 = 0.104
P(B|A) = 0.90
P(A|B) = 0.90 * 0.005 / 0.104 = 0.0433
Comment: This answer is somewhat surprising. A 4.33% chance that the person has the virus given that they've tested positive. That seems way too low, but that's probably because the 10% false positive rate is pretty high. I think real world tests strive for a much lower false-positive rate.
A' = event 'person is not infected'
B' = event 'person tests negative'
P(B'|A') = probability of person testing negative given that they are not infected
P(A') = 199/200 = 0.995
P(B') = 0.896 ( = 1-P(B))
P(B'|A') = (199/200)(0.896) + (1/200)*0.104) = 0.89204
P(A'|B') = 0.89204*0.995/0.896 = 0.991

Comment: This answer makes sense. If a person tests negative, it is highly unlikely that they have the virus. Still, I suspect that 9/1000 is still too many false negatives for a real world scenario. I guess the importance of minimizing false negatives depends on how dangerous the virus is (its one thing not to detect if someone has a cold virus, its a different story to not detect they have Ebola, for example).

asked by MILLY
  1. Agree with the first part, except that with probability calculations, I prefer to work with fractions. If a decimal answer is required, it will be rounded at the end.

    First Part:

    =13/125 ~0.104
    =9/208 ~0.043269
    as you had it.

    Agree completely with your comments. The important factors are
    1. high false positive rates, compared to
    2. low incidence.

    Second Part:
    P(-|A')=(9/10) [given]
    =112/125 ~ 0.896
    =1791/1792 ~0.999442

    Agree also with your comments.
    False negative here is actually 1/1792~0.00055, which is reasonable.

    posted by MathMate
  2. Here is my solution:

    Given probabilities: P(A) = 1/200 = 0.005 P(B) = 199/200 = 0.995 P(B|A) = 0.9 P(B|~A) = 0.1 Infer: P(~B|A) = 0.1 P(~B|~A) = 0.9 Then: 

    a.) Find P(A|B) P(A|B) = P(A)P(B|A) = 0.005×0.9 = 0.0045 rounds to 0.0 

    b.) Find P(~A|~B) P(~A|~B) = P(~A)P(~B|~A) = 0.995×0.9 = 0.896 rounds to 0.9 Note: the symbol ~A means A' in your notation. QED

    posted by Joe
  3. Please ignore my entry: there is an error in the above calc. that I offered.

    posted by Joe

Respond to this Question

First Name

Your Response

Similar Questions

  1. maths

    I've to solve the following absolute value equation 8|w-7|=72. I solved the equation and the answers I got were -2 and 16. However the problem is that when I'm checking the equation with the answers it's not coming right. I.E.
  2. Algebra

    Hi! I was wondering if anyone might be willing to check my answers for these... I have a suspiscion they are wrong, but I don't have any correct answers to compare them against. If I got them wrong, would you mind giving a brief
  3. Calculus

    This is a problem we did previously on a test; my answer was marked correct, but I am having trouble getting my answer in the same form that my teacher gave it. The question: Find the derivative of (x/(x+1))^1/2 His answer: (
  4. math

    Hi! I am new to Jishka and I need help checking my answers. 1. Which proportion can be used to determine what number is 15% of 30? A. 15/30 = x/100 (Mine) B. 15/100 = x/30 C. 15/100 30/x D. 30/100 = 15/x 2. Which equation can be
  5. Algebra Question

    What am I doing wrong I am using the Gauss Jordan method to calculate this answer and some other students are coming up with differant answers. Problem is 3x+y+z=5, x+5y-z=-8, 10x+7y+z=2 My answer is (-6z+3,7z-4 _________, z ( 11
  6. linear programming

    Exeter Mines produces iron ore at four different mines; however, the ores extracted at each mine are different in their iron content. Mine 1 produces magnetite ore, which has a 70% iron content; mine 2 produces limonite ore, which
  7. Calc I

    I really need assistance!! I am to write an equation so that I can graph it. I do not understand how to graph OR write the equation for: x^2-y^2=16 for a tangent and normal line??? I keep coming up with the wrong answers...and the
  8. Career Studies

    what is the definition of creative/artistic skills? What does it mean? Why is it important to have this skill? How might you need this skill in school and career? Other information of interest. i got some answers but i wanna
  9. Math-Geometry

    I have to calcualte the volume of a cone. The height is 2.1 ft, and the base is 2 inches. I keep coming up with the answer of 8.792 cu ft. There is 4 choice answers given: 0.061 ft,0.610 ft,6.125 ft and 2.016 ft. I have tried
  10. Grammar

    Tranformation of Sentences ? 1.He wont show me his papers,he wont tell me who he is (use neither -nor) 2.This is all i posses.(Turn to negative) 3.No man in tge street came forward to help her.(Turn to Assertive) Plz post in the
  11. Financial

    I have found all the answers, but I have no idea how to compare my findings. Here are what I need to compare. 1) Rules of thumb: 2) Adjusted book value: 3) Discounted cash flow: All three of those have answers that I have already

More Similar Questions