115 年 國立中央大學工業管理研究所碩士班《統計學》

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

第 1 題

Let (X, Y) be uniformly distributed over the semicircle in the following diagram. The joint pdf of X and Y is f(x,y)=2/πf(x,y) = 2/\pi, if (x,y)(x,y) is in the semicircle.
🖼️【此處有附圖,請對照原卷】
The semicircle is defined by y=1−x2y = \sqrt{1-x^2} for x∈[−1,1]x \in [-1, 1].

(a) Find the marginal CDF of X. (10 points)
(b) Find the conditional pdf of X given Y = y. (5 points)
(c) Find E[X∣Y=y]E[X|Y = y]. (5 points)

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 1 頁

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

這一題的完整詳解

核心觀念

聯合機率密度函數在半圓內為常數:

fX,Y(x,y)=2π,x2+y2≤1, y≥0f_{X,Y}(x,y)=\frac{2}{\pi}, \qquad x^2+y^2\le 1,\ y\ge 0

半圓區域為

−1≤x≤1,0≤y≤1−x2.-1\le x\le 1,\qquad 0\le y\le \sqrt{1-x^2}.

本題使用:

  • 邊際密度:fX(x)=∫fX,Y(x,y) dyf_X(x)=\int f_{X,Y}(x,y)\,dy
  • 邊際累積分布函數:FX(x)=P(X≤x)=∫−∞xfX(t) dtF_X(x)=P(X\le x)=\int_{-\infty}^x f_X(t)\,dt
  • 條件機率密度函數:
fX∣Y(x∣y)=fX,Y(x,y)fY(y)f_{X|Y}(x|y)=\frac{f_{X,Y}(x,y)}{f_Y(y)}

(a) 求 XX 的邊際 CDF

先對 yy 積分,求出 XX 的邊際 pdf:

fX(x)=∫01−x22π dy=2π1−x2,−1≤x≤1.f_X(x) =\int_0^{\sqrt{1-x^2}}\frac{2}{\pi}\,dy =\frac{2}{\pi}\sqrt{1-x^2}, \qquad -1\le x\le 1.

因此,當 −1≤x≤1-1\le x\le 1 時,

FX(x)=∫−1x2π1−t2 dt.F_X(x) =\int_{-1}^{x}\frac{2}{\pi}\sqrt{1-t^2}\,dt.

利用

∫1−t2 dt=12(t1−t2+sin⁡−1t),\int\sqrt{1-t^2}\,dt =\frac{1}{2}\left(t\sqrt{1-t^2}+\sin^{-1}t\right),

可得

FX(x)=1π[t1−t2+sin⁡−1t]−1x.F_X(x) =\frac{1}{\pi} \left[ t\sqrt{1-t^2}+\sin^{-1}t \right]_{-1}^{x}.

由於在 t=−1t=-1 時,t1−t2=0t\sqrt{1-t^2}=0 且 sin⁡−1(−1)=−π2\sin^{-1}(-1)=-\frac{\pi}{2},所以

FX(x)=1π[x1−x2+sin⁡−1x+π2].F_X(x) =\frac{1}{\pi} \left[ x\sqrt{1-x^2}+\sin^{-1}x+\frac{\pi}{2} \right].

故邊際 CDF 為

