109 年 國立政治大學統計學系碩士班《統計方法》

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

第 1 題20 分

A box contains 5 black balls and 10 white balls. Each of Player A and Player B is asked to draw 3 balls from the box and record the number of black balls obtained. Each of them does this 100 times, with the following results:

Observed Outcomes0123
Player A25402510
Player B4040155

(a) (10%) Use α=0.10\alpha = 0.10 to test the hypothesis that Player A drew the balls without replacement and Player B drew the balls with replacement.
(b) (10%) Use α=0.10\alpha = 0.10 to test the hypothesis that the two multinomial populations are the same.

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

這一題的完整詳解

核心觀念

本題考查兩種卡方檢定:

  1. 適合度檢定(goodness-of-fit test)
    檢查觀察到的次數是否符合指定的理論機率分布。

  2. 同質性檢定(test of homogeneity)
    檢查兩個多項分布的母體機率是否相同。

卡方統計量為

χ2=∑i=1k(Oi−Ei)2Ei,\chi^2=\sum_{i=1}^k\frac{(O_i-E_i)^2}{E_i},

其中 OiO_i 為觀察次數,EiE_i 為虛無假設下的期望次數。


(a)檢定 A 不放回、B 放回

解題方法

對 Player A 與 Player B 分別建立理論分布,再進行適合度檢定。

虛無假設為

H0:A 不放回抽球,B 放回抽球;H_0:\text{A 不放回抽球,B 放回抽球};

對立假設為

H1:上述抽球方式至少有一者不成立.H_1:\text{上述抽球方式至少有一者不成立}.

Player A:不放回抽球

盒中共有 1515 顆球,其中黑球 55 顆、白球 1010 顆。一次抽出 33 顆,得到 kk 顆黑球的機率服從超幾何分布:

P(X=k)=(5k)(103−k)(153),k=0,1,2,3.P(X=k)=\frac{\binom{5}{k}\binom{10}{3-k}}{\binom{15}{3}}, \qquad k=0,1,2,3.

因此

P(X=0)=(50)(103)(153)=2491,P(X=1)=(51)(102)(153)=4591,P(X=2)=(52)(101)(153)=2091,P(X=3)=(53)(100)(153)=291.\begin{aligned} P(X=0)&=\frac{\binom{5}{0}\binom{10}{3}}{\binom{15}{3}} =\frac{24}{91},\\ P(X=1)&=\frac{\binom{5}{1}\binom{10}{2}}{\binom{15}{3}} =\frac{45}{91},\\ P(X=2)&=\frac{\binom{5}{2}\binom{10}{1}}{\binom{15}{3}} =\frac{20}{91},\\ P(X=3)&=\frac{\binom{5}{3}\binom{10}{0}}{\binom{15}{3}} =\frac{2}{91}. \end{aligned}

A 重複試驗 100100 次,期望次數如下:

黑球數觀察次數期望次數
025100(24/91)=26.374100(24/91)=26.374
140100(45/91)=49.451100(45/91)=49.451
225100(20/91)=21.978100(20/91)=21.978
310100(2/91)=2.198100(2/91)=2.198

所以

χA2=(25−26.374)226.374+(40−49.451)249.451+(25−21.978)221.978+(10−2.198)22.198≈29.99.\begin{aligned} \chi_A^2 &=\frac{(25-26.374)^2}{26.374} +\frac{(40-49.451)^2}{49.451}\\ &\quad+\frac{(25-21.978)^2}{21.978} +\frac{(10-2.198)^2}{2.198}\\ &\approx 29.99. \end{aligned}

若理論機率完全指定,類別數為 44,故自由度為

df=4−1=3.df=4-1=3.

在 α=0.10\alpha=0.10 下,

χ0.10,32=6.251.\chi^2_{0.10,3}=6.251.

由於

29.99>6.251,29.99>6.251,

拒絕 A 不放回抽球的假設。


Player B:放回抽球

每次抽球後放回,因此每一球抽到黑球的機率固定為

p=515=13.p=\frac{5}{15}=\frac13.

一次抽 33 球,黑球數服從二項分布:

X∼Binomial⁡(3,13).X\sim\operatorname{Binomial}\left(3,\frac13\right).

因此

P(X=k)=(3k)(13)k(23)3−k.P(X=k)=\binom{3}{k} \left(\frac13\right)^k \left(\frac23\right)^{3-k}.

各類別機率為

(827,1227,627,127).\left( \frac{8}{27},\frac{12}{27},\frac{6}{27},\frac{1}{27} \right).

B 的期望次數為:

黑球數觀察次數期望次數
04029.63029.630
14044.44444.444
21522.22222.222
353.7043.704

因此

🔒

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

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

免費註冊

第 2 題20 分

The following data were collected from a training program. 3 persons participated in this study and 3 courses were used to evaluate their resulting performances. The grades are shown below.

Person 1Person 2Person 3
Course A848385
Course B797781
Course C807477

(a) (8%) At 95% confidence using the p-value approach, do persons perform differently?
(b) (8%) Using the critical value approach and α=0.05\alpha=0.05, are there any significant differences among the 3 courses?
(c) (4%) A researcher said "one-way ANOVA cannot be applied to the problem in (b)." Do you agree with this comment? Please give your reason.

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

這一題的完整詳解

這是一道關於變異數分析 (ANOVA) 的題目,涵蓋了單因子變異數分析的應用、p-value 方法判斷以及對 ANOVA 適用性的討論。

核心觀念:

  • 變異數分析 (ANOVA):用於比較三個或三個以上群體平均數的統計方法。
  • 單因子變異數分析 (One-way ANOVA):當影響結果的因子只有一個時使用。
  • 因子 (Factor):在此題中,因子是「參與者 (Person)」和「課程 (Course)」。
  • 因子水準 (Levels of Factor):
    • 參與者因子有 3 個水準:Person 1, Person 2, Person 3。
    • 課程因子有 3 個水準:Course A, Course B, Course C。
  • p-value approach:透過計算統計量出現的機率 (p-value),與顯著水準 α\alpha 比較來做決策。
  • Critical Value approach:透過計算統計量與預先設定的臨界值比較來做決策。

(a) 檢定參與者表現是否不同 (Person Factor)

題意分析:
我們要檢定的是,這三位參與者 (Person 1, Person 2, Person 3) 的整體表現是否有顯著差異。這裡的「課程」是干擾因子,我們需要排除課程的影響,或者說,我們關注的是在所有課程下,三位參與者的平均表現是否不同。這是一個典型的單因子變異數分析問題,因子是「參與者」,其水準為 Person 1, Person 2, Person 3。

1. 建立假設:
H0H_0: 三位參與者的平均表現相同。(μ1=μ2=μ3\mu_1 = \mu_2 = \mu_3)
H1H_1: 至少有一位參與者的平均表現不同。

2. 識別模型與參數:
這是一個單因子 ANOVA 模型,因子為「參與者」,有 3 個水準。
觀察值 yijy_{ij} 表示第 ii 位參與者在第 jj 門課程的成績。
yij=μi+ϵijy_{ij} = \mu_i + \epsilon_{ij},其中 μi\mu_i 是第 ii 位參與者的平均成績,ϵij\epsilon_{ij} 是隨機誤差,假設 ϵij∼N(0,σ2)\epsilon_{ij} \sim N(0, \sigma^2) 獨立同分布。
在我們的數據中,我們實際上無法直接估計 μi\mu_i 因為每個參與者只在每個課程下被評估一次。
這題應該是要我們將「參與者」視為一個因子,而「課程」是另一個因子。由於題目問的是「參與者表現是否不同」,我們需要進行一個雙因子 ANOVA (Two-way ANOVA),或者,如果我們忽略課程的影響,將數據重新整理。

重新架構問題:
題目數據格式是:

Person 1Person 2Person 3
Course A848385
Course B797781
Course C807477

我們可以將「參與者」視為一個因子,其觀察值是該參與者在所有課程下的成績。

  • Person 1 的成績:{84, 79, 80}
  • Person 2 的成績:{83, 77, 74}
  • Person 3 的成績:{85, 81, 77}

計算平均數與總變異數:

  • Person 1 平均 (yˉ1\bar{y}_1) = (84+79+80)/3 = 243/3 = 81

  • Person 2 平均 (yˉ2\bar{y}_2) = (83+77+74)/3 = 234/3 = 78

  • Person 3 平均 (yˉ3\bar{y}_3) = (85+81+77)/3 = 243/3 = 81

  • 所有成績總平均 (yˉ..\bar{y}_{..}) = (81+78+81)/3 = 240/3 = 80
    或者 (84+83+85+79+77+81+80+74+77)/9 = 720/9 = 80

進行單因子 ANOVA (因子:參與者):

  • 組間平方和 (SSB - Sum of Squares Between groups):衡量各組平均數與總平均數之間的差異。
    SSB=∑i=1kni(yˉi−yˉ..)2SSB = \sum_{i=1}^{k} n_i (\bar{y}_i - \bar{y}_{..})^2
    其中 k=3k=3 (參與者數),ni=3n_i=3 (每位參與者觀察的次數)。
    SSB=3×(81−80)2+3×(78−80)2+3×(81−80)2SSB = 3 \times (81 - 80)^2 + 3 \times (78 - 80)^2 + 3 \times (81 - 80)^2
    SSB=3×(1)2+3×(−2)2+3×(1)2SSB = 3 \times (1)^2 + 3 \times (-2)^2 + 3 \times (1)^2
    SSB=3×1+3×4+3×1=3+12+3=18SSB = 3 \times 1 + 3 \times 4 + 3 \times 1 = 3 + 12 + 3 = 18

  • 組內平方和 (SSW - Sum of Squares Within groups) / 誤差平方和 (SSE):衡量各組內觀察值與該組平均數的差異。
    SSE=∑i=1k∑j=1ni(yij−yˉi)2SSE = \sum_{i=1}^{k} \sum_{j=1}^{n_i} (y_{ij} - \bar{y}_i)^2

    • Person 1: (84−81)2+(79−81)2+(80−81)2=32+(−2)2+(−1)2=9+4+1=14(84-81)^2 + (79-81)^2 + (80-81)^2 = 3^2 + (-2)^2 + (-1)^2 = 9 + 4 + 1 = 14
    • Person 2: (83−78)2+(77−78)2+(74−78)2=52+(−1)2+(−4)2=25+1+16=42(83-78)^2 + (77-78)^2 + (74-78)^2 = 5^2 + (-1)^2 + (-4)^2 = 25 + 1 + 16 = 42
    • Person 3: (85−81)2+(81−81)2+(77−81)2=42+02+(−4)2=16+0+16=32(85-81)^2 + (81-81)^2 + (77-81)^2 = 4^2 + 0^2 + (-4)^2 = 16 + 0 + 16 = 32
      SSE=14+42+32=88SSE = 14 + 42 + 32 = 88
  • 總平方和 (SST - Total Sum of Squares):
    SST=SSB+SSE=18+88=106SST = SSB + SSE = 18 + 88 = 106

3. 計算均方 (Mean Squares):

  • 組間均方 (MSB):MSB=SSBdfbetweenMSB = \frac{SSB}{df_{between}}
    dfbetween=k−1=3−1=2df_{between} = k - 1 = 3 - 1 = 2
    MSB=182=9MSB = \frac{18}{2} = 9

  • 組內均方 (MSW) / 誤差均方 (MSE):MSE=SSEdfwithinMSE = \frac{SSE}{df_{within}}
    dfwithin=N−k=9−3=6df_{within} = N - k = 9 - 3 = 6
    MSE=886≈14.667MSE = \frac{88}{6} \approx 14.667

4. 計算 F 統計量:
F=MSBMSE=988/6=9×688=5488≈0.6136F = \frac{MSB}{MSE} = \frac{9}{88/6} = \frac{9 \times 6}{88} = \frac{54}{88} \approx 0.6136

5. 決定自由度:

  • 分子自由度 df1=dfbetween=2df_1 = df_{between} = 2
  • 分母自由度 df2=dfwithin=6df_2 = df_{within} = 6

6. 使用 p-value approach 進行檢定:
我們需要找到 P(F2,6≥0.6136)P(F_{2,6} \ge 0.6136)。
查 F 分布表,對於 df1=2,df2=6df_1=2, df_2=6:

  • F2,6,0.05≈5.14F_{2,6, 0.05} \approx 5.14
  • F2,6,0.10≈3.46F_{2,6, 0.10} \approx 3.46

由於我們的 F 統計量 0.61360.6136 非常小,遠小於常用顯著水準 (如 0.05 或 0.10) 的臨界值,所以 p-value 會非常大,遠大於 0.10。
例如,查 F 表可以發現,當 FF 值很小時,其右尾機率 (p-value) 就會很大。
F2,6F_{2,6} 的值通常大於 1 才會顯著。

7. 下結論:
因為 p-value 很大 (p-value > 0.10),大於顯著水準 95% confidence (即 α=0.05\alpha = 0.05)。
或者,因為 F 統計量 0.61360.6136 小於臨界值 F2,6,0.05=5.14F_{2,6, 0.05} = 5.14。
我們無法拒絕虛無假設 H0H_0。
結論: 在 95% 的信心水準下,沒有足夠證據顯示三位參與者的平均表現有顯著差異。

【答案】:** 在 95% 信心水準下,參與者表現沒有顯著差異。


(b) 檢定課程表現是否不同 (Course Factor)

🔒

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

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

免費註冊

第 3 題25 分

Let (y1,x1),(y2,x2),…,(yn,xn)(y_1, x_1), (y_2, x_2), \dots, (y_n, x_n), and (w1,x1),(w2,x2),…,(wn,xn)(w_1, x_1), (w_2, x_2), \dots, (w_n, x_n), be two sets of independent observations where xi,i=1,…,nx_i, i = 1, \dots, n, are fixed constants. Suppose we fit the model yi=α1+βxi+ϵiy_i = \alpha_1 + \beta x_i + \epsilon_i to the first data set and the model wi=α2+βxi+ηiw_i = \alpha_2 + \beta x_i + \eta_i to the second data set. Suppose that ϵi\epsilon_i and ηi\eta_i are independently distributed with mean zero and variance σ2\sigma^2.

(a) (15%) Find the least squares estimates of α1,α2\alpha_1, \alpha_2 and β\beta.
(b) (10%) Following Part (a), how to use t test to test H0:β=0H_0: \beta = 0 vs. H1:β≠0H_1: \beta \neq 0? Please state your testing procedure(s) clearly to get full credits.

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

這一題的完整詳解

核心觀念

本題考查「兩組獨立資料共用同一斜率、但具有不同截距」的最小平方法估計,以及共同誤差變異數下的迴歸斜率 tt 檢定。

模型為

yi=α1+βxi+ϵi,y_i=\alpha_1+\beta x_i+\epsilon_i, wi=α2+βxi+ηi,w_i=\alpha_2+\beta x_i+\eta_i,

其中兩組資料共用斜率 β\beta,但截距分別為 α1\alpha_1 與 α2\alpha_2。

令

xˉ=1n∑i=1nxi,yˉ=1n∑i=1nyi,wˉ=1n∑i=1nwi,\bar{x}=\frac{1}{n}\sum_{i=1}^n x_i,\qquad \bar{y}=\frac{1}{n}\sum_{i=1}^n y_i,\qquad \bar{w}=\frac{1}{n}\sum_{i=1}^n w_i,

並定義

Sxx=∑i=1n(xi−xˉ)2.S_{xx}=\sum_{i=1}^n(x_i-\bar{x})^2.

假設 Sxx>0S_{xx}>0,亦即所有 xix_i 不完全相同。


解題方法

最小平方法是使兩組資料的殘差平方和最小:

Q(α1,α2,β)=∑i=1n(yi−α1−βxi)2+∑i=1n(wi−α2−βxi)2.Q(\alpha_1,\alpha_2,\beta) = \sum_{i=1}^n(y_i-\alpha_1-\beta x_i)^2 + \sum_{i=1}^n(w_i-\alpha_2-\beta x_i)^2.

