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

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

第 1 題50 分

  1. Let X1,X2,…,XnX_1, X_2, \dots, X_n be a random sample of size nn from a distribution that has pdf
    f(x)=1αexp⁡[−(x−μα)],μ≤x<∞.f(x) = \frac{1}{\alpha} \exp\left[-\left(\frac{x-\mu}{\alpha}\right)\right], \quad \mu \le x < \infty.
    (a) What is the mean of X1X_1? Justify your answer.
    (b) DERIVE the cumulative distribution function of YnY_n, which is defined as the minimum of X1,X2,…,XnX_1, X_2, \dots, X_n. (Do not use the formula for the CDF of order statistics.)
    (c) Does YnY_n converge in probability? If yes, what random variable does it converge to? Prove the convergence or divergence.
    (d) Does YnY_n converge in distribution? If yes, what distribution does it converge to? Prove the convergence or divergence.
    (e) Why do you think statisticians are interested in the convergence of random variables?
    (f) How does (a) to (e) give you any thought on the estimation for μ\mu? Briefly describe your thoughts, and justify your thoughts.

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

這一題的完整詳解

此題為一單參數指數分佈的隨機樣本,考察機率分佈的基本性質、次序統計量、機率收斂、分佈收斂的概念,以及統計量收斂對估計量的啟示。

首先,題目給定的機率密度函數 (pdf) 為
f(x;μ,α)=1αexp⁡[−(x−μα)],x≥μ,α>0.f(x; \mu, \alpha) = \frac{1}{\alpha} \exp\left[-\left(\frac{x-\mu}{\alpha}\right)\right], \quad x \ge \mu, \alpha > 0.
這是一個位移參數為 μ\mu、尺度參數為 α\alpha 的指數分佈。

(a) 求 X1X_1 的期望值。
根據期望值的定義,對於連續隨機變數 XX,其期望值為 E[X]=∫−∞∞xf(x)dxE[X] = \int_{-\infty}^{\infty} x f(x) dx。
在此題中,
E[X1]=∫μ∞x1αexp⁡[−(x−μα)]dxE[X_1] = \int_{\mu}^{\infty} x \frac{1}{\alpha} \exp\left[-\left(\frac{x-\mu}{\alpha}\right)\right] dx
令 u=x−μαu = \frac{x-\mu}{\alpha},則 x=μ+αux = \mu + \alpha u,dx=αdudx = \alpha du。當 x=μx=\mu 時,u=0u=0;當 x→∞x \to \infty 時,u→∞u \to \infty。
E[X1]=∫0∞(μ+αu)1αe−u(αdu)=∫0∞(μ+αu)e−uduE[X_1] = \int_{0}^{\infty} (\mu + \alpha u) \frac{1}{\alpha} e^{-u} (\alpha du) = \int_{0}^{\infty} (\mu + \alpha u) e^{-u} du
E[X1]=μ∫0∞e−udu+α∫0∞ue−uduE[X_1] = \mu \int_{0}^{\infty} e^{-u} du + \alpha \int_{0}^{\infty} u e^{-u} du
我們知道 ∫0∞e−udu=[−e−u]0∞=0−(−1)=1\int_{0}^{\infty} e^{-u} du = [-e^{-u}]_{0}^{\infty} = 0 - (-1) = 1。
而 ∫0∞ue−udu\int_{0}^{\infty} u e^{-u} du 是 Gamma 函數 Γ(2)\Gamma(2) 的值,即 Γ(2)=1!=1\Gamma(2) = 1! = 1。
因此,
E[X1]=μ(1)+α(1)=μ+αE[X_1] = \mu(1) + \alpha(1) = \mu + \alpha
【答案】E[X1]=μ+αE[X_1] = \mu + \alpha。

