京都大学 情報学研究科 知能情報学専攻 2022年8月実施 専門科目 S-2
Author
Isidore
Description
設問1
確率変数 X は下の確率密度変数 f(x) をもつ確率分布に従うとする。
f(x)=⎩⎨⎧−21x+210(∣x∣≤1)(∣x∣>1)
X の平均と分散を求めよ。
設問2
独立な確率変数 X と Y が、それぞれパラメータ λ1,λ2 のポアソン分布に従うとする。このとき、Z=X+Y がパラメータ (λ1+λ2) のポアソン分布に従うことを示せ。パラメータ λ のポアソン分布は下の確率質量関数で与えられる。
P(X=k)=k!λke−λ
設問3
モデル yi=βxi+ϵi(i=1,2,…,n;ϵiは誤差項) から生成されるデータ (x1,y1),(x2,y2),…,(xn,yn) に、切片がゼロの回帰直線 y=β^x を最小二乗法でフィッティングする。
(1) β^ 求めよ。
(2) ϵi^=yi−β^xi とおくと、∑i=1nxiϵi^=0 が成り立つことを示せ。
設問4
ある研究分野における全統計的仮説の中で、真の仮説 (帰無仮説が誤り) と偽の仮説 (帰無仮説が正しい) の数の比が R:1 であることがわかっているとする。
(1) ある仮説について実験を実施し、有意水準 α 、検出力 1−β で検定を行う。検定結果が有意であった場合にこの仮説が真である確率を、R,α,β を用いて表せ。また、R=0.1,α=0.05,β=0.2 のときの値を計算せよ。
(2) ある仮説について k 回の独立な実験を実施し、それぞれについて(1)と同様の検定を行う。k 回全ての実験について検定結果が有意であった場合にこの仮説が真である確率を、R,α,β,k を用いて表せ。また、R=0.1,α=0.05,β=0.2,k=2 のときの値を計算せよ。
Kai
設問1
E[X]=∫−11x(−21x+21)dx=−31
E[X2]=∫−11x2(−21x+21)dx=31
Var[X]=E[X2]−E2[X]=92
設問2
By the convolution Rule, we have
fZ(z)=P(Z=z)=i=0∑zfX(i)fY(z−i)=i=0∑zi!λ1ie−λ1(z−i)!λ2z−ie−λ2=z!e−(λ1+λ2)i=0∑z(z−i)!i!z!λ1iλ2z−i
By the Binomial Theorem, we can insert ∑i=0z(z−i)!i!z!λ1iλ2z−i=(λ1+λ2)z
fZ(z)=z!e−(λ1+λ2)(λ1+λ2)z
So is the PMF for a Poisson Distribution with the parameter (λ1+λ2)
PS: A easier solution is to use Moments Generating Function.
設問3
(1)
By the Least Square Method, we have the sum of square residuals,
S(β^)=i=1∑n(yi−β^xi)2
Calculate its derivative with the root
S′(β^)β^=i=1∑n(−2xi)(yi−β^xi)=2(i=1∑nβ^xi2−i=1∑nxiyi)=∑i=1nxi2∑i=1nxiyi
(2)
By the equation (5) and (6), we immediately have
0=(i=1∑nβ^xi2−i=1∑nxiyi)=i=1∑nxi(yi−β^xi)=i=1∑nxiϵi^
設問4
(1)
Denote the events below:
- The hypothesis is true: T
- The hypothesis is false: F
- The test results in significance: S
Then, what is asked can be represented by the probability as Pr[T∣S].
Given the ratio R:1, we have
Pr[T]=R+1R;Pr[F]=R+11
By the definition of Significance Level and Statistic Power, we have
Pr[S∣F]=α;Pr[S∣T]=1−β
Therefore, with the Bayes' theorem, we have
Pr[T∣S]=Pr[S]Pr[S∩T]=Pr[S∣T]Pr[T]+Pr[S∣F]Pr[F]Pr[S∣T]Pr[T]=α+(1−β)R(1−β)R
Insert the values, the answer is
Pr[T∣S]=138
(2)
By perform the experiments k times independently, we only need to multiply the probabilities with event S k times in equation (11), which means,
Pr[T∣Sk]=Pr[Sk∣T]Pr[T]+Pr[Sk∣F]Pr[F]Pr[Sk∣T]Pr[T]=Prk[S∣T]Pr[T]+Prk[S∣F]Pr[F]Prk[S∣T]Pr[T]=αk+(1−β)kR(1−β)kR
Insert the values, the answer is
Pr[T∣S2]=133128