110 年 國立政治大學統計學系碩士班《統計方法》
第 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%)
登入後即可作答並保存紀錄。
核心觀念
本題是同一批 10 位球員各自試打 A、B、C 三種球桿,因此球員是區集,球桿是處理。各小題分別用單一母體平均數的 信賴區間、兩母體變異數的 檢定、配對 檢定,以及隨機區集設計的 ANOVA。
解題方法
原卷表格列出 10 位球員在 A、B、C 三種設計下的距離;各設計的觀測值總和依序為 ,平方和依序為 。第 (d) 題另給三組資料合併後的總平方和 。因為每位球員都試打三種設計,球員間的差異應作為區集納入分析。
(a) 設計 A 的平均距離 95% 信賴區間
設計 A 的樣本平均數為
樣本變異數為
母體變異數未知,且題目假設距離服從常態分配,因此使用自由度 9 的 分配:
球桿 A 的母體平均距離 95% 信賴區間為
(b) 比較設計 A 與 B 的母體變異數
假設為 ,對立假設為 。依兩個樣本變異數的常見 檢定計算:
以較大的樣本變異數放在分子:
雙尾檢定在 下的臨界值約為 與 。因為 落在不拒絕域內,故不拒絕變異數相等的虛無假設。
設計上的提醒:這是同一批球員的配對資料,標準兩獨立樣本 檢定要求兩組樣本彼此獨立,與本題的抽樣設計不符。因此以上是常見兩樣本 檢定的計算結果;若嚴格依配對設計推論,不能直接把它視為有效的精確檢定。
(c) 比較設計 A 與 B 的母體平均數
同一位球員分別試打 A、B,因此以球員為配對單位。令差值 ,則 10 個差值為
檢定 對 。差值平均數為
差值平方和為 ,故差值樣本變異數與標準差為
配對 統計量為
雙尾檢定的臨界值為 。因為 ,拒絕平均差為 0 的虛無假設;在 5% 顯著水準下,A、B 的母體平均距離有顯著差異。由 可知,樣本中 B 平均比 A 遠 碼。
(d) 比較三種設計的母體平均數
這是隨機區集設計:三種球桿為處理,10 位球員為區集。檢定 ,對立假設為至少一種設計的母體平均數不同。
處理平方和為
第 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:
We then obtain the following regression result.
🖼️【此處有附圖,請對照原卷】
Please answer the following questions.
(a) Write a linear regression model with both and 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, , and . (6%)
(c) Explain the meanings of the estimated coefficients for and . (6%)
(d) Show the significances of the coefficient estimates for and . (8%)
(e) What is the value of the adjusted ? (7%)
登入後即可作答並保存紀錄。
核心觀念
本題考查「類別變數的虛擬變數迴歸」。三種 Design 中,以未設虛擬變數的 Design A 作為基準組:
- :Design B;否則為
- :Design C;否則為
因此,截距代表 Design A 的平均 overall distance,而兩個虛擬變數係數代表相對於 Design A 的平均差異。
題圖僅提供三個係數估計值的標準誤,未提供第 1 題的原始資料或各 Design 的平均 overall distance,因此 (b)、(c)、(d) 的數值結果及 (e) 的調整後 無法唯一計算。以下給出完整定案公式,代入第 1 題資料即可得到數值答案。
(a) 迴歸模型
令 表示第 筆資料的 overall distance,模型為
各項意義如下:
- :第 筆觀察值的 overall distance。
- :Design A 的母體平均 overall distance。
- :Design B 與 Design A 的平均 overall distance 差異。
- :Design C 與 Design A 的平均 overall distance 差異。
- :第 筆資料的隨機誤差。
三種 Design 的條件平均數為
模型的必要假設為:
- 線性關係: 的條件平均數可由虛擬變數的線性組合表示。
- 誤差平均數為零:。
- 誤差彼此獨立。
- 誤差具有相同變異數:。
- 進行小樣本 檢定時,通常另假設 服從常態分配。
- 與 不可同時為 ,且不可出現完全共線性。
(b) 係數估計值
設三組樣本平均數分別為
- :Design A 的平均 overall distance;
- :Design B 的平均 overall distance;
- :Design C 的平均 overall distance。
最小平方法估計值為
因此估計的迴歸式為
題圖提供的標準誤為
但圖中沒有顯示 、、 或迴歸係數估計值,因此無法寫出三個係數的確切數字。
(c) 係數意義
截距估計值:
表示 Design A 的預測平均 overall distance。
的係數:
表示在其他條件相同下,Design B 的平均 overall distance 相較於 Design A 改變多少:
- :Design B 平均距離較大;
- :Design B 平均距離較小;
- :兩者平均距離相同。
的係數:
表示 Design C 的平均 overall distance 相較於 Design A 的差異:
- :Design C 平均距離較大;
- :Design C 平均距離較小;
- :兩者平均距離相同。
若要比較 Design B 與 Design C,應檢定
而不能只分別觀察 與 是否顯著。
(d) 係數顯著性檢定
對 係數檢定:
由題圖,
對 係數檢定:
其檢定統計量為
模型估計了三個參數,因此誤差自由度為
在顯著水準 下,若
第 3 題20 分
A salesperson makes four calls per day. A sample of 100 days gives the following frequencies (days) of sales volumes.
| Number of sales | Days |
|---|---|
| 0 | 30 |
| 1 | 32 |
| 2 | 25 |
| 3 | 10 |
| 4 | 3 |
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.
登入後即可作答並保存紀錄。
核心觀念
本題考驗「卡方適合度檢定」:
- 虛無假設 :每日成功銷售數 服從二項分配 。
- 對立假設 :每日成功銷售數不服從 。
- 二項分配機率函數為
卡方統計量為
其中 為觀察次數, 為在 成立下的期望次數。
由於 所對應的期望次數小於 ,須將尾端類別合併,以符合卡方適合度檢定的使用條件。
解題方法與計算
每天有 次獨立銷售電話,且每次成功率為 ,因此
各種銷售量的理論機率如下:
樣本共有 天,因此理論期望次數為:
| 銷售量 | 觀察次數 | 理論機率 | 期望次數 |
|---|---|---|---|
因為 ,將 與 合併:
| 銷售量 | 觀察次數 | 期望次數 |
|---|---|---|
| $24.01 | ||
| $41.16 | ||
| $26.46 | ||
| 或 | $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) 的應用,計算在檢測結果已知的情況下,患有某疾病的機率。
定義事件:
- : 病患患有前列腺癌 (Cancer)。
- : 病患未患有前列腺癌 (No Cancer)。
- : PSA 檢測結果為陽性 (Positive)。
- : PSA 檢測結果為陰性 (Negative)。
已知資訊:
- (患病前驗機率)
- (未患病前驗機率)
- (假陽性率:無癌症但檢測為陽性)
- (假陰性率:有癌症但檢測為陰性)
推導其他機率:
- (真陰性率:無癌症且檢測為陰性)
- (真陽性率:有癌症且檢測為陽性)
(a) 計算
我們想知道,如果檢測結果為陰性,病患患有癌症的機率。
根據貝氏定理:
首先,我們需要計算 (檢測結果為陰性的總機率)。
第 5 題
(此題掃描不清,無法辨識,請參考原卷)
登入後即可作答並保存紀錄。