112 年 國立臺北大學統計學系碩士班《數理統計(含機率概論)》

📄 試題原卷 免費註冊後即可對照原始考卷 PDF免費註冊

第 1 題20 分

Assume that random variables X, Y have a joint probability density function (pdf)

f(x,y)={18,0≤y≤4;y≤x≤y+20,otherwisef(x,y) = \begin{cases} \frac{1}{8}, & 0 \le y \le 4; y \le x \le y + 2 \\ 0, & \text{otherwise} \end{cases}

(a) Compute E[Y∣X=x]E[Y|X=x].
(b) Find P[2X≤3Y]P[2X \le 3Y] and P[1≤X+Y≤2]P[1 \le X + Y \le 2].
(c) Find the pdf of Z=X+YZ = X + Y.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題主要考查:

  • 條件期望 E[Y∣X=x]E[Y\mid X=x] 的計算。
  • 聯合密度函數的幾何積分。
  • 變數變換求和 Z=X+YZ=X+Y 的機率密度函數。
  • 由聯合密度的支撐區域判斷積分範圍。

聯合密度為常數 18\frac18,其支撐區域為

0≤y≤4,y≤x≤y+2.0\le y\le 4,\qquad y\le x\le y+2.

令

U=X−Y,U=X-Y,

則

0≤y≤4,0≤u≤2,0\le y\le4,\qquad 0\le u\le2,

且 x=y+ux=y+u。由於變數變換的 Jacobian 為 11,(Y,U)(Y,U) 在矩形區域 [0,4]×[0,2][0,4]\times[0,2] 上具有常數密度 18\frac18。此表示法可大幅簡化幾何計算。


(a) 計算 E[Y∣X=x]E[Y\mid X=x]

先求 XX 的邊際密度:

fX(x)=∫f(x,y) dy.f_X(x)=\int f(x,y)\,dy.

固定 xx 時,必須滿足

0≤y≤4,x−2≤y≤x.0\le y\le4,\qquad x-2\le y\le x.

因此 yy 的範圍分三段:

fX(x)={x8,0≤x≤2,14,2≤x≤4,6−x8,4≤x≤6,0,其他.f_X(x)= \begin{cases} \dfrac{x}{8}, & 0\le x\le2,\\[6pt] \dfrac14, & 2\le x\le4,\\[6pt] \dfrac{6-x}{8}, & 4\le x\le6,\\[6pt] 0, & \text{其他}. \end{cases}

給定 X=xX=x 後,YY 在可行區間上呈均勻分布,因此條件期望就是該區間的中點。

當 0≤x≤20\le x\le2 時:

0≤y≤x,0\le y\le x,

所以

E[Y∣X=x]=0+x2=x2.E[Y\mid X=x]=\frac{0+x}{2}=\frac{x}{2}.

當 2≤x≤42\le x\le4 時:

x−2≤y≤x,x-2\le y\le x,

所以

E[Y∣X=x]=(x−2)+x2=x−1.E[Y\mid X=x] =\frac{(x-2)+x}{2} =x-1.

當 4≤x≤64\le x\le6 時:

x−2≤y≤4,x-2\le y\le4,

所以

E[Y∣X=x]=(x−2)+42=x+22.E[Y\mid X=x] =\frac{(x-2)+4}{2} =\frac{x+2}{2}.

因此

E[Y∣X=x]={x2,0≤x≤2,x−1,2≤x≤4,x+22,4≤x≤6.E[Y\mid X=x]= \begin{cases} \dfrac{x}{2}, & 0\le x\le2,\\[6pt] x-1, & 2\le x\le4,\\[6pt] \dfrac{x+2}{2}, & 4\le x\le6. \end{cases}

端點的定義不影響答案。


(b) 求兩個機率

1. 求 P(2X≤3Y)P(2X\le3Y)

利用 X=Y+UX=Y+U:

2X≤3Y  ⟺  2(Y+U)≤3Y  ⟺  2U≤Y.2X\le3Y \iff 2(Y+U)\le3Y \iff 2U\le Y.

在矩形

0≤U≤2,0≤Y≤40\le U\le2,\qquad 0\le Y\le4

中,事件 2U≤Y2U\le Y 對應到 YY 位於直線 Y=2UY=2U 上方。

其面積為

∫02(4−2u) du=[4u−u2]02=4.\int_0^2(4-2u)\,du = \left[4u-u^2\right]_0^2 =4.

整個矩形面積為 4×2=84\times2=8,且聯合密度為 18\frac18,因此

P(2X≤3Y)=48=12.P(2X\le3Y) =\frac{4}{8} =\frac12.

2. 求 P(1≤X+Y≤2)P(1\le X+Y\le2)

由 X=Y+UX=Y+U:

X+Y=2Y+U.X+Y=2Y+U.

所以事件為

1≤2Y+U≤2.1\le2Y+U\le2.

在 (Y,U)(Y,U) 平面上分段計算。

當 0≤y≤120\le y\le\frac12 時:

1−2y≤u≤2−2y,1-2y\le u\le2-2y,

區間長度為 11。

當 12≤y≤1\frac12\le y\le1 時,下界 1−2y≤01-2y\le0,因此:

0≤u≤2−2y,0\le u\le2-2y,

區間長度為 2−2y2-2y。

故事件區域面積為

∫01/21 dy+∫1/21(2−2y) dy.\int_0^{1/2}1\,dy + \int_{1/2}^{1}(2-2y)\,dy.

計算得

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 2 題30 分

Let X1,X2,…,XnX_1, X_2, \dots, X_n be a random sample drawn from the pdf

f(x)={e−(x−θ),x>θ0,otherwisef(x) = \begin{cases} e^{-(x-\theta)}, & x > \theta \\ 0, & \text{otherwise} \end{cases}

and F(x)F(x) denotes the corresponding distribution function.
(a) Let Y1=min⁡{X1,…,Xn}Y_1 = \min\{X_1, \dots, X_n\}. Show that Y1Y_1 is a consistent estimator of θ\theta.
(b) Let Y2Y_2 denote the second smallest item from this sample. Find the limiting distribution of Wn=nF(Y2)W_n = n F(Y_2).
(c) Find the limiting distribution of Zn=n(Y1−θ)Z_n = n(Y_1 - \theta).
(d) Find the maximum likelihood estimator (MLE) θ^n\hat{\theta}_n of θ\theta.
(e) Find an unbiased estimator of θ\theta.
(f) Find the MLE of the median of the distribution.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題探討具有**平移參數(Location Parameter)**的單參數指數分配(Shifted/Truncated Exponential Distribution),涉及順序統計量(Order Statistics)、極限定理(Limiting Distribution)、點估計(Point Estimation,包含一致性、不偏性、最大概似估計量 MLE)與 MLE 的不變性原理(Invariance Property)。

  1. 母體分配特性:
    • 機率密度函數(pdf):f(x)=e−(x−θ)I(θ,∞)(x)f(x) = e^{-(x-\theta)} I_{(\theta, \infty)}(x)
    • 累積分布函數(cdf):F(x)=∫θxe−(u−θ) du=1−e−(x−θ)F(x) = \int_\theta^x e^{-(u-\theta)} \, du = 1 - e^{-(x-\theta)},當 x>θx > \theta;若 x≤θx \le \theta 則 F(x)=0F(x) = 0。
    • 機率積分轉換(Probability Integral Transformation):Ui=F(Xi)∼iidUniform(0,1)U_i = F(X_i) \overset{\text{iid}}{\sim} \text{Uniform}(0, 1)。
  2. 順序統計量與均勻分配極限定理:
    • 若 U1,…,Un∼iidUniform(0,1)U_1, \dots, U_n \overset{\text{iid}}{\sim} \text{Uniform}(0, 1),則其第 kk 階順序統計量 U(k)=F(Yk)U_{(k)} = F(Y_k)。
    • 當固定階數 kk 且 n→∞n \to \infty 時,nU(k)→dGamma(k,1)n U_{(k)} \xrightarrow{d} \text{Gamma}(k, 1)。
  3. 一致性(Consistency):
    • 檢驗估計量 θ^n\hat{\theta}_n 是否弱一致(Weakly Consistent):θ^n→Pθ\hat{\theta}_n \xrightarrow{P} \theta。常用的充分條件為均方誤差(MSE)收斂至 0,即 lim⁡n→∞Bias(θ^n)=0\lim_{n \to \infty} \text{Bias}(\hat{\theta}_n) = 0 且 lim⁡n→∞Var(θ^n)=0\lim_{n \to \infty} \text{Var}(\hat{\theta}_n) = 0;亦可直接從極限分布推導機率收斂。
  4. 範圍與參數相關之 MLE:
    • 支撐集(Support)相依於未知參數 θ\theta(即 Xi>θ  ⟹  θ<min⁡(Xi)X_i > \theta \implies \theta < \min(X_i)),無法利用微分尋找臨界點,必須透過指示函數限制母數空間,並尋找使概似函數極大之邊界點。
  5. MLE 的不變性原理(Invariance Property of MLE):
    • 若 θ^\hat{\theta} 為 θ\theta 的 MLE,且 g(θ)g(\theta) 為 θ\theta 的函數,則 g(θ)g(\theta) 的 MLE 為 g(θ)^=g(θ^)\widehat{g(\theta)} = g(\hat{\theta})。

解題方法

(a) 證明 Y1Y_1 為 θ\theta 的一致估計量(Consistent Estimator)

  • 推導 Y1Y_1 的抽樣分配:
    由順序統計量之定義,Y1=min⁡{X1,…,Xn}Y_1 = \min\{X_1, \dots, X_n\}。其生存函數(Survival Function)為:

    P(Y1>y)=∏i=1nP(Xi>y)=[e−(y−θ)]n=e−n(y−θ),y>θP(Y_1 > y) = \prod_{i=1}^n P(X_i > y) = \left[ e^{-(y-\theta)} \right]^n = e^{-n(y-\theta)}, \quad y > \theta

    故 Y1Y_1 的累積分布函數為:

    FY1(y)=1−e−n(y−θ),y>θF_{Y_1}(y) = 1 - e^{-n(y-\theta)}, \quad y > \theta

    微分可得 Y1Y_1 的機率密度函數:

    fY1(y)=ne−n(y−θ)I(θ,∞)(y)f_{Y_1}(y) = n e^{-n(y-\theta)} I_{(\theta, \infty)}(y)

    這表示變數 Y1−θ∼Exponential(rate=n)Y_1 - \theta \sim \text{Exponential}\left(\text{rate} = n\right),即尺度參數(scale parameter)為 1n\frac{1}{n}。

  • 計算期望值、變異數與 MSE:

    E(Y1−θ)=1n  ⟹  E(Y1)=θ+1nE(Y_1 - \theta) = \frac{1}{n} \implies E(Y_1) = \theta + \frac{1}{n} Var(Y1)=Var(Y1−θ)=1n2\text{Var}(Y_1) = \text{Var}(Y_1 - \theta) = \frac{1}{n^2}

    計算 Y1Y_1 的均方誤差(Mean Squared Error):

    MSE(Y1)=Var(Y1)+[E(Y1)−θ]2=1n2+(1n)2=2n2\text{MSE}(Y_1) = \text{Var}(Y_1) + \left[ E(Y_1) - \theta \right]^2 = \frac{1}{n^2} + \left( \frac{1}{n} \right)^2 = \frac{2}{n^2}

    因為:

    lim⁡n→∞MSE(Y1)=lim⁡n→∞2n2=0\lim_{n \to \infty} \text{MSE}(Y_1) = \lim_{n \to \infty} \frac{2}{n^2} = 0

    由 MSE 收斂至 0 蘊含機率收斂(Convergence in Probability),得:

    Y1→PθY_1 \xrightarrow{P} \theta

    故 Y1Y_1 是 θ\theta 的一致估計量。


(b) 求 Wn=nF(Y2)W_n = n F(Y_2) 的極限分布

  • 機率積分轉換與順序統計量:
    設 Ui=F(Xi)U_i = F(X_i)。因為 F(x)F(x) 為連續且嚴格遞增之分佈函數,依據機率積分轉換,U1,…,Un∼iidUniform(0,1)U_1, \dots, U_n \overset{\text{iid}}{\sim} \text{Uniform}(0, 1)。
    因此,U(2)=F(Y2)U_{(2)} = F(Y_2) 為來自 Uniform(0,1)\text{Uniform}(0, 1) 之樣本的第二小順序統計量。

  • 求 U(2)U_{(2)} 的機率密度函數:

    fU(2)(u)=n!(2−1)!(n−2)!u2−1(1−u)n−2=n(n−1)u(1−u)n−2,0<u<1f_{U_{(2)}}(u) = \frac{n!}{(2-1)!(n-2)!} u^{2-1} (1-u)^{n-2} = n(n-1) u (1-u)^{n-2}, \quad 0 < u < 1
  • 進行變數變換求 WnW_n 之分佈與極限:
    令 Wn=nU(2)W_n = n U_{(2)},則 U(2)=WnnU_{(2)} = \frac{W_n}{n},其 Jacobian 為 1n\frac{1}{n}。
    WnW_n 的機率密度函數為:

    fWn(w)=fU(2)(wn)⋅1n=1n⋅n(n−1)(wn)(1−wn)n−2=n−1nw(1−wn)n−2,0<w<nf_{W_n}(w) = f_{U_{(2)}}\left(\frac{w}{n}\right) \cdot \frac{1}{n} = \frac{1}{n} \cdot n(n-1) \left(\frac{w}{n}\right) \left(1 - \frac{w}{n}\right)^{n-2} = \frac{n-1}{n} w \left(1 - \frac{w}{n}\right)^{n-2}, \quad 0 < w < n

    取 n→∞n \to \infty 之極限:

    lim⁡n→∞fWn(w)=lim⁡n→∞(1−1n)⋅w⋅(1−wn)n(1−wn)−2=1⋅w⋅e−w⋅1=we−w,w>0\lim_{n \to \infty} f_{W_n}(w) = \lim_{n \to \infty} \left( 1 - \frac{1}{n} \right) \cdot w \cdot \left(1 - \frac{w}{n}\right)^n \left(1 - \frac{w}{n}\right)^{-2} = 1 \cdot w \cdot e^{-w} \cdot 1 = w e^{-w}, \quad w > 0

    此極限 pdf 正好為 Gamma(α=2,β=1)\text{Gamma}(\alpha = 2, \beta = 1)(或以形狀參數與尺度參數表示為 Gamma(2,1)\text{Gamma}(2, 1))的機率密度函數。

    因此,Wn→dGamma(2,1)W_n \xrightarrow{d} \text{Gamma}(2, 1)。


(c) 求 Zn=n(Y1−θ)Z_n = n(Y_1 - \theta) 的極限分布

  • 求 ZnZ_n 的累積分布函數(cdf):
    由 (a) 小題已推得 Y1Y_1 的 cdf 為 FY1(y)=1−e−n(y−θ)F_{Y_1}(y) = 1 - e^{-n(y-\theta)}(當 y>θy > \theta)。
    對於 z>0z > 0:
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 3 題30 分

Let X1,X2,…,XnX_1, X_2, \dots, X_n be a random sample from Bernoulli(pp). Define R(p,δ(X))=Ep[(δ(X)−p)2]R(p, \delta(\mathbf{X})) = E_p [(\delta(\mathbf{X}) - p)^2] (the Mean-Square Error).
(a) Find a minimal sufficient statistic of pp.
(b) Find the uniformly minimum variance unbiased estimator (UMVUE) of pp.
(c) Assume that the prior distribution on pp is beta(α,β\alpha, \beta).
(c-i) Find the posterior distribution of pp.
(c-ii) Calculate the posterior mean and variance.
(c-iii) Denote p^PB\hat{p}_{PB} to be the posterior mean found in (c-ii). Find α,β\alpha, \beta such that R(p,p^PB)R(p, \hat{p}_{PB}) is constant.
(d) Consider three estimators

p^U=UMVUE found in (b),\hat{p}_U = \text{UMVUE found in (b)}, p^PB=the posterior mean with constant risk found in (c-iii),\hat{p}_{PB} = \text{the posterior mean with constant risk found in (c-iii)}, p^T={p^Uwith probability nn+112with probability 1n+1\hat{p}_T = \begin{cases} \hat{p}_U & \text{with probability } \frac{n}{n+1} \\ \frac{1}{2} & \text{with probability } \frac{1}{n+1} \end{cases}

(d-i) Find sup⁡p∈(0,1)R(p,p^U)\sup_{p \in (0,1)} R(p, \hat{p}_U), sup⁡p∈(0,1)R(p,p^PB)\sup_{p \in (0,1)} R(p, \hat{p}_{PB}), and sup⁡p∈(0,1)R(p,p^T)\sup_{p \in (0,1)} R(p, \hat{p}_T) for a fixed nn.
(d-ii) Find the limiting distribution of n(p^U−p)\sqrt{n}(\hat{p}_U - p) and n(p^PB−p)\sqrt{n}(\hat{p}_{PB} - p), respectively.
(d-iii) Show that p^U\hat{p}_U and p^PB\hat{p}_{PB} are the consistent estimators of pp.
(d-iv) Show that p^U\hat{p}_U is asymptotically efficient of pp.
(d-v) Find the asymptotic relative efficiency (ARE) of p^T\hat{p}_T with respect to p^U\hat{p}_U.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題整合以下概念:

  • Bernoulli 隨機樣本的似然函數與最小充分統計量。
  • Rao–Blackwell 定理與 Lehmann–Scheffé 定理。
  • Beta–Binomial 共軛先驗。
  • 貝氏估計量的頻率學派風險函數。
  • 最大風險、漸近常態性、一致性與漸近效率。
  • 隨機化估計量與漸近相對效率。

令

S=∑i=1nXi,Xˉ=Sn.S=\sum_{i=1}^n X_i,\qquad \bar X=\frac{S}{n}.

由於 Xi∼Bernoulli⁡(p)X_i\sim\operatorname{Bernoulli}(p),故 S∼Binomial⁡(n,p)S\sim\operatorname{Binomial}(n,p)。


(a) pp 的最小充分統計量

聯合機率質量函數為

fp(x)=∏i=1npxi(1−p)1−xi=p∑xi(1−p)n−∑xi.f_p(\mathbf x) =\prod_{i=1}^n p^{x_i}(1-p)^{1-x_i} =p^{\sum x_i}(1-p)^{n-\sum x_i}.

因此似然函數只透過 ∑xi\sum x_i 依賴樣本:

L(p;x)=pS(1−p)n−S.L(p;\mathbf x)=p^S(1-p)^{n-S}.

由 Neyman–Fisher 因子分解定理,SS 是 pp 的充分統計量。

再利用最小充分統計量的似然比判準,對兩組樣本 x,y\mathbf x,\mathbf y,

L(p;x)L(p;y)=pSx−Sy(1−p)Sy−Sx.\frac{L(p;\mathbf x)}{L(p;\mathbf y)} =p^{S_x-S_y}(1-p)^{S_y-S_x}.

此比值與 pp 無關,當且僅當 Sx=SyS_x=S_y。故 SS 不僅充分,也是最小充分統計量。


(b) pp 的 UMVUE

由於

Ep(Xi)=p,E_p(X_i)=p,

所以

Ep(Xˉ)=Ep(1n∑i=1nXi)=p.E_p(\bar X) =E_p\left(\frac1n\sum_{i=1}^nX_i\right) =p.

因此 Xˉ\bar X 是 pp 的不偏估計量。

又因為 SS 是完整充分統計量:

S∼Binomial⁡(n,p),S\sim\operatorname{Binomial}(n,p),

而 Binomial 族在 p∈(0,1)p\in(0,1) 下為完整族。由 Lehmann–Scheffé 定理,任何基於完整充分統計量的不偏估計量,都是 UMVUE。

由於 Xˉ=S/n\bar X=S/n,故

p^U=Xˉ=Sn.\boxed{\hat p_U=\bar X=\frac{S}{n}}.

其變異數為

Var⁡p(p^U)=p(1−p)n.\operatorname{Var}_p(\hat p_U) =\frac{p(1-p)}{n}.

因為它不偏,所以

R(p,p^U)=p(1−p)n.R(p,\hat p_U)=\frac{p(1-p)}{n}.

(c) Beta 先驗下的後驗分析

(c-i) 後驗分布

假設先驗分布為

p∼Beta⁡(α,β),p\sim\operatorname{Beta}(\alpha,\beta),

其密度與

pα−1(1−p)β−1p^{\alpha-1}(1-p)^{\beta-1}

成正比。

結合似然函數:

L(p;x)π(p)∝pS(1−p)n−Spα−1(1−p)β−1.L(p;\mathbf x)\pi(p) \propto p^S(1-p)^{n-S} p^{\alpha-1}(1-p)^{\beta-1}.

因此

π(p∣X)∝pS+α−1(1−p)n−S+β−1.\pi(p\mid\mathbf X) \propto p^{S+\alpha-1}(1-p)^{n-S+\beta-1}.

故後驗分布為

p∣X∼Beta⁡(α+S,β+n−S).\boxed{ p\mid\mathbf X\sim \operatorname{Beta}(\alpha+S,\beta+n-S) }.

(c-ii) 後驗平均數與變異數

若 Y∼Beta⁡(a,b)Y\sim\operatorname{Beta}(a,b),則

E(Y)=aa+b,E(Y)=\frac{a}{a+b}, Var⁡(Y)=ab(a+b)2(a+b+1).\operatorname{Var}(Y) =\frac{ab}{(a+b)^2(a+b+1)}.

代入 a=α+Sa=\alpha+S、b=β+n−Sb=\beta+n-S,得到後驗平均數:

p^PB=E(p∣X)=α+Sα+β+n.\boxed{ \hat p_{PB} =E(p\mid\mathbf X) =\frac{\alpha+S}{\alpha+\beta+n} }.

後驗變異數為

Var⁡(p∣X)=(α+S)(β+n−S)(α+β+n)2(α+β+n+1).\boxed{ \operatorname{Var}(p\mid\mathbf X) = \frac{(\alpha+S)(\beta+n-S)} {(\alpha+\beta+n)^2(\alpha+\beta+n+1)} }.

(c-iii) 使風險為常數的 α,β\alpha,\beta

令

k=α+β.k=\alpha+\beta.

後驗平均數可寫為

p^PB=S+αn+k.\hat p_{PB}=\frac{S+\alpha}{n+k}.

因為 Ep(S)=npE_p(S)=np、Var⁡p(S)=np(1−p)\operatorname{Var}_p(S)=np(1-p),所以

Ep(p^PB)=np+αn+k.E_p(\hat p_{PB}) =\frac{np+\alpha}{n+k}.

其偏差為

Bias⁡p(p^PB)=np+αn+k−p=α−kpn+k.\operatorname{Bias}_p(\hat p_{PB}) = \frac{np+\alpha}{n+k}-p = \frac{\alpha-kp}{n+k}.

其變異數為

Var⁡p(p^PB)=np(1−p)(n+k)2.\operatorname{Var}_p(\hat p_{PB}) = \frac{np(1-p)}{(n+k)^2}.

因此風險為

R(p,p^PB)=np(1−p)+(α−kp)2(n+k)2.R(p,\hat p_{PB}) = \frac{np(1-p)+(\alpha-kp)^2}{(n+k)^2}.

展開分子:

np(1−p)+(α−kp)2=(k2−n)p2+(n−2αk)p+α2.np(1-p)+(\alpha-kp)^2 = (k^2-n)p^2+(n-2\alpha k)p+\alpha^2.

要使風險與 pp 無關,p2p^2 與 pp 的係數都必須為 00:

k2−n=0,k^2-n=0, n−2αk=0.n-2\alpha k=0.

因為 k>0k>0,所以

k=n,α=n2n=n2.k=\sqrt n, \qquad \alpha=\frac{n}{2\sqrt n}=\frac{\sqrt n}{2}.

進而

β=k−α=n2.\beta=k-\alpha=\frac{\sqrt n}{2}.

故

α=β=n2.\boxed{\alpha=\beta=\frac{\sqrt n}{2}}.

此時

p^PB=S+n2n+n,\hat p_{PB} = \frac{S+\frac{\sqrt n}{2}}{n+\sqrt n},

且其風險為

R(p,p^PB)=14(n+1)2.\boxed{ R(p,\hat p_{PB}) = \frac{1}{4(\sqrt n+1)^2} }.

這確實與 pp 無關。


(d) 三種估計量的比較

本題中

p^U=Xˉ,\hat p_U=\bar X, p^PB=S+n2n+n,\hat p_{PB} = \frac{S+\frac{\sqrt n}{2}}{n+\sqrt n},

而 p^T\hat p_T 以機率 nn+1\frac{n}{n+1} 使用 p^U\hat p_U,以機率 1n+1\frac1{n+1} 使用 1/21/2。

隨機化機率與樣本獨立。


(d-i) 三種估計量的最大風險

1. p^U\hat p_U

已知

R(p,p^U)=p(1−p)n.R(p,\hat p_U)=\frac{p(1-p)}{n}.

由於

sup⁡0<p<1p(1−p)=14,\sup_{0<p<1}p(1-p)=\frac14,

所以

sup⁡p∈(0,1)R(p,p^U)=14n.\boxed{ \sup_{p\in(0,1)}R(p,\hat p_U)=\frac1{4n} }.

2. p^PB\hat p_{PB}

由 (c-iii),

R(p,p^PB)=14(n+1)2.R(p,\hat p_{PB}) = \frac{1}{4(\sqrt n+1)^2}.

因此

sup⁡p∈(0,1)R(p,p^PB)=14(n+1)2.\boxed{ \sup_{p\in(0,1)}R(p,\hat p_{PB}) = \frac{1}{4(\sqrt n+1)^2} }.

3. p^T\hat p_T

隨機化估計量的平方誤差期望為各分支風險的加權平均:

R(p,p^T)=nn+1R(p,p^U)+1n+1(12−p)2.R(p,\hat p_T) = \frac{n}{n+1}R(p,\hat p_U) + \frac1{n+1}\left(\frac12-p\right)^2.

代入 R(p,p^U)=p(1−p)/nR(p,\hat p_U)=p(1-p)/n:

R(p,p^T)=p(1−p)n+1+(p−12)2n+1.R(p,\hat p_T) = \frac{p(1-p)}{n+1} + \frac{(p-\frac12)^2}{n+1}.

注意

p(1−p)+(p−12)2=14.p(1-p)+\left(p-\frac12\right)^2 = \frac14.

因此

R(p,p^T)=14(n+1).R(p,\hat p_T)=\frac1{4(n+1)}.

故

sup⁡p∈(0,1)R(p,p^T)=14(n+1).\boxed{ \sup_{p\in(0,1)}R(p,\hat p_T) = \frac1{4(n+1)} }.

三者最大風險依序為

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 4 題12 分

Let X1,X2,…,XnX_1, X_2, \dots, X_n be a random sample from N(μ,σ2)N(\mu, \sigma^2), where both parameters are unknown.
(a) Find a pivotal quantity of μ\mu.
(b) Use the pivotal quantity of (a) to find a 100(1−α)%100(1-\alpha)\% confidence interval (C.I.) for μ\mu.
(c) Is your finding in (b) the shortest length C.I.? Prove your claim.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題主要測驗常態母體在「母體平均數與母體變異數皆未知」時的**區間估計(Interval Estimation)**理論,涵蓋三大核心觀念:

  1. 樞紐量(Pivotal Quantity)的定義與建構:樞紐量 Q(X,θ)Q(\mathbf{X}, \theta) 是一個包含樣本與待估參數 θ\theta 的隨機變數,其機率分配完全已知,不依賴任何未知母數(包含干擾母數 σ2\sigma^2)。
  2. Student's tt 分配的形成條件:若 Z∼N(0,1)Z \sim N(0, 1) 與 V∼χ2(r)V \sim \chi^2(r) 相互獨立,則 T=ZV/r∼t(r)T = \frac{Z}{\sqrt{V/r}} \sim t(r)。在常態母體下,樣本平均數 Xˉ\bar{X} 與樣本變異數 S2S^2 相互獨立。
  3. 最短長度信賴區間(Shortest-length Confidence Interval)定理:若樞紐量的機率密度函數(p.d.f.)具備**對稱單峰(Symmetric and Unimodal)**之性質,則在固定信心水準 1−α1-\alpha 下,等尾(Equal-tailed)臨界點所構造的信賴區間擁有最短的區間長度(以及最短的期望長度)。

解題方法與推導

(a) 求解 μ\mu 的樞紐量(Pivotal Quantity)

設隨機樣本 X1,X2,…,Xn∼iidN(μ,σ2)X_1, X_2, \dots, X_n \overset{\text{iid}}{\sim} N(\mu, \sigma^2),定義:

  • 樣本平均數:Xˉ=1n∑i=1nXi\bar{X} = \frac{1}{n} \sum_{i=1}^n X_i
  • 樣本變異數:S2=1n−1∑i=1n(Xi−Xˉ)2S^2 = \frac{1}{n-1} \sum_{i=1}^n (X_i - \bar{X})^2

由常態樣本抽樣分配性質可知:

  1. Xˉ∼N(μ,σ2n)  ⟹  Z=Xˉ−μσ/n∼N(0,1)\bar{X} \sim N\left(\mu, \frac{\sigma^2}{n}\right) \implies Z = \frac{\bar{X} - \mu}{\sigma / \sqrt{n}} \sim N(0, 1)
  2. V=(n−1)S2σ2∼χ2(n−1)V = \frac{(n-1)S^2}{\sigma^2} \sim \chi^2(n-1)
  3. 根據 Cochran's 定理(或 Basu's 定理),Xˉ\bar{X} 與 S2S^2 相互獨立,故 ZZ 與 VV 相互獨立。

利用 Student's tt 分配之定義構造隨機變數 TT:

T=ZV/(n−1)=Xˉ−μσ/n(n−1)S2σ2(n−1)=Xˉ−μS/nT = \frac{Z}{\sqrt{V / (n-1)}} = \frac{\frac{\bar{X} - \mu}{\sigma / \sqrt{n}}}{\sqrt{\frac{(n-1)S^2}{\sigma^2 (n-1)}}} = \frac{\bar{X} - \mu}{S / \sqrt{n}}

由於 TT 之機率分配為自由度 n−1n-1 的 Student's tt 分配,記作 T∼t(n−1)T \sim t(n-1),其分配不含任何未知參數(μ\mu 或 σ2\sigma^2),符合樞紐量之定義。

因此,μ\mu 的樞紐量為:

T=Xˉ−μS/n∼t(n−1)T = \frac{\bar{X} - \mu}{S / \sqrt{n}} \sim t(n-1)

(b) 利用樞紐量建構 μ\mu 的 100(1−α)%100(1-\alpha)\% 信賴區間

令 tα/2(n−1)t_{\alpha/2}(n-1) 為 t(n−1)t(n-1) 分配的右尾 α/2\alpha/2 臨界值,即滿足 P(T>tα/2(n−1))=α2P(T > t_{\alpha/2}(n-1)) = \frac{\alpha}{2}。由 tt 分配以 0 為中心對稱的性質,左尾臨界值為 −tα/2(n−1)-t_{\alpha/2}(n-1)。

建立機率陳述式:

P(−tα/2(n−1)≤Xˉ−μS/n≤tα/2(n−1))=1−αP\left( -t_{\alpha/2}(n-1) \le \frac{\bar{X} - \mu}{S / \sqrt{n}} \le t_{\alpha/2}(n-1) \right) = 1 - \alpha

透過不等式進行代數變形以解出 μ\mu:

−tα/2(n−1)Sn≤Xˉ−μ≤tα/2(n−1)Sn-t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}} \le \bar{X} - \mu \le t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}}

