110 年 國立政治大學企業管理學系碩士班《統計學》
第 1. 題
國立政治大學 110 學年度碩士班暨碩士在職專班招生考試試題
考試科目:統計學
系所別:企業管理研究所
考試時間:2 月 5 日 (五) 第 4 節
Note: Use the level of significance 0.05 for the test of hypothesis if required.
- (35%) 下表為各縣市在 2020 年的「人口密度 ()」與「醫療院所床數 ()」。另「直轄市 ()」表示若該縣市為直轄市,其值為 1 時;否則值為 0。最後兩列為觀測值的總和與觀測值的平方之總和 (平方和)。
| 縣市 | 人口密度 () | 醫療院所床數 () | 直轄市 () |
|---|---|---|---|
| 新北市 | 1960.29 | 19116 | 1 |
| 臺北市 | 9695.69 | 25395 | 1 |
| 桃園市 | 1846.39 | 15179 | 1 |
| 臺中市 | 1271.69 | 22024 | 1 |
| 臺南市 | 857.40 | 13245 | 1 |
| 高雄市 | 939.74 | 22573 | 1 |
| 宜蘭縣 | 211.77 | 3938 | 0 |
| 新竹縣 | 395.98 | 2918 | 0 |
| 苗栗縣 | 299.27 | 3477 | 0 |
| 彰化縣 | 1183.00 | 7978 | 0 |
| 南投縣 | 120.15 | 3408 | 0 |
| 雲林縣 | 526.83 | 3900 | 0 |
| 嘉義縣 | 263.71 | 3359 | 0 |
| 屏東縣 | 294.42 | 5801 | 0 |
| 臺東縣 | 61.53 | 1521 | 0 |
| 花蓮縣 | 70.37 | 4289 | 0 |
| 澎湖縣 | 828.58 | 550 | 0 |
| 基隆市 | 2777.91 | 3942 | 0 |
| 新竹市 | 4315.06 | 2852 | 0 |
| 嘉義市 | 4455.97 | 4007 | 0 |
| 金門縣 | 922.82 | 329 | 0 |
| 連江縣 | 452.57 | 52 | 0 |
| 總和 | 33751.14 | 169853 | |
| 平方和 | 154576544 | 2643127703 |
(a) Construct a box-and-whisker plot for . Please identify which cities or counties are possible outliers based on the resulting plot. (15%)
Assume that follows a normal distribution, and the population variances of for municipal cities and non-municipal cities are equal. Answer the following questions.
(b) Test whether the population mean of is greater than 620. (8%)
(c) Test whether the population means of between municipal cities and non-municipal cities are equal or not. (12%)
登入後即可作答並保存紀錄。
核心觀念
本題考查:
- 箱型圖與離群值判定
- 單一母體平均數的單尾 檢定
- 兩獨立母體平均數差的合併變異數 檢定
- 樣本平均數與樣本變異數的計算:
(a) 的箱型圖與離群值
1. 排序資料
將人口密度由小至大排列:
共有 筆資料。
2. 五數摘要
中位數為第 與第 筆的平均:
下半部共有 11 筆,因此第一四分位數為下半部第 6 筆:
上半部共有 11 筆,因此第三四分位數為上半部第 6 筆,也就是完整資料的第 17 筆:
因此:
- 最小值:
- 第一四分位數:
- 中位數:
- 第三四分位數:
- 最大值:
四分位距為:
3. 離群值判定
箱型圖的上下界為:
人口密度超過 者視為離群值。
只有臺北市:
因此箱型圖中:
- 下鬚:,即臺東縣
- 箱體範圍: 至
- 箱內中位數:
- 上鬚:,即嘉義市
- 離群值:,即臺北市
解題技巧
判定離群值時,不是直接看最大值是否突出,而是必須依照:
計算上界。本題嘉義市的人口密度為 ,雖然很高,但仍低於上界 ,所以不列為離群值;臺北市則明確超過上界。
(b) 檢定人口密度的母體平均數是否大於 620
1. 建立假設
題目要檢定平均人口密度是否大於 620,因此採用右尾檢定:
顯著水準為:
由於母體變異數未知,且樣本數為 ,使用單一樣本 檢定。
2. 計算樣本平均數
3. 計算樣本變異數
因此:
樣本平均數的標準誤為:
4. 計算檢定統計量
自由度為:
右尾檢定在 下的臨界值為:
因為:
第 2. 題
- (30%) Based on the data in Question 1, we obtain the following regression result by using as the response variable, and both and as explanatory variables.
| Estimate | Standard error | |
|---|---|---|
| Constant | 2660.16 | 746.23 |
| 0.57 | 0.29 | |
| 15359.73 | 1388.89 |
Please answer the following questions.
(a) Explain the meaning of the coefficient estimate for . (4%)
(b) Identify which explanatory variable(s) are significant. (8%)
(c) If denotes the estimated standard error for regression, then complete the analysis of variance table for this regression analysis. (12%)
(d) What is the value of the adjusted ? (6%)
登入後即可作答並保存紀錄。
本題主要考驗對迴歸分析 (Regression Analysis) 的理解,包括係數的解釋、顯著性檢定、變異數分析表 (ANOVA table) 的建構,以及調整 的計算。
(a) 解釋 係數的意義
在迴歸模型中,。
是一個虛擬變數 (dummy variable),其值為 1 代表直轄市,0 代表非直轄市。
係數 (估計值為 15359.73) 代表當其他自變數 (在此為 ) 固定時, 從 0 變為 1 所引起的應變數 () 的平均變化量。
因此, 的係數估計值 15359.73 的意義是:在控制了人口密度 () 的影響後,直轄市的平均醫療院所床數比非直轄市高出約 15359.73 床。
(b) 識別顯著的解釋變數
要判斷解釋變數是否顯著,我們需要進行個別係數的顯著性檢定。對於每個係數 ,虛無假設是 ,對立假設是 。通常使用 t 檢定。
檢定統計量 ,其中 是係數的估計值, 是其標準誤。
-
Constant (截距項 ):
估計值 , 標準誤
自由度 ,其中 是樣本數 (來自 Question 1,共 23 個觀測值), 是解釋變數的個數 (PopDensity 和 Municipality,共 2 個)。所以 。
查 t 表,在 下,。
|t| = 3.565 > 2.086,因此截距項顯著。 -
():
估計值 , 標準誤
|t| = 1.9655。與臨界值 2.086 相比, (稍微接近,但未達顯著水準 0.05)。
注意:題目中通常會給定顯著水準,這裡預設為 0.05。如果題目沒有明確說明,我們通常會採用 0.05。在此情況下, 的係數在 0.05 的顯著水準下 不顯著。 -
():
估計值 , 標準誤
|t| = 11.059 > 2.086。因此 的係數顯著。
結論: 在 0.05 的顯著水準下,解釋變數 是顯著的。截距項也是顯著的。 在此顯著水準下不顯著。
(c) 完成變異數分析表 (ANOVA table)
變異數分析表用於評估整體迴歸模型的顯著性。其結構通常如下:
| 來源 (Source) | 自由度 (df) | 總平方和 (SS) | 平均平方和 (MS) | F 值 |
|---|---|---|---|---|
| 迴歸 (Regression) | k | SSR | MSR = SSR/k | F = MSR/MSE |
| 殘差 (Residual) | n-k-1 | SSE | MSE = SSE/(n-k-1) | |
| 總計 (Total) | n-1 | SST |
其中:
- = 樣本數 = 23 (來自 Question 1)
- = 解釋變數的數量 = 2 ( 和 )
- = 殘差自由度 = 23 - 2 - 1 = 20
- = 總自由度 = 23 - 1 = 22
- = 迴歸的標準誤 (estimated standard error for regression) = 2720.15。 是殘差的平均平方和 (MSE)。
第 3. 題
- (35%) The following data show the number of defective components and the number of good components found from a random sample of 500 components with different suppliers.
| Component | Supplier A | Supplier B | Supplier C |
|---|---|---|---|
| Defective | 15 | 20 | 40 |
| Good | 485 | 480 | 460 |
(a) If we randomly choose 4 components from supplier C, what is the probability of including 1 defective component? (5%)
(b) Construct a 95% confidence interval for the proportion of defective components from supplier A? (8%)
(c) Test the equality between the proportion of defective components from supplier A and that proportion from supplier C. (10%)
(d) Conduct a statistical hypothesis to test the equal proportions of defective components provided by the three suppliers. (12%)
登入後即可作答並保存紀錄。
核心觀念
本題考查四個重要觀念:
- 超幾何分配:不放回抽樣時,計算抽到特定數量瑕疵品的機率。
- 單一母體比例的信賴區間:以樣本比例估計母體瑕疵比例。
- 兩母體比例差的假設檢定:比較供應商 A 與 C 的瑕疵比例是否相同。
- 多母體比例的同質性檢定:利用列聯表卡方檢定,比較三家供應商的瑕疵比例是否相同。
(a) 從供應商 C 抽出 4 個零件,恰有 1 個瑕疵品的機率
解題方法
供應商 C 共有 個零件,其中:
- 瑕疵品: 個
- 良品: 個
- 抽樣數: 個
因為抽樣後不放回,適用超幾何分配:
其中 表示抽出的瑕疵品數,、、。
因此,
亦可寫成:
所以機率約為:
解題技巧
若題目明確表示「從有限批量中抽取,且不放回」,應優先想到超幾何分配。若抽樣比例極小,才可用二項分配近似;本題抽取比例為 ,用二項分配所得結果會非常接近,但精確答案應使用超幾何分配。
(b) 供應商 A 瑕疵比例的 95% 信賴區間
核心觀念
單一母體比例的近似信賴區間為:
其中:
- :樣本瑕疵比例
- :樣本數
- 95% 信賴水準下,
計算樣本比例
供應商 A 有 個瑕疵品,樣本數為 ,因此:
樣本比例的標準誤為:
誤差範圍為:
因此,95% 信賴區間為:
換成百分比:
解釋
在 95% 信賴水準下,供應商 A 所提供零件的真實瑕疵比例估計介於約 至 之間。
解題技巧
先確認常態近似條件:
兩者皆大於 ,因此使用比例的常態近似信賴區間是合理的。
(c) 檢定供應商 A 與供應商 C 的瑕疵比例是否相同
建立假設
令 為供應商 A 的母體瑕疵比例, 為供應商 C 的母體瑕疵比例。
這是雙尾檢定。取顯著水準 。
計算樣本比例
樣本比例差為:
計算合併比例
在虛無假設 下,使用合併比例:
因此:
合併標準誤為:
計算檢定統計量
第 1. (b) 題
Assume that follows a normal distribution, and the population variances of for municipal cities and non-municipal cities are equal. Answer the following questions.
(b) Test whether the population mean of is greater than 620. (8%)
登入後即可作答並保存紀錄。
本題考驗單一樣本的假設檢定,主要為 Z 檢定或 t 檢定。由於母體標準差未知,且樣本數不大(n=23),應使用 t 檢定。
1. 設定假設與顯著水準
- 虛無假設 ():母體平均人口密度 。
- 對立假設 ():母體平均人口密度 。
- 顯著水準 () = 0.05。
2. 計算樣本統計量
從題目給的數據中,我們需要計算樣本平均數 () 和樣本標準差 ()。
- 樣本數 () = 23 (來自 Question 1 的表格,共有 23 個縣市)。
- 樣本總和 () = 33751.14 (來自 Question 1 表格的「總和」)。
- 樣本平均數 () = 。
- 樣本平方和 () = 154576544 (來自 Question 1 表格的「平方和」)。
- 樣本變異數 () =
第 1. (c) 題
Assume that follows a normal distribution, and the population variances of for municipal cities and non-municipal cities are equal. Answer the following questions.
(c) Test whether the population means of between municipal cities and non-municipal cities are equal or not. (12%)
登入後即可作答並保存紀錄。
本題考驗獨立樣本 t 檢定,用於比較兩組獨立樣本的平均數是否存在顯著差異。題目假設兩組母體變異數相等。
1. 分組與設定假設
根據「直轄市 ()」變數,我們將數據分成兩組:
-
直轄市 (Municipal cities): 。共 個觀測值。
-
非直轄市 (Non-municipal cities): 。共 個觀測值。
-
虛無假設 ():兩個母體平均人口密度相等,即 。
-
對立假設 ():兩個母體平均人口密度不相等,即 。
-
顯著水準 () = 0.05。
2. 計算兩組的樣本統計量
我們需要計算每組的樣本平均數 ()、樣本標準差 (),以及用於計算合併變異數的平方和。
-
直轄市 ():
數據:1960.29, 9695.69, 1846.39, 1271.69, 857.40, 939.74
總和 = 16571.20
平均數
平方和
樣本變異數
樣本標準差 -
非直轄市 ():
數據:211.77, 395.98, 299.27, 1183.00, 120.15, 526.83, 263.71, 294.42, 61.53, 70.37, 828.58, 2777.91, 4315.06, 4455.97, 922.82, 452.57
總和 = 17179.94
平均數
平方和 (可由總平方和減去直轄市的平方和):
第 2. (a) 題
- (30%) Based on the data in Question 1, we obtain the following regression result by using as the response variable, and both and as explanatory variables.
| Estimate | Standard error | |
|---|---|---|
| Constant | 2660.16 | 746.23 |
| 0.57 | 0.29 | |
| 15359.73 | 1388.89 |
Please answer the following questions.
(a) Explain the meaning of the coefficient estimate for . (4%)
登入後即可作答並保存紀錄。
此題考驗對迴歸模型中虛擬變數 (dummy variable) 係數解釋的理解。
迴歸模型為:
其中:
- 是應變數 (response variable)。
- 是解釋變數 (explanatory variable)。
- 是一個虛擬變數,其值為 1 代表該縣市為直轄市 (municipal city),值為 0 代表非直轄市 (non-municipal city)。
- 是截距項。
- 是 的迴歸係數。
- 是 的迴歸係數。
- 是誤差項。
題目提供的迴歸結果中, 的係數估計值為 。
係數 的解釋:
當其他解釋變數(在此為 )保持不變時,虛擬變數 從 0 變為 1 所引起的應變數 () 平均變化的量。
- 當 (非直轄市),預測的平均醫療院所床數為:
第 2. (b) 題
- (30%) Based on the data in Question 1, we obtain the following regression result by using as the response variable, and both and as explanatory variables.
| Estimate | Standard error | |
|---|---|---|
| Constant | 2660.16 | 746.23 |
| 0.57 | 0.29 | |
| 15359.73 | 1388.89 |
Please answer the following questions.
(b) Identify which explanatory variable(s) are significant. (8%)
登入後即可作答並保存紀錄。
本題考驗對迴歸模型中個別係數顯著性檢定的理解。我們需要對每個解釋變數的係數進行 t 檢定。
1. 確定樣本數與自由度
- 樣本數 () = 23 (來自 Question 1 的表格)。
- 解釋變數的個數 () = 2 ( 和 )。
- 殘差自由度 () = 。
- 顯著水準 () = 0.05 (預設值,題目未明確給定)。
- 臨界 t 值 (雙尾檢定) = 。
2. 對每個解釋變數進行 t 檢定
檢定統計量公式為:
- 截距項 (Constant):
- 估計值
- 標準誤
- 絕對值 。
第 2. (c) 題
- (30%) Based on the data in Question 1, we obtain the following regression result by using as the response variable, and both and as explanatory variables.
| Estimate | Standard error | |
|---|---|---|
| Constant | 2660.16 | 746.23 |
| 0.57 | 0.29 | |
| 15359.73 | 1388.89 |
Please answer the following questions.
(c) If denotes the estimated standard error for regression, then complete the analysis of variance table for this regression analysis. (12%)
登入後即可作答並保存紀錄。
本題要求根據給定的迴歸標準誤,完成變異數分析表 (ANOVA table)。ANOVA 表用於評估整體迴歸模型的顯著性。
1. 確定迴歸模型的參數
- 應變數 (Response variable):
- 解釋變數 (Explanatory variables):,
- 樣本數 () = 23 (來自 Question 1)
- 解釋變數數量 () = 2
- 迴歸標準誤 () = 2720.15
2. 計算 ANOVA 表所需的各項值
ANOVA 表的基本結構:
| 來源 (Source) | 自由度 (df) | 總平方和 (SS) | 平均平方和 (MS) | F 值 |
|---|---|---|---|---|
| 迴歸 (Regression) | SSR | MSR = SSR/k | F = MSR/MSE | |
| 殘差 (Residual) | SSE | MSE = SSE/(n-k-1) | ||
| 總計 (Total) | SST |
-
自由度 (df):
- 迴歸自由度 =
- 殘差自由度 =
- 總自由度 =
-
殘差平方和 (SSE):
迴歸標準誤 是殘差標準差的估計值,即 。
SSE = -
總平方和 (SST):
SST 是應變數 的總平方和。我們需要從 Question 1 的數據中計算。
總和
平方和
第 2. (d) 題
- (30%) Based on the data in Question 1, we obtain the following regression result by using as the response variable, and both and as explanatory variables.
| Estimate | Standard error | |
|---|---|---|
| Constant | 2660.16 | 746.23 |
| 0.57 | 0.29 | |
| 15359.73 | 1388.89 |
Please answer the following questions.
(d) What is the value of the adjusted ? (6%)
登入後即可作答並保存紀錄。
本題考驗對調整 (Adjusted ) 的計算。調整 是對普通 的修正,考慮了模型中解釋變數的個數,當解釋變數增加時,它不會像 那樣必然增加。
1. 計算
代表模型解釋的應變數變異的比例。
其中 SSE (殘差平方和) 和 SST (總平方和) 可以從 ANOVA 表或直接計算得到。
根據 Question 2(c) 的計算:
2. 計算調整
調整 的公式為:
其中:
- = 樣本數 = 23
- = 解釋變數的數量 = 2
- = 總自由度 = 22
- = 殘差自由度 = 20
第 3. (a) 題
- (35%) The following data show the number of defective components and the number of good components found from a random sample of 500 components with different suppliers.
| Component | Supplier A | Supplier B | Supplier C |
|---|---|---|---|
| Defective | 15 | 20 | 40 |
| Good | 485 | 480 | 460 |
(a) If we randomly choose 4 components from supplier C, what is the probability of including 1 defective component? (5%)
登入後即可作答並保存紀錄。
本題考驗超幾何分配 (Hypergeometric Distribution) 的應用,用於計算從有限母體中進行無放回抽樣,且母體中存在兩種不同類型的樣本時,抽中特定數量樣本的機率。
1. 確定母體參數
根據題目,我們從供應商 C 的零件中抽取。
- 供應商 C 的總零件數 () = 不良品數 + 良品數 = 40 + 460 = 500。
- 供應商 C 的不良品數量 () = 40。
- 供應商 C 的良品數量 () = 460。
2. 確定抽樣參數
- 抽樣數量 () = 4。
- 我們感興趣的是抽中 1 個不良品,所以抽中的不良品數量 () = 1。
- 這意味著抽中的良品數量為 。
3. 套用超幾何分配公式
超幾何分配的機率公式為:
將參數代入:
4. 計算組合數
第 3. (b) 題
- (35%) The following data show the number of defective components and the number of good components found from a random sample of 500 components with different suppliers.
| Component | Supplier A | Supplier B | Supplier C |
|---|---|---|---|
| Defective | 15 | 20 | 40 |
| Good | 485 | 480 | 460 |
(b) Construct a 95% confidence interval for the proportion of defective components from supplier A? (8%)
登入後即可作答並保存紀錄。
本題考驗比例的信賴區間 (Confidence Interval for Proportion) 計算。
1. 確定樣本統計量
- 供應商 A 的樣本數 () = 不良品數 + 良品數 = 15 + 485 = 500。
- 供應商 A 的不良品數量 () = 15。
- 供應商 A 的不良品比例估計值 () = 。
2. 確定信賴水準與臨界值
- 信賴水準 = 95%。
- 對應的顯著水準 。
- 對於比例的信賴區間,我們使用標準常態分配 (Z 分配)。
- 臨界值 。
3. 計算比例的標準誤
比例的標準誤公式為:
第 3. (c) 題
- (35%) The following data show the number of defective components and the number of good components found from a random sample of 500 components with different suppliers.
| Component | Supplier A | Supplier B | Supplier C |
|---|---|---|---|
| Defective | 15 | 20 | 40 |
| Good | 485 | 480 | 460 |
(c) Test the equality between the proportion of defective components from supplier A and that proportion from supplier C. (10%)
登入後即可作答並保存紀錄。
本題考驗兩個獨立比例的假設檢定 (Two-proportion z-test)。
1. 設定假設與顯著水準
- 虛無假設 ():供應商 A 和供應商 C 的不良品比例相等,即 。
- 對立假設 ():供應商 A 和供應商 C 的不良品比例不相等,即 。
- 顯著水準 () = 0.05 (預設值)。
2. 計算樣本比例與樣本數
- 供應商 A:
- 樣本數
- 不良品數
- 不良品比例
- 供應商 C:
- 樣本數
- 不良品數
- 不良品比例
3. 計算合併比例 (pooled proportion)
在虛無假設 下,我們使用合併的樣本比例作為共同的母體比例估計值。
合併比例 。
4. 計算標準誤
標準誤的公式為:
第 3. (d) 題
- (35%) The following data show the number of defective components and the number of good components found from a random sample of 500 components with different suppliers.
| Component | Supplier A | Supplier B | Supplier C |
|---|---|---|---|
| Defective | 15 | 20 | 40 |
| Good | 485 | 480 | 460 |
(d) Conduct a statistical hypothesis to test the equal proportions of defective components provided by the three suppliers. (12%)
登入後即可作答並保存紀錄。
本題考驗卡方檢定 (Chi-squared test) 用於檢定多個比例是否相等的應用,也稱為獨立性檢定或齊一性檢定。
1. 設定假設與顯著水準
- 虛無假設 ():所有供應商的不良品比例相等,即 。
- 對立假設 ():至少有一個供應商的不良品比例與其他不同。
- 顯著水準 () = 0.05 (預設值)。
2. 建立列聯表與計算總計
首先,整理數據並計算總計。
| Supplier | Defective (O) | Good (O) | Total (n) | Proportion () |
|---|---|---|---|---|
| A | 15 | 485 | 500 | 15/500 = 0.03 |
| B | 20 | 480 | 500 | 20/500 = 0.04 |
| C | 40 | 460 | 500 | 40/500 = 0.08 |
| Total | 75 | 1425 | 1500 |
3. 計算預期次數 (Expected Counts)
在虛無假設下,所有供應商的不良品比例都等於總體不良品比例。
總體不良品比例 。
預期不良品數 E(Defective) = 樣本數 。
預期良品數 E(Good) = 樣本數 。
- 供應商 A:
- E(Defective) =
- E(Good) =
- 供應商 B:
- E(Defective) =
- E(Good) =
- 供應商 C:
- E(Defective) =
- E(Good) =
4. 計算卡方檢定統計量 ()
卡方統計量公式為:,其中 O 是觀察次數,E 是預期次數。