开发者:上海品职教育科技有限公司 隐私政策详情

应用版本:4.2.11(IOS)|3.2.5(安卓)APP下载

Landry · 2023年11月18日

這道題應該要怎麼做?4%有什麼用

NO.PZ2023062701000002

问题如下:

An analyst has developed a test to identify a certain disease. Research shows that 85% of people with the disease test positive, while 95% of healthy individuals test negative. It is estimated that 4% of the population has the disease. If a person tests positive, what is the posterior probability that they actually have the disease?

选项:

A.

41.46%

B.

85%

C.

50%

解释:

Let event A represent the person having the disease, and event B represent the person testing positive for the disease.

We are given:

P(A) = 0.04 (the probability of a person having the disease)

P(B|A) = 0.85 (the probability of testing positive given the person has the disease)

P(not A) = 1 - P(A) = 1 - 0.04 = 0.96 (the probability of a person not having the disease)

P(B|not A) = 0.05 (the probability of testing positive given the person does not have the disease)

We need to find P(A|B), the posterior probability that a person has the disease given that they tested positive.

By applying Bayes’ theorem: P(A|B) = (P(B|A) * P(A)) / P(B) P(B) can be calculated using the law of total probability:

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

Substituting the given values:

P(B) = (0.85 * 0.04) + (0.05 * 0.96) = 0.034 + 0.048 = 0.082

Now, calculating P(A|B) using Bayes’ theorem:

P(A|B) = (P(B|A) * P(A)) / P(B) = (0.85 * 0.04) / 0.082 = 0.034 / 0.082 = 0.4146

The posterior probability that a person has the disease given that they tested positive is approximately 41.46%.

這道題應該要怎麼做?4%有什麼用

1 个答案

星星_品职助教 · 2023年11月18日

同学你好,

本题为贝叶斯公式题目。

由于题目给出的是一个非条件概率:4% of the population has the disease;和由此展开的两个条件概率:

① 85% of people with the disease test positive;②95% of healthy individuals test negative;

所以本题可以按照课上所讲的画图法来解,如下:


根据图像可直接得出:P(disease | positive)=4% ×85% / (4% ×85% + 96% ×5%)=0.4146.

 

  • 1

    回答
  • 0

    关注
  • 248

    浏览
相关问题