各項同減 Xˉ\bar{X} 後同乘 −1-1(不等號方向改變):

Xˉ−tα/2(n−1)Sn≤μ≤Xˉ+tα/2(n−1)Sn\bar{X} - t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}} \le \mu \le \bar{X} + t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}}

因此,μ\mu 的 100(1−α)%100(1-\alpha)\% 信賴區間為:

[Xˉ−tα/2(n−1)Sn, Xˉ+tα/2(n−1)Sn]\left[ \bar{X} - t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}}, \, \bar{X} + t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}} \right]

(c) 最短長度信賴區間之證明

【結論】:是的(Yes),(b) 所求得之信賴區間確實為基於該樞紐量下長度最短的信賴區間。

【證明】:

設由樞紐量 T=Xˉ−μS/nT = \frac{\bar{X} - \mu}{S / \sqrt{n}} 所構造之任意 100(1−α)%100(1-\alpha)\% 信賴區間對應的常數為 aa 與 bb(其中 a<ba < b),滿足:

P(a≤T≤b)=∫abf(t) dt=1−αP(a \le T \le b) = \int_a^b f(t) \, dt = 1 - \alpha

其中 f(t)f(t) 為 t(n−1)t(n-1) 分配的機率密度函數(p.d.f.)。

將不等式展開求 μ\mu:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 5 題8 分

