112 年 國立政治大學經濟學系碩士班《統計學》
第 1 題25 分
There are four restaurants in the Northtown area. The numbers of burgers sold at the respective restaurants for each of the last 6 weeks are shown below. At the .05 significance level, what is the value of the test statistic and is there a difference in the mean number sold among the four restaurants when the factor of week is considered?
Restaurant
| Week | Metro | Interstate | University | River |
|---|---|---|---|---|
| 1 | 124 | 160 | 320 | 190 |
| 2 | 234 | 220 | 340 | 230 |
| 3 | 430 | 290 | 290 | 240 |
| 4 | 105 | 245 | 310 | 170 |
| 5 | 240 | 205 | 280 | 180 |
| 6 | 310 | 260 | 270 | 205 |
登入後即可作答並保存紀錄。
核心觀念
本題探討在考慮「週次(Week)」作為區集因子(Blocking factor)的情境下,檢定「餐廳(Restaurant)」之間的平均漢堡銷售量是否有顯著差異。此架構屬於隨機完全區集設計(Randomized Complete Block Design, RCBD),亦即無重複試驗的二因子變異數分析(Two-Way ANOVA without Replication)。
1. 統計模型
設 為第 間餐廳在第 週的漢堡銷售量,模型表示為:
其中:
- 為總體平均數。
- 為區集效應(週次效應),(區集數 週)。
- 為處理效應(餐廳效應),(處理數 間餐廳)。
- 為獨立隨機誤差項。
2. 假設檢定
針對主要研究目的「餐廳平均銷量是否不同」,設定虛無假設與對立假設:
- 虛無假設 (四間餐廳的平均漢堡銷量無差異,即 )
- 對立假設 不全為 0(至少有兩間餐廳的平均銷量存在差異)
3. 檢定統計量與拒絕域
將總變異平方和分解為:。
檢定餐廳處理效應之檢定統計量為:
在 成立下,。
在顯著水準 下,若 ,則拒絕 。
解題方法
由原卷第 1 頁圖形表格可讀出:資料為 4 間餐廳(Metro、Interstate、University、River)在連續 6 週(Week 1 至 Week 6)之每週漢堡銷售量,處理數 、區集數 ,總觀測值個數 。
步驟一:計算各處理總和、各區集總和與總和
各餐廳欄總和():
- Metro ():
- Interstate ():
- University ():
- River ():
各週列總和():
- Week 1 ():
- Week 2 ():
- Week 3 ():
- Week 4 ():
- Week 5 ():
- Week 6 ():
全體總和(Grand Total, ):
校正項(Correction Factor, ):
步驟二:計算各項平方和(Sum of Squares)
- 原始資料平方和:
總平方和():
自由度 。
- 餐廳處理平方和():
自由度 。
- 週次區集平方和():
自由度 。
- 隨機誤差平方和():
自由度 。
步驟三:計算均方(Mean Square)與檢定統計量
- 處理均方():
- 誤差均方():
- 檢定統計量 :
步驟四:編製變異數分析表(ANOVA Table)
| 變異來源 (Source) | 平方和 (SS) | 自由度 (df) | 均方 (MS) | 檢定統計量 |
|---|
第 2 題25 分
For many years, TV executives used the guideline that 30% of the audience were watching each of the traditional big three prime-time networks and 10% were watching cable stations on a weekday night. A random sample of 500 viewers in the Tampa-St. Petersburg, Florida, area last Monday night showed that 165 homes were tuned in to the ABC affiliate, 140 to the CBS affiliate, and 125 to the NBC affiliate, with the remainder viewing a cable station. What is the value of the test statistic? At the .05 significance level, can we conclude that the guideline is still reasonable? What is the value of the test statistic?
登入後即可作答並保存紀錄。
核心觀念
本題考察「卡方適合度檢定(chi-square goodness-of-fit test)」,用來判斷樣本觀察到的各類別比例,是否符合既定的母體比例。
假設:
- :觀眾收視比例仍為 ABC、CBS、NBC 各 ,有線電視 。
- :實際收視比例不符合上述指導比例。
卡方檢定統計量為
其中 為觀察次數, 為在 成立下的期望次數。
解題方法
樣本數為 。依據既定比例,各類別的期望次數為:
| 頻道類別 | 觀察次數 | 比例 | 期望次數 |
|---|---|---|---|
| ABC | 165 | ||
| CBS | 140 | ||
| NBC | 125 | ||
| 有線電視 |
因此,
故檢定統計量為
類別數為 ,且沒有從資料估計參數,因此自由度為
第 3 題20 分
An investigation of the effectiveness of a training program to improve customer relationships included a pre-training and a post-training customer survey. To compare the differences, they computed (post-training survey score - pre-training survey score). Seven customers were randomly selected and completed both surveys. The results are shown below. For a 0.05 significance level, what is the value of the test statistic and the decision regarding the hypothesis that the training was effective in improving customer relationships?
The information of question 3.
| Customer | Pre-training Survey | Post-training Survey |
|---|---|---|
| A | 6 | 8 |
| B | 5 | 5 |
| C | 10 | 10 |
| D | 7 | 10 |
| E | 6 | 8 |
| F | 5 | 6 |
| G | 2 | 8 |
登入後即可作答並保存紀錄。
核心觀念
本題評量成對樣本 檢定(Paired -test / Dependent Samples -test)之應用。
- 成對資料結構:針對同一組受試者(7 位顧客)在訓練前後進行重複量測,兩組分數非互相獨立,應將各成對觀測值轉化為單一差值變數:
- 常態母體假設:假設差值母體服從常態分配 ,且母體變異數 未知。
- 檢定統計量(Test Statistic):
以樣本差值平均數 與樣本差值標準差 建構 統計量: 其中自由度為 。
解題方法
依考卷第 1 頁與第 2 頁附圖資訊,本題調查 7 位隨機抽樣顧客( 至 )在訓練前後的滿意度問卷分數,定義差異值為 ,欲在顯著水準 下檢定此訓練計畫是否顯著有效提升顧客關係。
步驟一:整理樣本數據並計算差值
根據題意與表格數值,逐一計算差值 與離差平方 :
| 顧客 (Customer) | 訓練前 () | 訓練後 () | 差值 | 離差 | 離差平方 |
|---|---|---|---|---|---|
| A | 6 | 8 | |||
| B | 5 | 5 | |||
| C | 10 | 10 | |||
| D | 7 | 10 | |||
| E | 6 | 8 | |||
| F | 5 | 6 | |||
| G | 2 | 8 | |||
| 合計 |
樣本數為 。
步驟二:計算樣本統計量
- 樣本差值平均數(Sample Mean of Differences):
- 樣本差值變異數與標準差(Sample Standard Deviation of Differences):
- 樣本平均差值的標準誤(Standard Error):
步驟三:設定虛無假說與對立假說
題目欲檢驗訓練是否有效「提升」顧客關係(effective in improving customer relationships),即訓練後分數期望值大於訓練前(),故設立右尾(單尾)檢定:
步驟四:計算檢定統計量(Test Statistic)
在虛無假說 成立的條件下,檢定統計量為:
第 4 題30 分
Suppose that the sales manager of a large automotive parts distributor wants to estimate the total annual sales for each of the company's regions. Five factors appear to be related to regional sales: the number of retail outlets in the region, the number of automobiles in the region registered as of April 1, the total personal income recorded in the first quarter of the year, the average age of the automobiles (years), and the number of sales supervisors in the region. The data for each region were gathered for last year. For example, see the following table. In region 1 there were 1,739 retail outlets stocking the company's automotive parts, there were 9,270,000 registered automobiles in the region as of April 1, and so on. The region's sales for that year were $37,702,000.
(1) (10%) The output for all five variables is shown below. What percent of the variation is explained by the regression equations?
(2) (20%) Some result is shown below. Conduct a global test of hypothesis to determine whether any of the regression coefficients are not zero. State null and alternate hypotheses. Identify and compute the test statistic, and formulate a decision rule. Use the .05 significance level.
| Annual Sales ($millions), y | Number of Retail Outlets, x₁ | Number of Automobiles Registered (millions), x₂ | Personal Income ($billions), x₃ | Average Age of Automobiles (years), x₄ | Number of Supervisors, x₅ |
|---|---|---|---|---|---|
| 37.702 | 1,739 | 9.27 | 85.4 | 3.5 | 9.0 |
| 24.196 | 1,221 | 5.86 | 60.7 | 5.0 | 5.0 |
| 32.055 | 1,846 | 8.81 | 68.1 | 4.4 | 7.0 |
| 3.611 | 120 | 3.81 | 20.2 | 4.0 | 5.0 |
| 17.625 | 1,096 | 10.31 | 33.8 | 3.5 | 7.0 |
| 45.919 | 2,290 | 11.62 | 95.1 | 4.1 | 13.0 |
| 29.600 | 1,687 | 8.96 | 69.3 | 4.1 | 15.0 |
| 8.114 | 241 | 6.28 | 16.3 | 5.9 | 11.0 |
| 20.116 | 649 | 7.77 | 34.9 | 5.5 | 16.0 |
| 12.994 | 1,427 | 10.92 | 15.1 | 4.1 | 10.0 |
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | -19.672 | 5.422 | -3.63 | 0.022 |
| Outlets | -0.0000629 | 0.002638 | -0.24 | 0.823 |
| Automobiles | 1.7399 | 0.55530 | 3.15 | 0.035 |
| Income | 0.40994 | 0.04385 | 9.35 | 0.001 |
| age | 2.0357 | 0.8779 | 2.32 | 0.081 |
| bosses | -0.0344 | 0.1880 | -0.18 | 0.864 |
Analysis of Variance
| Source | DF | SS | MS | F | P |
|---|---|---|---|---|---|
| Regression | 1593.81 | ||||
| Error | 9.08 | ||||
| Total |
登入後即可作答並保存紀錄。
核心觀念
本題考多元線性迴歸的整體配適度與整體顯著性檢定。
決定係數 表示應變數總變異中,能由迴歸模型解釋的比例:
整體 檢定則檢驗五個斜率係數是否同時為零。若拒絕虛無假設,代表至少有一個解釋變數與年銷售額有線性關係。
解題方法
(1)計算迴歸解釋的變異百分比
題目給出迴歸平方和 、誤差平方和 ,所以總平方和為:
因此:
換算成百分比:
答:迴歸模型解釋了約 的年銷售額變異。
(2)進行整體 檢定
令 為五個解釋變數的母體迴歸係數,檢定假設為:
共有 筆資料、 個解釋變數,因此自由度為:
- 迴歸自由度:
- 誤差自由度:
- 總自由度:
補上題目未填的 ANOVA 欄位:
| 來源 | 自由度 | 平方和 | 均方 |
|---|---|---|---|
| 迴歸 | 5 | 1593.81 | |
| 誤差 | 4 | 9.08 | |
| 總計 | 9 | 1602.89 | — |
檢定統計量為: