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

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

第 1 題35 分

Ten golf players hit each a drive with one of three driver designs, namely A, B, and C, in a randomly selected order, and the overall distance (in yard) was recorded. The following table shows the result by player.

🖼️【此處有附圖,請對照原卷】

  • denotes the sum of observations
    ** denotes the sum of squared observations

Assume that overall distance follows a normal distribution. Answer the following questions.
(a) Construct a 95% confidence interval for the mean driving distance using design A. (6%)
(b) Test the equality of the population variances of driving distance between designs A and B. (7%)
(c) Test the equality of the population means of driving distance between designs A and B. (10%)
(d) If the total sum of squares is 10125.87, then test whether the mean driving distance is the same for all three designs. (12%)

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

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

這一題的完整詳解

核心觀念

本題是同一批 10 位球員各自試打 A、B、C 三種球桿,因此球員是區集,球桿是處理。各小題分別用單一母體平均數的 tt 信賴區間、兩母體變異數的 FF 檢定、配對 tt 檢定,以及隨機區集設計的 ANOVA。

解題方法

原卷表格列出 10 位球員在 A、B、C 三種設計下的距離;各設計的觀測值總和依序為 2878、3116、29742878、3116、2974,平方和依序為 830820、972804、887336830820、972804、887336。第 (d) 題另給三組資料合併後的總平方和 SST=10125.87SST=10125.87。因為每位球員都試打三種設計,球員間的差異應作為區集納入分析。

(a) 設計 A 的平均距離 95% 信賴區間

設計 A 的樣本平均數為

xˉA=287810=287.8.\bar{x}_A=\frac{2878}{10}=287.8.

樣本變異數為

sA2=830820−287821010−1=2531.69=281.289,sA=16.772.s_A^2 =\frac{830820-\frac{2878^2}{10}}{10-1} =\frac{2531.6}{9} =281.289, \qquad s_A=16.772.

母體變異數未知,且題目假設距離服從常態分配,因此使用自由度 9 的 tt 分配:

xˉA±t0.975,9sA10=287.8±2.26216.77210=287.8±11.994.\bar{x}_A\pm t_{0.975,9}\frac{s_A}{\sqrt{10}} =287.8\pm2.262\frac{16.772}{\sqrt{10}} =287.8\pm11.994.

球桿 A 的母體平均距離 95% 信賴區間為

(275.81, 299.79) 碼.(275.81,\ 299.79)\text{ 碼}.

(b) 比較設計 A 與 B 的母體變異數

假設為 H0:σA2=σB2H_0:\sigma_A^2=\sigma_B^2,對立假設為 H1:σA2≠σB2H_1:\sigma_A^2\ne\sigma_B^2。依兩個樣本變異數的常見 FF 檢定計算:

sB2=972804−31162109=1858.49=206.489.s_B^2 =\frac{972804-\frac{3116^2}{10}}{9} =\frac{1858.4}{9} =206.489.

以較大的樣本變異數放在分子:

F=sA2sB2=281.289206.489=1.362,df1=df2=9.F=\frac{s_A^2}{s_B^2} =\frac{281.289}{206.489} =1.362, \qquad df_1=df_2=9.

雙尾檢定在 α=0.05\alpha=0.05 下的臨界值約為 F0.025(9,9)=0.248F_{0.025}(9,9)=0.248 與 F0.975(9,9)=4.026F_{0.975}(9,9)=4.026。因為 1.3621.362 落在不拒絕域內,故不拒絕變異數相等的虛無假設。

設計上的提醒:​這是同一批球員的配對資料,標準兩獨立樣本 FF 檢定要求兩組樣本彼此獨立,與本題的抽樣設計不符。因此以上是常見兩樣本 FF 檢定的計算結果;若嚴格依配對設計推論,不能直接把它視為有效的精確檢定。

(c) 比較設計 A 與 B 的母體平均數

同一位球員分別試打 A、B,因此以球員為配對單位。令差值 di=Bi−Aid_i=B_i-A_i,則 10 個差值為

17, 34, 25, 11, 5, 40, 29, 35, 46, −4.17,\ 34,\ 25,\ 11,\ 5,\ 40,\ 29,\ 35,\ 46,\ -4.

檢定 H0:μd=0H_0:\mu_d=0 對 H1:μd≠0H_1:\mu_d\ne0。差值平均數為

dˉ=23810=23.8.\bar{d}=\frac{238}{10}=23.8.

差值平方和為 80148014,故差值樣本變異數與標準差為

sd2=8014−2382109=2349.69=261.067,sd=16.158.s_d^2 =\frac{8014-\frac{238^2}{10}}{9} =\frac{2349.6}{9} =261.067, \qquad s_d=16.158.

配對 tt 統計量為

t=dˉsd/10=23.816.158/10=4.658,df=9.t=\frac{\bar{d}}{s_d/\sqrt{10}} =\frac{23.8}{16.158/\sqrt{10}} =4.658, \qquad df=9.

雙尾檢定的臨界值為 t0.975,9=2.262t_{0.975,9}=2.262。因為 ∣4.658∣>2.262|4.658|>2.262,拒絕平均差為 0 的虛無假設;在 5% 顯著水準下,A、B 的母體平均距離有顯著差異。由 dˉ=23.8\bar{d}=23.8 可知,樣本中 B 平均比 A 遠 23.823.8 碼。

(d) 比較三種設計的母體平均數

這是隨機區集設計:三種球桿為處理,10 位球員為區集。檢定 H0:μA=μB=μCH_0:\mu_A=\mu_B=\mu_C,對立假設為至少一種設計的母體平均數不同。

處理平方和為

SS設計=28782+31162+2974210−8968230=2867.467.SS_{\text{設計}} =\frac{2878^2+3116^2+2974^2}{10} -\frac{8968^2}{30} =2867.467.
🔒

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

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

免費註冊

第 2 題35 分

We now consider a regression analysis for the same data in Question 1 by employing the overall distance as the response variable, and defining the following dummy variables as explanatory variables:
D1={1if from Design B0otherwiseD_{1}= \begin{cases} 1 & \text{if from Design B} \\ 0 & \text{otherwise} \end{cases}
D2={1if from Design C0otherwiseD_{2}= \begin{cases} 1 & \text{if from Design C} \\ 0 & \text{otherwise} \end{cases}

We then obtain the following regression result.

🖼️【此處有附圖,請對照原卷】

Please answer the following questions.
(a) Write a linear regression model with both D1D_1 and D2D_2 to fit these data, explain each of the terms, and state the assumptions necessary for the model. (8%)
(b) Find the coefficient estimates of constant, D1D_1, and D2D_2. (6%)
(c) Explain the meanings of the estimated coefficients for D1D_1 and D2D_2. (6%)
(d) Show the significances of the coefficient estimates for D1D_1 and D2D_2. (8%)
(e) What is the value of the adjusted R2R^2? (7%)

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

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

這一題的完整詳解

核心觀念

本題考查「類別變數的虛擬變數迴歸」。三種 Design 中,以未設虛擬變數的 Design A 作為基準組:

  • D1=1D_1=1:Design B;否則為 00
  • D2=1D_2=1:Design C;否則為 00

因此,截距代表 Design A 的平均 overall distance,而兩個虛擬變數係數代表相對於 Design A 的平均差異。

題圖僅提供三個係數估計值的標準誤,未提供第 1 題的原始資料或各 Design 的平均 overall distance,因此 (b)、(c)、(d) 的數值結果及 (e) 的調整後 R2R^2 無法唯一計算。以下給出完整定案公式,代入第 1 題資料即可得到數值答案。

(a) 迴歸模型

令 YiY_i 表示第 ii 筆資料的 overall distance,模型為

Yi=β0+β1D1i+β2D2i+εi,i=1,…,n.Y_i=\beta_0+\beta_1D_{1i}+\beta_2D_{2i}+\varepsilon_i,\qquad i=1,\ldots,n.

各項意義如下:

  • YiY_i:第 ii 筆觀察值的 overall distance。
  • β0\beta_0:Design A 的母體平均 overall distance。
  • β1\beta_1:Design B 與 Design A 的平均 overall distance 差異。
  • β2\beta_2:Design C 與 Design A 的平均 overall distance 差異。
  • εi\varepsilon_i:第 ii 筆資料的隨機誤差。

三種 Design 的條件平均數為

E(Yi∣A)=β0,E(Y_i\mid A)=\beta_0, E(Yi∣B)=β0+β1,E(Y_i\mid B)=\beta_0+\beta_1, E(Yi∣C)=β0+β2.E(Y_i\mid C)=\beta_0+\beta_2.

模型的必要假設為:

  1. 線性關係:YiY_i 的條件平均數可由虛擬變數的線性組合表示。
  2. 誤差平均數為零:E(εi∣D1i,D2i)=0E(\varepsilon_i\mid D_{1i},D_{2i})=0。
  3. 誤差彼此獨立。
  4. 誤差具有相同變異數:Var⁡(εi∣D1i,D2i)=σ2\operatorname{Var}(\varepsilon_i\mid D_{1i},D_{2i})=\sigma^2。
  5. 進行小樣本 tt 檢定時,通常另假設 εi\varepsilon_i 服從常態分配。
  6. D1D_1 與 D2D_2 不可同時為 11,且不可出現完全共線性。

(b) 係數估計值

設三組樣本平均數分別為

  • YˉA\bar Y_A:Design A 的平均 overall distance;
  • YˉB\bar Y_B:Design B 的平均 overall distance;
  • YˉC\bar Y_C:Design C 的平均 overall distance。

最小平方法估計值為

β^0=YˉA,\hat\beta_0=\bar Y_A, β^1=YˉB−YˉA,\hat\beta_1=\bar Y_B-\bar Y_A, β^2=YˉC−YˉA.\hat\beta_2=\bar Y_C-\bar Y_A.

因此估計的迴歸式為

Y^i=YˉA+(YˉB−YˉA)D1i+(YˉC−YˉA)D2i.\hat Y_i=\bar Y_A+(\bar Y_B-\bar Y_A)D_{1i} +(\bar Y_C-\bar Y_A)D_{2i}.

題圖提供的標準誤為

SE(β^0)=5.185,SE(\hat\beta_0)=5.185, SE(β^1)=7.333,SE(\hat\beta_1)=7.333, SE(β^2)=7.333.SE(\hat\beta_2)=7.333.

但圖中沒有顯示 YˉA\bar Y_A、YˉB\bar Y_B、YˉC\bar Y_C 或迴歸係數估計值,因此無法寫出三個係數的確切數字。

(c) 係數意義

截距估計值:

β^0=YˉA\hat\beta_0=\bar Y_A

表示 Design A 的預測平均 overall distance。

D1D_1 的係數:

β^1=YˉB−YˉA\hat\beta_1=\bar Y_B-\bar Y_A

表示在其他條件相同下,Design B 的平均 overall distance 相較於 Design A 改變多少:

  • β^1>0\hat\beta_1>0:Design B 平均距離較大;
  • β^1<0\hat\beta_1<0:Design B 平均距離較小;
  • β^1=0\hat\beta_1=0:兩者平均距離相同。

D2D_2 的係數:

β^2=YˉC−YˉA\hat\beta_2=\bar Y_C-\bar Y_A

表示 Design C 的平均 overall distance 相較於 Design A 的差異:

  • β^2>0\hat\beta_2>0:Design C 平均距離較大;
  • β^2<0\hat\beta_2<0:Design C 平均距離較小;
  • β^2=0\hat\beta_2=0:兩者平均距離相同。

若要比較 Design B 與 Design C,應檢定

H0:β1−β2=0,H_0:\beta_1-\beta_2=0,

而不能只分別觀察 β1\beta_1 與 β2\beta_2 是否顯著。

(d) 係數顯著性檢定

對 D1D_1 係數檢定:

H0:β1=0,H1:β1≠0.H_0:\beta_1=0,\qquad H_1:\beta_1\ne 0.

由題圖,

t1=β^17.333.t_1=\frac{\hat\beta_1}{7.333}.

對 D2D_2 係數檢定:

H0:β2=0,H1:β2≠0.H_0:\beta_2=0,\qquad H_1:\beta_2\ne 0.

其檢定統計量為

t2=β^27.333.t_2=\frac{\hat\beta_2}{7.333}.

模型估計了三個參數,因此誤差自由度為

df=n−3.df=n-3.

在顯著水準 α\alpha 下,若

🔒

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

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

免費註冊

第 3 題20 分

A salesperson makes four calls per day. A sample of 100 days gives the following frequencies (days) of sales volumes.

Number of salesDays
030
132
225
310
43

Assuming independent sales calls, the number of successful sales per day should follow a binomial distribution and the sales rate resulted from 30% of all sales calls. Use the goodness of fit test to determinant whether the assumption of a binomial probability distribution should be rejected.

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

這一題的完整詳解

核心觀念

本題考驗「卡方適合度檢定」:

  • 虛無假設 H0H_0:每日成功銷售數 XX 服從二項分配 B(4,0.3)B(4,0.3)。
  • 對立假設 H1H_1:每日成功銷售數不服從 B(4,0.3)B(4,0.3)。
  • 二項分配機率函數為
P(X=x)=(4x)(0.3)x(0.7)4−x,x=0,1,2,3,4.P(X=x)=\binom{4}{x}(0.3)^x(0.7)^{4-x},\qquad x=0,1,2,3,4.

卡方統計量為

χ2=∑(Oi−Ei)2Ei,\chi^2=\sum \frac{(O_i-E_i)^2}{E_i},

其中 OiO_i 為觀察次數,EiE_i 為在 H0H_0 成立下的期望次數。

由於 P(X=4)P(X=4) 所對應的期望次數小於 55,須將尾端類別合併,以符合卡方適合度檢定的使用條件。


解題方法與計算

每天有 44 次獨立銷售電話,且每次成功率為 p=0.3p=0.3,因此

X∼B(4,0.3).X\sim B(4,0.3).

各種銷售量的理論機率如下:

P(X=0)=(40)(0.3)0(0.7)4=0.2401,P(X=0)=\binom{4}{0}(0.3)^0(0.7)^4=0.2401, P(X=1)=(41)(0.3)1(0.7)3=0.4116,P(X=1)=\binom{4}{1}(0.3)^1(0.7)^3=0.4116, P(X=2)=(42)(0.3)2(0.7)2=0.2646,P(X=2)=\binom{4}{2}(0.3)^2(0.7)^2=0.2646, P(X=3)=(43)(0.3)3(0.7)1=0.0756,P(X=3)=\binom{4}{3}(0.3)^3(0.7)^1=0.0756, P(X=4)=(44)(0.3)4=0.0081.P(X=4)=\binom{4}{4}(0.3)^4=0.0081.

樣本共有 100100 天,因此理論期望次數為:

銷售量觀察次數 OiO_i理論機率期望次數 EiE_i
0030300.24010.240124.0124.01
1132320.41160.411641.1641.16
2225250.26460.264626.4626.46
3310100.07560.07567.567.56
44330.00810.00810.810.81

因為 E4=0.81<5E_4=0.81<5,將 X=3X=3 與 X=4X=4 合併:

銷售量觀察次數 OiO_i期望次數 EiE_i
003030$24.01
113232$41.16
222525$26.46
33 或 441313$7.56+0.81=8.37

因此,

🔒

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

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

免費註冊

第 4 題10 分

One of the most common tests for the detection of prostate cancer is the prostate-specific antigen (PSA) test. Suppose there is a 0.23 probability that a male patient has prostate cancer before testing. The probability of a false-positive (tests that come back positive for cancer when no cancer is present) for the SPA test is 0.65, and the probability of a false-negative (no indication of cancer when cancer is actually present) is 0.18.

(a) What is the probability that the male patient has prostate cancer if the PSA test comes back negative? (5%)
(b) What is the probability that the male patient has prostate cancer if the PSA test comes back positive? (5%)

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

這一題的完整詳解

此題考驗貝氏定理 (Bayes' Theorem) 的應用,計算在檢測結果已知的情況下,患有某疾病的機率。

定義事件:

  • CC: 病患患有前列腺癌 (Cancer)。
  • CcC^c: 病患未患有前列腺癌 (No Cancer)。
  • PosPos: PSA 檢測結果為陽性 (Positive)。
  • NegNeg: PSA 檢測結果為陰性 (Negative)。

已知資訊:

  • P(C)=0.23P(C) = 0.23 (患病前驗機率)
  • P(Cc)=1−P(C)=1−0.23=0.77P(C^c) = 1 - P(C) = 1 - 0.23 = 0.77 (未患病前驗機率)
  • P(Pos∣Cc)=0.65P(Pos | C^c) = 0.65 (假陽性率:無癌症但檢測為陽性)
  • P(Neg∣C)=0.18P(Neg | C) = 0.18 (假陰性率:有癌症但檢測為陰性)

推導其他機率:

  • P(Neg∣Cc)=1−P(Pos∣Cc)=1−0.65=0.35P(Neg | C^c) = 1 - P(Pos | C^c) = 1 - 0.65 = 0.35 (真陰性率:無癌症且檢測為陰性)
  • P(Pos∣C)=1−P(Neg∣C)=1−0.18=0.82P(Pos | C) = 1 - P(Neg | C) = 1 - 0.18 = 0.82 (真陽性率:有癌症且檢測為陽性)

(a) 計算 P(C∣Neg)P(C | Neg)
我們想知道,如果檢測結果為陰性,病患患有癌症的機率。
根據貝氏定理:
P(C∣Neg)=P(Neg∣C)P(C)P(Neg)P(C | Neg) = \frac{P(Neg | C) P(C)}{P(Neg)}

首先,我們需要計算 P(Neg)P(Neg) (檢測結果為陰性的總機率)。
P(Neg)=P(Neg∣C)P(C)+P(Neg∣Cc)P(Cc)P(Neg) = P(Neg | C) P(C) + P(Neg | C^c) P(C^c)
P(Neg)=(0.18)(0.23)+(0.35)(0.77)P(Neg) = (0.18)(0.23) + (0.35)(0.77)
P(Neg)=0.0414+0.2695=0.3109P(Neg) = 0.0414 + 0.2695 = 0.3109

🔒

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

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

免費註冊

第 5 題

(此題掃描不清,無法辨識,請參考原卷)

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 3 頁原卷第 4 頁原卷第 5 頁原卷第 6 頁

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

這一題的完整詳解

題目資訊不足

🔒

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

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

免費註冊

其他考古題