Let XX be a sample of size 1 from a population P.
(a) Find a uniformly most powerful (UMP) test of size α∈(0)\alpha \in (0) for H0:P=P0H_0: P = P_0 versus H1:P=P1H_1: P = P_1, where P0P_0 is N(0,1)N(0,1) and P1P_1 is the double exponential distribution with the p.d.f. f(x)=12e−∣x∣/2f(x) = \frac{1}{2} e^{-|x|/\sqrt{2}}.
[Hint: ∫2∞12πe−x2/2dx≈0.1587\int_{\sqrt{2}}^{\infty} \frac{1}{\sqrt{2\pi}} e^{-x^2/2} dx \approx 0.1587]
(b) Find the power function of the test in (a).

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題是「單一觀察值下的簡單假設對簡單假設」:

  • H0:P=P0H_0:P=P_0,其中 P0=N(0,1)P_0=N(0,1);
  • H1:P=P1H_1:P=P_1,其中 P1P_1 為雙指數分布。

依據 Neyman–Pearson 引理,最具檢定力的檢定應在「概似比」較大的區域拒絕 H0H_0:

Λ(x)=f1(x)f0(x).\Lambda(x)=\frac{f_1(x)}{f_0(x)}.

由於虛無假設與對立假設皆為簡單假設,Neyman–Pearson 檢定同時就是 UMP 檢定。

以下將題目中的 α∈(0)\alpha\in(0) 解讀為通常的 0<α<10<\alpha<1。

解題方法:建立概似比

虛無假設下的密度為

f0(x)=12πe−x2/2,f_0(x)=\frac{1}{\sqrt{2\pi}}e^{-x^2/2},

對立假設下的密度為

f1(x)=12e−∣x∣/2.f_1(x)=\frac12e^{-|x|/\sqrt2}.

因此概似比為

Λ(x)=12e−∣x∣/212πe−x2/2=2π2exp⁡(x22−∣x∣2).\Lambda(x) =\frac{\frac12e^{-|x|/\sqrt2}} {\frac{1}{\sqrt{2\pi}}e^{-x^2/2}} =\frac{\sqrt{2\pi}}{2} \exp\left(\frac{x^2}{2}-\frac{|x|}{\sqrt2}\right).

令 t=∣x∣≥0t=|x|\geq 0,考察指數部分

g(t)=t22−t2.g(t)=\frac{t^2}{2}-\frac{t}{\sqrt2}.

其導數為

g′(t)=t−12.g'(t)=t-\frac1{\sqrt2}.

所以 g(t)g(t) 在 t=1/2t=1/\sqrt2 達到最小值,並且:

  • 當 tt 接近 00 時,概似比較大;
  • 當 tt 大於 2\sqrt2 時,概似比隨 tt 增加而增加;
  • Λ(0)=Λ(2)\Lambda(0)=\Lambda(\sqrt2),因為 g(0)=g(2)=0.g(0)=g(\sqrt2)=0.

因此,拒絕域是「中心區域加上尾端區域」的形式;當 α\alpha 較小時,只會取左右兩端尾部。


(a) UMP 檢定

情形一:0<α≤2{1−Φ(2)}0<\alpha\leq 2\{1-\Phi(\sqrt2)\}

題目提示

1−Φ(2)≈0.1587,1-\Phi(\sqrt2)\approx 0.1587,

因此

2{1−Φ(2)}≈0.3174.2\{1-\Phi(\sqrt2)\}\approx 0.3174.

當 0<α≤0.31740<\alpha\leq 0.3174 時,拒絕域位於兩端:

Rα={x:∣x∣≥b},R_\alpha=\{x:|x|\geq b\},

其中 bb 由檢定大小條件決定:

P0(∣X∣≥b)=α.P_0(|X|\geq b)=\alpha.

因為 X∼N(0,1)X\sim N(0,1),

2{1−Φ(b)}=α,2\{1-\Phi(b)\}=\alpha,

所以

b=Φ−1(1−α2).b=\Phi^{-1}\left(1-\frac{\alpha}{2}\right).

此時的 UMP 檢定為

φα(x)={1,∣x∣≥b,0,∣x∣<b.\varphi_\alpha(x)= \begin{cases} 1,& |x|\geq b,\\ 0,& |x|<b. \end{cases}

其中 φα(x)=1\varphi_\alpha(x)=1 表示拒絕 H0H_0。

特別地,當 α=0.3174\alpha=0.3174 時,b=2b=\sqrt2,拒絕域為

Rα={x:∣x∣≥2}.R_\alpha=\{x:|x|\geq\sqrt2\}.

情形二:0.3174<α<10.3174<\alpha<1

當要求的檢定大小大於 0.31740.3174 時,只使用兩端尾部仍不足以達到大小 α\alpha,因此必須加入中央區域。

拒絕域形狀為

Rα={x:∣x∣≤a}∪{x:∣x∣≥b},R_\alpha=\{x:|x|\leq a\}\cup\{x:|x|\geq b\},

其中

0<a<12<b<2.0<a<\frac1{\sqrt2}<b<\sqrt2.

兩個邊界點必須具有相同的概似比:

Λ(a)=Λ(b).\Lambda(a)=\Lambda(b).

由於 a,b>0a,b>0,可得

a22−a2=b22−b2.\frac{a^2}{2}-\frac{a}{\sqrt2} = \frac{b^2}{2}-\frac{b}{\sqrt2}.

整理為

(a−b)(a+b−2)=0.(a-b)(a+b-\sqrt2)=0.

因為 a≠ba\neq b,所以

a+b=2,a+b=\sqrt2,

亦即

b=2−a.b=\sqrt2-a.

再利用檢定大小條件:

P0(∣X∣≤a)+P0(∣X∣≥b)=α,P_0(|X|\leq a)+P_0(|X|\geq b)=\alpha,

得到

2Φ(a)+2{1−Φ(b)}=α.2\Phi(a)+2\{1-\Phi(b)\}=\alpha.

代入 b=2−ab=\sqrt2-a,aa 為下列方程式的唯一解:

2Φ(a)+2{1−Φ(2−a)}=α.2\Phi(a)+2\left\{1-\Phi(\sqrt2-a)\right\}=\alpha.

因此,當 0.3174<α<10.3174<\alpha<1 時,UMP 檢定為

φα(x)={1,∣x∣≤a 或 ∣x∣≥2−a,0,a<∣x∣<2−a.\varphi_\alpha(x)= \begin{cases} 1,& |x|\leq a\text{ 或 }|x|\geq \sqrt2-a,\\ 0,& a<|x|<\sqrt2-a. \end{cases}
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 一 題

Let X1,X2,…,XnX_1, X_2, \dots, X_n be a random sample from Bernoulli(pp). Define R(p,δ(X))=Ep[(δ(X)−p)2]R(p, \delta(\mathbf{X})) = E_p [(\delta(\mathbf{X}) - p)^2] (the Mean-Square Error).
(a) Find a minimal sufficient statistic of pp.
(b) Find the uniformly minimum variance unbiased estimator (UMVUE) of pp.
(c) Assume that the prior distribution on pp is beta(α,β\alpha, \beta).
(c-i) Find the posterior distribution of pp.
(c-ii) Calculate the posterior mean and variance.
(c-iii) Denote p^PB\hat{p}_{PB} to be the posterior mean found in (c-ii). Find α,β\alpha, \beta such that R(p,p^PB)R(p, \hat{p}_{PB}) is constant.
(d) Consider three estimators

p^U=UMVUE found in (b),\hat{p}_U = \text{UMVUE found in (b)}, p^PB=the posterior mean with constant risk found in (c-iii),\hat{p}_{PB} = \text{the posterior mean with constant risk found in (c-iii)}, p^T={p^Uwith probability nn+112with probability 1n+1\hat{p}_T = \begin{cases} \hat{p}_U & \text{with probability } \frac{n}{n+1} \\ \frac{1}{2} & \text{with probability } \frac{1}{n+1} \end{cases}

(d-i) Find sup⁡p∈(0,1)R(p,p^U)\sup_{p \in (0,1)} R(p, \hat{p}_U), sup⁡p∈(0,1)R(p,p^PB)\sup_{p \in (0,1)} R(p, \hat{p}_{PB}), and sup⁡p∈(0,1)R(p,p^T)\sup_{p \in (0,1)} R(p, \hat{p}_T) for a fixed nn.
(d-ii) Find the limiting distribution of n(p^U−p)\sqrt{n}(\hat{p}_U - p) and n(p^PB−p)\sqrt{n}(\hat{p}_{PB} - p), respectively.
(d-iii) Show that p^U\hat{p}_U and p^PB\hat{p}_{PB} are the consistent estimators of pp.
(d-iv) Show that p^U\hat{p}_U is asymptotically efficient of pp.
(d-v) Find the asymptotic relative efficiency (ARE) of p^T\hat{p}_T with respect to p^U\hat{p}_U.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題整合以下概念:

  • Bernoulli 隨機樣本的似然函數與最小充分統計量。
  • Rao–Blackwell 定理與 Lehmann–Scheffé 定理。
  • Beta–Binomial 共軛先驗。
  • 貝氏估計量的頻率學派風險函數。
  • 最大風險、漸近常態性、一致性與漸近效率。
  • 隨機化估計量與漸近相對效率。

令

S=∑i=1nXi,Xˉ=Sn.S=\sum_{i=1}^n X_i,\qquad \bar X=\frac{S}{n}.

由於 Xi∼Bernoulli⁡(p)X_i\sim\operatorname{Bernoulli}(p),故 S∼Binomial⁡(n,p)S\sim\operatorname{Binomial}(n,p)。


(a) pp 的最小充分統計量

聯合機率質量函數為

fp(x)=∏i=1npxi(1−p)1−xi=p∑xi(1−p)n−∑xi.f_p(\mathbf x) =\prod_{i=1}^n p^{x_i}(1-p)^{1-x_i} =p^{\sum x_i}(1-p)^{n-\sum x_i}.

因此似然函數只透過 ∑xi\sum x_i 依賴樣本:

L(p;x)=pS(1−p)n−S.L(p;\mathbf x)=p^S(1-p)^{n-S}.

由 Neyman–Fisher 因子分解定理,SS 是 pp 的充分統計量。

再利用最小充分統計量的似然比判準,對兩組樣本 x,y\mathbf x,\mathbf y,

L(p;x)L(p;y)=pSx−Sy(1−p)Sy−Sx.\frac{L(p;\mathbf x)}{L(p;\mathbf y)} =p^{S_x-S_y}(1-p)^{S_y-S_x}.

此比值與 pp 無關,當且僅當 Sx=SyS_x=S_y。故 SS 不僅充分,也是最小充分統計量。


(b) pp 的 UMVUE

由於

Ep(Xi)=p,E_p(X_i)=p,

所以

Ep(Xˉ)=Ep(1n∑i=1nXi)=p.E_p(\bar X) =E_p\left(\frac1n\sum_{i=1}^nX_i\right) =p.

因此 Xˉ\bar X 是 pp 的不偏估計量。

又因為 SS 是完整充分統計量:

S∼Binomial⁡(n,p),S\sim\operatorname{Binomial}(n,p),

而 Binomial 族在 p∈(0,1)p\in(0,1) 下為完整族。由 Lehmann–Scheffé 定理,任何基於完整充分統計量的不偏估計量,都是 UMVUE。

由於 Xˉ=S/n\bar X=S/n,故

p^U=Xˉ=Sn.\boxed{\hat p_U=\bar X=\frac{S}{n}}.

其變異數為

Var⁡p(p^U)=p(1−p)n.\operatorname{Var}_p(\hat p_U) =\frac{p(1-p)}{n}.

因為它不偏,所以

R(p,p^U)=p(1−p)n.R(p,\hat p_U)=\frac{p(1-p)}{n}.

(c) Beta 先驗下的後驗分析

(c-i) 後驗分布

假設先驗分布為

p∼Beta⁡(α,β),p\sim\operatorname{Beta}(\alpha,\beta),

其密度與

pα−1(1−p)β−1p^{\alpha-1}(1-p)^{\beta-1}

成正比。

結合似然函數:

L(p;x)π(p)∝pS(1−p)n−Spα−1(1−p)β−1.L(p;\mathbf x)\pi(p) \propto p^S(1-p)^{n-S} p^{\alpha-1}(1-p)^{\beta-1}.

因此

π(p∣X)∝pS+α−1(1−p)n−S+β−1.\pi(p\mid\mathbf X) \propto p^{S+\alpha-1}(1-p)^{n-S+\beta-1}.

故後驗分布為

p∣X∼Beta⁡(α+S,β+n−S).\boxed{ p\mid\mathbf X\sim \operatorname{Beta}(\alpha+S,\beta+n-S) }.

(c-ii) 後驗平均數與變異數

若 Y∼Beta⁡(a,b)Y\sim\operatorname{Beta}(a,b),則

E(Y)=aa+b,E(Y)=\frac{a}{a+b}, Var⁡(Y)=ab(a+b)2(a+b+1).\operatorname{Var}(Y) =\frac{ab}{(a+b)^2(a+b+1)}.

代入 a=α+Sa=\alpha+S、b=β+n−Sb=\beta+n-S,得到後驗平均數:

p^PB=E(p∣X)=α+Sα+β+n.\boxed{ \hat p_{PB} =E(p\mid\mathbf X) =\frac{\alpha+S}{\alpha+\beta+n} }.

後驗變異數為

Var⁡(p∣X)=(α+S)(β+n−S)(α+β+n)2(α+β+n+1).\boxed{ \operatorname{Var}(p\mid\mathbf X) = \frac{(\alpha+S)(\beta+n-S)} {(\alpha+\beta+n)^2(\alpha+\beta+n+1)} }.

(c-iii) 使風險為常數的 α,β\alpha,\beta

令

k=α+β.k=\alpha+\beta.

後驗平均數可寫為

p^PB=S+αn+k.\hat p_{PB}=\frac{S+\alpha}{n+k}.

因為 Ep(S)=npE_p(S)=np、Var⁡p(S)=np(1−p)\operatorname{Var}_p(S)=np(1-p),所以

Ep(p^PB)=np+αn+k.E_p(\hat p_{PB}) =\frac{np+\alpha}{n+k}.

其偏差為

Bias⁡p(p^PB)=np+αn+k−p=α−kpn+k.\operatorname{Bias}_p(\hat p_{PB}) = \frac{np+\alpha}{n+k}-p = \frac{\alpha-kp}{n+k}.

其變異數為

Var⁡p(p^PB)=np(1−p)(n+k)2.\operatorname{Var}_p(\hat p_{PB}) = \frac{np(1-p)}{(n+k)^2}.

因此風險為

R(p,p^PB)=np(1−p)+(α−kp)2(n+k)2.R(p,\hat p_{PB}) = \frac{np(1-p)+(\alpha-kp)^2}{(n+k)^2}.

展開分子:

np(1−p)+(α−kp)2=(k2−n)p2+(n−2αk)p+α2.np(1-p)+(\alpha-kp)^2 = (k^2-n)p^2+(n-2\alpha k)p+\alpha^2.

要使風險與 pp 無關,p2p^2 與 pp 的係數都必須為 00:

k2−n=0,k^2-n=0, n−2αk=0.n-2\alpha k=0.

因為 k>0k>0,所以

k=n,α=n2n=n2.k=\sqrt n, \qquad \alpha=\frac{n}{2\sqrt n}=\frac{\sqrt n}{2}.

進而

β=k−α=n2.\beta=k-\alpha=\frac{\sqrt n}{2}.

故

α=β=n2.\boxed{\alpha=\beta=\frac{\sqrt n}{2}}.

此時

p^PB=S+n2n+n,\hat p_{PB} = \frac{S+\frac{\sqrt n}{2}}{n+\sqrt n},

且其風險為

R(p,p^PB)=14(n+1)2.\boxed{ R(p,\hat p_{PB}) = \frac{1}{4(\sqrt n+1)^2} }.

這確實與 pp 無關。


(d) 三種估計量的比較

本題中

p^U=Xˉ,\hat p_U=\bar X, p^PB=S+n2n+n,\hat p_{PB} = \frac{S+\frac{\sqrt n}{2}}{n+\sqrt n},

而 p^T\hat p_T 以機率 nn+1\frac{n}{n+1} 使用 p^U\hat p_U,以機率 1n+1\frac1{n+1} 使用 1/21/2。

隨機化機率與樣本獨立。


(d-i) 三種估計量的最大風險

1. p^U\hat p_U

已知

R(p,p^U)=p(1−p)n.R(p,\hat p_U)=\frac{p(1-p)}{n}.

由於

sup⁡0<p<1p(1−p)=14,\sup_{0<p<1}p(1-p)=\frac14,

所以

sup⁡p∈(0,1)R(p,p^U)=14n.\boxed{ \sup_{p\in(0,1)}R(p,\hat p_U)=\frac1{4n} }.

2. p^PB\hat p_{PB}

由 (c-iii),

R(p,p^PB)=14(n+1)2.R(p,\hat p_{PB}) = \frac{1}{4(\sqrt n+1)^2}.

因此

sup⁡p∈(0,1)R(p,p^PB)=14(n+1)2.\boxed{ \sup_{p\in(0,1)}R(p,\hat p_{PB}) = \frac{1}{4(\sqrt n+1)^2} }.

3. p^T\hat p_T

隨機化估計量的平方誤差期望為各分支風險的加權平均:

R(p,p^T)=nn+1R(p,p^U)+1n+1(12−p)2.R(p,\hat p_T) = \frac{n}{n+1}R(p,\hat p_U) + \frac1{n+1}\left(\frac12-p\right)^2.

代入 R(p,p^U)=p(1−p)/nR(p,\hat p_U)=p(1-p)/n:

R(p,p^T)=p(1−p)n+1+(p−12)2n+1.R(p,\hat p_T) = \frac{p(1-p)}{n+1} + \frac{(p-\frac12)^2}{n+1}.

注意

p(1−p)+(p−12)2=14.p(1-p)+\left(p-\frac12\right)^2 = \frac14.

因此

R(p,p^T)=14(n+1).R(p,\hat p_T)=\frac1{4(n+1)}.

故

sup⁡p∈(0,1)R(p,p^T)=14(n+1).\boxed{ \sup_{p\in(0,1)}R(p,\hat p_T) = \frac1{4(n+1)} }.

三者最大風險依序為

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 Problem 3 題30 分

Let X1,X2,…,XnX_1, X_2, \dots, X_n be a random sample from Bernoulli(pp). Define R(p,δ(X))=Ep[(δ(X)−p)2]R(p, \delta(\mathbf{X})) = E_p [(\delta(\mathbf{X}) - p)^2] (the Mean-Square Error).
(a) Find a minimal sufficient statistic of pp.
(b) Find the uniformly minimum variance unbiased estimator (UMVUE) of pp.
(c) Assume that the prior distribution on pp is beta(α,β\alpha, \beta).
(c-i) Find the posterior distribution of pp.
(c-ii) Calculate the posterior mean and variance.
(c-iii) Denote p^PB\hat{p}_{PB} to be the posterior mean found in (c-ii). Find α,β\alpha, \beta such that R(p,p^PB)R(p, \hat{p}_{PB}) is constant.
(d) Consider three estimators

p^U=UMVUE found in (b),\hat{p}_U = \text{UMVUE found in (b)}, p^PB=the posterior mean with constant risk found in (c-iii),\hat{p}_{PB} = \text{the posterior mean with constant risk found in (c-iii)}, p^T={p^Uwith probability nn+112with probability 1n+1\hat{p}_T = \begin{cases} \hat{p}_U & \text{with probability } \frac{n}{n+1} \\ \frac{1}{2} & \text{with probability } \frac{1}{n+1} \end{cases}

(d-i) Find sup⁡p∈(0,1)R(p,p^U)\sup_{p \in (0,1)} R(p, \hat{p}_U), sup⁡p∈(0,1)R(p,p^PB)\sup_{p \in (0,1)} R(p, \hat{p}_{PB}), and sup⁡p∈(0,1)R(p,p^T)\sup_{p \in (0,1)} R(p, \hat{p}_T) for a fixed nn.
(d-ii) Find the limiting distribution of n(p^U−p)\sqrt{n}(\hat{p}_U - p) and n(p^PB−p)\sqrt{n}(\hat{p}_{PB} - p), respectively.
(d-iii) Show that p^U\hat{p}_U and p^PB\hat{p}_{PB} are the consistent estimators of pp.
(d-iv) Show that p^U\hat{p}_U is asymptotically efficient of pp.
(d-v) Find the asymptotic relative efficiency (ARE) of p^T\hat{p}_T with respect to p^U\hat{p}_U.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題整合以下概念:

  • Bernoulli 隨機樣本的似然函數與最小充分統計量。
  • Rao–Blackwell 定理與 Lehmann–Scheffé 定理。
  • Beta–Binomial 共軛先驗。
  • 貝氏估計量的頻率學派風險函數。
  • 最大風險、漸近常態性、一致性與漸近效率。
  • 隨機化估計量與漸近相對效率。

令

S=∑i=1nXi,Xˉ=Sn.S=\sum_{i=1}^n X_i,\qquad \bar X=\frac{S}{n}.

由於 Xi∼Bernoulli⁡(p)X_i\sim\operatorname{Bernoulli}(p),故 S∼Binomial⁡(n,p)S\sim\operatorname{Binomial}(n,p)。


(a) pp 的最小充分統計量

聯合機率質量函數為

fp(x)=∏i=1npxi(1−p)1−xi=p∑xi(1−p)n−∑xi.f_p(\mathbf x) =\prod_{i=1}^n p^{x_i}(1-p)^{1-x_i} =p^{\sum x_i}(1-p)^{n-\sum x_i}.

因此似然函數只透過 ∑xi\sum x_i 依賴樣本:

L(p;x)=pS(1−p)n−S.L(p;\mathbf x)=p^S(1-p)^{n-S}.

由 Neyman–Fisher 因子分解定理,SS 是 pp 的充分統計量。

再利用最小充分統計量的似然比判準,對兩組樣本 x,y\mathbf x,\mathbf y,

L(p;x)L(p;y)=pSx−Sy(1−p)Sy−Sx.\frac{L(p;\mathbf x)}{L(p;\mathbf y)} =p^{S_x-S_y}(1-p)^{S_y-S_x}.

此比值與 pp 無關,當且僅當 Sx=SyS_x=S_y。故 SS 不僅充分,也是最小充分統計量。


(b) pp 的 UMVUE

由於

Ep(Xi)=p,E_p(X_i)=p,

所以

Ep(Xˉ)=Ep(1n∑i=1nXi)=p.E_p(\bar X) =E_p\left(\frac1n\sum_{i=1}^nX_i\right) =p.

因此 Xˉ\bar X 是 pp 的不偏估計量。

又因為 SS 是完整充分統計量:

S∼Binomial⁡(n,p),S\sim\operatorname{Binomial}(n,p),

而 Binomial 族在 p∈(0,1)p\in(0,1) 下為完整族。由 Lehmann–Scheffé 定理,任何基於完整充分統計量的不偏估計量,都是 UMVUE。

由於 Xˉ=S/n\bar X=S/n,故

p^U=Xˉ=Sn.\boxed{\hat p_U=\bar X=\frac{S}{n}}.

其變異數為

Var⁡p(p^U)=p(1−p)n.\operatorname{Var}_p(\hat p_U) =\frac{p(1-p)}{n}.

因為它不偏,所以

R(p,p^U)=p(1−p)n.R(p,\hat p_U)=\frac{p(1-p)}{n}.

(c) Beta 先驗下的後驗分析

(c-i) 後驗分布

假設先驗分布為

p∼Beta⁡(α,β),p\sim\operatorname{Beta}(\alpha,\beta),

其密度與

pα−1(1−p)β−1p^{\alpha-1}(1-p)^{\beta-1}

成正比。

結合似然函數:

L(p;x)π(p)∝pS(1−p)n−Spα−1(1−p)β−1.L(p;\mathbf x)\pi(p) \propto p^S(1-p)^{n-S} p^{\alpha-1}(1-p)^{\beta-1}.

因此

π(p∣X)∝pS+α−1(1−p)n−S+β−1.\pi(p\mid\mathbf X) \propto p^{S+\alpha-1}(1-p)^{n-S+\beta-1}.

故後驗分布為

p∣X∼Beta⁡(α+S,β+n−S).\boxed{ p\mid\mathbf X\sim \operatorname{Beta}(\alpha+S,\beta+n-S) }.

(c-ii) 後驗平均數與變異數

若 Y∼Beta⁡(a,b)Y\sim\operatorname{Beta}(a,b),則

E(Y)=aa+b,E(Y)=\frac{a}{a+b}, Var⁡(Y)=ab(a+b)2(a+b+1).\operatorname{Var}(Y) =\frac{ab}{(a+b)^2(a+b+1)}.

代入 a=α+Sa=\alpha+S、b=β+n−Sb=\beta+n-S,得到後驗平均數:

p^PB=E(p∣X)=α+Sα+β+n.\boxed{ \hat p_{PB} =E(p\mid\mathbf X) =\frac{\alpha+S}{\alpha+\beta+n} }.

後驗變異數為

Var⁡(p∣X)=(α+S)(β+n−S)(α+β+n)2(α+β+n+1).\boxed{ \operatorname{Var}(p\mid\mathbf X) = \frac{(\alpha+S)(\beta+n-S)} {(\alpha+\beta+n)^2(\alpha+\beta+n+1)} }.

(c-iii) 使風險為常數的 α,β\alpha,\beta

令

k=α+β.k=\alpha+\beta.

後驗平均數可寫為

p^PB=S+αn+k.\hat p_{PB}=\frac{S+\alpha}{n+k}.

因為 Ep(S)=npE_p(S)=np、Var⁡p(S)=np(1−p)\operatorname{Var}_p(S)=np(1-p),所以

Ep(p^PB)=np+αn+k.E_p(\hat p_{PB}) =\frac{np+\alpha}{n+k}.

其偏差為

Bias⁡p(p^PB)=np+αn+k−p=α−kpn+k.\operatorname{Bias}_p(\hat p_{PB}) = \frac{np+\alpha}{n+k}-p = \frac{\alpha-kp}{n+k}.

其變異數為

Var⁡p(p^PB)=np(1−p)(n+k)2.\operatorname{Var}_p(\hat p_{PB}) = \frac{np(1-p)}{(n+k)^2}.

因此風險為

R(p,p^PB)=np(1−p)+(α−kp)2(n+k)2.R(p,\hat p_{PB}) = \frac{np(1-p)+(\alpha-kp)^2}{(n+k)^2}.

展開分子:

np(1−p)+(α−kp)2=(k2−n)p2+(n−2αk)p+α2.np(1-p)+(\alpha-kp)^2 = (k^2-n)p^2+(n-2\alpha k)p+\alpha^2.

要使風險與 pp 無關,p2p^2 與 pp 的係數都必須為 00:

k2−n=0,k^2-n=0, n−2αk=0.n-2\alpha k=0.

因為 k>0k>0,所以

k=n,α=n2n=n2.k=\sqrt n, \qquad \alpha=\frac{n}{2\sqrt n}=\frac{\sqrt n}{2}.

進而

β=k−α=n2.\beta=k-\alpha=\frac{\sqrt n}{2}.

故

α=β=n2.\boxed{\alpha=\beta=\frac{\sqrt n}{2}}.

此時

p^PB=S+n2n+n,\hat p_{PB} = \frac{S+\frac{\sqrt n}{2}}{n+\sqrt n},

且其風險為

R(p,p^PB)=14(n+1)2.\boxed{ R(p,\hat p_{PB}) = \frac{1}{4(\sqrt n+1)^2} }.

這確實與 pp 無關。


(d) 三種估計量的比較

本題中

p^U=Xˉ,\hat p_U=\bar X, p^PB=S+n2n+n,\hat p_{PB} = \frac{S+\frac{\sqrt n}{2}}{n+\sqrt n},

而 p^T\hat p_T 以機率 nn+1\frac{n}{n+1} 使用 p^U\hat p_U,以機率 1n+1\frac1{n+1} 使用 1/21/2。

隨機化機率與樣本獨立。


(d-i) 三種估計量的最大風險

1. p^U\hat p_U

已知

R(p,p^U)=p(1−p)n.R(p,\hat p_U)=\frac{p(1-p)}{n}.

由於

sup⁡0<p<1p(1−p)=14,\sup_{0<p<1}p(1-p)=\frac14,

所以

sup⁡p∈(0,1)R(p,p^U)=14n.\boxed{ \sup_{p\in(0,1)}R(p,\hat p_U)=\frac1{4n} }.

2. p^PB\hat p_{PB}

由 (c-iii),

R(p,p^PB)=14(n+1)2.R(p,\hat p_{PB}) = \frac{1}{4(\sqrt n+1)^2}.

因此

sup⁡p∈(0,1)R(p,p^PB)=14(n+1)2.\boxed{ \sup_{p\in(0,1)}R(p,\hat p_{PB}) = \frac{1}{4(\sqrt n+1)^2} }.

3. p^T\hat p_T

隨機化估計量的平方誤差期望為各分支風險的加權平均:

R(p,p^T)=nn+1R(p,p^U)+1n+1(12−p)2.R(p,\hat p_T) = \frac{n}{n+1}R(p,\hat p_U) + \frac1{n+1}\left(\frac12-p\right)^2.

代入 R(p,p^U)=p(1−p)/nR(p,\hat p_U)=p(1-p)/n:

R(p,p^T)=p(1−p)n+1+(p−12)2n+1.R(p,\hat p_T) = \frac{p(1-p)}{n+1} + \frac{(p-\frac12)^2}{n+1}.

注意

p(1−p)+(p−12)2=14.p(1-p)+\left(p-\frac12\right)^2 = \frac14.

因此

R(p,p^T)=14(n+1).R(p,\hat p_T)=\frac1{4(n+1)}.

故

sup⁡p∈(0,1)R(p,p^T)=14(n+1).\boxed{ \sup_{p\in(0,1)}R(p,\hat p_T) = \frac1{4(n+1)} }.

三者最大風險依序為

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 4 題12 分

Let X1,X2,…,XnX_1, X_2, \dots, X_n be a random sample from N(μ,σ2)N(\mu, \sigma^2), where both parameters are unknown.
(a) Find a pivotal quantity of μ\mu.
(b) Use the pivotal quantity of (a) to find a 100(1−α)%100(1-\alpha)\% confidence interval (C.I.) for μ\mu.
(c) Is your finding in (b) the shortest length C.I.? Prove your claim.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題主要測驗常態母體在「母體平均數與母體變異數皆未知」時的**區間估計(Interval Estimation)**理論,涵蓋三大核心觀念:

  1. 樞紐量(Pivotal Quantity)的定義與建構:樞紐量 Q(X,θ)Q(\mathbf{X}, \theta) 是一個包含樣本與待估參數 θ\theta 的隨機變數,其機率分配完全已知,不依賴任何未知母數(包含干擾母數 σ2\sigma^2)。
  2. Student's tt 分配的形成條件:若 Z∼N(0,1)Z \sim N(0, 1) 與 V∼χ2(r)V \sim \chi^2(r) 相互獨立,則 T=ZV/r∼t(r)T = \frac{Z}{\sqrt{V/r}} \sim t(r)。在常態母體下,樣本平均數 Xˉ\bar{X} 與樣本變異數 S2S^2 相互獨立。
  3. 最短長度信賴區間(Shortest-length Confidence Interval)定理:若樞紐量的機率密度函數(p.d.f.)具備**對稱單峰(Symmetric and Unimodal)**之性質,則在固定信心水準 1−α1-\alpha 下,等尾(Equal-tailed)臨界點所構造的信賴區間擁有最短的區間長度(以及最短的期望長度)。

解題方法與推導

(a) 求解 μ\mu 的樞紐量(Pivotal Quantity)

設隨機樣本 X1,X2,…,Xn∼iidN(μ,σ2)X_1, X_2, \dots, X_n \overset{\text{iid}}{\sim} N(\mu, \sigma^2),定義:

  • 樣本平均數:Xˉ=1n∑i=1nXi\bar{X} = \frac{1}{n} \sum_{i=1}^n X_i
  • 樣本變異數:S2=1n−1∑i=1n(Xi−Xˉ)2S^2 = \frac{1}{n-1} \sum_{i=1}^n (X_i - \bar{X})^2

由常態樣本抽樣分配性質可知:

  1. Xˉ∼N(μ,σ2n)  ⟹  Z=Xˉ−μσ/n∼N(0,1)\bar{X} \sim N\left(\mu, \frac{\sigma^2}{n}\right) \implies Z = \frac{\bar{X} - \mu}{\sigma / \sqrt{n}} \sim N(0, 1)
  2. V=(n−1)S2σ2∼χ2(n−1)V = \frac{(n-1)S^2}{\sigma^2} \sim \chi^2(n-1)
  3. 根據 Cochran's 定理(或 Basu's 定理),Xˉ\bar{X} 與 S2S^2 相互獨立,故 ZZ 與 VV 相互獨立。

利用 Student's tt 分配之定義構造隨機變數 TT:

T=ZV/(n−1)=Xˉ−μσ/n(n−1)S2σ2(n−1)=Xˉ−μS/nT = \frac{Z}{\sqrt{V / (n-1)}} = \frac{\frac{\bar{X} - \mu}{\sigma / \sqrt{n}}}{\sqrt{\frac{(n-1)S^2}{\sigma^2 (n-1)}}} = \frac{\bar{X} - \mu}{S / \sqrt{n}}

由於 TT 之機率分配為自由度 n−1n-1 的 Student's tt 分配,記作 T∼t(n−1)T \sim t(n-1),其分配不含任何未知參數(μ\mu 或 σ2\sigma^2),符合樞紐量之定義。

因此,μ\mu 的樞紐量為:

T=Xˉ−μS/n∼t(n−1)T = \frac{\bar{X} - \mu}{S / \sqrt{n}} \sim t(n-1)

(b) 利用樞紐量建構 μ\mu 的 100(1−α)%100(1-\alpha)\% 信賴區間

令 tα/2(n−1)t_{\alpha/2}(n-1) 為 t(n−1)t(n-1) 分配的右尾 α/2\alpha/2 臨界值,即滿足 P(T>tα/2(n−1))=α2P(T > t_{\alpha/2}(n-1)) = \frac{\alpha}{2}。由 tt 分配以 0 為中心對稱的性質,左尾臨界值為 −tα/2(n−1)-t_{\alpha/2}(n-1)。

建立機率陳述式:

P(−tα/2(n−1)≤Xˉ−μS/n≤tα/2(n−1))=1−αP\left( -t_{\alpha/2}(n-1) \le \frac{\bar{X} - \mu}{S / \sqrt{n}} \le t_{\alpha/2}(n-1) \right) = 1 - \alpha

透過不等式進行代數變形以解出 μ\mu:

−tα/2(n−1)Sn≤Xˉ−μ≤tα/2(n−1)Sn-t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}} \le \bar{X} - \mu \le t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}}

各項同減 Xˉ\bar{X} 後同乘 −1-1(不等號方向改變):

Xˉ−tα/2(n−1)Sn≤μ≤Xˉ+tα/2(n−1)Sn\bar{X} - t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}} \le \mu \le \bar{X} + t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}}

因此,μ\mu 的 100(1−α)%100(1-\alpha)\% 信賴區間為:

[Xˉ−tα/2(n−1)Sn, Xˉ+tα/2(n−1)Sn]\left[ \bar{X} - t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}}, \, \bar{X} + t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}} \right]

(c) 最短長度信賴區間之證明

【結論】:是的(Yes),(b) 所求得之信賴區間確實為基於該樞紐量下長度最短的信賴區間。

【證明】:

設由樞紐量 T=Xˉ−μS/nT = \frac{\bar{X} - \mu}{S / \sqrt{n}} 所構造之任意 100(1−α)%100(1-\alpha)\% 信賴區間對應的常數為 aa 與 bb(其中 a<ba < b),滿足:

P(a≤T≤b)=∫abf(t) dt=1−αP(a \le T \le b) = \int_a^b f(t) \, dt = 1 - \alpha

其中 f(t)f(t) 為 t(n−1)t(n-1) 分配的機率密度函數(p.d.f.)。

將不等式展開求 μ\mu:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 5 題8 分

Let XX be a sample of size 1 from a population P.
(a) Find a uniformly most powerful (UMP) test of size α∈(0)\alpha \in (0) for H0:P=P0H_0: P = P_0 versus H1:P=P1H_1: P = P_1, where P0P_0 is N(0,1)N(0,1) and P1P_1 is the double exponential distribution with the p.d.f. f(x)=12e−∣x∣/2f(x) = \frac{1}{2} e^{-|x|/\sqrt{2}}.
[Hint: ∫2∞12πe−x2/2dx≈0.1587\int_{\sqrt{2}}^{\infty} \frac{1}{\sqrt{2\pi}} e^{-x^2/2} dx \approx 0.1587]
(b) Find the power function of the test in (a).

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題是「單一觀察值下的簡單假設對簡單假設」:

  • H0:P=P0H_0:P=P_0,其中 P0=N(0,1)P_0=N(0,1);
  • H1:P=P1H_1:P=P_1,其中 P1P_1 為雙指數分布。

依據 Neyman–Pearson 引理,最具檢定力的檢定應在「概似比」較大的區域拒絕 H0H_0:

Λ(x)=f1(x)f0(x).\Lambda(x)=\frac{f_1(x)}{f_0(x)}.

由於虛無假設與對立假設皆為簡單假設,Neyman–Pearson 檢定同時就是 UMP 檢定。