(b) 推導 Yn=min⁡(X1,X2,…,Xn)Y_n = \min(X_1, X_2, \dots, X_n) 的累積分佈函數 (CDF)。
首先,我們需要找到 YnY_n 的 CDF,記為 FYn(y)=P(Yn≤y)F_{Y_n}(y) = P(Y_n \le y)。
考慮其補集事件 P(Yn>y)=P(min⁡(X1,…,Xn)>y)P(Y_n > y) = P(\min(X_1, \dots, X_n) > y)。
若最小值大於 yy,則所有樣本值都必須大於 yy。
P(Yn>y)=P(X1>y,X2>y,…,Xn>y)P(Y_n > y) = P(X_1 > y, X_2 > y, \dots, X_n > y)
由於 XiX_i 是隨機樣本,它們是獨立同分佈的,所以
P(Yn>y)=P(X1>y)P(X2>y)…P(Xn>y)=[P(X1>y)]nP(Y_n > y) = P(X_1 > y) P(X_2 > y) \dots P(X_n > y) = [P(X_1 > y)]^n
我們需要計算 P(X1>y)P(X_1 > y)。
P(X1>y)=∫y∞f(x)dx=∫y∞1αexp⁡[−(x−μα)]dxP(X_1 > y) = \int_{y}^{\infty} f(x) dx = \int_{y}^{\infty} \frac{1}{\alpha} \exp\left[-\left(\frac{x-\mu}{\alpha}\right)\right] dx
若 y<μy < \mu,則積分範圍從 yy 開始,但 pdf 在 x<μx < \mu 時為 0。所以,若 y<μy < \mu,則 P(X1>y)=1P(X_1 > y) = 1。
若 y≥μy \ge \mu,則
P(X1>y)=∫y∞1αexp⁡[−(x−μα)]dxP(X_1 > y) = \int_{y}^{\infty} \frac{1}{\alpha} \exp\left[-\left(\frac{x-\mu}{\alpha}\right)\right] dx
令 u=x−μαu = \frac{x-\mu}{\alpha},則 du=1αdxdu = \frac{1}{\alpha} dx。當 x=yx=y 時,u=y−μαu = \frac{y-\mu}{\alpha};當 x→∞x \to \infty 時,u→∞u \to \infty。
P(X1>y)=∫(y−μ)/α∞e−udu=[−e−u](y−μ)/α∞=0−(−e−(y−μ)/α)=e−(y−μ)/αP(X_1 > y) = \int_{(y-\mu)/\alpha}^{\infty} e^{-u} du = [-e^{-u}]_{(y-\mu)/\alpha}^{\infty} = 0 - \left(-e^{-(y-\mu)/\alpha}\right) = e^{-(y-\mu)/\alpha}
所以,對於 y≥μy \ge \mu,
P(Yn>y)=[e−(y−μ)/α]n=e−n(y−μ)/αP(Y_n > y) = [e^{-(y-\mu)/\alpha}]^n = e^{-n(y-\mu)/\alpha}
現在我們可以計算 FYn(y)=P(Yn≤y)=1−P(Yn>y)F_{Y_n}(y) = P(Y_n \le y) = 1 - P(Y_n > y)。
若 y<μy < \mu,則 P(Yn>y)=[P(X1>y)]n=1n=1P(Y_n > y) = [P(X_1 > y)]^n = 1^n = 1。所以 FYn(y)=1−1=0F_{Y_n}(y) = 1 - 1 = 0。
若 y≥μy \ge \mu,則
FYn(y)=1−e−n(y−μ)/αF_{Y_n}(y) = 1 - e^{-n(y-\mu)/\alpha}
綜合以上,
FYn(y)={0,y<μ1−e−n(y−μ)/α,y≥μF_{Y_n}(y) = \begin{cases} 0, & y < \mu \\ 1 - e^{-n(y-\mu)/\alpha}, & y \ge \mu \end{cases}
這是一個尺度參數為 α/n\alpha/n、位移參數為 μ\mu 的指數分佈的 CDF。
【答案】FYn(y)={0,y<μ1−e−n(y−μ)/α,y≥μF_{Y_n}(y) = \begin{cases} 0, & y < \mu \\ 1 - e^{-n(y-\mu)/\alpha}, & y \ge \mu \end{cases}。

(c) YnY_n 是否機率收斂?若收斂,收斂於哪個隨機變數?證明之。
我們來考慮 YnY_n 的極限行為。當 n→∞n \to \infty 時,e−n(y−μ)/αe^{-n(y-\mu)/\alpha} 當 y>μy > \mu 時,指數的係數 −n/α-n/\alpha 趨於 −∞-\infty,所以 e−n(y−μ)/α→0e^{-n(y-\mu)/\alpha} \to 0。
lim⁡n→∞FYn(y)={0,y<μ1−0,y>μ={0,y<μ1,y>μ\lim_{n \to \infty} F_{Y_n}(y) = \begin{cases} 0, & y < \mu \\ 1 - 0, & y > \mu \end{cases} = \begin{cases} 0, & y < \mu \\ 1, & y > \mu \end{cases}
這是一個階躍函數,在 y=μy=\mu 處從 0 跳到 1。這個函數是常數隨機變數 μ\mu 的 CDF。
一個隨機變數 YnY_n 機率收斂到一個常數 cc (Yn→PcY_n \xrightarrow{P} c) 的充要條件是對於任意 ϵ>0\epsilon > 0,
lim⁡n→∞P(∣Yn−c∣<ϵ)=1\lim_{n \to \infty} P(|Y_n - c| < \epsilon) = 1
也就是 lim⁡n→∞P(c−ϵ<Yn<c+ϵ)=1\lim_{n \to \infty} P(c - \epsilon < Y_n < c + \epsilon) = 1。
在我們的例子中,常數是 μ\mu。我們需要證明 lim⁡n→∞P(μ−ϵ<Yn<μ+ϵ)=1\lim_{n \to \infty} P(\mu - \epsilon < Y_n < \mu + \epsilon) = 1 對於任意 ϵ>0\epsilon > 0。
對於 ϵ>0\epsilon > 0,區間 (μ−ϵ,μ+ϵ)(\mu - \epsilon, \mu + \epsilon)。
考慮 P(Yn<μ+ϵ)P(Y_n < \mu + \epsilon)。

🔒

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

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

免費註冊

第 2 題50 分

  1. Let X1,X2,…,XnX_1, X_2, \dots, X_n be a random sample from a normal distribution
    f(x;μ,θ)=(2πθ)−1/2exp⁡(−(x−μ)22θ),x∈R;μ∈R,θ>0.f(x; \mu, \theta) = (2\pi\theta)^{-1/2} \exp\left(-\frac{(x-\mu)^2}{2\theta}\right), \quad x \in \mathbb{R}; \mu \in \mathbb{R}, \theta > 0.
    Let the distribution function of f(x;μ,θ)f(x; \mu, \theta) be denoted as Φ(x;μ,θ)\Phi(x; \mu, \theta).
    (a) Find the maximum likelihood estimators μ^,θ^\hat{\mu}, \hat{\theta} of μ,θ\mu, \theta.
    (b) Find the Rao-Cramér lower bound of μ^\hat{\mu} and θ^\hat{\theta}, respectively.
    (c) Find the asymptotic distribution of μ^,θ^\hat{\mu}, \hat{\theta}.
    (d) Find the asymptotic distribution of Φ(x;μ^,θ^)\Phi(x; \hat{\mu}, \hat{\theta}). [Hint: Use Delta method and the derivatives with respect to μ\mu and θ\theta. Do not need to be expanded.]
    (e) Find the Likelihood ratio test (LR test) for testing H0:θ=θ0H_0: \theta = \theta_0 versus HA:θ≠θ0H_A: \theta \ne \theta_0, where θ0\theta_0 is a pre-specified value and provide the corresponding critical value for the LR test.

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

這一題的完整詳解

核心觀念

本題考查常態分布中未知平均數與未知變異數的:

  • 最大概似估計法(MLE)
  • Fisher 資訊量與 Rao–Cramér 下界
  • 多參數估計量的漸近常態性
  • Delta method
  • 含 nuisance parameter μ\mu 的概似比檢定

題目中的參數 θ\theta 即為變異數,因為常態密度可寫成

Xi∼N(μ,θ).X_i\sim N(\mu,\theta).

令

Xˉ=1n∑i=1nXi,S=∑i=1n(Xi−Xˉ)2.\bar X=\frac{1}{n}\sum_{i=1}^n X_i, \qquad S=\sum_{i=1}^n (X_i-\bar X)^2.

(a) 最大概似估計量

樣本的概似函數為

L(μ,θ)=(2πθ)−n/2exp⁡{−12θ∑i=1n(xi−μ)2}.L(\mu,\theta) =(2\pi\theta)^{-n/2} \exp\left\{-\frac{1}{2\theta}\sum_{i=1}^n(x_i-\mu)^2\right\}.

取對數概似函數:

ℓ(μ,θ)=−n2log⁡(2πθ)−12θ∑i=1n(xi−μ)2.\ell(\mu,\theta) =-\frac n2\log(2\pi\theta) -\frac{1}{2\theta}\sum_{i=1}^n(x_i-\mu)^2.

對 μ\mu 微分:

∂ℓ∂μ=1θ∑i=1n(xi−μ).\frac{\partial\ell}{\partial\mu} =\frac{1}{\theta}\sum_{i=1}^n(x_i-\mu).

令其等於 00:

∑i=1n(xi−μ)=0⟹μ^=Xˉ.\sum_{i=1}^n(x_i-\mu)=0 \quad\Longrightarrow\quad \hat\mu=\bar X.

對 θ\theta 微分:

∂ℓ∂θ=−n2θ+12θ2∑i=1n(xi−μ)2.\frac{\partial\ell}{\partial\theta} =-\frac{n}{2\theta} +\frac{1}{2\theta^2}\sum_{i=1}^n(x_i-\mu)^2.

代入 μ^=Xˉ\hat\mu=\bar X,並令其等於 00:

−n2θ+12θ2∑i=1n(xi−Xˉ)2=0.-\frac{n}{2\theta} +\frac{1}{2\theta^2}\sum_{i=1}^n(x_i-\bar X)^2=0.

因此

θ^=1n∑i=1n(Xi−Xˉ)2=Sn.\hat\theta =\frac{1}{n}\sum_{i=1}^n(X_i-\bar X)^2 =\frac{S}{n}.

所以最大概似估計量為

μ^=Xˉ,θ^=1n∑i=1n(Xi−Xˉ)2.\boxed{\hat\mu=\bar X,\qquad \hat\theta=\frac{1}{n}\sum_{i=1}^n(X_i-\bar X)^2.}

注意 θ^\hat\theta 的分母是 nn,不是不偏樣本變異數所使用的 n−1n-1。


(b) Rao–Cramér 下界

Fisher 資訊量

單一觀測值的對數概似函數為

ℓ1(μ,θ)=−12log⁡(2πθ)−(X−μ)22θ.\ell_1(\mu,\theta) =-\frac12\log(2\pi\theta) -\frac{(X-\mu)^2}{2\theta}.

其二階偏導數為

∂2ℓ1∂μ2=−1θ,\frac{\partial^2\ell_1}{\partial\mu^2} =-\frac1\theta, ∂2ℓ1∂μ ∂θ=−X−μθ2,\frac{\partial^2\ell_1}{\partial\mu\,\partial\theta} =-\frac{X-\mu}{\theta^2}, ∂2ℓ1∂θ2=12θ2−(X−μ)2θ3.\frac{\partial^2\ell_1}{\partial\theta^2} =\frac1{2\theta^2} -\frac{(X-\mu)^2}{\theta^3}.

由於 E(X−μ)=0E(X-\mu)=0 且 E[(X−μ)2]=θE[(X-\mu)^2]=\theta,單一觀測值的 Fisher 資訊矩陣為

I1(μ,θ)=−E(∂2ℓ1∂μ2∂2ℓ1∂μ ∂θ∂2ℓ1∂θ ∂μ∂2ℓ1∂θ2)=(1θ0012θ2).I_1(\mu,\theta) = -\mathbb E \begin{pmatrix} \dfrac{\partial^2\ell_1}{\partial\mu^2} & \dfrac{\partial^2\ell_1}{\partial\mu\,\partial\theta} \\[6pt] \dfrac{\partial^2\ell_1}{\partial\theta\,\partial\mu} & \dfrac{\partial^2\ell_1}{\partial\theta^2} \end{pmatrix} = \begin{pmatrix} \dfrac1\theta & 0 \\[6pt] 0 & \dfrac1{2\theta^2} \end{pmatrix}.

nn 個獨立觀測值的 Fisher 資訊量為

In(μ,θ)=nI1(μ,θ)=(nθ00n2θ2).I_n(\mu,\theta) = nI_1(\mu,\theta) = \begin{pmatrix} \dfrac n\theta & 0 \\[6pt] 0 & \dfrac n{2\theta^2} \end{pmatrix}.

因此

In−1(μ,θ)=(θn002θ2n).I_n^{-1}(\mu,\theta) = \begin{pmatrix} \dfrac\theta n & 0 \\[6pt] 0 & \dfrac{2\theta^2}{n} \end{pmatrix}.

Rao–Cramér 下界

對任何同時估計 (μ,θ)(\mu,\theta) 的不偏估計量,其共變異數矩陣至少為 In−1I_n^{-1},故:

Var⁡(μ~)≥θn\boxed{\operatorname{Var}(\tilde\mu)\ge \frac{\theta}{n}}

以及

Var⁡(θ~)≥2θ2n.\boxed{\operatorname{Var}(\tilde\theta)\ge \frac{2\theta^2}{n}}.

其中 μ~,θ~\tilde\mu,\tilde\theta 必須是不偏估計量。

本題的 μ^=Xˉ\hat\mu=\bar X 是不偏的,且

Var⁡(μ^)=θn,\operatorname{Var}(\hat\mu)=\frac{\theta}{n},

因此 μ^\hat\mu 達到 Rao–Cramér 下界。

另一方面,

E(θ^)=E(Sn)=n−1nθ,E(\hat\theta) =E\left(\frac{S}{n}\right) =\frac{n-1}{n}\theta,

所以 θ^\hat\theta 有偏,Rao–Cramér 下界不能直接套用在 θ^\hat\theta 本身。若改用不偏估計量

θ~=Sn−1,\tilde\theta=\frac{S}{n-1},

則

Var⁡(θ~)=2θ2n−1,\operatorname{Var}(\tilde\theta)=\frac{2\theta^2}{n-1},

其有限樣本變異數不會達到上述一般下界,但在大樣本下與下界漸近一致。


(c) μ^,θ^\hat\mu,\hat\theta 的漸近分布

多參數最大概似估計量具有下列漸近分布:

n(μ^−μθ^−θ)→dN2[(00),I1−1(μ,θ)].\sqrt n \begin{pmatrix} \hat\mu-\mu \\ \hat\theta-\theta \end{pmatrix} \xrightarrow{d} N_2 \left[ \begin{pmatrix} 0\\ 0 \end{pmatrix}, I_1^{-1}(\mu,\theta) \right].

由

I1−1(μ,θ)=(θ002θ2),I_1^{-1}(\mu,\theta) = \begin{pmatrix} \theta & 0 \\ 0 & 2\theta^2 \end{pmatrix},

得到

n(μ^−μθ^−θ)→dN2[(00),(θ002θ2)].\boxed{ \sqrt n \begin{pmatrix} \hat\mu-\mu \\ \hat\theta-\theta \end{pmatrix} \xrightarrow{d} N_2 \left[ \begin{pmatrix} 0\\ 0 \end{pmatrix}, \begin{pmatrix} \theta & 0 \\ 0 & 2\theta^2 \end{pmatrix} \right]. }

等價地,

n(μ^−μ)→dN(0,θ),\sqrt n(\hat\mu-\mu) \xrightarrow{d}N(0,\theta), n(θ^−θ)→dN(0,2θ2),\sqrt n(\hat\theta-\theta) \xrightarrow{d}N(0,2\theta^2),

且兩者漸近獨立。

事實上,本題還有精確分布:

μ^∼N(μ,θn),\hat\mu\sim N\left(\mu,\frac{\theta}{n}\right), nθ^θ=Sθ∼χn−12,\frac{n\hat\theta}{\theta} =\frac{S}{\theta} \sim\chi^2_{n-1},

而 μ^\hat\mu 與 θ^\hat\theta 相互獨立。由卡方分布的中央極限定理,也可得到 θ^\hat\theta 的上述漸近分布。


(d) Φ(x;μ^,θ^)\Phi(x;\hat\mu,\hat\theta) 的漸近分布

固定 xx,定義

g(μ,θ)=Φ(x;μ,θ).g(\mu,\theta)=\Phi(x;\mu,\theta).

令

z=x−μθ,z=\frac{x-\mu}{\sqrt\theta},

則

g(μ,θ)=Φ0(z),g(\mu,\theta)=\Phi_0(z),
🔒

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

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

免費註冊

其他考古題