跳到主要内容

埼玉大学 理工学研究科 数理電子情報系専攻 情報システム工学コース 2019年2月実施 確率統計

Author

思齐塾, 祭音Myyura

Description

以下の問に答えよ。

(a) ある医学的検査は、患者が病気Aである場合に90%の確率で陽性と判定する。しかし、患者がこの病気ではない場合にも、この医学的検査は5%の確率で陽性と判定する。総人口の1%がこの病気にかかると仮定する。今、ある患者が陽性と判定された。この患者がこの病気にかかっている確率を答えよ。

(b) 連続確率変数X,Yは以下の結合確率密度関数をもつとする (Cは定数).

f(x,y)={Cx(1x)e2y0x1,0y,0otherwise.f(x,y) = \begin{cases} Cx(1-x)e^{-2y} & 0 \leq x \leq 1, 0 \leq y, \\ 0 & otherwise. \end{cases}

(1) 定数Cの値を求めよ.

(2) XとYは独立かどうか、答えよ。理由も説明せよ.

(3) Yの期待値を求めよ.

题目描述

回答下列问题。

(a) 某项医学检测在患者患有疾病 A 时,以 90%90\% 的概率给出阳性结果;即使患者未患该病,也会以 5%5\% 的概率给出阳性结果。假设总人口中有 1%1\% 患有该病。现有一名患者的检测结果为阳性,求该患者确实患有该病的概率。

(b) 设连续随机变量 X,YX,Y 的联合概率密度函数如下,其中 CC 为常数:

f(x,y)={Cx(1x)e2y,0x1, 0y,0,其他情形.f(x,y)= \begin{cases} Cx(1-x)e^{-2y},&0\leq x\leq1,\ 0\leq y,\\ 0,&\text{其他情形}. \end{cases}

(1) 求常数 CC

(2) 判断 XXYY 是否相互独立,并说明理由。

(3) 求 YY 的期望。

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.9P(+|A) = 0.9 P(+Ac)=0.05P(+|A^c) = 0.05 P(A)=0.01P(A) = 0.01 We want to find P(A+)P(A|+) . By Bayes' theorem:

P(A+)=P(+A)P(A)P(+)P(A|+) = \frac{P(+|A)P(A)}{P(+)}

We need to find P(+)P(+) . Using the law of total probability: P(+)=P(+A)P(A)+P(+Ac)P(Ac)P(+) = P(+|A)P(A) + P(+|A^c)P(A^c) P(Ac)=1P(A)=10.01=0.99P(A^c) = 1 - P(A) = 1 - 0.01 = 0.99 P(+)=(0.9)(0.01)+(0.05)(0.99)=0.009+0.0495=0.0585P(+) = (0.9)(0.01) + (0.05)(0.99) = 0.009 + 0.0495 = 0.0585 So,

P(A+)=(0.9)(0.01)0.0585=0.0090.0585=90585=18117=2130.1538P(A|+) = \frac{(0.9)(0.01)}{0.0585} = \frac{0.009}{0.0585} = \frac{90}{585} = \frac{18}{117} = \frac{2}{13} \approx 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\int_{-\infty}^{\infty} \int_{-\infty}^{\infty} f(x,y) dx dy = 1
001Cx(1x)e2ydxdy=1\int_0^{\infty} \int_0^1 Cx(1-x)e^{-2y} dx dy = 1
C0e2ydy01x(1x)dx=1C \int_0^{\infty} e^{-2y} dy \int_0^1 x(1-x) dx = 1
C[12e2y]0[x22x33]01=1C \left[-\frac{1}{2}e^{-2y}\right]_0^{\infty} \left[\frac{x^2}{2} - \frac{x^3}{3}\right]_0^1 = 1
C(0(12))(1213)=1C \left(0 - (-\frac{1}{2})\right) \left(\frac{1}{2} - \frac{1}{3}\right) = 1
C(12)(16)=1C \left(\frac{1}{2}\right) \left(\frac{1}{6}\right) = 1
C12=1\frac{C}{12} = 1
C=12C = 12

(2) To check if X and Y are independent, we need to find the marginal densities fX(x)f_X(x) and fY(y)f_Y(y) and see if f(x,y)=fX(x)fY(y)f(x,y) = f_X(x) f_Y(y) .

fX(x)=0f(x,y)dy=012x(1x)e2ydy=12x(1x)0e2ydy=12x(1x)[12e2y]0=12x(1x)(12)=6x(1x),0x1f_X(x) = \int_0^{\infty} f(x,y) dy = \int_0^{\infty} 12x(1-x)e^{-2y} dy = 12x(1-x) \int_0^{\infty} e^{-2y} dy = 12x(1-x) \left[-\frac{1}{2}e^{-2y}\right]_0^{\infty} = 12x(1-x) \left(\frac{1}{2}\right) = 6x(1-x), 0 \leq x \leq 1
fY(y)=01f(x,y)dx=0112x(1x)e2ydx=12e2y01x(1x)dx=12e2y[x22x33]01=12e2y(16)=2e2y,0yf_Y(y) = \int_0^1 f(x,y) dx = \int_0^1 12x(1-x)e^{-2y} dx = 12e^{-2y} \int_0^1 x(1-x) dx = 12e^{-2y} \left[\frac{x^2}{2} - \frac{x^3}{3}\right]_0^1 = 12e^{-2y} \left(\frac{1}{6}\right) = 2e^{-2y}, 0 \leq y

Now check if f(x,y)=fX(x)fY(y)f(x,y) = f_X(x) f_Y(y) : fX(x)fY(y)=(6x(1x))(2e2y)=12x(1x)e2y=f(x,y)f_X(x) f_Y(y) = (6x(1-x))(2e^{-2y}) = 12x(1-x)e^{-2y} = f(x,y) Since f(x,y)=fX(x)fY(y)f(x,y) = f_X(x) f_Y(y) , X and Y are independent.

(3) To find the expected value of Y, we use the marginal density fY(y)f_Y(y) :

E[Y]=0yfY(y)dy=0y(2e2y)dy=20ye2ydyE[Y] = \int_0^{\infty} y f_Y(y) dy = \int_0^{\infty} y(2e^{-2y}) dy = 2 \int_0^{\infty} ye^{-2y} dy

Using integration by parts, let u=yu = y and dv=e2ydydv = e^{-2y} dy . Then du=dydu = dy and v=12e2yv = -\frac{1}{2}e^{-2y} .

0ye2ydy=[12ye2y]0012e2ydy=[12ye2y]0+120e2ydy=0+12[12e2y]0=12(0(12))=14\int_0^{\infty} ye^{-2y} dy = \left[-\frac{1}{2}ye^{-2y}\right]_0^{\infty} - \int_0^{\infty} -\frac{1}{2}e^{-2y} dy = \left[-\frac{1}{2}ye^{-2y}\right]_0^{\infty} + \frac{1}{2} \int_0^{\infty} e^{-2y} dy = 0 + \frac{1}{2} \left[-\frac{1}{2}e^{-2y}\right]_0^{\infty} = \frac{1}{2} \left(0 - (-\frac{1}{2})\right) = \frac{1}{4}

So, E[Y]=2(14)=12E[Y] = 2 \left(\frac{1}{4}\right) = \frac{1}{2}