埼玉大学 理工学研究科 数理電子情報系専攻 情報システム工学コース 2019年2月実施 確率統計
Author
思齐塾, 祭音Myyura
Description
以下の問に答えよ。
(a) ある医学的検査は、患者が病気Aである場合に90%の確率で陽性と判定する。しかし、患者がこの病気ではない場合にも、この医学的検査は5%の確率で陽性と判定する。総人口の1%がこの病気にかかると仮定する。今、ある患者が陽性と判定された。この患者がこの病気にかかっている確率を答えよ。
(b) 連続確率変数X,Yは以下の結合確率密度関数をもつとする (Cは定数).
f(x,y)={Cx(1−x)e−2y00≤x≤1,0≤y,otherwise.
(1) 定数Cの値を求めよ.
(2) XとYは独立かどうか、答えよ。理由も説明せよ.
(3) Yの期待値を求めよ.
题目描述
回答下列问题。
(a) 某项医学检测在患者患有疾病 A 时,以 90% 的概率给出阳性结果;即使患者未患该病,也会以 5% 的概率给出阳性结果。假设总人口中有 1% 患有该病。现有一名患者的检测结果为阳性,求该患者确实患有该病的概率。
(b) 设连续随机变量 X,Y 的联合概率密度函数如下,其中 C 为常数:
f(x,y)={Cx(1−x)e−2y,0,0≤x≤1, 0≤y,其他情形.
(1) 求常数 C。
(2) 判断 X 与 Y 是否相互独立,并说明理由。
(3) 求 Y 的期望。
Kai
(a) Let A be the event that the patient has disease A, and let + be the event that the test is positive. We are given the following probabilities:
P(+∣A)=0.9
P(+∣Ac)=0.05
P(A)=0.01
We want to find P(A∣+) . By Bayes' theorem:
P(A∣+)=P(+)P(+∣A)P(A)
We need to find P(+) . Using the law of total probability:
P(+)=P(+∣A)P(A)+P(+∣Ac)P(Ac)
P(Ac)=1−P(A)=1−0.01=0.99
P(+)=(0.9)(0.01)+(0.05)(0.99)=0.009+0.0495=0.0585
So,
P(A∣+)=0.0585(0.9)(0.01)=0.05850.009=58590=11718=132≈0.1538
Therefore, the probability that the patient has the disease given a positive test result is approximately 0.1538.
(b)
(1) To find the constant C, we need to integrate the joint density function over the entire domain and set it equal to 1:
∫−∞∞∫−∞∞f(x,y)dxdy=1
∫0∞∫01Cx(1−x)e−2ydxdy=1
C∫0∞e−2ydy∫01x(1−x)dx=1
C[−21e−2y]0∞[2x2−3x3]01=1
C(0−(−21))(21−31)=1
C(21)(61)=1
12C=1
(2) To check if X and Y are independent, we need to find the marginal densities fX(x) and fY(y) and see if f(x,y)=fX(x)fY(y) .
fX(x)=∫0∞f(x,y)dy=∫0∞12x(1−x)e−2ydy=12x(1−x)∫0∞e−2ydy=12x(1−x)[−21e−2y]0∞=12x(1−x)(21)=6x(1−x),0≤x≤1
fY(y)=∫01f(x,y)dx=∫0112x(1−x)e−2ydx=12e−2y∫01x(1−x)dx=12e−2y[2x2−3x3]01=12e−2y(61)=2e−2y,0≤y
Now check if f(x,y)=fX(x)fY(y) :
fX(x)fY(y)=(6x(1−x))(2e−2y)=12x(1−x)e−2y=f(x,y)
Since f(x,y)=fX(x)fY(y) , X and Y are independent.
(3) To find the expected value of Y, we use the marginal density fY(y) :
E[Y]=∫0∞yfY(y)dy=∫0∞y(2e−2y)dy=2∫0∞ye−2ydy
Using integration by parts, let u=y and dv=e−2ydy . Then du=dy and v=−21e−2y .
∫0∞ye−2ydy=[−21ye−2y]0∞−∫0∞−21e−2ydy=[−21ye−2y]0∞+21∫0∞e−2ydy=0+21[−21e−2y]0∞=21(0−(−21))=41
So, E[Y]=2(41)=21