113 年 國立政治大學金融學系碩士班金融管理組《統計學A》
第 1 題30 分
- (30%) A nationalwise sample survey shows that 40% of adults are committed to eating nutritious food when eating away from home. You decide to conduct a sample survey in your own area. You contact a simple random sample of 10 households by telephone.
(1) Five of the 10 respondents say they are concerned about nutrition. Is this reason to believe that the percent in your area is higher than the national 40%? (10%)
If you plan to contact a simple random sample of 600 households by telephone rather than just 10. Assume that the population proportion of adults concerned about nutritious food, , is true.
(2) What is the probability that lies between 220 and 230? (10%)
(3) What is the probability that 45% or more of respondents say they are concerned about nutrition? (10%)
登入後即可作答並保存紀錄。
本題主要在考驗樣本比例的假設檢定、常態近似二項分配,以及利用中央極限定理處理大樣本問題。
(1) 關於樣本比例的假設檢定
此小題欲判斷樣本比例是否能支持該地區關心營養的比例高於全國平均的 40%。
- 核心觀念: 單一比例的假設檢定。
- 檢定步驟:
- 設定虛無假設 () 與對立假設 ():
- : 該地區關心營養的比例 (即不比全國高)
- : 該地區關心營養的比例 (即比全國高)
- 計算樣本比例:
樣本數 ,其中 5 位表示關心營養。
樣本比例 。 - 計算檢定統計量:
由於樣本數 較小,且我們無法確定 和 是否足夠大(在此 ),故此處應使用二項分配進行精確檢定 (Exact test)。然而,若題目預期我們使用近似方法,則需注意其限制。在此,我們假設題目可能期望使用近似方法,但實際上對小樣本,精確檢定更為合適。
若使用近似方法(z-test),則檢定統計量為:
- 決定檢定區域與 p-value (使用近似方法):
此為右尾檢定。若使用顯著水準 ,則臨界值 。
計算 p-value:。由標準常態分配表可知,此值遠大於 0.05。 - 決策:
由於檢定統計量 (或 p-value > 0.05),我們無法拒絕虛無假設。 - 結論:
沒有足夠的證據顯示該地區關心營養的比例高於全國的 40%。
注意: 對於 的小樣本,使用二項分配進行精確檢定會是更嚴謹的做法。其 p-value 為 ,此計算結果會與近似值不同。若無指定顯著水準,則無法做決策,但題目問「Is this reason to believe」,暗示我們需要判斷證據強度。
- 設定虛無假設 () 與對立假設 ():
(2) 計算 X 介於 220 與 230 的機率
當樣本數變大(),且假設母體比例 為真時,我們可以用中央極限定理將二項分配近似為常態分配。
- 核心觀念: 中央極限定理,二項分配的常態近似。
- 參數設定:
- 二項分配 。
- 近似的常態分配參數:
- 期望值
- 變異數
- 標準差
- 故 。
- 計算機率 (含連續性修正):
我們欲計算 。進行連續性修正後,相當於計算常態分配 。
將 X 轉換為標準常態變數 Z:
第 2 題30 分
- (30%) The average cost per square foot for the office rental space in the central business district is NTD2358 according to a survey. A large real estate company wants to confirm this figure. The rent of per square foot paid by 100 offices in the central business district were investigated by the company. Suppose the sample average is NTD2288 per square foot, with a standard deviation of NTD511.
(1) Conduct a hypothesis test using 0.05 significance level to determine whether the cost per square foot reported by the survey should be rejected. (8%)
(2) If the decision in part (1) is to fail to reject and if the actual average cost per square foot is NTD2230, what is the probability of committing a Type II error? (12%)
(3) The probability of committing a Type II error is set at 0.1 in part (2). How large a sample is necessary to meet requirements? (10%)
登入後即可作答並保存紀錄。
核心觀念
本題考查:
- 單一母體平均數的雙尾假設檢定。
- 母體標準差未知時,使用單一樣本 檢定。
- 第二類錯誤(Type II error)的計算。
- 在指定顯著水準 與第二類錯誤機率 下,反推所需樣本數。
設母體平均租金為 ,題目給定:
解題方法
(1)在 顯著水準下檢定調查結果是否應被拒絕
題目要確認調查報告的平均租金 是否合理,因此採雙尾檢定:
因為母體標準差未知,使用單一樣本 統計量:
代入資料:
自由度為:
雙尾檢定且 ,臨界值為:
拒絕域為:
由於:
因此統計量未落入拒絕域,故:
也就是在 顯著水準下,沒有足夠證據認為實際平均租金不同於 NTD2358,調查報告的數值不應被拒絕。
以 值表示:
因為 ,結論相同。
(2)若實際平均租金為 NTD2230,犯第二類錯誤的機率
第二類錯誤是:
實際平均租金確實不是 NTD2358,但檢定結果卻未拒絕 。
本題假設實際平均數為:
由於樣本數 很大,第二類錯誤機率以常態近似計算。以題目給定的樣本標準差 作為母體標準差估計值,因此:
在雙尾檢定下,採用常態臨界值 ,不拒絕域為:
代入數值:
因此:
當實際平均數為 時:
所以第二類錯誤機率為:
標準化:
計算兩端:
因此:
查標準常態分配表:
故:
因此,若實際平均租金為 NTD2230,卻未拒絕調查報告的機率約為:
(3)使第二類錯誤機率為 所需的樣本數
本小題要求:
實際平均數仍為:
而虛無假設平均數為:
第 3 題28 分
- (28%) A company wants to understand the impact of employee job satisfaction (score, , the higher the score, the higher the satisfaction) and their working experience (years, ), salary (NTDX_2X_3X_1X_2X_3$ | -5.95 | 3.30
SST=722.5,
Here SST is the total sum of squares and is the estimate of the standard deviation of the regression error.
(1) With a significance level of 0.05, test the significance of each regression coefficient in details and clearly. , test statistic, etc. (12%)
(2) Calculate the adjusted coefficient of determination. (8%)
(3) Give the definition of the mean squared error (MSE), describe its meaning, and calculate MSE value. (8%)
登入後即可作答並保存紀錄。
本題主要考驗複迴歸分析的假設檢定、判定係數的調整,以及均方誤差 (MSE) 的概念與計算。
題目資訊整理:
- 樣本數:
- 迴歸模型:
- 估計結果:
- ,
- ,
- ,
- ,
- 總變異數 (SST):
- 殘差標準差 (估計值):
注意: 是殘差標準差的估計值,即 。
(1) 檢定各迴歸係數的顯著性
-
核心觀念: 複迴歸中,對個別迴歸係數進行 t 檢定,判斷其是否顯著異於零。
-
檢定步驟 (對每個係數):
- 設定假設:
- 虛無假設 (): (該自變數對應的迴歸係數不顯著)
- 對立假設 (): (該自變數對應的迴歸係數顯著)
- 計算檢定統計量:
使用 t 統計量: - 決定臨界值與自由度:
顯著水準 (雙尾檢定)。
自由度 (degree of freedom, df) = ,其中 是樣本數, 是自變數的個數。
在此,, (X1, X2, X3)。
所以,。
臨界值為 。查 t 分配表可知,。 - 決策:
若 ,則拒絕 。
- 設定假設:
-
對各迴歸係數進行檢定:
-
Intercept ():
- 。
- 決策: 無法拒絕 。
- 結論: Intercept 在 0.05 顯著水準下不顯著。
-
(Working Experience):
- 。
- 決策: 拒絕 。
- 結論: 在 0.05 顯著水準下顯著。這表示工作經驗對員工滿意度有顯著影響(每增加一年的工作經驗,預期滿意度增加 8.60 分)。
-
(Salary):
- 。
- 決策: 無法拒絕 。
- 結論: 在 0.05 顯著水準下不顯著。
-
(Gender):
- 。
- 決策: 無法拒絕 。
- 結論: 在 0.05 顯著水準下不顯著。
總結檢定結果:
只有工作經驗 () 在 0.05 顯著水準下對員工工作滿意度有顯著影響。 -
(2) 計算調整後判定係數 ()
- 核心觀念: 調整後判定係數用於衡量迴歸模型解釋因變數變異的比例,並考慮了模型中自變數的數量,能更公平地比較不同複雜度模型的擬合優度。
- 公式:
其中:- = 樣本數 = 25
- = 自變數個數 = 3
- = 殘差自由度 =
- = 總自由度 =
第 4 題12 分
- (12%) A safety director samples at random from the file of minor accidents and classified them according to the time the accident took place
Time | Number of Accidents
---|---
8 up to 9 A.M. | 6
9 up to 10 A.M. | 8
10 up to 11 A.M. | 18
11 up to 12 P.M. | 9
Time | Number of Accidents
---|---
1 up to 2 P.M. | 5
2 up to 3 P.M. | 13
3 up to 4 P.M. | 17
4 up to 5 P.M. | 9
At the 0.02 significance level, can we conclude whether the accidents are evenly distributed throughout the day?
🖼️【此處有附圖,請對照原卷】
Table of the Chi-square Distribution
登入後即可作答並保存紀錄。
核心觀念
本題評量卡方適合度檢定(Chi-Square Goodness-of-Fit Test),用於檢驗單一多項母體之各類別比例是否符合特定之理論分佈(本題為離散型均勻分配)。
主要公式與定義如下:
- 假設設定:
- 虛無假設 :事故在日間各時段均勻分佈,即 。
- 對立假設 :事故在日間各時段並非均勻分佈(至少有一個 )。
- 期望次數(Expected Frequency): 其中 為總樣本數, 為 下第 類別的理論機率。
- 卡方檢定統計量(Test Statistic): 其中 為第 類別的觀察次數(Observed Frequency)。在 成立且各組期望次數皆大於等於 的大樣本條件下,該統計量近似服從自由度 的卡方分配。
- 決策法則:
給定顯著水準 ,若檢定統計量 ,則落入拒絕域,決策為拒絕 ;反之則不拒絕 。
解題方法
考卷第 2 頁附圖「Table of the Chi-square Distribution」定義右上尾面積為 、列指標為自由度 。當自由度 、顯著水準 時,查表可精確讀得臨界值為 。
具體解題步驟推導如下:
步驟一:建立假說
時段共劃分為 個類別(8–9 A.M.、9–10 A.M.、10–11 A.M.、11–12 P.M.、1–2 P.M.、2–3 P.M.、3–4 P.M.、4–5 P.M.)。
- 各時段發生意外的機率不全相等(事故並非均勻分佈)
步驟二:計算樣本總數與各組期望次數
各時段觀察次數 分別為:。
總觀察次數 為:
在 成立下,各時段的期望次數皆相等:
因為所有 ,符合大樣本卡方檢定之應用準則。
步驟三:計算檢定統計量
逐項計算觀察值與期望值的離差平方:
- 第 1 時段(8–9 A.M.):
- 第 2 時段(9–10 A.M.):
- 第 3 時段(10–11 A.M.):
- 第 4 時段(11–12 P.M.):
- 第 5 時段(1–2 P.M.):
- 第 6 時段(2–3 P.M.):
- 第 7 時段(3–4 P.M.):
- 第 8 時段(4–5 P.M.):
離差平方總和為:
代入卡方檢定統計量公式: