115 年 國立中山大學應用數學系碩士班甲組《統計與機率》

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

第 1 題15 分

  1. (15%) Let the random variable X be defined by X=YZX = YZ, where Y and Z are independent random variables each taking on the values -1 and 1 with probability 0.5. Show that X is independent of Y, but not of Y - Z.

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

這一題的完整詳解

本題主要在考察隨機變數的獨立性判斷,以及機率的計算。

核心觀念:

  1. 獨立性定義:兩個隨機變數 AA 和 BB 獨立,若且唯若對於任意的 a,ba, b,有 P(A≤a,B≤b)=P(A≤a)P(B≤b)P(A \le a, B \le b) = P(A \le a)P(B \le b)。對於離散隨機變數,這等價於 P(A=a,B=b)=P(A=a)P(B=b)P(A=a, B=b) = P(A=a)P(B=b) 對於所有可能的 a,ba, b 都成立。
  2. 聯合機率計算:利用條件機率或直接列舉所有可能組合計算聯合機率。
  3. 邊際機率計算:由聯合機率分配求得。

解題步驟:
首先,定義隨機變數 Y 和 Z 的機率分配。
P(Y=1)=0.5P(Y=1) = 0.5, P(Y=−1)=0.5P(Y=-1) = 0.5
P(Z=1)=0.5P(Z=1) = 0.5, P(Z=−1)=0.5P(Z=-1) = 0.5
Y 和 Z 是獨立的。

接著,定義隨機變數 X。
X=YZX = YZ

我們來計算 X 的所有可能值及其機率。

  • 若 Y=1,Z=1Y=1, Z=1, 則 X=1×1=1X = 1 \times 1 = 1. 機率為 P(Y=1,Z=1)=P(Y=1)P(Z=1)=0.5×0.5=0.25P(Y=1, Z=1) = P(Y=1)P(Z=1) = 0.5 \times 0.5 = 0.25.
  • 若 Y=1,Z=−1Y=1, Z=-1, 則 X=1×(−1)=−1X = 1 \times (-1) = -1. 機率為 P(Y=1,Z=−1)=P(Y=1)P(Z=−1)=0.5×0.5=0.25P(Y=1, Z=-1) = P(Y=1)P(Z=-1) = 0.5 \times 0.5 = 0.25.
  • 若 Y=−1,Z=1Y=-1, Z=1, 則 X=(−1)×1=−1X = (-1) \times 1 = -1. 機率為 P(Y=−1,Z=1)=P(Y=−1)P(Z=1)=0.5×0.5=0.25P(Y=-1, Z=1) = P(Y=-1)P(Z=1) = 0.5 \times 0.5 = 0.25.
  • 若 Y=−1,Z=−1Y=-1, Z=-1, 則 X=(−1)×(−1)=1X = (-1) \times (-1) = 1. 機率為 P(Y=−1,Z=−1)=P(Y=−1)P(Z=−1)=0.5×0.5=0.25P(Y=-1, Z=-1) = P(Y=-1)P(Z=-1) = 0.5 \times 0.5 = 0.25.

所以,X 的機率分配為:
P(X=1)=P(Y=1,Z=1)+P(Y=−1,Z=−1)=0.25+0.25=0.5P(X=1) = P(Y=1, Z=1) + P(Y=-1, Z=-1) = 0.25 + 0.25 = 0.5.
P(X=−1)=P(Y=1,Z=−1)+P(Y=−1,Z=1)=0.25+0.25=0.5P(X=-1) = P(Y=1, Z=-1) + P(Y=-1, Z=1) = 0.25 + 0.25 = 0.5.

第一部分:證明 X 與 Y 獨立
根據獨立性的定義,我們需要檢查 P(X=x,Y=y)=P(X=x)P(Y=y)P(X=x, Y=y) = P(X=x)P(Y=y) 是否成立,對於所有可能的 x 和 y 值。
X 的可能值是 {1, -1},Y 的可能值是 {1, -1}。