以下將題目中的 α∈(0)\alpha\in(0) 解讀為通常的 0<α<10<\alpha<1。

解題方法:建立概似比

虛無假設下的密度為

f0(x)=12πe−x2/2,f_0(x)=\frac{1}{\sqrt{2\pi}}e^{-x^2/2},

對立假設下的密度為

f1(x)=12e−∣x∣/2.f_1(x)=\frac12e^{-|x|/\sqrt2}.

因此概似比為

Λ(x)=12e−∣x∣/212πe−x2/2=2π2exp⁡(x22−∣x∣2).\Lambda(x) =\frac{\frac12e^{-|x|/\sqrt2}} {\frac{1}{\sqrt{2\pi}}e^{-x^2/2}} =\frac{\sqrt{2\pi}}{2} \exp\left(\frac{x^2}{2}-\frac{|x|}{\sqrt2}\right).

令 t=∣x∣≥0t=|x|\geq 0,考察指數部分

g(t)=t22−t2.g(t)=\frac{t^2}{2}-\frac{t}{\sqrt2}.

其導數為

g′(t)=t−12.g'(t)=t-\frac1{\sqrt2}.

所以 g(t)g(t) 在 t=1/2t=1/\sqrt2 達到最小值,並且:

  • 當 tt 接近 00 時,概似比較大;
  • 當 tt 大於 2\sqrt2 時,概似比隨 tt 增加而增加;
  • Λ(0)=Λ(2)\Lambda(0)=\Lambda(\sqrt2),因為 g(0)=g(2)=0.g(0)=g(\sqrt2)=0.

因此,拒絕域是「中心區域加上尾端區域」的形式;當 α\alpha 較小時,只會取左右兩端尾部。


(a) UMP 檢定

情形一:0<α≤2{1−Φ(2)}0<\alpha\leq 2\{1-\Phi(\sqrt2)\}

題目提示

1−Φ(2)≈0.1587,1-\Phi(\sqrt2)\approx 0.1587,

因此

2{1−Φ(2)}≈0.3174.2\{1-\Phi(\sqrt2)\}\approx 0.3174.

當 0<α≤0.31740<\alpha\leq 0.3174 時,拒絕域位於兩端:

Rα={x:∣x∣≥b},R_\alpha=\{x:|x|\geq b\},

其中 bb 由檢定大小條件決定:

P0(∣X∣≥b)=α.P_0(|X|\geq b)=\alpha.

因為 X∼N(0,1)X\sim N(0,1),

2{1−Φ(b)}=α,2\{1-\Phi(b)\}=\alpha,

所以

b=Φ−1(1−α2).b=\Phi^{-1}\left(1-\frac{\alpha}{2}\right).

此時的 UMP 檢定為

φα(x)={1,∣x∣≥b,0,∣x∣<b.\varphi_\alpha(x)= \begin{cases} 1,& |x|\geq b,\\ 0,& |x|<b. \end{cases}

其中 φα(x)=1\varphi_\alpha(x)=1 表示拒絕 H0H_0。

特別地,當 α=0.3174\alpha=0.3174 時,b=2b=\sqrt2,拒絕域為

Rα={x:∣x∣≥2}.R_\alpha=\{x:|x|\geq\sqrt2\}.

情形二:0.3174<α<10.3174<\alpha<1

當要求的檢定大小大於 0.31740.3174 時,只使用兩端尾部仍不足以達到大小 α\alpha,因此必須加入中央區域。

拒絕域形狀為

Rα={x:∣x∣≤a}∪{x:∣x∣≥b},R_\alpha=\{x:|x|\leq a\}\cup\{x:|x|\geq b\},

其中

0<a<12<b<2.0<a<\frac1{\sqrt2}<b<\sqrt2.

兩個邊界點必須具有相同的概似比:

Λ(a)=Λ(b).\Lambda(a)=\Lambda(b).

由於 a,b>0a,b>0,可得

a22−a2=b22−b2.\frac{a^2}{2}-\frac{a}{\sqrt2} = \frac{b^2}{2}-\frac{b}{\sqrt2}.

整理為

(a−b)(a+b−2)=0.(a-b)(a+b-\sqrt2)=0.

因為 a≠ba\neq b,所以

a+b=2,a+b=\sqrt2,

亦即

b=2−a.b=\sqrt2-a.

再利用檢定大小條件:

P0(∣X∣≤a)+P0(∣X∣≥b)=α,P_0(|X|\leq a)+P_0(|X|\geq b)=\alpha,

得到

2Φ(a)+2{1−Φ(b)}=α.2\Phi(a)+2\{1-\Phi(b)\}=\alpha.

代入 b=2−ab=\sqrt2-a,aa 為下列方程式的唯一解:

2Φ(a)+2{1−Φ(2−a)}=α.2\Phi(a)+2\left\{1-\Phi(\sqrt2-a)\right\}=\alpha.

因此,當 0.3174<α<10.3174<\alpha<1 時,UMP 檢定為

φα(x)={1,∣x∣≤a 或 ∣x∣≥2−a,0,a<∣x∣<2−a.\varphi_\alpha(x)= \begin{cases} 1,& |x|\leq a\text{ 或 }|x|\geq \sqrt2-a,\\ 0,& a<|x|<\sqrt2-a. \end{cases}
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

其他考古題