分別對 α1,α2,β\alpha_1,\alpha_2,\beta 微分並令其為零。


(a)最小平方法估計量

1. α1\alpha_1 的估計量

對 α1\alpha_1 微分:

∂Q∂α1=−2∑i=1n(yi−α1−βxi)=0.\frac{\partial Q}{\partial \alpha_1} = -2\sum_{i=1}^n(y_i-\alpha_1-\beta x_i)=0.

因此

∑i=1nyi−nα1−β∑i=1nxi=0,\sum_{i=1}^n y_i-n\alpha_1-\beta\sum_{i=1}^n x_i=0,

得到

α^1=yˉ−β^xˉ.\hat{\alpha}_1=\bar{y}-\hat{\beta}\bar{x}.

2. α2\alpha_2 的估計量

同理,對 α2\alpha_2 微分:

∂Q∂α2=−2∑i=1n(wi−α2−βxi)=0.\frac{\partial Q}{\partial \alpha_2} = -2\sum_{i=1}^n(w_i-\alpha_2-\beta x_i)=0.

因此

α^2=wˉ−β^xˉ.\hat{\alpha}_2=\bar{w}-\hat{\beta}\bar{x}.

3. β\beta 的估計量

對 β\beta 微分:

∂Q∂β=−2∑i=1nxi(yi−α1−βxi)−2∑i=1nxi(wi−α2−βxi)=0.\frac{\partial Q}{\partial \beta} = -2\sum_{i=1}^n x_i(y_i-\alpha_1-\beta x_i) -2\sum_{i=1}^n x_i(w_i-\alpha_2-\beta x_i)=0.

代入

α^1=yˉ−β^xˉ,α^2=wˉ−β^xˉ,\hat{\alpha}_1=\bar{y}-\hat{\beta}\bar{x}, \qquad \hat{\alpha}_2=\bar{w}-\hat{\beta}\bar{x},

可將兩組資料分別中心化,得到

∑i=1n(xi−xˉ)(yi−yˉ)+∑i=1n(xi−xˉ)(wi−wˉ)−2β^∑i=1n(xi−xˉ)2=0.\sum_{i=1}^n(x_i-\bar{x})(y_i-\bar{y}) + \sum_{i=1}^n(x_i-\bar{x})(w_i-\bar{w}) - 2\hat{\beta}\sum_{i=1}^n(x_i-\bar{x})^2 =0.

因此

β^=∑i=1n(xi−xˉ)(yi−yˉ)+∑i=1n(xi−xˉ)(wi−wˉ)2∑i=1n(xi−xˉ)2\boxed{ \hat{\beta} = \frac{ \displaystyle\sum_{i=1}^n(x_i-\bar{x})(y_i-\bar{y}) + \displaystyle\sum_{i=1}^n(x_i-\bar{x})(w_i-\bar{w}) }{ \displaystyle 2\sum_{i=1}^n(x_i-\bar{x})^2 } }

亦即

β^=Sxy+Sxw2Sxx\boxed{ \hat{\beta} = \frac{S_{xy}+S_{xw}}{2S_{xx}} }

其中

Sxy=∑i=1n(xi−xˉ)(yi−yˉ),S_{xy}=\sum_{i=1}^n(x_i-\bar{x})(y_i-\bar{y}), Sxw=∑i=1n(xi−xˉ)(wi−wˉ).S_{xw}=\sum_{i=1}^n(x_i-\bar{x})(w_i-\bar{w}).

最後,

α^1=yˉ−β^xˉ\boxed{ \hat{\alpha}_1=\bar{y}-\hat{\beta}\bar{x} }

以及

α^2=wˉ−β^xˉ\boxed{ \hat{\alpha}_2=\bar{w}-\hat{\beta}\bar{x} }

(b)檢定 H0:β=0H_0:\beta=0 對上 H1:β≠0H_1:\beta\neq 0

1. 計算殘差平方和

使用估計出的參數後,兩組資料的殘差平方和為

🔒

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

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