FX(x)={0,x<−1,1π(x1−x2+sin⁡−1x+π2),−1≤x≤1,1,x>1.F_X(x)= \begin{cases} 0, & x<-1,\\[4pt] \displaystyle \frac{1}{\pi} \left( x\sqrt{1-x^2}+\sin^{-1}x+\frac{\pi}{2} \right), & -1\le x\le 1,\\[8pt] 1, & x>1. \end{cases}

(b) 求 X∣Y=yX|Y=y 的條件 pdf

先求 YY 的邊際 pdf。固定 yy 後,半圓內的 xx 範圍為

−1−y2≤x≤1−y2,0≤y≤1.-\sqrt{1-y^2}\le x\le \sqrt{1-y^2}, \qquad 0\le y\le 1.

因此

🔒

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

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

免費註冊

第 2 題

Let X1,X2,…,XnX_1, X_2, \ldots, X_n be independent and identical distributed exponential random variables with rate λ\lambda. Let Yi=X1+…+XiY_i = X_1 + \ldots + X_i, for i=1,…,ni = 1, \ldots, n.

(a) Find the joint pdf of Y1,…,YnY_1, \ldots, Y_n. (10 points)
(b) Use the result of (a) to find the marginal pdf of YnY_n. (10 points)

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

這一題的完整詳解

核心觀念

  1. 獨立指數分配之聯合機率密度函數(Joint PDF):
    若隨機變數 X1,X2,…,Xn∼i.i.d.Exp(λ)X_1, X_2, \ldots, X_n \overset{\text{i.i.d.}}{\sim} \text{Exp}(\lambda)(率參數表示法,rate parameter),其個別邊際機率密度函數為:

    fXi(xi)=λe−λxi,xi>0f_{X_i}(x_i) = \lambda e^{-\lambda x_i}, \quad x_i > 0

    由相互獨立性,其聯合機率密度函數為個別邊際機率密度函數之連乘積:

    fX1,…,Xn(x1,…,xn)=∏i=1nλe−λxi=λnexp⁡(−λ∑i=1nxi),xi>0,  ∀if_{X_1, \ldots, X_n}(x_1, \ldots, x_n) = \prod_{i=1}^n \lambda e^{-\lambda x_i} = \lambda^n \exp\left(-\lambda \sum_{i=1}^n x_i\right), \quad x_i > 0, \; \forall i
  2. 多元變數變換法(Multivariate Transformation Method / Change of Variables):
    設隨機向量 X=(X1,…,Xn)\mathbf{X} = (X_1, \ldots, X_n) 透過一對一可微函數轉換為 Y=(Y1,…,Yn)\mathbf{Y} = (Y_1, \ldots, Y_n),其中反變換存在為 xi=gi(y1,…,yn)x_i = g_i(y_1, \ldots, y_n),則 Y\mathbf{Y} 的聯合機率密度函數為:

    fY1,…,Yn(y1,…,yn)=fX1,…,Xn(g1(y),…,gn(y))⋅∣J∣f_{Y_1, \ldots, Y_n}(y_1, \ldots, y_n) = f_{X_1, \ldots, X_n}(g_1(\mathbf{y}), \ldots, g_n(\mathbf{y})) \cdot |J|

    其中 JJ 為雅可比行列式(Jacobian determinant):

    J=det⁡[∂(x1,…,xn)∂(y1,…,yn)]J = \det\left[ \frac{\partial(x_1, \ldots, x_n)}{\partial(y_1, \ldots, y_n)} \right]

    求解時務必特別注意「支撐集(Support)」在變換後的幾何邊界對應。

  3. 邊際機率密度函數(Marginal PDF)之多重積分:
    要從聯合機率密度函數求出特定變數 YnY_n 的邊際分配,需對其他變數 Y1,Y2,…,Yn−1Y_1, Y_2, \ldots, Y_{n-1} 在其定義域上進行多重積分:

    fYn(yn)=∫⋯∫fY1,…,Yn(y1,…,yn) dy1 dy2⋯dyn−1f_{Y_n}(y_n) = \int \cdots \int f_{Y_1, \ldots, Y_n}(y_1, \ldots, y_n) \, dy_1 \, dy_2 \cdots dy_{n-1}

解題方法與詳細推導

(a) 求 Y1,…,YnY_1, \ldots, Y_n 的聯合機率密度函數 fY1,…,Yn(y1,…,yn)f_{Y_1, \ldots, Y_n}(y_1, \ldots, y_n)

步驟 1:建立變換關係與逆變換
題目定義:

Y1=X1Y2=X1+X2Y3=X1+X2+X3    ⋮Yn=X1+X2+⋯+Xn\begin{aligned} Y_1 &= X_1 \\ Y_2 &= X_1 + X_2 \\ Y_3 &= X_1 + X_2 + X_3 \\ &\;\;\vdots \\ Y_n &= X_1 + X_2 + \cdots + X_n \end{aligned}

由於每個 Xi>0X_i > 0,因此可知各變數之間具有嚴格遞增順序:

0<y1<y2<y3<⋯<yn<∞0 < y_1 < y_2 < y_3 < \cdots < y_n < \infty

解出反函數(以 yy 表示 xx):

X1=Y1X2=Y2−Y1X3=Y3−Y2    ⋮Xn=Yn−Yn−1\begin{aligned} X_1 &= Y_1 \\ X_2 &= Y_2 - Y_1 \\ X_3 &= Y_3 - Y_2 \\ &\;\;\vdots \\ X_n &= Y_n - Y_{n-1} \end{aligned}

步驟 2:計算雅可比行列式(Jacobian)
逆變換矩陣的各偏導數所形成的矩陣為下三角矩陣:

J=det⁡[∂x1∂y1∂x1∂y2⋯∂x1∂yn∂x2∂y1∂x2∂y2⋯∂x2∂yn⋮⋮⋱⋮∂xn∂y1∂xn∂y2⋯∂xn∂yn]=det⁡[100⋯0−110⋯00−11⋯0⋮⋮⋱⋱⋮00⋯−11]J = \det \begin{bmatrix} \frac{\partial x_1}{\partial y_1} & \frac{\partial x_1}{\partial y_2} & \cdots & \frac{\partial x_1}{\partial y_n} \\ \frac{\partial x_2}{\partial y_1} & \frac{\partial x_2}{\partial y_2} & \cdots & \frac{\partial x_2}{\partial y_n} \\ \vdots & \vdots & \ddots & \vdots \\ \frac{\partial x_n}{\partial y_1} & \frac{\partial x_n}{\partial y_2} & \cdots & \frac{\partial x_n}{\partial y_n} \end{bmatrix} = \det \begin{bmatrix} 1 & 0 & 0 & \cdots & 0 \\ -1 & 1 & 0 & \cdots & 0 \\ 0 & -1 & 1 & \cdots & 0 \\ \vdots & \vdots & \ddots & \ddots & \vdots \\ 0 & 0 & \cdots & -1 & 1 \end{bmatrix}

下三角矩陣的行列式值等於對角線元素的乘積:

J=1×1×⋯×1=1  ⟹  ∣J∣=1J = 1 \times 1 \times \cdots \times 1 = 1 \implies |J| = 1

步驟 3:代入變數變換公式
原始 X1,…,XnX_1, \ldots, X_n 的聯合機率密度函數為:

fX1,…,Xn(x1,…,xn)=λnexp⁡(−λ∑i=1nxi),xi>0,  ∀if_{X_1, \ldots, X_n}(x_1, \ldots, x_n) = \lambda^n \exp\left(-\lambda \sum_{i=1}^n x_i\right), \quad x_i > 0, \; \forall i

將 x1=y1x_1 = y_1 及 xi=yi−yi−1x_i = y_i - y_{i-1} 代入指數項:

∑i=1nxi=y1+(y2−y1)+(y3−y2)+⋯+(yn−yn−1)=yn\sum_{i=1}^n x_i = y_1 + (y_2 - y_1) + (y_3 - y_2) + \cdots + (y_n - y_{n-1}) = y_n

故得 Y1,…,YnY_1, \ldots, Y_n 之聯合機率密度函數為:

🔒

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

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

免費註冊

第 3 題10 分

If X is a random variable with finite mean μ\mu and variance σ2\sigma^2, then for any value k>0k > 0,
P(∣X−μ∣≥k)≤σ2/k2P(|X - \mu| \ge k) \le \sigma^2/k^2.
Hint: If Y is a nonnegative random variable, then for any value c>0c > 0, P(Y≥c)≤E[Y]/cP(Y \ge c) \le E[Y]/c.

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

這一題的完整詳解

此題考驗對馬可夫不等式 (Markov's Inequality) 和切比雪夫不等式 (Chebyshev's Inequality) 的理解與應用。題目要求證明馬可夫不等式的一個特殊形式,這個形式實際上是切比雪夫不等式。

核心觀念:

  1. 馬可夫不等式 (Markov's Inequality):對於一個非負隨機變數 YY,對任意常數 c>0c > 0,有 P(Y≥c)≤E[Y]cP(Y \ge c) \le \frac{E[Y]}{c}。
  2. 切比雪夫不等式 (Chebyshev's Inequality):對於一個隨機變數 XX(不論是否非負),若其期望值為 μ\mu 且變異數為 σ2\sigma^2,則對任意常數 k>0k > 0,有 P(∣X−μ∣≥k)≤σ2k2P(|X - \mu| \ge k) \le \frac{\sigma^2}{k^2}。

解題步驟:

題目要求證明 P(∣X−μ∣≥k)≤σ2/k2P(|X - \mu| \ge k) \le \sigma^2/k^2 對於任何 k>0k > 0。
這個不等式就是切比雪夫不等式。我們可以利用馬可夫不等式作為提示來證明它。

步驟 1:定義一個新的隨機變數。
令 Y=(X−μ)2Y = (X - \mu)^2。
由於 XX 的期望值為 μ\mu,所以 E[X−μ]=E[X]−μ=μ−μ=0E[X - \mu] = E[X] - \mu = \mu - \mu = 0。
Y=(X−μ)2Y = (X - \mu)^2 是一個非負隨機變數。
YY 的期望值是 E[Y]=E[(X−μ)2]E[Y] = E[(X - \mu)^2],這正是隨機變數 XX 的變異數 σ2\sigma^2 的定義。
所以,E[Y]=σ2E[Y] = \sigma^2。

步驟 2:應用馬可夫不等式。
馬可夫不等式指出:對於一個非負隨機變數 YY 和任意常數 c>0c > 0,有 P(Y≥c)≤E[Y]cP(Y \ge c) \le \frac{E[Y]}{c}。
在我們的例子中,我們將 Y=(X−μ)2Y = (X - \mu)^2 代入,並將馬可夫不等式中的 cc 替換為 k2k^2。
為什麼選擇 k2k^2 作為 cc?因為我們想處理 ∣X−μ∣≥k|X-\mu| \ge k 這個條件。
如果 ∣X−μ∣≥k|X - \mu| \ge k,那麼 (X−μ)2≥k2(X - \mu)^2 \ge k^2。
所以,事件 {∣X−μ∣≥k}\{|X - \mu| \ge k\} 等價於事件 {(X−μ)2≥k2}\{(X - \mu)^2 \ge k^2\}。
因此,P(∣X−μ∣≥k)=P((X−μ)2≥k2)P(|X - \mu| \ge k) = P((X - \mu)^2 \ge k^2)。

現在,我們將 Y=(X−μ)2Y = (X - \mu)^2 和 c=k2c = k^2 代入馬可夫不等式:
P(Y≥c)≤E[Y]cP(Y \ge c) \le \frac{E[Y]}{c}
P((X−μ)2≥k2)≤E[(X−μ)2]k2P((X - \mu)^2 \ge k^2) \le \frac{E[(X - \mu)^2]}{k^2}

🔒

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

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

免費註冊

第 4 題

Two machines are used for filling plastic bottles with a net volume of 16.0 ounces. The filling processes can be assumed to be normal, with standard deviations of σ1=0.030\sigma_1 = 0.030 and σ2=0.025\sigma_2 = 0.025. The quality engineering department suspects that both machines fill to the same net volume, whether or not this volume is 16.0 ounces. An experiment is performed by taking a random sample from the output of each machine.

Machinenin_ixˉi\bar{x}_isis_i
11016.0250.0303
21016.0050.0255

(a) Please state the appropriate hypotheses that should be tested in this experiment. (2 points)
(b) At α=0.05\alpha = 0.05, what are your conclusions? (5 points)
(c) Find the p-value for this test. (3 points)

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

這一題的完整詳解

此題考驗對兩樣本獨立樣本 t 檢定 (Two-sample independent t-test) 的應用,包括設定假設、計算檢定統計量、判讀結果以及計算 p-value。題目提供兩組樣本數據,假設服從常態分配,並已知母體標準差(題目中給的是樣本標準差 sis_i,但題目又說「The filling processes can be assumed to be normal, with standard deviations of σ1=0.030\sigma_1 = 0.030 and σ2=0.025\sigma_2 = 0.025」。這裡有一個小小的歧義,通常 σ\sigma 指母體標準差。如果題目給的是母體標準差,則應使用 Z-test。但題目也給了樣本標準差 sis_i,且 s1≈σ1s_1 \approx \sigma_1,s2≈σ2s_2 \approx \sigma_2,這更傾向於是 Z-test。不過,在實際考試中,如果給了樣本標準差,且樣本數不大(這裡 n=10n=10),通常會導向 t-test。但如果明確給出 σ1,σ2\sigma_1, \sigma_2 且假設為常態,則 Z-test 是更直接的選擇。考慮到題目在後續問題 (b) 和 (c) 中沒有明確要求假設母體變異數相等(這是 t-test 的一個變種),且給出的 σ1,σ2\sigma_1, \sigma_2 值與 s1,s2s_1, s_2 非常接近,我們將採用 Z-test 來處理,假設 σ1=0.030\sigma_1=0.030 和 σ2=0.025\sigma_2=0.025 為已知的母體標準差。若使用 t-test,則需假設母體變異數相等或不等,並計算合併變異數或使用 Welch-Satterthwaite 方程式,這會使計算更複雜,且通常此類題目會明確說明。

核心觀念:

  1. 假設檢定 (Hypothesis Testing):設定虛無假設 (H0H_0) 和對立假設 (H1H_1),並根據樣本數據判斷是否有足夠證據拒絕 H0H_0。
  2. 兩獨立樣本 Z-檢定 (Two-sample independent Z-test):用於比較兩個獨立常態分佈母體的平均數,當母體標準差已知時。
    • 檢定統計量:Z=(xˉ1−xˉ2)−(μ1−μ2)0σ12n1+σ22n2Z = \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)_0}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}}
    • 當 μ1−μ2\mu_1 - \mu_2 在 H0H_0 下為 0 時,公式簡化為 Z=xˉ1−xˉ2σ12n1+σ22n2Z = \frac{\bar{x}_1 - \bar{x}_2}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}}。
  3. p-value:在虛無假設為真的情況下,觀察到當前樣本結果或更極端結果的機率。

解題步驟:

已知資訊:

  • 樣本 1:n1=10n_1 = 10, xˉ1=16.025\bar{x}_1 = 16.025, σ1=0.030\sigma_1 = 0.030 (假設為母體標準差)
  • 樣本 2:n2=10n_2 = 10, xˉ2=16.005\bar{x}_2 = 16.005, σ2=0.025\sigma_2 = 0.025 (假設為母體標準差)
  • 顯著水準 α=0.05\alpha = 0.05

(a) Please state the appropriate hypotheses that should be tested in this experiment.

品質工程部門懷疑兩台機器填充的淨體積相同。這意味著他們想檢驗兩台機器的平均填充體積是否相等。
虛無假設 (H0H_0) 是兩台機器的平均填充體積相等。
對立假設 (H1H_1) 是兩台機器的平均填充體積不相等(因為懷疑「是否相等」,沒有方向性,所以是雙尾檢定)。

H0:μ1=μ2H_0: \mu_1 = \mu_2 (或 μ1−μ2=0\mu_1 - \mu_2 = 0)
H1:μ1≠μ2H_1: \mu_1 \ne \mu_2 (或 μ1−μ2≠0\mu_1 - \mu_2 \ne 0)

Answer (a):
H0:μ1=μ2H_0: \mu_1 = \mu_2
H1:μ1≠μ2H_1: \mu_1 \ne \mu_2

(b) At α=0.05\alpha = 0.05, what are your conclusions?

我們使用兩獨立樣本 Z-檢定。
計算檢定統計量 Z:
Z=xˉ1−xˉ2σ12n1+σ22n2Z = \frac{\bar{x}_1 - \bar{x}_2}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}}

🔒

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

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

免費註冊

第 5 題

Reconsider the bottle filling experiment described in the previous problem. Rework the problem assuming that the two population variances are unknown but equal.
(a) At α=0.05\alpha = 0.05, what are your conclusions? (5 points)
(b) Find a 95 percent confidence interval on the difference in mean fill volume for the two machines. (5 points)

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

這一題的完整詳解

此題承接上一題,但改變了關鍵假設:母體變異數未知但相等。這意味著我們應改用兩獨立樣本 t 檢定(假設母體變異數相等)。

核心觀念:

  1. 兩獨立樣本 t-檢定 (Two-sample independent t-test with equal variances):當母體標準差未知但假設相等時,用來比較兩個獨立常態分佈母體的平均數。
  2. 合併變異數 (Pooled Variance):當假設母體變異數相等時,使用樣本變異數的加權平均來估計共同的母體變異數。
    sp2=(n1−1)s12+(n2−1)s22n1+n2−2s_p^2 = \frac{(n_1-1)s_1^2 + (n_2-1)s_2^2}{n_1+n_2-2}
  3. t-檢定統計量:
    t=(xˉ1−xˉ2)−(μ1−μ2)0sp2(1n1+1n2)t = \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)_0}{\sqrt{s_p^2 (\frac{1}{n_1} + \frac{1}{n_2})}}
  4. 信賴區間 (Confidence Interval):估計母體參數的範圍,在此為母體平均數差的信賴區間。
    CI for (μ1−μ2)(\mu_1 - \mu_2) is (xˉ1−xˉ2)±tα/2,dfsp2(1n1+1n2)(\bar{x}_1 - \bar{x}_2) \pm t_{\alpha/2, df} \sqrt{s_p^2 (\frac{1}{n_1} + \frac{1}{n_2})}

解題步驟:

已知資訊 (來自 Problem 4):

  • 樣本 1:n1=10n_1 = 10, xˉ1=16.025\bar{x}_1 = 16.025, s1=0.0303s_1 = 0.0303
  • 樣本 2:n2=10n_2 = 10, xˉ2=16.005\bar{x}_2 = 16.005, s2=0.0255s_2 = 0.0255
  • 顯著水準 α=0.05\alpha = 0.05
  • 假設:母體變異數未知但相等 (σ12=σ22\sigma_1^2 = \sigma_2^2)

(a) At α=0.05\alpha = 0.05, what are your conclusions?

首先,計算合併變異數 sp2s_p^2。
sp2=(n1−1)s12+(n2−1)s22n1+n2−2s_p^2 = \frac{(n_1-1)s_1^2 + (n_2-1)s_2^2}{n_1+n_2-2}
sp2=(10−1)(0.0303)2+(10−1)(0.0255)210+10−2s_p^2 = \frac{(10-1)(0.0303)^2 + (10-1)(0.0255)^2}{10+10-2}
sp2=9×(0.00091809)+9×(0.00065025)18s_p^2 = \frac{9 \times (0.00091809) + 9 \times (0.00065025)}{18}
sp2=0.00826281+0.0058522518s_p^2 = \frac{0.00826281 + 0.00585225}{18}
sp2=0.0141150618≈0.00078417s_p^2 = \frac{0.01411506}{18} \approx 0.00078417

自由度 df=n1+n2−2=10+10−2=18df = n_1+n_2-2 = 10+10-2 = 18。

虛無假設和對立假設與 Problem 4 相同:
H0:μ1=μ2H_0: \mu_1 = \mu_2
H1:μ1≠μ2H_1: \mu_1 \ne \mu_2

計算 t-檢定統計量:
t=(xˉ1−xˉ2)−0sp2(1n1+1n2)t = \frac{(\bar{x}_1 - \bar{x}_2) - 0}{\sqrt{s_p^2 (\frac{1}{n_1} + \frac{1}{n_2})}}
t=16.025−16.0050.00078417(110+110)t = \frac{16.025 - 16.005}{\sqrt{0.00078417 (\frac{1}{10} + \frac{1}{10})}}

🔒

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

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

免費註冊

第 6 題10 分

Based on the known standard deviations of the two machines in Problem 4, if the mean fill volumes of the two machines differ by as much as 0.035 ounces, what is the power of the test used in Problem 4(b)? What sample size would result in a power of at least 0.9 if the actual difference in mean fill volume is 0.035 ounces? (10 points)

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

這一題的完整詳解

此題考驗對統計檢定中「檢定力 (Power)」的概念以及如何計算檢定力與所需的樣本數。題目要求我們計算在已知母體標準差的情況下,當真實差異達到某個值時的檢定力,以及為了達到特定檢定力所需的樣本數。這裡我們使用 Problem 4 的 Z-test 設定,因為它明確給出了母體標準差 σ1\sigma_1 和 σ2\sigma_2。

核心觀念:

  1. 檢定力 (Power of a Test):在對立假設 (H1H_1) 為真時,正確拒絕虛無假設 (H0H_0) 的機率。Power = 1−β1 - \beta,其中 β\beta 是第二類錯誤 (Type II error) 的機率,即當 H1H_1 為真時,未能拒絕 H0H_0 的機率。
  2. 檢定力計算:
    • 首先,根據 α\alpha 和檢定類型(單尾/雙尾)找到拒絕域的臨界值。
    • 然後,假設對立假設為真,計算檢定統計量落在拒絕域內的機率。
  3. 樣本數計算:
    • 設定目標檢定力 (e.g., 0.9)。
    • 根據目標檢定力和 α\alpha 值,計算出能使得檢定統計量落在拒絕域內的樣本數。

解題步驟:

已知資訊 (來自 Problem 4):

  • 樣本 1:n1=10n_1 = 10, xˉ1\bar{x}_1, σ1=0.030\sigma_1 = 0.030
  • 樣本 2:n2=10n_2 = 10, xˉ2\bar{x}_2, σ2=0.025\sigma_2 = 0.025
  • 檢定:雙尾 Z-檢定
  • 顯著水準 α=0.05\alpha = 0.05
  • 虛無假設 H0:μ1=μ2H_0: \mu_1 = \mu_2
  • 對立假設 H1:μ1≠μ2H_1: \mu_1 \ne \mu_2

從 Problem 4(b) 我們知道,當 α=0.05\alpha = 0.05 時,臨界值為 Zα/2=±1.96Z_{\alpha/2} = \pm 1.96。
拒絕域為 Z<−1.96Z < -1.96 或 Z>1.96Z > 1.96。
檢定統計量為 Z=(xˉ1−xˉ2)σ12n1+σ22n2Z = \frac{(\bar{x}_1 - \bar{x}_2)}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}}。

第一部分:計算當 ∣μ1−μ2∣=0.035|\mu_1 - \mu_2| = 0.035 時的檢定力。

假設 μ1−μ2=0.035\mu_1 - \mu_2 = 0.035。
我們需要計算在 H1H_1 為真時,檢定統計量 ZZ 落在拒絕域的機率。
Z=(xˉ1−xˉ2)σ12n1+σ22n2Z = \frac{(\bar{x}_1 - \bar{x}_2)}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}}
當 H1H_1 為真時,xˉ1−xˉ2\bar{x}_1 - \bar{x}_2 的期望值是 E[xˉ1−xˉ2]=μ1−μ2=0.035E[\bar{x}_1 - \bar{x}_2] = \mu_1 - \mu_2 = 0.035。
分母的標準誤是 σ12n1+σ22n2=(0.030)210+(0.025)210=0.0001525≈0.012349\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}} = \sqrt{\frac{(0.030)^2}{10} + \frac{(0.025)^2}{10}} = \sqrt{0.0001525} \approx 0.012349。

為了計算檢定力,我們需要將真實的平均數差轉換成 Z 分數。
我們假設 μ1−μ2=0.035\mu_1 - \mu_2 = 0.035。
新的 Z 統計量(在 H1H_1 下)的期望值是:
E[Z∣H1]=E[xˉ1−xˉ2]−0σ12n1+σ22n2=0.0350.012349≈2.834E[Z | H_1] = \frac{E[\bar{x}_1 - \bar{x}_2] - 0}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}} = \frac{0.035}{0.012349} \approx 2.834。

