Answer:
0.9378 = 93.78% probability that a randomly selected person has diabetes, given that his test is positive.
Explanation:
Conditional Probability
We use the conditional probability formula to solve this question. It is
In which
P(B|A) is the probability of event B happening, given that A happened.
is the probability of both A and B happening.
P(A) is the probability of A happening.
In this question:
Event A: Positive test
Event B: Person has diabetes.
Probability of a positive test:
0.95 out of 0.1(person has diabetes).
0.007 out of 1 - 0.1 = 0.9(person does not has diabetes). So
![P(A) = 0.95*0.1 + 0.007*0.9 = 0.1013](https://img.qammunity.org/2022/formulas/mathematics/college/exe76akphl2s3la1n8fbe7ff9fa01u3ixh.png)
Probability of a positive test and having diabetes:
0.95 out of 0.1. So
![P(A \cap B) = 0.95*0.1 = 0.095](https://img.qammunity.org/2022/formulas/mathematics/college/w5d3c57rf0e8ui3csywp6zo5csmwci91ye.png)
What is the probability that a randomly selected person has diabetes, given that his test is positive?
![P(B|A) = (P(A \cap B))/(P(A)) = (0.095)/(0.1013) = 0.9378](https://img.qammunity.org/2022/formulas/mathematics/college/mvqzlqhdmtfkei0sfj6gsomobl1ynvi4u6.png)
0.9378 = 93.78% probability that a randomly selected person has diabetes, given that his test is positive.