免費註冊

第 4 題25 分

Bowl A contains 100 red balls and 200 white balls; Bowl B contains 200 red balls and 100 white balls. Let pp denote the probability of drawing a red ball from a bowl, but say pp is unknown, since it is unknown whether Bowl A or Bowl B is being used. We shall test the null hypothesis H0:p=1/3H_0: p = 1/3 against H1:p=2/3H_1: p = 2/3.

(a) (4%) First, we draw three balls at random, one at a time and with replacement, from the selected bowl. Let XX be the number of red balls drawn. Then we decide to reject H0H_0 if X≥2X \ge 2. Please give a reason to explain the rejection area should be {X≥2}\{X \ge 2\} rather than {X≤2}\{X \le 2\}.

(b) (6%) Please find the probabilities of making type I and type II errors in (a).

(c) (15%) As you can see in (b), the errors are too large, so we decide to draw more balls, say nn balls, and the rejection area is {X≥nr}\{X \ge nr\}, where XX is the number of red balls from the nn draws and rr is the proportion and between 0 and 1. Please find the values of nn and rr, so that the type I error probability is 5% and the power is 90%. (Ps. Use the central limit theorem to find the approximate type I and II errors.)

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

這一題的完整詳解

核心觀念

本題考查:

  • 二項分配:X∼Binomial⁡(n,p)X\sim\operatorname{Binomial}(n,p)。
  • 型一錯誤與型二錯誤:
    • 型一錯誤:H0H_0 正確卻拒絕 H0H_0。
    • 型二錯誤:H1H_1 正確卻未拒絕 H0H_0。
  • Neyman–Pearson 準則:當 pp 從 1/31/3 增加至 2/32/3 時,觀察到較多紅球較支持 H1H_1。
  • 中央極限定理近似二項分配。

(a)拒絕域為 {X≥2}\{X\ge 2\} 的理由

在 H0H_0 與 H1H_1 下,XX 分別服從:

X∣H0∼Binomial⁡(3,13),X\mid H_0\sim \operatorname{Binomial}\left(3,\frac13\right), X∣H1∼Binomial⁡(3,23).X\mid H_1\sim \operatorname{Binomial}\left(3,\frac23\right).

因為 H1H_1 的紅球機率較高,所以觀察到的紅球數 XX 越大,越支持 H1H_1。

更正式地,似然比為:

P(X=x∣H1)P(X=x∣H0)=(3x)(2/3)x(1/3)3−x(3x)(1/3)x(2/3)3−x=22x−3.\frac{P(X=x\mid H_1)}{P(X=x\mid H_0)} = \frac{\binom{3}{x}(2/3)^x(1/3)^{3-x}} {\binom{3}{x}(1/3)^x(2/3)^{3-x}} = 2^{2x-3}.

由於 22x−32^{2x-3} 隨 xx 遞增,因此 XX 越大時,越應拒絕 H0H_0,拒絕域應取為大於某一臨界值的區域,即:

{X≥2}.\{X\ge 2\}.

若取 {X≤2}\{X\le 2\},反而會把「紅球數較少」視為支持 H1:p=2/3H_1:p=2/3,與備擇假設的方向相反。


(b)型一錯誤與型二錯誤

型一錯誤機率

型一錯誤為在 H0:p=1/3H_0:p=1/3 下拒絕 H0H_0:

α=P1/3(X≥2).\alpha=P_{1/3}(X\ge 2).

因此:

α=P1/3(X=2)+P1/3(X=3)=(32)(13)2(23)+(33)(13)3=627+127=727≈0.2593.\begin{aligned} \alpha &=P_{1/3}(X=2)+P_{1/3}(X=3)\\ &=\binom32\left(\frac13\right)^2\left(\frac23\right) +\binom33\left(\frac13\right)^3\\ &=\frac{6}{27}+\frac{1}{27}\\ &=\frac{7}{27} \approx 0.2593. \end{aligned}

所以型一錯誤機率約為:

α≈25.93%.\boxed{\alpha\approx 25.93\%}.

型二錯誤機率