檢定力是 P(Reject H0∣H1 is true)P(\text{Reject } H_0 | H_1 \text{ is true})。
對於雙尾檢定,我們拒絕 H0H_0 如果 Z>1.96Z > 1.96 或 Z<−1.96Z < -1.96。
當 μ1−μ2=0.035\mu_1 - \mu_2 = 0.035 時,檢定統計量 Z 的分佈是以 2.8342.834 為平均值的標準常態分佈。
檢定力 = P(Z>1.96∣μ1−μ2=0.035)+P(Z<−1.96∣μ1−μ2=0.035)P(Z > 1.96 | \mu_1 - \mu_2 = 0.035) + P(Z < -1.96 | \mu_1 - \mu_2 = 0.035)。
由於 μ1−μ2=0.035>0\mu_1 - \mu_2 = 0.035 > 0,我們更可能觀察到 xˉ1−xˉ2>0\bar{x}_1 - \bar{x}_2 > 0,所以檢定統計量 Z 的值會偏向正值。
實際上,我們只需要考慮落在拒絕域的機率。
當 μ1−μ2=0.035\mu_1 - \mu_2 = 0.035 時,檢定統計量的期望值是 2.8342.834。
因此,我們計算 P(Z>1.96)P(Z > 1.96),其中 Z 的分佈是以 2.8342.834 為平均值的標準常態分佈。
這相當於計算一個標準常態變數 Z′Z' 的機率 P(Z′>1.96−2.834)=P(Z′>−0.874)P(Z' > 1.96 - 2.834) = P(Z' > -0.874)。
P(Z′>−0.874)=1−P(Z′≤−0.874)=P(Z′≤0.874)P(Z' > -0.874) = 1 - P(Z' \le -0.874) = P(Z' \le 0.874)。
查標準常態表,P(Z' ≤\le 0.87) ≈0.8078\approx 0.8078。
P(Z' ≤\le 0.874) ≈0.8090\approx 0.8090。

另外一種情況是,如果我們假設 μ2−μ1=0.035\mu_2 - \mu_1 = 0.035(即 μ1−μ2=−0.035\mu_1 - \mu_2 = -0.035),那麼檢定統計量的期望值是 −2.834-2.834。
此時,我們計算 P(Z<−1.96)P(Z < -1.96),其中 Z 的分佈是以 −2.834-2.834 為平均值的標準常態分佈。
這相當於計算 P(Z′<−1.96−(−2.834))=P(Z′<0.874)P(Z' < -1.96 - (-2.834)) = P(Z' < 0.874)。
這個機率也是 0.80900.8090。

因為是雙尾檢定,所以實際檢定力是這兩種情況的總和。
然而,通常在計算檢定力時,我們考慮一個特定差異值,並計算落在拒絕域的機率。
如果真實差異為 μ1−μ2=0.035\mu_1 - \mu_2 = 0.035 (即 xˉ1\bar{x}_1 顯著大於 xˉ2\bar{x}_2),則 Z 統計量傾向於正值。
檢定力 = P(Z>1.96∣μ1−μ2=0.035)+P(Z<−1.96∣μ1−μ2=0.035)P(Z > 1.96 | \mu_1 - \mu_2 = 0.035) + P(Z < -1.96 | \mu_1 - \mu_2 = 0.035)
由於 μ1−μ2=0.035>0\mu_1 - \mu_2 = 0.035 > 0,真實情況是 xˉ1\bar{x}_1 傾向於大於 xˉ2\bar{x}_2。
所以 P(Z<−1.96∣μ1−μ2=0.035)P(Z < -1.96 | \mu_1 - \mu_2 = 0.035) 的機率會非常小(因為期望值是正的)。
我們要計算的是:
P(xˉ1−xˉ2SE>1.96 or xˉ1−xˉ2SE<−1.96∣μ1−μ2=0.035)P(\frac{\bar{x}_1 - \bar{x}_2}{\sqrt{SE}} > 1.96 \text{ or } \frac{\bar{x}_1 - \bar{x}_2}{\sqrt{SE}} < -1.96 | \mu_1 - \mu_2 = 0.035)
其中 SE=σ12n1+σ22n2≈0.012349SE = \sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}} \approx 0.012349。
令 Δ=μ1−μ2=0.035\Delta = \mu_1 - \mu_2 = 0.035。
檢定力 = P(xˉ1−xˉ2>1.96×SE∣Δ=0.035)+P(xˉ1−xˉ2<−1.96×SE∣Δ=0.035)P(\bar{x}_1 - \bar{x}_2 > 1.96 \times SE | \Delta = 0.035) + P(\bar{x}_1 - \bar{x}_2 < -1.96 \times SE | \Delta = 0.035)
檢定力 = P(xˉ1−xˉ2>1.96×0.012349∣Δ=0.035)+P(xˉ1−xˉ2<−1.96×0.012349∣Δ=0.035)P(\bar{x}_1 - \bar{x}_2 > 1.96 \times 0.012349 | \Delta = 0.035) + P(\bar{x}_1 - \bar{x}_2 < -1.96 \times 0.012349 | \Delta = 0.035)
檢定力 = P(xˉ1−xˉ2>0.0242∣Δ=0.035)+P(xˉ1−xˉ2<−0.0242∣Δ=0.035)P(\bar{x}_1 - \bar{x}_2 > 0.0242 | \Delta = 0.035) + P(\bar{x}_1 - \bar{x}_2 < -0.0242 | \Delta = 0.035)

將 xˉ1−xˉ2\bar{x}_1 - \bar{x}_2 標準化:
P(Z>0.0242−0.0350.012349)+P(Z<−0.0242−0.0350.012349)P(Z > \frac{0.0242 - 0.035}{0.012349}) + P(Z < \frac{-0.0242 - 0.035}{0.012349})
P(Z>−0.01080.012349)+P(Z<−0.05920.012349)P(Z > \frac{-0.0108}{0.012349}) + P(Z < \frac{-0.0592}{0.012349})

🔒

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

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

免費註冊

第 7 題

Consider four machines used for filling plastic bottles, and assume that the four population variances are unknown but equal. The sampling results are summarized as following table:

Machinenin_ixˉi\bar{x}_isis_i
11016.0250.0303
21016.0050.0255
31015.9900.0272
41016.0400.0285

(a) At 5% significance level, conduct an ANOVA table to test the "Machine" effect. (10 points)
(b) Find a 95 percent confidence interval on the difference in mean fill volume between the machine 1 and machine 2. (5 points)
(c) Comparing the two interval estimates from Problem 5(b) and Problem 7(b), which estimate is better? Please specify the reasons. (5 points)

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

這一題的完整詳解

核心觀念

本題考查:

  1. 單因子變異數分析(one-way ANOVA)。
  2. 等變異數下的多重樣本平均數比較。
  3. 利用 ANOVA 的 pooled error variance 建立兩組母體平均數差的信賴區間。
  4. 比較單獨估計變異數與合併估計變異數的精確度。

設第 ii 台機器的填充平均數為 μi\mu_i,欲檢定:

H0:μ1=μ2=μ3=μ4H_0:\mu_1=\mu_2=\mu_3=\mu_4 H1:至少有一台機器的平均填充量不同H_1:\text{至少有一台機器的平均填充量不同}

由題意可合理假設四個母體變異數相等,因此可使用 ANOVA。


解題方法

共有 k=4k=4 台機器,每台抽樣 ni=10n_i=10,總樣本數為

N=40N=40

樣本總平均數為

xˉ..=16.025+16.005+15.990+16.0404=16.015\bar{x}_{..} =\frac{16.025+16.005+15.990+16.040}{4} =16.015

(a)ANOVA 檢定

1. 計算組間平方和

SSMachine=∑i=14ni(xˉi−xˉ..)2SS_{\text{Machine}} =\sum_{i=1}^{4}n_i(\bar{x}_i-\bar{x}_{..})^2

因此

SSMachine=10[(16.025−16.015)2+(16.005−16.015)2+(15.990−16.015)2+(16.040−16.015)2]=10[(0.010)2+(−0.010)2+(−0.025)2+(0.025)2]=0.0145\begin{aligned} SS_{\text{Machine}} &=10\left[(16.025-16.015)^2+(16.005-16.015)^2\right.\\ &\qquad\left.+(15.990-16.015)^2+(16.040-16.015)^2\right]\\ &=10\left[(0.010)^2+(-0.010)^2+(-0.025)^2+(0.025)^2\right]\\ &=0.0145 \end{aligned}

自由度為

dfMachine=k−1=3df_{\text{Machine}}=k-1=3

所以

MSMachine=0.01453=0.0048333MS_{\text{Machine}} =\frac{0.0145}{3} =0.0048333

2. 計算組內平方和

組內平方和為

SSE=∑i=14(ni−1)si2SS_E=\sum_{i=1}^{4}(n_i-1)s_i^2

代入各組資料:

SSE=9(0.0303)2+9(0.0255)2+9(0.0272)2+9(0.0285)2=0.02808387\begin{aligned} SS_E &=9(0.0303)^2+9(0.0255)^2\\ &\quad+9(0.0272)^2+9(0.0285)^2\\ &=0.02808387 \end{aligned}

自由度為

dfE=N−k=40−4=36df_E=N-k=40-4=36

因此誤差均方為

MSE=0.0280838736=0.00078011MS_E=\frac{0.02808387}{36} =0.00078011

3. 計算總平方和

SST=SSMachine+SSE=0.0145+0.02808387=0.04258387SS_T=SS_{\text{Machine}}+SS_E =0.0145+0.02808387 =0.04258387

總自由度為

dfT=N−1=39df_T=N-1=39

4. 計算 FF 統計量

F=MSMachineMSE=0.00483330.00078011=6.196F=\frac{MS_{\text{Machine}}}{MS_E} =\frac{0.0048333}{0.00078011} =6.196

ANOVA 表如下:

變異來源平方和 SS自由度 df均方 MSFF 值
Machine0.014500000.01450000330.004833330.004833336.1966.196
誤差0.028083870.0280838736360.000780110.00078011
總和0.042583870.042583873939

在顯著水準 α=0.05\alpha=0.05 下,

F0.05,3,36≈2.866F_{0.05,3,36}\approx 2.866

由於

F=6.196>2.866F=6.196>2.866

故拒絕 H0H_0。

**結論:**在 5% 顯著水準下,四台機器的平均填充量並不完全相同,具有顯著的 Machine 效果。


(b)μ1−μ2\mu_1-\mu_2 的 95% 信賴區間

機器 1 與機器 2 的樣本平均數差為

xˉ1−xˉ2=16.025−16.005=0.020\bar{x}_1-\bar{x}_2 =16.025-16.005 =0.020

由 ANOVA 所得的共同誤差變異數估計為

🔒

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

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

免費註冊

其他考古題