跳到主要内容

京都大学 情報学研究科 知能情報学専攻 2021年8月実施 専門科目 S-2

Author

Isidore

Description

設問1

x1,x2,,xnx_1, x_2, \ldots, x_n が互いに独立に正規分布 N(μ,42)N(\mu, 4^2) に従う時、帰無仮説
H0:μ=μ0H_0 : \mu = \mu_0、対立仮説 H1:μ>μ0H_1 : \mu > \mu_0。 有意水準 α=0.05\alpha = 0.05 の片側検定を考える。 確率変数 XX が標準正規分布に従う時、確率 Pr[X1.645]=0.95\Pr[X \leq 1.645] = 0.95 であることを用いてよい。

(1) μμ0=1.2,n=16\mu - \mu_0 = 1.2, n = 16 のときの検出力を考える。検出力は、確率変数 ZZ が標準正規分布に従う時、確率 Pr[Zz]\Pr[Z \geq z] として表すことができる。そのときの uu の値を求めよ。

(2) μμ0=1.2\mu - \mu_0 = 1.2 のとき検出力を 95%95\% 以上にする nn の最小値を求めよ。

設問2

製造法 AABB があり、製造法 AA では製品の不良率は pp である。

(1) p=0.5p = 0.5 のとき製造法 AA88 個製造した。不良品が 11 個以下になる確率を求めよ。

(2) p=1/4000p = 1/4000 のとき製造法 AA10,00010,000 個製造した。不良品が発生しない確率を求めよ。また、ポアソン分布 Pr[X=r]=λrexp(λ)/r!\Pr[X = r] = \lambda^r \exp(-\lambda)/r! を用いた近似により得られる確率を求めよ。

(3) 製造法 BB100100 個製造したところ不良品が 6060 個であった。製造法 AA の不良率が p=0.5p = 0.5 のとき、製造法 BB の不良率が製造法 AA と異なるかを有意水準 α=0.05\alpha = 0.05 で両側検定せよ。確率変数 XX が標準正規分布に従う時、確率 Pr[X1.96]=0.975\Pr[X \leq 1.96] = 0.975 であることを用いてよい。

設問3

2つの確率変数 XXYY に関して、期待値と分散が次のようになっている。

E[X]=3.0, E[Y]=4.0, E[XY]=12.3, V[X]=1.0, V[Y]=1.0E[X] = 3.0, \ E[Y] = 4.0, \ E[XY] = 12.3, \ V[X] = 1.0, \ V[Y] = 1.0

(1) XXYY のそれぞれの二乗の期待値 E[X2],E[Y2]E[X^2], E[Y^2]XXYY の共分散 Cov[X,Y]\text{Cov}[X, Y] を答えよ。

(3) XXYY にそれぞれ次の一次変換を施して新しい確率変数 UUVV を作った。

U=5X3, V=3Y+2 U = 5X - 3, \ V = -3Y + 2

UUVV の共分散 Cov[U,V]\text{Cov}[U, V] と相関係数 r[U,V]r[U, V] を答えよ。

Kai

設問1

(1)

According to the rule of Power analysis, we have the Statistical Power:

1β=1Pr[accept H0H0 is false]=1Pr[Xˉμ0σ/nZα]=1Pr[Xˉμσ/nZαμμ0σ/n]=Pr[Xˉμσ/nZαμμ0σ/n]\begin{aligned} 1-\beta &= 1 - \Pr[\textrm{accept } H_0|H_0 \textrm{ is false}] \\ &= 1-\Pr[\frac{\bar{X}-\mu_0}{\sigma/\sqrt{n}} \leq Z_{\alpha}] \\ &= 1-\Pr[\frac{\bar{X}-\mu}{\sigma/\sqrt{n}} \leq Z_{\alpha} - \frac{\mu-\mu_0}{\sigma/\sqrt{n}}] \\ &= \Pr[\frac{\bar{X}-\mu}{\sigma/\sqrt{n}} \geq Z_{\alpha} - \frac{\mu-\mu_0}{\sigma/\sqrt{n}}] \end{aligned}

and u=Zαμμ0σ/nu = Z_{\alpha} - \frac{\mu-\mu_0}{\sigma/\sqrt{n}}. Hence we have

u=Zαμμ0σ/n=1.6451.24/16=0.445u = Z_{\alpha} - \frac{\mu-\mu_0}{\sigma/\sqrt{n}} = 1.645 - \frac{1.2}{4/\sqrt{16}} = 0.445

(2)

By (1), we have

1β=Pr[Xˉμσ/nZαμμ0σ/n]\begin{aligned} 1-\beta &= Pr[\frac{\bar{X}-\mu}{\sigma/\sqrt{n}} \geq Z_{\alpha} - \frac{\mu-\mu_0}{\sigma/\sqrt{n}}] \end{aligned}

To make sure the power larger than 95%95\%, we have

Zαμμ0σ/nZ0.95=Z0.05=1.645Z_{\alpha} - \frac{\mu-\mu_0}{\sigma/\sqrt{n}} \leq Z_{0.95} = -Z_{0.05} = -1.645
nZα+Z0.05μμ0σ10.967n10.9672=120.27\sqrt{n} \geq \frac{Z_{\alpha} + Z_{0.05}}{\mu-\mu_0}\sigma \approx 10.967 \\ n \geq 10.967^2 = 120.27

Hence the minimum value of nn is 121121.

設問2

(1)

Pr=C80(p)0(1p)8+C81(p)1(1p)7=9256\Pr = \textrm{C}^0_8(p)^0(1-p)^8+\textrm{C}^1_8(p)^1(1-p)^7 = \frac{9}{256}

(2)

Pr=C100000(p)0(1p)10000\Pr = \textrm{C}^0_{10000}(p)^0(1-p)^{10000}

The approximation PMF is Pr[X=r]=(52)re52r!\Pr[X=r] = (\frac{5}{2})^r\frac{e^{-\frac{5}{2}}}{r!}. So the answer is

Pr[X=0]=e52\Pr[X=0] = e^{-\frac{5}{2}}

(3)

Let p0p_0 denote the defective rate of BB. We design a test where the null hypothesis H0H_0 is p0=pp_0 = p and the alternative hypothesis H1H_1 is p0pp_0 \neq p.

The statistic Z=pˉpp(1p)/nZ = \frac{\bar{p} - p}{\sqrt{p(1-p)/n}} follow the standard normal distribution. By using the significance level α=0.05\alpha = 0.05, the rejection region is

ZZα2 or ZZα2Z \geq Z_{\frac{\alpha}{2}} \textrm{ or } Z \leq -Z_{\frac{\alpha}{2}}

which is

Z=2>Z0.025=1.96Z = 2 > Z_{0.025} = 1.96

So we reject H0H_0 and accept H1H_1, i.e., the defect rate of BB is not the same as AA.

設問3

(1)

E[X2]=V[X]+E2[X]=10E[Y2]=V[Y]+E2[Y]=17Cov(X,Y)=E[XY]E[X]E[Y]=0.3\begin{aligned} &E[X^2] = V[X] + E^2[X] = 10 \\ &E[Y^2] = V[Y] + E^2[Y] = 17 \\ &\text{Cov}(X,Y) = E[XY] - E[X]E[Y] = 0.3 \end{aligned}

(2)

Cov[U,V]=Cov[5X3,3Y+2]=15Cov[X,Y]+10Cov[X,1]+9Cov[1,Y]6Cov[1,1]=15Cov[X,Y]=150.3=4.5\begin{aligned} \text{Cov}[U,V] &= \text{Cov}[5X-3, -3Y+2] \\ &= -15\text{Cov}[X, Y] + 10\text{Cov}[X, 1] + 9\text{Cov}[1, Y] - 6\text{Cov}[1, 1] \\[0.7em] &= -15\text{Cov}[X, Y] = -15\cdot 0.3 = -4.5 \end{aligned}
r[U,V]=Cov[U,V]V[U]V[V]=4.55.03.0=0.3r[U, V] = \frac{\text{Cov}[U,V]}{\sqrt{V[U]}\sqrt{V[V]}} = \frac{-4.5}{5.0\cdot 3.0} = -0.3