型二錯誤為在 H1:p=2/3H_1:p=2/3 成立時未拒絕 H0H_0。由於拒絕域為 X≥2X\ge2,未拒絕域為 X≤1X\le1:

β=P2/3(X≤1).\beta=P_{2/3}(X\le1).

因此:

β=P2/3(X=0)+P2/3(X=1)=(30)(13)3+(31)(23)(13)2=127+627=727≈0.2593.\begin{aligned} \beta &=P_{2/3}(X=0)+P_{2/3}(X=1)\\ &=\binom30\left(\frac13\right)^3 +\binom31\left(\frac23\right)\left(\frac13\right)^2\\ &=\frac{1}{27}+\frac{6}{27}\\ &=\frac{7}{27}\\ &\approx0.2593. \end{aligned}

所以型二錯誤機率約為:

β≈25.93%.\boxed{\beta\approx25.93\%}.

相對應的檢定力為:

1−β=1−727=2027≈0.7407.1-\beta=1-\frac{7}{27} =\frac{20}{27} \approx0.7407.

(c)利用中央極限定理決定 nn 與 rr

解題方法

令:

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

拒絕域為:

X≥nr.X\ge nr.

要求:

α=0.05,1−β=0.90,\alpha=0.05, \qquad 1-\beta=0.90,

因此在 H1H_1 下:

β=0.10.\beta=0.10.

對二項分配使用中央極限定理:

X≈N(np,np(1−p)).X\approx N\left(np,np(1-p)\right).
🔒

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

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

免費註冊

第 5 題10 分

Let X1,X2,…,X9X_1, X_2, \dots, X_9 be a random sample from the normal distribution N(6,25)N(6, 25), and let Xˉ\bar{X} and S2S^2 denote the sample mean and sample variance respectively. Find each of the following:

(a) (5%) P(1.860<Xˉ−6S/9)P(1.860 < \frac{\bar{X}-6}{S/\sqrt{9}})

(b) (5%) P(S2≤34.4688)P(S^2 \le 34.4688)

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

這一題的完整詳解

核心觀念

本題使用常態母體下的兩個重要抽樣分配:

  1. 母體為 N(μ,σ2)N(\mu,\sigma^2) 時,
T=Xˉ−μS/n∼tn−1.T=\frac{\bar X-\mu}{S/\sqrt n}\sim t_{n-1}.
  1. 樣本變異數 S2S^2 滿足:
(n−1)S2σ2∼χn−12.\frac{(n-1)S^2}{\sigma^2}\sim \chi^2_{n-1}.

本題中

μ=6,σ2=25,σ=5,n=9,\mu=6,\qquad \sigma^2=25,\qquad \sigma=5,\qquad n=9,

因此自由度皆為

n−1=8.n-1=8.

(a)計算 P(1.860<Xˉ−6S/9)P\left(1.860<\dfrac{\bar X-6}{S/\sqrt 9}\right)

解題方法

因為樣本來自常態分配,且母體平均數與變異數均已知其真值,但題目使用樣本標準差 SS,所以應直接套用 tt 分配:

T=Xˉ−μS/n=Xˉ−6S/9∼t8.T=\frac{\bar X-\mu}{S/\sqrt n} =\frac{\bar X-6}{S/\sqrt 9} \sim t_8.

因此

P(1.860<Xˉ−6S/9)=P(T>1.860),T∼t8.P\left(1.860<\frac{\bar X-6}{S/\sqrt 9}\right) =P(T>1.860),\qquad T\sim t_8.

查自由度 88 的 tt 分配表:

t0.95,8=1.860,t_{0.95,8}=1.860,

其中 P(T≤t0.95,8)=0.95P(T\le t_{0.95,8})=0.95,所以右尾機率為

P(T>1.860)=1−0.95=0.05.P(T>1.860)=1-0.95=0.05.

(b)計算 P(S2≤34.4688)P(S^2\le 34.4688)

解題方法

常態母體下,

(n−1)S2σ2∼χn−12.\frac{(n-1)S^2}{\sigma^2}\sim\chi^2_{n-1}.
🔒

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

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

免費註冊

其他考古題