Consider a quick test for diabetes. It correctly detects diabetes with probability 0.7 if the patient has diabetes, and it correctly detects absence of diabetes if the patient does not have diabetes with probability 0.9. Assuming that a random person is positively tested for diabetes and assuming that 5% of the population have diabetes, then the probability that the person indeed has diabetes is
We need to assign variables to events. Let \(A\) be the event that the have diabetes. Let \(B\) be the probability that they tested positive for diabetes. The question is asking for \(Pr(A|B)\).
Remember that: \[ \Pr(A|B) = \frac{\Pr(A\cap B)}{\Pr(B)} \]
We don't know that much about \(\Pr(B)\) yet though... We need another event: Let \(C\) be the event that the test is correct.
so wat is 0.7 and 0.9 isnt it P(A|B) abd P(-A|-B)?
\[ \Pr(B) = \Pr(B|C)+\Pr(B|\overline{C}) \]
It correctly detects diabetes with probability 0.7 This is saying \[ \Pr(B|A) = 0.7 \] it correctly detects absence of diabetes if the patient does not have diabetes with probability 0.9. This is saying: \[ \Pr(\overline{B}|\overline{A})=0.9 \]
But what we want is \[ \Pr(A|B) \]Get it?
this part i get it. thanks:) wat about C? how do i find it?
Oh, I'm not completely sure you need it... I was just throwing it out there for the moment.
Since \[ \Pr(B|A) = \frac{\Pr(B\cap A)}{\Pr(A)} \implies\Pr(B\cap A)=\Pr(B|A) \Pr(A) \]We plug it in to get:\[ \Pr(A|B) = \frac{\Pr(A\cap B)}{\Pr(B)} =\frac{\Pr(B|A)\Pr(A)}{\Pr(B)} \]
Of course now all we need is that nasty \(\Pr(B)\).
\[ \Pr(B) = \Pr(B|A)+\Pr(B|\overline{A}) \]
So we just need to find out when it tests positively but they don't actually have diabetes.
ok, i will try now. thanks :)
\[ \Pr(B|\overline{A})\Pr(\overline{A}) = \Pr(B\cap\overline{A} )\]\[ \Pr(\overline{B}|\overline{A})\Pr(\overline{A}) = \Pr(\overline{B}\cap\overline{A} )\]\[ \Pr(\overline{A})=\Pr(B\cap\overline{A} )+\Pr(\overline{B}\cap\overline{A} ) \]
P(dia|+)={P(dia)*P(+|dia)} / {P(dia)*P(+|dia)+P(-dia)*(P(+|-dia)}
is this way correct?
\[ \Pr(B|\overline{A})\Pr(\overline{A})=\Pr(\overline{A})-\Pr(\overline{B}|\overline{A})\Pr(\overline{A})\]\[ \Pr(B|\overline{A})=1-\Pr(\overline{B}|\overline{A}) \]
So I'm getting: \[ \Pr(A|B) = \frac{\Pr(B|A)\Pr(A)}{\Pr(B|A)+(1-\Pr(\overline{B}|\overline{A}))} \]
Is there a way to check your answer?
i'll get back to you when i get back my assignment. thanks so much:)
Join our real-time social learning platform and learn together with your friends!