112 年 國立成功大學交通管理科學系碩士班甲組《統計學》
第 1 題30 分
Researchers conducted a study that examined sleep habits of college students and academic performance. Two variables in the study were anxiety, which was scored categorically as one of normal, moderate, or severe, and the number of classes that the student missed, which was counted the number of classes that the student missed during the semester. The study includes a sample of 253 students whom you may consider to be a representative sample from a population of college students. Raw data is plotted below (points jittered horizontally to lessen overlap).
🖼️【此處有附圖,請對照原卷】
Summary statistics of the number of classes missed according to anxiety status are tabulated here.
| Anxiety Status | n | s | |
|---|---|---|---|
| Normal | 181 | 2.01 | 3.11 |
| Moderate | 56 | 2.13 | 3.05 |
| Severe | 16 | 4.75 | 4.37 |
The following data may also be useful:
- The grand mean of all observations is .
- The sum of squares of individual classes missed observations around the grand mean is .
- So that the standard deviation of classes missed is .
- Ignoring round-off errors in sample standard deviations, the following expression sums the squared deviations of each observation from its sample mean.
(a - 9 points) Fill in all missing values in this ANOVA table. Assuming a valid test, interpret the results of the test in context.
| Source | df | SS | MS | F | p-value |
|---|---|---|---|---|---|
| Groups | 0.0048 | ||||
| Error | |||||
| Total |
(b - 5 points) State null and alternative hypotheses tested in the ANOVA table. Assuming a valid test, interpret the results of the test in context.
(c - 5 points) What is the pooled estimate of the common population standard deviation?
(d - 5 points) Fill in the missing parts of the following 99% confidence interval for the difference in population mean number of classes missed between the severe and normal anxiety groups.
where is from a t distribution with degrees of freedom and has numerical value .
(e - 6 points) What additional two assumptions does ANOVA make about the distribution of observations within a group? (f) What about the plot of the data indicates the most serious rejection of one of these two assumptions?
登入後即可作答並保存紀錄。
這題是關於單因子變異數分析 (One-Way ANOVA) 的應用。題目提供了不同焦慮程度(正常、中度、嚴重)的學生在一個學期內缺課數量的統計資料,並要求進行 ANOVA 分析,包括填寫 ANOVA 表、假設檢定、估計共同標準差、建立信賴區間以及探討 ANOVA 的假設。
核心觀念:
- ANOVA 表填寫: 根據總和平方和 (SS)、自由度 (df) 和平均平方和 (MS) 的關係,以及 F 檢定的定義,可以填寫 ANOVA 表。
- 假設檢定: ANOVA 的核心是檢定各組平均數是否相等。
- 共同標準差估計: 是對各組母體標準差的綜合估計。
- 信賴區間: 針對兩組平均數差異的信賴區間計算,涉及 t 分配。
- ANOVA 假設: 了解 ANOVA 分析成立的條件,特別是常態性和變異數同質性。
解題過程:
(a) 填寫 ANOVA 表及結果解釋
首先,我們需要計算 ANOVA 表中的各項數值。
-
Groups (between-group) 變異:
- df (Groups) = k - 1 = 3 - 1 = 2 (其中 k 為組別數,這裡有 Normal, Moderate, Severe 三組)。
- SS (Groups) = 。題目給了 。
- SS (Groups) =
- MS (Groups) = SS (Groups) / df (Groups) =
-
Total 變異:
- df (Total) = N - 1 = 253 - 1 = 252。
- SS (Total) = (題目已給)。
-
Error (within-group) 變異:
- df (Error) = df (Total) - df (Groups) = 。
- SS (Error) = SS (Total) - SS (Groups) = 。
- 題目提供的 驗證了 SS (Error) 的計算。
- MS (Error) = SS (Error) / df (Error) = 。
-
F 檢定統計量:
- F = MS (Groups) / MS (Error) = 。
將這些數值填入 ANOVA 表:
| Source | df | SS | MS | F | p-value |
|---|---|---|---|---|---|
| Groups | 2 | 110.824 | 55.412 | 5.4645 | 0.0048 |
| Error | 250 | 2535.076 | 10.1403 | ||
| Total | 252 | 2645.9 |
結果解釋:
ANOVA 表中的 p-value 為 0.0048,顯著水準 通常設定為 0.05。由於 p-value (0.0048) < (0.05),我們拒絕虛無假設。這表示至少有一個焦慮程度(正常、中度、嚴重)的母體平均缺課數與其他組不同。換句話說,焦慮程度對學生平均缺課數有顯著影響。
【答案】
ANOVA 表填寫如下:
| Source | df | SS | MS | F | p-value |
|---|---|---|---|---|---|
| Groups | 2 | 110.824 | 55.412 | 5.4645 | 0.0048 |
| Error | 250 | 2535.076 | 10.1403 | ||
| Total | 252 | 2645.9 | |||
| 解釋: 由於 p-value (0.0048) 小於常用的顯著水準 0.05,我們拒絕虛無假設,結論是至少有一個焦慮程度的學生群體,其平均缺課數與其他群體有顯著差異。 |
(b) 虛無與對立假設
- 虛無假設 (): 所有焦慮程度群體的母體平均缺課數都相等。
第 2 題25 分
(a - 9 points) Fill in all missing values in this ANOVA table. Assuming a valid test, interpret the results of the test in context.
| Source | df | SS | MS | F | p-value |
|---|---|---|---|---|---|
| Groups | 0.0048 | ||||
| Error | |||||
| Total |
(b - 5 points) State null and alternative hypotheses tested in the ANOVA table. Assuming a valid test, interpret the results of the test in context.
(c - 5 points) What is the pooled estimate of the common population standard deviation?
(d - 5 points) Fill in the missing parts of the following 99% confidence interval for the difference in population mean number of classes missed between the severe and normal anxiety groups.
where is from a t distribution with degrees of freedom and has numerical value .
(e - 6 points) What additional two assumptions does ANOVA make about the distribution of observations within a group? (f) What about the plot of the data indicates the most serious rejection of one of these two assumptions?
【題組共用題幹】
The director of admissions of a small college selected 120 students at random from the new freshman class in a study to determine whether a student's grade point average (GPA) at the end of the first academic year can be predicted from the ACT score test. Assume that the simple regression model with independent normal error terms is appropriate and its assumptions are satisfied. Regression and analysis of variance output from SAS is shown below. You can also use the given SAS output for your calculation.
Analysis of Variance
| Source | DF | Sum of Squares | Mean Square | F Value | Pr > F |
|---|---|---|---|---|---|
| Model | 1 | 3.58785 | 3.58785 | 6.59 | 0.0029 |
| Error | 119 | 3.58785 | |||
| Residual | 0.62313 | ||||
| C Total | 120 | 12.8013 | |||
| Root MSE | 0.78943 | ||||
| Dependent Mean | 20.27049 | ||||
| Coeff Var |
Parameter Estimates
| Variable | DF | Parameter Estimate | Standard Error | t Value | Pr > |t| | 95% Confidence Limits |
|----------|----|--------------------|----------------|---------|----------|-----------------------|
| Intercept| 1 | 2.11405 | 0.32089 | 6.59 | <.0001 | 1.47859 | 2.74951 |
| X | 1 | 0.039883 | 0.01277 | 3.041 | 0.0029 | | |
(a - 5 points) Specify the dependent variable (Y) and independent variable (X) in this study. Show the statistical model considered in this study.
(b - 6 points) There are 6 blanks in the table. Please fill them all. Show all your work to get full credit.
(c - 8 points) Write down the estimated linear regression function and interpret the estimate of the slope.
(d - 8 points) Does a linear relationship exist between the ACT test score and the GPA at the end of the freshman year? Perform an appropriate test of hypothesis at , which rule the conclusion, and the conclusion.
登入後即可作答並保存紀錄。
一、第一部分:三組焦慮程度與缺課次數
核心觀念
本題使用單因子變異數分析(one-way ANOVA),比較三種焦慮程度下「平均缺課次數」是否相同。
- 組間自由度:
- 組內自由度:
- 總自由度:
其中共有 組、 人。
(a) ANOVA 表與檢定結果
總自由度為
組間自由度為
誤差自由度為
由題目給定:
因此組間平方和為
各均方為
故
完整 ANOVA 表如下:
| 來源 | -value | ||||
|---|---|---|---|---|---|
| Groups | |||||
| Error | |||||
| Total |
因為
所以拒絕「三組平均缺課次數相同」的虛無假設。資料顯示不同焦慮程度的學生,其平均缺課次數並非全部相同;但 ANOVA 本身只能判定至少有一組平均數不同,不能直接判定是哪幾組不同。
(b) 假設與結論
令 分別代表正常、中度、重度焦慮學生的母體平均缺課次數。
由 ,拒絕 。在統計上,焦慮程度與平均缺課次數之間存在顯著差異。
(c) 共用母體標準差的 pooled estimate
合併標準差估計為誤差均方的平方根:
因此
(d) 99% 信賴區間
重度焦慮組與正常焦慮組的樣本平均差為
所以信賴區間為
代入
且
得到
因此
各空格應填:
- 差異的點估計:
- 第一個樣本數:
- 第二個樣本數:
- 自由度:
- :
此區間不包含 ,也支持重度焦慮組的平均缺課次數高於正常焦慮組。
(e) ANOVA 的另外兩項假設
在已知各組為獨立隨機樣本之外,ANOVA 還假設:
- 每一組內的觀察值來自常態分布。
- 各組母體變異數相等,即具有相同母體標準差。
(f) 圖形顯示的最嚴重問題
第 3 題15 分
- (15 points) Consider the following data.
8.9 10.2 11.5 7.8 10.0 12.2 13.5 14.1 10.0 12.2
6.8 9.5 11.5 14.9 7.5 10.0 6.0 15.8 11.5
(a - 3 points) Compute the median, first and third quartiles for these data.
(b - 7 points) Show a box plot for the data.
(c - 5 points) Following the result of (b), would you use Chebyshev’s Theorem or Empirical Rule if you want to find an interval centered about the mean in which you would expect around 95% of the data to fall? Justify your answer.
登入後即可作答並保存紀錄。
這題主要考驗對敘述統計量(中位數、四分位數)的計算能力,以及如何根據數據繪製盒狀圖(Box Plot),最後則是判斷何種統計規則(Chebyshev's Theorem 或 Empirical Rule)適用於估計數據分佈區間。
(a) 計算中位數、第一四分位數與第三四分位數
解題步驟:
-
排序數據: 首先,將給定的數據由小到大排序。
原始數據:8.9, 10.2, 11.5, 7.8, 10.0, 12.2, 13.5, 14.1, 10.0, 12.2, 6.8, 9.5, 11.5, 14.9, 7.5, 10.0, 6.0, 15.8, 11.5
排序後數據:6.0, 6.8, 7.5, 7.8, 8.9, 9.5, 10.0, 10.0, 10.0, 10.2, 11.2, 11.5, 11.5, 11.5, 12.2, 12.2, 13.5, 14.1, 14.9, 15.8 -
計算樣本數 (n): 共有 19 個數據點,所以 。
-
計算中位數 (Median):
中位數是排序後數據的中間值。由於 是奇數,中位數是第 個數據。
因此,中位數是排序後數據的第 10 個值。
排序後數據:6.0, 6.8, 7.5, 7.8, 8.9, 9.5, 10.0, 10.0, 10.0, 10.2, 11.2, 11.5, 11.5, 11.5, 12.2, 12.2, 13.5, 14.1, 14.9, 15.8
中位數 = 10.2 -
計算第一四分位數 (Q1):
第一四分位數是排序後數據中,位於中位數左側(不包含中位數本身,若樣本數為奇數)的數據的中位數。
中位數左側的數據有 9 個:6.0, 6.8, 7.5, 7.8, 8.9, 9.5, 10.0, 10.0, 10.0
這 9 個數據的中位數是第 個值。
Q1 = 8.9 -
計算第三四分位數 (Q3):
第三四分位數是排序後數據中,位於中位數右側(不包含中位數本身,若樣本數為奇數)的數據的中位數。
中位數右側的數據有 9 個:11.2, 11.5, 11.5, 11.5, 12.2, 12.2, 13.5, 14.1, 14.9, 15.8
這 9 個數據的中位數是第 個值。
Q3 = 12.2
計算結果:
中位數 (Median) = 10.2
第一四分位數 (Q1) = 8.9
第三四分位數 (Q3) = 12.2
【答案】
中位數 = 10.2
第一四分位數 (Q1) = 8.9
第三四分位數 (Q3) = 12.2
(b) 繪製盒狀圖 (Box Plot)
解題步驟:
-
計算五數摘要 (Five-Number Summary):
- 最小值 (Minimum):6.0
- 第一四分位數 (Q1):8.9
- 中位數 (Median):10.2
- 第三四分位數 (Q3):12.2
- 最大值 (Maximum):15.8
-
計算四分位距 (Interquartile Range, IQR):
-
判斷是否有離群值 (Outliers):
- 下界限 (Lower fence):
- 上界限 (Upper fence):
檢查數據中是否有小於 3.95 或大於 17.15 的值。
最小值 6.0 大於 3.95,最大值 15.8 小於 17.15。因此,此數據集沒有離群值。
-
繪製盒狀圖:
- 畫一條數軸,範圍涵蓋最小值到最大值(例如從 5 到 16)。
- 在數軸上標示出 Q1、中位數和 Q3 的位置。
- 以 Q1 和 Q3 為邊界畫一個長方形的「盒」。
- 在盒內畫一條線代表中位數。
- 從盒的兩端向外畫出「鬚」(whiskers),鬚的末端延伸至非離群值的最小值和最大值。
- 由於沒有離群值,鬚的末端將分別是最小值 6.0 和最大值 15.8。
盒狀圖示意圖:
+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | | | | | | | | | | | | | | | | | | |
6.0 7.0 8.0 8.9 9.0 10.0 10.2 11.0 11.5 12.0 12.2 13.0 14.0 15.0 15.8 16.0
^ ^ ^ ^ ^
Min Q1 Median Q3 Max
說明:
盒狀圖的盒代表中間 50% 的數據範圍(從 Q1 到 Q3),盒內的線代表中位數。盒外的鬚代表數據的延伸範圍,不包含離群值。在這個例子中,盒從 8.9 到 12.2,中位數在 10.2。鬚從 6.0 延伸到 15.8。
【答案】
盒狀圖的繪製步驟如上所述,包含五數摘要、IQR 計算、離群值判斷及繪製過程。
(c) Chebyshev's Theorem 或 Empirical Rule 的選擇
解題步驟:
-
理解 Chebyshev's Theorem 和 Empirical Rule 的適用條件:
- Chebyshev's Theorem: 對於任何數據分佈,無論其形狀如何,都可以保證至少有 的數據落在距離平均數 個標準差的範圍內。它是一個較為保守的定理,適用於任何分佈。
- Empirical Rule (68-95-99.7 Rule): 僅適用於近似常態分佈的數據。它指出,對於常態分佈,大約 68% 的數據落在 範圍內,大約 95% 的數據落在 範圍內,大約 99.7% 的數據落在 範圍內。
-
分析數據的分佈特性:
題目要求找到一個包含約 95% 數據的區間,並判斷使用 Chebyshev's Theorem 或 Empirical Rule。- Empirical Rule 要求數據近似常態分佈。
- Chebyshev's Theorem 則不要求任何特定分佈。
-
判斷是否適用 Empirical Rule:
要使用 Empirical Rule,我們需要知道數據是否近似常態分佈。通常可以透過觀察數據的直方圖、盒狀圖或計算偏度和峰度來判斷。- 盒狀圖的觀察: 在 (b) 小題中,我們繪製了盒狀圖。如果盒狀圖是對稱的,且鬚的長度大致相等,則數據可能近似常態分佈。然而,僅憑盒狀圖的視覺判斷可能不夠嚴謹。
- 數據的偏斜度: 我們可以計算數據的偏度。
- 計算平均數和標準差: 為了使用這兩個規則,我們需要先計算數據的平均數 () 和標準差 ()。
第 4 題15 分
- (15 points) A shareholders' group claimed that the mean tenure for a chief executive officer (CEO) was at least nine years. A survey found a sample mean tenure of 7.8 years for CEOs with a standard deviation of 6 years.
(a - 5 points) Formulate hypotheses that can be used to challenge the validity of the claim made by the shareholder's group.
(b - 5 points) Assume 25 companies were included in the sample. What is the -value for your hypothesis test? At , what is your conclusion?
(c - 5 points) Compute a 95% confidence interval for the population mean. Does it support your conclusion in (b)?
登入後即可作答並保存紀錄。
核心觀念
本題考單一母體平均數的左尾 檢定,以及母體平均數的 信賴區間。母體標準差未知,使用樣本標準差 估計,因此檢定統計量服從自由度 的 分配:
其中 為樣本平均數、 為虛無假設的邊界值。信賴區間則為:
解題方法
(a) 建立假設
股東團體主張 CEO 的平均任期至少為九年。要挑戰此主張,應檢定平均任期是否低於九年,因此設定左尾檢定:
計算檢定統計量時,使用虛無假設的邊界值 。
(b) 計算 值並作成檢定結論
已知 、、,自由度為:
標準誤為:
檢定統計量為:
此為左尾檢定,故 值為:
第 5 題15 分
- (15 points) An oil company purchased an option on land in Alaska. Preliminary geologic studies assigned the following prior probabilities:
(a - 5 pts) What is the probability of finding oil?
After 200 feet of drilling on the first well, a soil test is taken. The probabilities of finding the particular type of soil identified by the test follow:
(b - 10 pts) What are the revised probabilities, and what is the new probability of finding oil? How should the firm interpret the soil test? (You MUST clearly show your work)
登入後即可作答並保存紀錄。
核心觀念
本題考查全機率公式與貝氏定理。先把「找到油」定義為找到高品質油或中品質油,兩種情形互斥,因此可將其機率相加。取得土壤檢驗結果後,再用貝氏定理更新各種油藏狀態的機率。
全機率公式為:
貝氏定理為:
其中 表示檢驗發現題目所述的土壤, 表示不同的地質狀態。
解題方法與計算
(a) 找到油的機率
找到油包含高品質油與中品質油,故:
因此,初始評估下找到油的機率為 。
(b) 更新機率並解讀檢驗結果
先以全機率公式計算觀察到該土壤的總機率:
再分別套用貝氏定理: