Question

a medical test has some probability of being positive if the patient has the disease (hasPos) and another probability of testing positive if the person does not have the disease (notHasPos).  a random member of the entire population has a real problem of having the disease (actual incidence).  Based on the attached information what does the result of the function?

diseaseTest = function (hasPos = .8, notHasPos = .1, actuallncidence = .01)
{#P(A) probability of having disease (actuallncidence)
{#P(B) probability of testing positive
numerator = hasPos* actuallncidence # P(BIA)*P(A)
denominator = actuallncidence * hasPos
+ (1-actuallncidence) * notHasPos
numerator/denominator
}
What does the result of the function tell us?
O P(A|B).
O P(BIA).
O P(A).
O P(B).
expand button
Transcribed Image Text:diseaseTest = function (hasPos = .8, notHasPos = .1, actuallncidence = .01) {#P(A) probability of having disease (actuallncidence) {#P(B) probability of testing positive numerator = hasPos* actuallncidence # P(BIA)*P(A) denominator = actuallncidence * hasPos + (1-actuallncidence) * notHasPos numerator/denominator } What does the result of the function tell us? O P(A|B). O P(BIA). O P(A). O P(B).
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
bartleby
Unlock instant AI solutions
Tap the button
to generate a solution
Click the button to generate
a solution