考慮以下四種組合:

  1. x=1,y=1x=1, y=1:
    P(X=1,Y=1)=P(YZ=1,Y=1)P(X=1, Y=1) = P(YZ=1, Y=1). 這發生在 Y=1Y=1 且 Z=1Z=1 的情況。
    P(X=1,Y=1)=P(Y=1,Z=1)=P(Y=1)P(Z=1)=0.5×0.5=0.25P(X=1, Y=1) = P(Y=1, Z=1) = P(Y=1)P(Z=1) = 0.5 \times 0.5 = 0.25.
    P(X=1)P(Y=1)=0.5×0.5=0.25P(X=1)P(Y=1) = 0.5 \times 0.5 = 0.25.
    所以,P(X=1,Y=1)=P(X=1)P(Y=1)P(X=1, Y=1) = P(X=1)P(Y=1).

  2. x=1,y=−1x=1, y=-1:
    P(X=1,Y=−1)=P(YZ=1,Y=−1)P(X=1, Y=-1) = P(YZ=1, Y=-1). 這發生在 Y=−1Y=-1 且 Z=−1Z=-1 的情況。
    P(X=1,Y=−1)=P(Y=−1,Z=−1)=P(Y=−1)P(Z=−1)=0.5×0.5=0.25P(X=1, Y=-1) = P(Y=-1, Z=-1) = P(Y=-1)P(Z=-1) = 0.5 \times 0.5 = 0.25.
    P(X=1)P(Y=−1)=0.5×0.5=0.25P(X=1)P(Y=-1) = 0.5 \times 0.5 = 0.25.
    所以,P(X=1,Y=−1)=P(X=1)P(Y=−1)P(X=1, Y=-1) = P(X=1)P(Y=-1).

  3. x=−1,y=1x=-1, y=1:
    P(X=−1,Y=1)=P(YZ=−1,Y=1)P(X=-1, Y=1) = P(YZ=-1, Y=1). 這發生在 Y=1Y=1 且 Z=−1Z=-1 的情況。
    P(X=−1,Y=1)=P(Y=1,Z=−1)=P(Y=1)P(Z=−1)=0.5×0.5=0.25P(X=-1, Y=1) = P(Y=1, Z=-1) = P(Y=1)P(Z=-1) = 0.5 \times 0.5 = 0.25.
    P(X=−1)P(Y=1)=0.5×0.5=0.25P(X=-1)P(Y=1) = 0.5 \times 0.5 = 0.25.
    所以,P(X=−1,Y=1)=P(X=−1)P(Y=1)P(X=-1, Y=1) = P(X=-1)P(Y=1).

  4. x=−1,y=−1x=-1, y=-1:
    P(X=−1,Y=−1)=P(YZ=−1,Y=−1)P(X=-1, Y=-1) = P(YZ=-1, Y=-1). 這發生在 Y=−1Y=-1 且 Z=1Z=1 的情況。
    P(X=−1,Y=−1)=P(Y=−1,Z=1)=P(Y=−1)P(Z=1)=0.5×0.5=0.25P(X=-1, Y=-1) = P(Y=-1, Z=1) = P(Y=-1)P(Z=1) = 0.5 \times 0.5 = 0.25.
    P(X=−1)P(Y=−1)=0.5×0.5=0.25P(X=-1)P(Y=-1) = 0.5 \times 0.5 = 0.25.
    所以,P(X=−1,Y=−1)=P(X=−1)P(Y=−1)P(X=-1, Y=-1) = P(X=-1)P(Y=-1).

由於上述所有組合都滿足 P(X=x,Y=y)=P(X=x)P(Y=y)P(X=x, Y=y) = P(X=x)P(Y=y),因此 X 與 Y 是獨立的。

第二部分:證明 X 與 Y - Z 不獨立
首先,我們需要定義隨機變數 W=Y−ZW = Y - Z 的機率分配。
Y 和 Z 的可能值都是 {1, -1}。

  • 若 Y=1,Z=1Y=1, Z=1, 則 W=1−1=0W = 1 - 1 = 0. 機率為 P(Y=1,Z=1)=0.25P(Y=1, Z=1) = 0.25.
  • 若 Y=1,Z=−1Y=1, Z=-1, 則 W=1−(−1)=2W = 1 - (-1) = 2. 機率為 P(Y=1,Z=−1)=0.25P(Y=1, Z=-1) = 0.25.
  • 若 Y=−1,Z=1Y=-1, Z=1, 則 W=−1−1=−2W = -1 - 1 = -2. 機率為 P(Y=−1,Z=1)=0.25P(Y=-1, Z=1) = 0.25.
🔒

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

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

免費註冊

