京都大学 情報学研究科 知能情報学専攻 2023年8月実施 専門科目 S-2
Author
Isidore, 祭音Myyura, itsuitsuki
Description
設問1
X1,X2,⋯,Xn を平均 μ の母集団からの大きさ n の無作為標本とする。
Xi の加重和 ∑i=1nwiXi が μ の不偏推定量であるための必要十分条件を示せ。
設問2
X1,X2,⋯,Xn を平均 μ, 分散 σ2 の正規母集団からの大きさ n の無作為標本とする。
(1) μ と σ2 の対数尤度関数 L(μ,σ2) を導出せよ。
(2) L(μ,σ2) を用いて、μ と σ2 の最尤推定量を求めよ。
設問3
確率変数 X と Y の平均がいずれも 1、分散がいずれも 2 であるとする。
S=X+2Y, T=X−2Y のとき、 S と T の共分散を求めよ。
設問4
薬 A と薬 B の効果に差がないという帰無仮説のもとで、以下の分割表についてフィッシャーの正確検定を行うことを考える。
| 効果あり | 効果なし | 計 |
|---|
| 薬 A | 3 | 1 | 4 |
| 薬 B | 2 | 3 | 5 |
| 計 | 5 | 4 | 9 |
(1) 帰無仮説のもとでこの表が得られる確率は、計 9 人から無作為に 5 人を「効果あり」として選んだときに、そのうち薬 A 群が 3 人、薬 B 群が 2 人となる確率として計算できる。この確率を求めよ。
(2) フィッシャーの正確検定の p 値(両側検定)は、周辺度数を固定したときに、観察された分割表と同じか低い確率をもつ表の合計確率として定義される。上の表が観察されたときの p 値を求めよ。
Kai
設問1
E[i=1∑nwiXi−μ]=0⟹μ=i=1∑nwiE[Xi]=i=1∑nwiμ⟹i=1∑nwi=1
設問2
(1)
L(μ,σ2)=L(x1,…,xn;μ,σ2)=i=1∑nlog(σ2π1e−(xi−μ)2/2σ2)=−nlog(σ2π)−2σ21i=1∑n(xi−μ)2=−2nln2πσ2−2σ2∑i=1n(xi2−μ)2
(2)
We find the partial derivatives over μ and σ2 of L and setting them zero.
0=∂μ∂L=−σ21i=1∑n(xi−μ)⟹μ^=n1i=1∑nxi
and (here we view σ2 as a variable)
0=∂σ2∂L=−2σ2n+2σ4∑i=1n(xi2−μ)2⟹σ^2=n1i=1∑n(xi−μ)2.
設問3
We actually cannot know Cov[X,Y], but it's offsetted.
Cov[S,T]=Cov[X+2Y,X−2Y]=Cov[X,X]+2Cov[X,Y]−2Cov[X,Y]+4Cov[Y,Y]=2−8=−6
設問4
(1)
与えられた表が得られる確率は,計 9 人から無作為に 5 人を「効果あり」として選んだときに,そのうち薬 A 群が 4 人中 3 人,薬 B 群が 5 人中 2 人となる確率である。
C95C43C52=6320
(2)
If the 2 properties are independent, we have
Pr[Observing the given table∣H0]=Pr[X=3]
in which X follows hypergeometric distribution with N,K,n=(9,5,4). Calculate it and we have
Pr[X=3]=CNKCKXCN−Kn−X=C95C53C41=12610×4=12640
By the definition of Fisher's exact test, we sequentially calculate other probabilities of observed tables. As X∈{0,1,2,3,4}
Pr[X=0]=C95C50C44=1261
Pr[X=1]=C95C51C43=12620
Pr[X=2]=C95C52C42=12660
Pr[X=3]=12640
Pr[X=4]=C95C54C40=1265
Thus, the p-value for Fisher's exact test is
p=1261+20+40+5=2111≈0.5238
Note that the statistical significance is concluded when p<0.05.