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%)
登入後即可作答並保存紀錄。
此題為單因子變異數分析 (One-way ANOVA) 的應用,包含信賴區間估計、變異數相等性檢定、平均數相等性檢定以及整體變異數分析。
首先,我們需要從題目提供的表格中提取設計 A、B、C 的數據,並計算各組的平均數、變異數、樣本數等統計量。
數據整理:
樣本數 (共 10 位球員)
設計 A:
設計 B:
設計 C:
(a) 95% 信賴區間 for
信賴區間的公式為 。
在這裡,, 。
信賴水準為 95%,,。
自由度 。
查 t 分配表,當 且 時,。
信賴區間為:
信賴區間為 。
【答案】
(b) 檢定變異數相等性: vs.
我們使用 F 檢定進行變異數相等性檢定。檢定統計量為 (或 ,取較大的作為分子)。
自由度為 。
顯著水準 。
因為是雙尾檢定,我們需要比較 F 值與 。
查 F 分配表,當 且 時,。
由於 ,我們無法拒絕虛無假說,認為設計 A 和設計 B 的母體變異數相等。
【答案】無法拒絕 。
(c) 檢定平均數相等性: vs.
由於在 (b) 中我們未能拒絕變異數相等的假設,我們可以使用合併變異數的 t 檢定。
第 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 改變多少:
第 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.
登入後即可作答並保存紀錄。
核心觀念
本題考驗「卡方適合度檢定」:
- 虛無假設 :每日成功銷售數 服從二項分配 。
- 對立假設 :每日成功銷售數不服從 。
- 二項分配機率函數為
卡方統計量為
其中 為觀察次數, 為在 成立下的期望次數。
由於 所對應的期望次數小於 ,須將尾端類別合併,以符合卡方適合度檢定的使用條件。
解題方法與計算
每天有 次獨立銷售電話,且每次成功率為 ,因此
各種銷售量的理論機率如下:
樣本共有 天,因此理論期望次數為:
| 銷售量 | 觀察次數 | 理論機率 | 期望次數 |
|---|---|---|---|
因為 ,將 與 合併:
第 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 題
(此題掃描不清,無法辨識,請參考原卷)
登入後即可作答並保存紀錄。