第 2 題15 分

  1. (15%) Assume X1,…,XnX_1, \dots, X_n are i.i.d. random variables with E[X1]=μE[X_1] = \mu, Var(X1)=σ2Var(X_1) = \sigma^2, E[(X1−μ)3]=μ3E[(X_1 - \mu)^3] = \mu_3, and E[(X1−μ)4]=μ4E[(X_1 - \mu)^4] = \mu_4. Assume the constants μ,σ2,μ3,μ4\mu, \sigma^2, \mu_3, \mu_4 are finite with μ4>σ4\mu_4 > \sigma^4. Show that
    nSn2−σ2μ4−σ4→dN(0,1)\sqrt{n} \frac{S_n^2 - \sigma^2}{\sqrt{\mu_4 - \sigma^4}} \xrightarrow{d} N(0,1)
    where Sn2=1n∑i=1n(Xi−Xˉn)2S_n^2 = \frac{1}{n} \sum_{i=1}^n (X_i - \bar{X}_n)^2.
    (In this question, you can use the result of the weak law of large number, the central limit theorem, and the Slutsky's theorem.)

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

這一題的完整詳解

本題考查樣本變異數的漸近常態性(asymptotic normality),核心手法是將 Sn2S_n^2 改寫為以母體平均 μ\mu 為中心的平方平均與一項高階誤差項之差,再結合中央極限定理(CLT)、弱大數法則(WLLN)與 Slutsky 定理完成證明。

證明步驟

1. 改寫樣本變異數 Sn2S_n^2

利用恆等式 Xi−Xˉn=(Xi−μ)−(Xˉn−μ)X_i - \bar{X}_n = (X_i - \mu) - (\bar{X}_n - \mu),將 Sn2S_n^2 展開:

Sn2=1n∑i=1n[(Xi−μ)−(Xˉn−μ)]2=1n∑i=1n(Xi−μ)2−2(Xˉn−μ)⋅1n∑i=1n(Xi−μ)+(Xˉn−μ)2=1n∑i=1n(Xi−μ)2−(Xˉn−μ)2.\begin{aligned} S_n^2 &= \frac{1}{n} \sum_{i=1}^n \big[(X_i - \mu) - (\bar{X}_n - \mu)\big]^2 \\ &= \frac{1}{n} \sum_{i=1}^n (X_i - \mu)^2 - 2(\bar{X}_n - \mu) \cdot \frac{1}{n}\sum_{i=1}^n (X_i - \mu) + (\bar{X}_n - \mu)^2 \\ &= \frac{1}{n} \sum_{i=1}^n (X_i - \mu)^2 - (\bar{X}_n - \mu)^2. \end{aligned}

2. 對主項應用中央極限定理(CLT)

令 Yi=(Xi−μ)2Y_i = (X_i - \mu)^2,i=1,…,ni = 1, \dots, n。由於 X1,…,XnX_1, \dots, X_n 為 i.i.d. 隨機變數,故 Y1,…,YnY_1, \dots, Y_n 亦為 i.i.d. 隨機變數,且其期望值與變異數分別為:
E[Yi]=E[(Xi−μ)2]=σ2,E[Y_i] = E[(X_i - \mu)^2] = \sigma^2,
Var⁡(Yi)=E[Yi2]−(E[Yi])2=E[(Xi−μ)4]−σ4=μ4−σ4.\operatorname{Var}(Y_i) = E[Y_i^2] - (E[Y_i])^2 = E[(X_i - \mu)^4] - \sigma^4 = \mu_4 - \sigma^4.
由題設知 μ4\mu_4 與 σ2\sigma^2 均為有限常數且 μ4>σ4\mu_4 > \sigma^4,故 0<Var⁡(Yi)<∞0 < \operatorname{Var}(Y_i) < \infty。令 Yˉn=1n∑i=1nYi\bar{Y}_n = \frac{1}{n}\sum_{i=1}^n Y_i,由中央極限定理可得:
n(Yˉn−σ2)μ4−σ4→dN(0,1).\frac{\sqrt{n}(\bar{Y}_n - \sigma^2)}{\sqrt{\mu_4 - \sigma^4}} \xrightarrow{d} N(0, 1).

3. 證明餘項依機率收斂至 00

將目標統計量改寫為:
n(Sn2−σ2)μ4−σ4=n(Yˉn−σ2)μ4−σ4−n(Xˉn−μ)2μ4−σ4.\frac{\sqrt{n}(S_n^2 - \sigma^2)}{\sqrt{\mu_4 - \sigma^4}} = \frac{\sqrt{n}(\bar{Y}_n - \sigma^2)}{\sqrt{\mu_4 - \sigma^4}} - \frac{\sqrt{n}(\bar{X}_n - \mu)^2}{\sqrt{\mu_4 - \sigma^4}}.

🔒

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

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

免費註冊

第 3 題20 分

  1. (20%) Let Z1,…,ZkZ_1, \dots, Z_k be i.i.d. random variables distributed as N(0,1)N(0, 1). Consider the linear transformation
Y=(Y1Y2⋮Yk)=(1k1k1k⋯1k12×1−12×10⋯013×213×2−23×2⋯0⋮⋮⋮⋱⋮1k(k−1)1k(k−1)1k(k−1)⋯−k−1k(k−1))(Z1Z2⋮Zk)=CZ.\mathbf{Y} = \begin{pmatrix} Y_1 \\ Y_2 \\ \vdots \\ Y_k \end{pmatrix} = \begin{pmatrix} \frac{1}{\sqrt{k}} & \frac{1}{\sqrt{k}} & \frac{1}{\sqrt{k}} & \cdots & \frac{1}{\sqrt{k}} \\ \frac{1}{\sqrt{2 \times 1}} & -\frac{1}{\sqrt{2 \times 1}} & 0 & \cdots & 0 \\ \frac{1}{\sqrt{3 \times 2}} & \frac{1}{\sqrt{3 \times 2}} & -\frac{2}{\sqrt{3 \times 2}} & \cdots & 0 \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ \frac{1}{\sqrt{k(k-1)}} & \frac{1}{\sqrt{k(k-1)}} & \frac{1}{\sqrt{k(k-1)}} & \cdots & -\frac{k-1}{\sqrt{k(k-1)}} \end{pmatrix} \begin{pmatrix} Z_1 \\ Z_2 \\ \vdots \\ Z_k \end{pmatrix} = \mathbf{C}\mathbf{Z}.

(a) (5%) Show that Y1,…,YkY_1, \dots, Y_k are independent and identically distributed from N(0,1)N(0,1).
(b) (15%) Use the result in (a) to show that the sample mean Zˉ=k−1∑i=1kZi\bar{Z} = k^{-1} \sum_{i=1}^k Z_i and the sample variance S2=1k∑i=1k(Zi−Zˉ)2S^2 = \frac{1}{k} \sum_{i=1}^k (Z_i - \bar{Z})^2 are independent.

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

這一題的完整詳解

核心觀念

本題利用 Helmert 正交變換 證明常態樣本的樣本平均與樣本變異數彼此獨立:

  1. 若 Z∼Nk(0,Ik)\mathbf{Z} \sim N_k(\mathbf{0}, I_k) 且 C\mathbf{C} 為正交矩陣(CCT=Ik\mathbf{C}\mathbf{C}^\mathsf{T} = I_k),則 Y=CZ∼Nk(0,Ik)\mathbf{Y} = \mathbf{C}\mathbf{Z} \sim N_k(\mathbf{0}, I_k),各分量依然為相互獨立的 N(0,1)N(0,1) 隨機變數。
  2. 正交變換具有保長度性質:∑i=1kYi2=∑i=1kZi2\sum_{i=1}^k Y_i^2 = \sum_{i=1}^k Z_i^2。將第一分量 Y1=k ZˉY_1 = \sqrt{k}\,\bar{Z} 分離出來後,剩餘平方和 ∑i=2kYi2\sum_{i=2}^k Y_i^2 恰好等於 ∑i=1k(Zi−Zˉ)2\sum_{i=1}^k (Z_i - \bar{Z})^2,藉此直接切分出獨立的兩部分。

(a) 證明 Y1,…,Yk∼i.i.d.N(0,1)Y_1, \dots, Y_k \stackrel{\text{i.i.d.}}{\sim} N(0,1)

記矩陣 C\mathbf{C} 的第 ii 列向量為 ciT\mathbf{c}_i^\mathsf{T}(i=1,2,…,ki = 1, 2, \dots, k):

  • c1T=(1k,1k,…,1k)\mathbf{c}_1^\mathsf{T} = \left(\frac{1}{\sqrt{k}}, \frac{1}{\sqrt{k}}, \dots, \frac{1}{\sqrt{k}}\right)
  • 對 2≤i≤k2 \le i \le k,ciT=(1i(i−1),…,1i(i−1)⏟i−1 個,−i−1i(i−1),0,…,0)\mathbf{c}_i^\mathsf{T} = \left(\underbrace{\frac{1}{\sqrt{i(i-1)}}, \dots, \frac{1}{\sqrt{i(i-1)}}}_{i-1\text{ 個}}, -\frac{i-1}{\sqrt{i(i-1)}}, 0, \dots, 0\right)

先驗證 C\mathbf{C} 為正交矩陣(即 CCT=Ik\mathbf{C}\mathbf{C}^\mathsf{T} = I_k):

  1. 各列向量皆為單位向量(對角線元素為 11):
    ∥c1∥2=∑j=1k(1k)2=k⋅1k=1.\|\mathbf{c}_1\|^2 = \sum_{j=1}^k \left(\frac{1}{\sqrt{k}}\right)^2 = k \cdot \frac{1}{k} = 1.
    對 2≤i≤k2 \le i \le k:
    ∥ci∥2=(i−1)⋅1i(i−1)+(i−1)2i(i−1)=1+(i−1)i=1.\|\mathbf{c}_i\|^2 = (i-1)\cdot \frac{1}{i(i-1)} + \frac{(i-1)^2}{i(i-1)} = \frac{1 + (i-1)}{i} = 1.

  2. 任意兩不同列向量彼此正交(非對角線元素為 00):
    設 1≤r<s≤k1 \le r < s \le k。由於 cs\mathbf{c}_s 的前 s−1s-1 個分量皆相等(皆為 1s(s−1)\frac{1}{\sqrt{s(s-1)}}),而 cr\mathbf{c}_r 的第 r+1r+1 至 kk 個分量皆為 00(當 r=1r=1 時則全為 1k\frac{1}{\sqrt{k}}),因此內積為:

    • 若 r=1r = 1:
      c1Tcs=1k((s−1)1s(s−1)−s−1s(s−1))=0.\mathbf{c}_1^\mathsf{T} \mathbf{c}_s = \frac{1}{\sqrt{k}} \left( (s-1)\frac{1}{\sqrt{s(s-1)}} - \frac{s-1}{\sqrt{s(s-1)}} \right) = 0.
    • 若 2≤r<s≤k2 \le r < s \le k:
      crTcs=1s(s−1)∑j=1rcrj=1s(s−1)(r−1r(r−1)−r−1r(r−1))=0.\mathbf{c}_r^\mathsf{T} \mathbf{c}_s = \frac{1}{\sqrt{s(s-1)}} \sum_{j=1}^r c_{rj} = \frac{1}{\sqrt{s(s-1)}} \left( \frac{r-1}{\sqrt{r(r-1)}} - \frac{r-1}{\sqrt{r(r-1)}} \right) = 0.

由上述 1、2 可知 CCT=Ik\mathbf{C}\mathbf{C}^\mathsf{T} = I_k,故 C\mathbf{C} 為正交矩陣。

因為 Z1,…,Zk∼i.i.d.N(0,1)Z_1, \dots, Z_k \stackrel{\text{i.i.d.}}{\sim} N(0,1),即 Z∼Nk(0,Ik)\mathbf{Z} \sim N_k(\mathbf{0}, I_k),其線性轉換 Y=CZ\mathbf{Y} = \mathbf{C}\mathbf{Z} 亦服從多變量常態分配,且:

🔒

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

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

免費註冊

第 4 題30 分

  1. (30%) Let X1,X2,…,Xn,n>3X_1, X_2, \dots, X_n, n > 3, be a random sample from the uniform distribution over (θ−1,θ+1)(\theta - 1, \theta + 1) having p.d.f.
    f(x;θ)=12I(θ−1,θ+1)(x),−∞<θ<∞.f(x; \theta) = \frac{1}{2} I_{(\theta-1, \theta+1)}(x), \quad -\infty < \theta < \infty.
    Suppose that we have two estimators for θ\theta:
    θ^=12(X(1)+X(n))andθ~=1n∑i=1nXi.\hat{\theta} = \frac{1}{2}(X_{(1)} + X_{(n)}) \quad \text{and} \quad \tilde{\theta} = \frac{1}{n} \sum_{i=1}^n X_i.

(a) (5%) Find the sufficient statistics for θ\theta.
(b) (10%) Within {θ^,θ~}\{\hat{\theta}, \tilde{\theta}\}, which one can be the MLE for θ\theta? Why ?
(c) (15%) Compare the two estimators θ^\hat{\theta} and θ~\tilde{\theta} in terms of the MSE (mean squared error).

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

這一題的完整詳解

核心觀念

本題考查:

  • Neyman–Fisher 因子分解定理(Factorization Theorem)求充分統計量。
  • Uniform 位置族(location family)的概似函數特性與最大概似估計量(MLE)的非唯一性。
  • Uniform⁡(0,1)\operatorname{Uniform}(0,1) 次序統計量 U(1),U(n)U_{(1)}, U_{(n)} 的期望值、變異數與共變異數。
  • 利用均方誤差 MSE⁡(θ^)=Var⁡(θ^)+{Bias⁡(θ^)}2\operatorname{MSE}(\hat{\theta}) = \operatorname{Var}(\hat{\theta}) + \{\operatorname{Bias}(\hat{\theta})\}^2 比較估計量之效率。

(a)充分統計量

樣本 (X1,…,Xn)(X_1, \dots, X_n) 的聯合機率密度函數為

f(x;θ)=∏i=1n12I(θ−1,θ+1)(xi)=2−n∏i=1nI(θ−1,θ+1)(xi).f(\boldsymbol{x}; \theta) = \prod_{i=1}^n \frac{1}{2} I_{(\theta-1, \theta+1)}(x_i) = 2^{-n} \prod_{i=1}^n I_{(\theta-1, \theta+1)}(x_i).

令 X(1)=min⁡{X1,…,Xn}X_{(1)} = \min\{X_1, \dots, X_n\} 與 X(n)=max⁡{X1,…,Xn}X_{(n)} = \max\{X_1, \dots, X_n\}。所有觀察值皆落在 (θ−1,θ+1)(\theta - 1, \theta + 1) 內,等價於

θ−1<x(1)且x(n)<θ+1,\theta - 1 < x_{(1)} \quad \text{且} \quad x_{(n)} < \theta + 1,

整理得

x(n)−1<θ<x(1)+1.x_{(n)} - 1 < \theta < x_{(1)} + 1.

因此聯合機率密度函數可改寫為

f(x;θ)=2−nI(x(n)−1,  x(1)+1)(θ)⋅1.f(\boldsymbol{x}; \theta) = 2^{-n} I_{(x_{(n)}-1,\; x_{(1)}+1)}(\theta) \cdot 1.

令 g(t1,t2;θ)=2−nI(t2−1,  t1+1)(θ)g(t_1, t_2; \theta) = 2^{-n} I_{(t_2 - 1,\; t_1 + 1)}(\theta) 且 h(x)=1h(\boldsymbol{x}) = 1。由 Neyman–Fisher 因子分解定理可知,

T(X1,…,Xn)=(X(1),X(n))T(X_1, \dots, X_n) = \bigl(X_{(1)}, X_{(n)}\bigr)

為 θ\theta 的充分統計量。


(b)MLE 判斷

由(a)可知,對給定樣本 x\boldsymbol{x},θ\theta 的概似函數為

L(θ;x)={2−n,if x(n)−1<θ<x(1)+1,0,otherwise.L(\theta; \boldsymbol{x}) = \begin{cases} 2^{-n}, & \text{if } x_{(n)} - 1 < \theta < x_{(1)} + 1, \\ 0, & \text{otherwise.} \end{cases}

由於所有樣本皆來自 (θ−1,θ+1)(\theta - 1, \theta + 1),必有 x(n)−x(1)<2x_{(n)} - x_{(1)} < 2,故 x(n)−1<x(1)+1x_{(n)} - 1 < x_{(1)} + 1,區間 (x(n)−1,x(1)+1)(x_{(n)} - 1, x_{(1)} + 1) 非空。任何落在開區間 (X(n)−1,X(1)+1)(X_{(n)} - 1, X_{(1)} + 1) 內的 θ\theta 皆使 L(θ;x)L(\theta; \boldsymbol{x}) 達到最大值 2−n2^{-n},即 MLE 為整個區間:

Θ^MLE=(X(n)−1,  X(1)+1).\widehat{\Theta}_{\mathrm{MLE}} = \bigl(X_{(n)} - 1,\; X_{(1)} + 1\bigr).
  1. 檢驗 θ^=12(X(1)+X(n))\hat{\theta} = \frac{1}{2}(X_{(1)} + X_{(n)}):

    θ^\hat{\theta} 恰好是區間 (X(n)−1,X(1)+1)(X_{(n)} - 1, X_{(1)} + 1) 的中點:

    (X(n)−1)+(X(1)+1)2=X(1)+X(n)2=θ^.\frac{(X_{(n)} - 1) + (X_{(1)} + 1)}{2} = \frac{X_{(1)} + X_{(n)}}{2} = \hat{\theta}.

    因為 X(n)−X(1)<2X_{(n)} - X_{(1)} < 2,故

    θ^−(X(n)−1)=(X(1)+1)−θ^=1−X(n)−X(1)2>0,\hat{\theta} - (X_{(n)} - 1) = (X_{(1)} + 1) - \hat{\theta} = 1 - \frac{X_{(n)} - X_{(1)}}{2} > 0,

    即 θ^\hat{\theta} 恆嚴格落在 (X(n)−1,X(1)+1)(X_{(n)} - 1, X_{(1)} + 1) 內,恆使 L(θ^;x)=2−nL(\hat{\theta}; \boldsymbol{x}) = 2^{-n} 達到最大。因此 θ^\hat{\theta} 可以是 θ\theta 的 MLE。

  2. 檢驗 θ~=1n∑i=1nXi\tilde{\theta} = \frac{1}{n}\sum_{i=1}^n X_i:

    當 n>3n > 3 時,θ~\tilde{\theta} 不一定落在 (X(n)−1,X(1)+1)(X_{(n)} - 1, X_{(1)} + 1) 內。例如取 n=4n = 4、θ=0\theta = 0(支撐集為 (−1,1)(-1, 1)),觀察樣本為

    x1=x2=x3=−0.9,x4=0.9.x_1 = x_2 = x_3 = -0.9, \qquad x_4 = 0.9.

    此時 x(1)=−0.9x_{(1)} = -0.9、x(4)=0.9x_{(4)} = 0.9,MLE 區間為 (0.9−1,−0.9+1)=(−0.1,0.1)(0.9 - 1, -0.9 + 1) = (-0.1, 0.1),但

    θ~=3(−0.9)+0.94=−0.45∉(−0.1,0.1),\tilde{\theta} = \frac{3(-0.9) + 0.9}{4} = -0.45 \notin (-0.1, 0.1),

    使得 L(θ~;x)=0L(\tilde{\theta}; \boldsymbol{x}) = 0。因此 θ~\tilde{\theta} 一般而言不是 θ\theta 的 MLE。


(c)MSE 比較

1. θ~\tilde{\theta} 的 MSE

因為 Xi∼i.i.d.Uniform⁡(θ−1,θ+1)X_i \stackrel{\text{i.i.d.}}{\sim} \operatorname{Uniform}(\theta - 1, \theta + 1),所以

E(Xi)=(θ−1)+(θ+1)2=θ,Var⁡(Xi)=((θ+1)−(θ−1))212=412=13.E(X_i) = \frac{(\theta - 1) + (\theta + 1)}{2} = \theta, \qquad \operatorname{Var}(X_i) = \frac{\bigl((\theta+1)-(\theta-1)\bigr)^2}{12} = \frac{4}{12} = \frac{1}{3}.

因此 θ~=1n∑i=1nXi\tilde{\theta} = \frac{1}{n}\sum_{i=1}^n X_i 為 θ\theta 的不偏估計量,即 Bias⁡(θ~)=0\operatorname{Bias}(\tilde{\theta}) = 0,且

MSE⁡(θ~)=Var⁡(θ~)=Var⁡(X1)n=13n.\operatorname{MSE}(\tilde{\theta}) = \operatorname{Var}(\tilde{\theta}) = \frac{\operatorname{Var}(X_1)}{n} = \frac{1}{3n}.

2. θ^\hat{\theta} 的 MSE

令標準化變數

Ui=Xi−(θ−1)2,i=1,…,n,U_i = \frac{X_i - (\theta - 1)}{2}, \quad i = 1, \dots, n,

則 U1,…,Un∼i.i.d.Uniform⁡(0,1)U_1, \dots, U_n \stackrel{\text{i.i.d.}}{\sim} \operatorname{Uniform}(0, 1),且 X(1)=θ−1+2U(1)X_{(1)} = \theta - 1 + 2U_{(1)}、X(n)=θ−1+2U(n)X_{(n)} = \theta - 1 + 2U_{(n)}。代入 θ^\hat{\theta} 得

θ^=12(X(1)+X(n))=θ−1+U(1)+U(n).\hat{\theta} = \frac{1}{2}\bigl(X_{(1)} + X_{(n)}\bigr) = \theta - 1 + U_{(1)} + U_{(n)}.

對於 Uniform⁡(0,1)\operatorname{Uniform}(0, 1) 的次序統計量,已知 U(r)∼Beta⁡(r,n−r+1)U_{(r)} \sim \operatorname{Beta}(r, n - r + 1),故

E(U(1))=1n+1,E(U(n))=nn+1,E(U_{(1)}) = \frac{1}{n+1}, \qquad E(U_{(n)}) = \frac{n}{n+1},
🔒

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

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

免費註冊

第 5 題20 分

  1. (20%) Let U1,…,UnU_1, \dots, U_n be random sample from the uniform distribution on the unit interval. For r<sr < s, let U(r)U_{(r)} and U(s)U_{(s)} be the rrth and the ssth ordered statistics, respectively, so that U(1)≤U(2)≤⋯≤U(n)U_{(1)} \le U_{(2)} \le \cdots \le U_{(n)}.

(a) (10%) Find the expression of E(U(r)k)E(U_{(r)}^k), for positive integer k≥1k \ge 1.
(b) (10%) Find the expression of Cov⁡(U(r),U(s))\operatorname{Cov}(U_{(r)}, U_{(s)}).

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

這一題的完整詳解

核心觀念

本題考查均勻分布樣本的順序統計量(order statistics):

  • 設 U1,…,Un∼i.i.d.Uniform⁡(0,1)U_1, \dots, U_n \stackrel{\text{i.i.d.}}{\sim} \operatorname{Uniform}(0,1),其機率密度函數為 f(u)=1f(u)=1、累積分布函數為 F(u)=uF(u)=u(0<u<10<u<1)。
  • 第 rr 個順序統計量 U(r)U_{(r)} 服從 Beta⁡(r,n−r+1)\operatorname{Beta}(r, n-r+1) 分布。
  • 第 rr 與第 ss 個順序統計量(1≤r<s≤n1 \le r < s \le n)的聯合機率密度函數可用於求 E(U(r)U(s))E(U_{(r)}U_{(s)}),進而計算共變異數 Cov⁡(U(r),U(s))=E(U(r)U(s))−E(U(r))E(U(s))\operatorname{Cov}(U_{(r)}, U_{(s)}) = E(U_{(r)}U_{(s)}) - E(U_{(r)})E(U_{(s)})。

(a) 求 E(U(r)k)E(U_{(r)}^k)

解題方法

第 rr 個順序統計量 U(r)U_{(r)}(1≤r≤n1 \le r \le n)的機率密度函數為

fU(r)(u)=n!(r−1)!(n−r)![F(u)]r−1[1−F(u)]n−rf(u)=n!(r−1)!(n−r)!ur−1(1−u)n−r,0<u<1.f_{U_{(r)}}(u) = \frac{n!}{(r-1)!(n-r)!}[F(u)]^{r-1}[1-F(u)]^{n-r}f(u) = \frac{n!}{(r-1)!(n-r)!} u^{r-1}(1-u)^{n-r}, \qquad 0 < u < 1.

這正是 Beta⁡(r,n−r+1)\operatorname{Beta}(r, n-r+1) 的密度函數。因此,對正整數 k≥1k \ge 1,

E(U(r)k)=∫01ukfU(r)(u) du=n!(r−1)!(n−r)!∫01ur+k−1(1−u)n−r du.E(U_{(r)}^k) = \int_0^1 u^k f_{U_{(r)}}(u)\,du = \frac{n!}{(r-1)!(n-r)!} \int_0^1 u^{r+k-1}(1-u)^{n-r}\,du.

利用 Beta 積分公式

∫01ua−1(1−u)b−1 du=Γ(a)Γ(b)Γ(a+b),\int_0^1 u^{a-1}(1-u)^{b-1}\,du = \frac{\Gamma(a)\Gamma(b)}{\Gamma(a+b)},

取 a=r+ka = r+k 與 b=n−r+1b = n-r+1,可得

E(U(r)k)=n!(r−1)!(n−r)!⋅Γ(r+k)Γ(n−r+1)Γ(n+k+1).E(U_{(r)}^k) = \frac{n!}{(r-1)!(n-r)!} \cdot \frac{\Gamma(r+k)\Gamma(n-r+1)}{\Gamma(n+k+1)}.

由於 r,n,kr, n, k 皆為正整數,Γ(r+k)=(r+k−1)!\Gamma(r+k) = (r+k-1)!、Γ(n−r+1)=(n−r)!\Gamma(n-r+1) = (n-r)! 且 Γ(n+k+1)=(n+k)!\Gamma(n+k+1) = (n+k)!,故

E(U(r)k)=n!(r+k−1)!(r−1)!(n+k)!.E(U_{(r)}^k) = \frac{n!(r+k-1)!}{(r-1)!(n+k)!}.

約分整理為乘積形式:

E(U(r)k)=r(r+1)⋯(r+k−1)(n+1)(n+2)⋯(n+k).\boxed{E(U_{(r)}^k) = \frac{r(r+1)\cdots(r+k-1)}{(n+1)(n+2)\cdots(n+k)}}.

快速驗算

  • 當 k=1k=1 時,E(U(r))=rn+1E(U_{(r)}) = \dfrac{r}{n+1}。
  • 當 r=nr=n 時,E(U(n)k)=nn+kE(U_{(n)}^k) = \dfrac{n}{n+k},與最大值 U(n)U_{(n)} 的密度 nun−1n u^{n-1} 積分結果一致。

(b) 求 Cov⁡(U(r),U(s))\operatorname{Cov}(U_{(r)}, U_{(s)})

解題方法

因為 1≤r<s≤n1 \le r < s \le n,(U(r),U(s))(U_{(r)}, U_{(s)}) 的聯合機率密度函數為

fU(r),U(s)(u,v)=n!(r−1)!(s−r−1)!(n−s)!ur−1(v−u)s−r−1(1−v)n−s,0<u<v<1.f_{U_{(r)}, U_{(s)}}(u, v) = \frac{n!}{(r-1)!(s-r-1)!(n-s)!} u^{r-1}(v-u)^{s-r-1}(1-v)^{n-s}, \qquad 0 < u < v < 1.

計算乘積期望值 E(U(r)U(s))E(U_{(r)}U_{(s)}):

E(U(r)U(s))=n!(r−1)!(s−r−1)!(n−s)!∫01[∫0vur(v−u)s−r−1 du]v(1−v)n−s dv.E(U_{(r)}U_{(s)}) = \frac{n!}{(r-1)!(s-r-1)!(n-s)!} \int_0^1 \left[ \int_0^v u^r (v-u)^{s-r-1}\,du \right] v(1-v)^{n-s}\,dv.

對內層積分作變數變換 u=vtu = vt(0<t<10 < t < 1,du=v dtdu = v\,dt):

∫0vur(v−u)s−r−1 du=vs∫01tr(1−t)s−r−1 dt=vsΓ(r+1)Γ(s−r)Γ(s+1)=vsr!(s−r−1)!s!.\int_0^v u^r (v-u)^{s-r-1}\,du = v^s \int_0^1 t^r (1-t)^{s-r-1}\,dt = v^s \frac{\Gamma(r+1)\Gamma(s-r)}{\Gamma(s+1)} = v^s \frac{r!(s-r-1)!}{s!}.

代回外層積分:

🔒

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

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

免費註冊

其他考古題