109 年 國立政治大學經濟學系碩士班《統計學》
第 1 題20 分
The owners of the Happy Mall wished to study customer shopping habits. From earlier studies, the owners were under the impression that a typical shopper spends 0.75 hour at all the mall, with a standard deviation of 0.10 hour. Recently the mall owners added some specially restaurants designed to keep shoppers in the mall longer. The consulting firm, Brunner and Swanson Marketing Enterprises, was hired to evaluate the effects of the restaurants. A sample of 45 shoppers by Brunner and Swanson revealed that the mean time spent in the mall had increased to 0.80 hour. Suppose the mean shopping time actually increased from 0.75 hour to 0.79 hours. What is the probability of making a Type II error?
登入後即可作答並保存紀錄。
核心觀念
本題考查單一母體平均數的右尾檢定,以及第二類錯誤(Type II error)。
-
原先平均購物時間為 小時。
-
餐廳加入後,研究目的在判斷平均時間是否增加,因此採右尾檢定:
-
第二類錯誤是「實際平均數已增加,但檢定結果未拒絕虛無假設」。
-
已知母體標準差 ,樣本數 ,故樣本平均數的標準誤為:
題目未明確給定顯著水準,因此依題目提供的樣本平均數 ,將 視為拒絕域的臨界值。
解題方法
當實際平均數為 小時時,第二類錯誤表示樣本平均數未達到臨界值 :
由中央極限定理,樣本平均數近似服從常態分配:
標準化:
因此:
計算臨界值:
所以:
查標準常態分配表:
第 2 題30 分
The following output was obtained from a multiple regression analysis.
🖼️【此處有附圖,請對照原卷】
Analysis of Variance
| Source | DF | SS |
|---|---|---|
| Regression | * | 100 |
| Residual Error | 20 | * |
| Total | 25 | 140 |
| Predictor | Coefficient | SE Coefficient |
|---|---|---|
| Constant | 3.00 | 1.50 |
| X1 | 4.00 | 3.00 |
| X2 | 3.00 | 0.20 |
| X3 | 0.20 | 0.05 |
| X4 | -2.50 | 1.00 |
| X5 | 3.00 | 4.00 |
(1) (15%) Conduct a global test of hypothesis to determine whether any of the regression coefficients are significant. State null and alternate hypotheses. Identify the test statistic, and formulate a decision rule. Use the 0.05 significance level.
(2) (15%) Test the regression coefficients individually. Would you consider omitting any variable(s)? If so, which one(s)? Use the 0.05 significance level.
登入後即可作答並保存紀錄。
核心觀念
本題考查多元線性迴歸分析(Multiple Linear Regression Analysis)的變異數分析表(ANOVA Table)補完、全體檢定(Global -Test)以及個別迴歸係數的 檢定(Individual -Tests)與變數篩選。
- ANOVA 表恆等式:
- 自由度關係:,其中總自由度為 、迴歸自由度為自變數個數 、殘差自由度為 。
- 平方和關係:。
- 均方(Mean Square):
- 全體檢定(Global Test of Hypothesis):
檢定模型中所有自變數是否對應變數具有整體聯合解釋力。- 虛無假說
- 對立假說
- 檢定統計量:
- 個別係數檢定(Individual -Tests)與變數剔除:
檢定在控制其他變數條件下,單一自變數的邊際貢獻是否顯著。- 虛無假說 對抗
- 檢定統計量:
- 變數篩選原則:若 (未達顯著水準),表示該變數對模型無顯著邊際貢獻,應考慮自模型中剔除(omit)。
解題方法
由原卷附圖可讀出:ANOVA 表中 、、、;自變數共有 至 計 5 個,並附有各變數的估計係數(Coefficient)與標準誤(SE Coefficient)。
步驟一:補齊 ANOVA 表關鍵數據
- 自由度(DF): 此處自變數個數 ,樣本數 。
- 平方和(SS):
- 均方(MS):
步驟二:第 (1) 小題——全體檢定(Global Test)
- 陳述假說(State Hypotheses):
- 確定檢定統計量(Test Statistic):
在 成立下,檢定統計量服從分子自由度 5、分母自由度 20 的 分配: - 制定決策法則(Decision Rule):
顯著水準 。查自由度 之 分配臨界值: 決策法則為:- 若 ,則拒絕 。
- 若 ,則無法拒絕 。
- 統計結論:
由於計算值 ,落入拒絕域,故在 顯著水準下拒絕 。
這表示該迴歸模型具備整體顯著性,即自變數中至少有一個能有效解釋應變數的變異。
步驟三:第 (2) 小題——個別係數檢定與變數剔除
- 陳述假說(對各 ):
- 檢定統計量與分配:
- 臨界值與決策法則:
採雙尾檢定,顯著水準 。自由度為 20 的 分配雙尾臨界值為: (若參考卷末常態近似值,則臨界值為 ,兩者判斷結論完全一致)
決策法則為:若 ,則拒絕 (顯著);若 ,則無法拒絕 (不顯著)。 - 各變數 值計算與個別檢定結果:
- : 因為 ,無法拒絕 ,變數 不顯著。
- : 因為 ,拒絕 ,變數 高度顯著。
- : 因為 ,拒絕 ,變數 顯著。
- : 因為 ,拒絕 ,變數 顯著。
- : 因為 ,無法拒絕 ,變數 不顯著。
- 是否考慮剔除變數:
第 3 題20 分
Shank's Inc., a nationwide advertising firm, wants to know whether the size of an advertisement and the color of the advertisement make a difference in the response of magazine readers. A random sample of readers is shown ads of four different colors and three different sizes. Each reader is asked to give the particular combination of size and color a rating between 1 and 10. Assume that the ratings follow the normal distribution. The rating for each combination is shown in the following table (for example, the rating for small red ad is 2).
🖼️【此處有附圖,請對照原卷】
Color of Ad
| Size of Ad | Red | Blue | Orange | Green |
|---|---|---|---|---|
| Small | 2 | 3 | 3 | 8 |
| Medium | 3 | 5 | 6 | 7 |
| Large | 6 | 7 | 8 | 8 |
Is there a difference in the effectiveness of an advertisement by color and by size? Use the 0.05 level of significance.
登入後即可作答並保存紀錄。
核心觀念
本題屬於無重複試驗之二因子變異數分析(Two-way ANOVA without replication),在實驗設計中亦稱為隨機完全區集設計(Randomized Block Design, RBD)。
-
統計模型:
設 為第 種廣告尺寸(Size)與第 種廣告顏色(Color)的讀者評分:其中:
- (尺寸水準數 :Small, Medium, Large)
- (顏色水準數 :Red, Blue, Orange, Green)
- 為尺寸效應,滿足
- 為顏色效應,滿足
- 為隨機誤差項
- 因各細格(cell)僅有單一觀測值(),無法獨立分離交互作用項,故交互作用與隨機誤差合併。
-
平方和與自由度分割:
總變異可完全拆解為列效應、行效應與誤差項:對應之自由度關係為:
總觀測值個數 。
-
假設檢定:
- 檢定尺寸效果(Size):
(廣告尺寸無顯著差異)
至少有一個
檢定統計量: - 檢定顏色效果(Color):
(廣告顏色無顯著差異)
至少有一個
檢定統計量:
- 檢定尺寸效果(Size):
解題方法
依據原卷表格,橫向為廣告顏色(Color:Red, Blue, Orange, Green,共 行),縱向為廣告尺寸(Size:Small, Medium, Large,共 列),每格有一筆評分資料,共計 12 筆觀測值。
步驟一:彙整基本總和數據
-
各列總和(尺寸 Size,):
- Small ():
- Medium ():
- Large ():
-
各行總和(顏色 Color,):
- Red ():
- Blue ():
- Orange ():
- Green ():
-
全體總和 與平方和:
所有觀測值之平方和:
步驟二:計算各項平方和(SS)
-
校正項(Correction Factor, ):
-
總平方和():
-
尺寸平方和():
-
顏色平方和():
-
誤差平方和():
步驟三:計算均方(MS)與檢定統計量(F)
-
各自由度:
-
各均方值:
第 4 題15 分
The production manager of MPS Audio Systems Inc. is concerned about the idle time of workers. In particular, he would like to know if there is a difference in the idle minutes for workers on the day shift and the evening shift. The information below is the number of idle minutes yesterday for the five day-shift workers and the six evening-shift workers. Use the 0.05 significance level.
| Day Shift | Evening Shift |
|---|---|
| 92 | 96 |
| 103 | 114 |
| 116 | 80 |
| 81 | 82 |
| 89 | 88 |
| 91 |
🖼️【此處有附圖,請對照原卷】
登入後即可作答並保存紀錄。
核心觀念
本題考查兩獨立樣本平均數差異之假說檢定(Two-Independent-Sample -test)。
當兩獨立母體皆服從常態分配、母體變異數未知但假設相等(),且樣本數為小樣本()時,採用合併變異數雙樣本 檢定(Pooled-variance two-sample -test)。
相關定義與計算公式如下:
- 假說設定:檢定兩班別之平均閒置時間是否有顯著差異(雙尾檢定,Two-tailed test):
- 虛無假說:(即 )
- 對立假說:(即 )
- 樣本統計量:
- 樣本平均數:、
- 樣本變異數:、
- 合併變異數(Pooled Variance):
- 檢定統計量:
- 決策法則(Decision Rule):
在顯著水準 下,若 ,則拒絕 ;反之,若 ,則不拒絕 。
解題方法
對照原卷第 2 頁第 4 題所附資料表,日班(Day Shift,記為組 1)樣本數為 ,觀測值分別為 分鐘;晚班(Evening Shift,記為組 2)樣本數為 ,觀測值分別為 分鐘。顯著水準設定為 。
完整的五步驟假說檢定推導如下:
步驟一:建立假說(State the Hypotheses)
生產經理關心兩班別工人的平均閒置時間是否存在差異,故建立雙尾檢定:
- 虛無假說 (日班與晚班工人的平均閒置時間無顯著差異)
- 對立假說 (日班與晚班工人的平均閒置時間有顯著差異)
步驟二:檢定統計量與分配(Test Statistic & Sampling Distribution)
在常態母體且變異數相等()的假設下,檢定統計量為:
在 為真下,該統計量服從自由度 的學生氏 分配(Student's -distribution)。
步驟三:顯著水準與拒絕域(Significance Level & Decision Rule)
- 給定顯著水準 ,雙尾檢定各尾端面積為 。
- 自由度 時之雙尾臨界值為:
- 決策法則:若檢定統計量 或 (即 ),則拒絕 ;否則不拒絕 。
步驟四:計算樣本統計量與檢定統計量值(Computation)
- 日班(Day Shift, ):
- 總和:
- 樣本平均數:
- 離均差平方和():
- 樣本變異數:
- 晚班(Evening Shift, ):
- 總和:
- 樣本平均數:
- 平方和:
- 離均差平方和():
- 樣本變異數:
- 合併變異數與標準誤(Pooled Variance & Standard Error):
兩樣本平均數差的估計標準誤為:
第 5 題15 分
An investigation of the effectiveness of an antibacterial soap in reducing operating room contamination resulted in the accompanying table. The new soap was tested in a sample of eight operating rooms in the greater Seattle area during the last year. The following table reports the contamination levels before and after the use of the soap for each operating room.
🖼️【此處有附圖,請對照原卷】
| Operating Room | A | B | C | D | E | F | G | H |
|---|---|---|---|---|---|---|---|---|
| Before | 6.6 | 6.5 | 9.0 | 10.3 | 11.2 | 8.1 | 6.3 | 11.6 |
| After | 6.8 | 2.4 | 7.4 | 8.5 | 8.1 | 6.1 | 3.4 | 2.0 |
At the 0.05 significance level, can we conclude the contamination measurements are lower after use of the new soap?
登入後即可作答並保存紀錄。
核心觀念
本題考查成對樣本(相依樣本)平均數差異的假設檢定(Paired Difference -test / Dependent Samples -test):
- 成對樣本特性:同一組 間手術室在「使用前(Before)」與「使用後(After)」分別測量污染指數,兩組樣本非獨立,存在自然配對關係,應以各對差值 進行分析以消除個體間的背景差異。
- 檢定統計量:設差值母體服從常態分配,在母體差值標準差未知且小樣本()條件下,採用單樣本成對 檢定: 其中 為樣本平均差值, 為樣本差值標準差, 為自由度。
解題方法
從原卷第 2 頁第 5 題表格讀取關鍵數據:樣本包含 8 間手術室(A 至 H),各手術室在使用肥皂前(Before)的污染指數依序為 ;使用後(After)依序為 。
步驟一:計算成對差值及其統計量
定義差值為 (若污染減少,則 Before After,差值 ):
- 手術室 A:
- 手術室 B:
- 手術室 C:
- 手術室 D:
- 手術室 E:
- 手術室 F:
- 手術室 G:
- 手術室 H:
計算差值總和與平方和:
計算樣本差值變異數 與標準差 :
計算平均差值的標準誤 :
步驟二:建立假設檢定
研究欲證實「使用新肥皂後,污染指數顯著降低」,即 Before 的平均值高於 After,故建立右尾檢定:
步驟三:計算檢定統計量
步驟四:決策法則(Decision Rule)
- 顯著水準:
- 自由度:
- 單尾檢定臨界值:查 分配表得
- 拒絕域: