111 年 國立中央大學工業管理研究所碩士班《統計學》
第 1 題25 分
- (25 points) A random variable X is gamma(a, b) distributed if it has density
where , and .
A random variable Y on [0,1] is beta(a, b) distributed if it has density
where , , , and
Show:
If are independent gamma(, 1) and gamma(, 1) random variables, then and are independent beta(, ) and gamma(, 1) random variables.
Hint: joint density function
登入後即可作答並保存紀錄。
核心觀念
本題考查「變數變換法」與「聯合密度函數可分解以判斷獨立性」。
已知:
- 若 ,則
- 若 ,則
- 若 ,則
本題令
要證明 與 分別服從上述兩種分布,且彼此獨立。
解題方法
因為 都是 的函數,採用二維變數變換法:
- 寫出 的聯合密度函數。
- 求反變換 。
- 計算 Jacobian。
- 代入變數變換公式,整理聯合密度函數。
- 將聯合密度分解成 的邊際密度與 的邊際密度。
第一步:寫出 的聯合密度
由於 相互獨立,
因此
整理得
第二步:求反變換
由
可得
以及
因此反變換為
由於 ,所以變數範圍為
第三步:計算 Jacobian
計算反變換的 Jacobian:
由
可得
因此
由於 ,Jacobian 的絕對值為
第四步:求 的聯合密度
依照變數變換公式,
代入聯合密度與 Jacobian:
因為
所以
另外,
故
其中 。
第五步:分解聯合密度
利用 Beta 函數公式
第 2 題5 分
- Suppose that balls are distributed into boxes so that all of the possible arrangements are equally
likely. We would like to compute the probability that only box 1 is empty. Let be the event that only box 1 is
empty. Let be the event that box , , has two balls, box 1 has no balls, and remaining
boxes have exactly one ball each.
(a) Express in terms of . (5 points)
(b) Compute . (10 points)
(c) Compute from (a) and (b). (10 points)
登入後即可作答並保存紀錄。
核心觀念
每顆球皆可獨立放入任一箱,且球視為可區分,因此總安排數為
事件 表示「只有第 1 箱是空的」,也就是第 到第 箱皆至少有 1 顆球。
共有 顆球分配到 個非空箱子。由於每箱至少 1 顆球,先分配每箱 1 顆後只剩 1 顆球,因此必有:
- 某一箱恰有 2 顆球;
- 其餘 箱各有 1 顆球。
事件 正好描述「第 箱有 2 顆、第 1 箱為空,其餘各箱有 1 顆」。
(a)以 表示事件
第 到第 箱中,必定恰有一箱放入 2 顆球。因此 是各個 的聯集:
此外,各事件彼此互斥。因為不可能同時有兩個箱子各放 2 顆球,否則所需球數會超過 顆。
因此也可寫成互斥聯集:
(b)計算
固定 。
在事件 發生時:
- 第 1 箱有 0 顆球;
- 第 箱有 2 顆球;
- 其餘 箱各有 1 顆球。
計算符合條件的安排數:
- 從 顆球中選出 2 顆放入第 箱:
- 剩下的 顆球,分別放入其餘 個箱子,且每箱恰有 1 顆。這是將球與箱子一一配對,共有
種安排。
所以
化簡得
因為所有 種安排等可能,因此
(c)計算
由於 彼此互斥,互斥事件聯集的機率等於各事件機率總和:
每個 的機率相同,且共有 個事件,因此
代入(b)的結果:
故
第 3 題4 分
- Let X to be the cholesterol level of a woman under the age of 50. Assume X follows normal distribution. Please use the following 5 observations to answer the questions.
X: 213 202 183 185 197
(a) Please develop a 90% confidence interval estimate of , which is the mean cholesterol level of a woman under the age of 50. (4 pts)
(b) Please conduct a test on the null hypothesis of at . (6 pts)
登入後即可作答並保存紀錄。
本題主要考驗對單一樣本統計推論的理解,包括信賴區間的建立與假設檢定的執行。由於母體分佈假設為常態,且樣本數較小,我們將使用 t 分佈來進行推論。
核心觀念:
- 常態分佈的性質。
- 樣本平均數與樣本標準差的計算。
- t 分佈與自由度。
- 信賴區間的建立。
- 單一樣本 t 檢定。
數據:
觀察值:213, 202, 183, 185, 197
樣本數 .
計算樣本平均數 () 和樣本標準差 ():
.
計算樣本變異數 :
:
:
.
.
樣本標準差 .
(a) Please develop a 90% confidence interval estimate of , which is the mean cholesterol level of a woman under the age of 50. (4 pts)
對於小樣本且母體標準差未知的情況,90% 信賴區間的公式為:
在此問題中:
信賴水準 = 90%,所以 .
.
自由度 .
我們需要查找 t 分佈表中自由度為 4,右尾機率為 0.05 的 t 值 ().
從 t 分佈表中,我們找到 .
標準誤 (standard error) .
邊際誤差 (margin of error) .
90% 信賴區間為:
所以,90% 信賴區間估計為 。
(b) Please conduct a test on the null hypothesis of at . (6 pts)
這是單一樣本的右尾檢定 (one-tailed test)。
虛無假設
對立假設 (因為題目要求檢定 ,這通常意味著我們想知道是否有證據支持 大於某個值,所以對立假設是 )。
顯著水準 .
檢定統計量為 t 統計量:
, 其中 是虛無假設中的邊界值。
在這裡,.
(自由度).
第 4 題6 分
- Let , and equal the cholesterol level of a woman under the age of 50, a man under 50, a woman 50
or order, and a man 50 or order, respectively. Assume that the distribution of is , . The
following are the 5 observations of each .
: 213 202 183 185 197
: 192 189 209 227 236
: 193 224 201 161 178
: 253 248 278 232 267
(a) Please conduct a t-test on the null hypothesis of at , where , and are the mean
cholesterol level of females and males, respectively. (6 pts)
(b) Please conduct a F-test on the null hypothesis of at . (6 pts)
(c) Since there are 2 factors, AGE (under 50 v.s. over 50), and GENDER in this study, please construct a 2-way
ANOVA table and state your conclusions with respect to main effects of AGE and GENDER, and their
interaction effect at . (6 pts)
(d) Please do the Post ANOVA comparisons by conducting the pairwise t-tests on , and at .
(10 pts)
登入後即可作答並保存紀錄。
本題為一個綜合性的統計推論問題,涉及多個樣本的比較、變異數分析 (ANOVA) 及事後比較。題目設定了兩個因子:年齡 (AGE) 和性別 (GENDER),並要求進行假設檢定、建構 ANOVA 表以及進行事後比較。
首先,我們需要整理數據並計算各組的樣本平均數與樣本標準差(或變異數)。
樣本數 對於每一組。總樣本數 .
數據整理:
: Woman under 50 (Female, <50)
: Man under 50 (Male, <50)
: Woman 50 or order (Female, >=50)
: Man 50 or order (Male, >=50)
計算各組的樣本統計量:
: , (從題目 3 計算得到)
: 192, 189, 209, 227, 236
: 193, 224, 201, 161, 178
: 253, 248, 278, 232, 267
彙總統計量:
| Group | Label | Mean () | Variance () | Std Dev () | n |
|---|---|---|---|---|---|
| F, <50 | 196.0 | 154.0 | 12.41 | 5 | |
| M, <50 | 210.6 | 432.3 | 20.80 | 5 | |
| F, >=50 | 191.4 | 565.3 | 23.77 | 5 | |
| M, >=50 | 255.6 | 313.3 | 17.70 | 5 |
因子定義:
AGE: Level 1 = <50 (), Level 2 = >=50 ()
GENDER: Level 1 = Female (), Level 2 = Male ()
計算總平均數 :
.
或者 .
總樣本數 .
(a) Please conduct a t-test on the null hypothesis of at , where , and are the mean cholesterol level of females and males, respectively. (6 pts)
這裡我們要比較兩個獨立樣本的平均數。
女性樣本 (Female): . 合併後樣本數 .
男性樣本 (Male): . 合併後樣本數 .
合併後的女性平均數 .
合併後的男性平均數 .
虛無假設 .
對立假設 (雙尾檢定)。
顯著水準 .
我們需要計算合併變異數 (pooled variance) ,因為假設各組標準差相等 (雖然從 看來差異較大,但 ANOVA 的基本假設之一是變異數同質性,這裡我們暫時假設它成立)。
.
合併標準差 .
自由度 .
t 檢定統計量:
.
臨界值:雙尾檢定,, .
.
因為 , 我們拒絕虛無假設 .
結論:在 下,男性與女性的平均膽固醇水平有顯著差異。
(b) Please conduct a F-test on the null hypothesis of at . (6 pts)
這是單因子變異數分析 (One-Way ANOVA) 的 F 檢定,用於檢定所有組的平均數是否相等。
虛無假設 .
對立假設 : 至少有一個 不同。
顯著水準 .
計算 ANOVA 表的組成部分:
總變異平方和 (Total Sum of Squares, SST):
其中 (組內變異平方和, Within-group SS)
(組間變異平方和, Between-group SS)
.
.
. (這與前面計算的 相同)
.
.
F 檢定統計量 .
.
.
臨界值:F 分佈表,分子自由度 , 分母自由度 , .
.
因為 , 我們拒絕虛無假設 .
結論:在 下,至少有一個組的平均膽固醇水平與其他組有顯著差異。
(c) Since there are 2 factors, AGE (under 50 v.s. over 50), and GENDER in this study, please construct a 2-way ANOVA table and state your conclusions with respect to main effects of AGE and GENDER, and their interaction effect at . (6 pts)
2-Way ANOVA 表:
| Source of Variation | SS (Sum of Squares) | df (Degrees of Freedom) | MS (Mean Square) | F-statistic | p-value |
|---|---|---|---|---|---|
| AGE | SSB_AGE | 1 | MS_AGE | F_AGE | |
| GENDER | SSB_GENDER | 1 | MS_GENDER | F_GENDER | |
| AGE * GENDER (Interaction) | SSB_INT | 1 | MS_INT | F_INT | |
| Within Groups (Error) | SSW | 16 | MSW | ||
| Total | SSTotal | 19 |
我們已經計算了 和 。
.
計算AGE的主效應:
AGE 因子有兩個水準:<50 (由 組成) 和 >=50 (由 組成)。
平均值:
.
.
.
這裡 .
.
.
.
.
.
臨界值 .
因為 , AGE 主效應顯著。
計算 GENDER 的主效應:
GENDER 因子有兩個水準:Female (由 組成) 和 Male (由 組成)。
平均值:
(已計算)
(已計算)
.
這裡 .
.
.
.
.
.
臨界值 .
因為 , GENDER 主效應顯著。
計算 AGE * GENDER 交互效應:
交互效應 SS 可以通過總 SSB 減去主效應 SSB 來計算,或者直接計算。
(從 part (b) 計算的 SSB)
.
.
.
.
臨界值 .
因為 , AGE 和 GENDER 的交互效應顯著。
2-Way ANOVA Table:
| Source of Variation | SS | df | MS | F-statistic | Conclusion (@ ) |
第 5 題3 分
- Following problem 3 and 4,
(a) Please develop a 90% confidence interval estimate of with the pooled sample standard deviation in problem 4(a). (3 pts)
(b) Please develop a 90% confidence interval estimate of with the MSE in problem 4(b). (3 pts)
(c) Which interval estimate of 3(a), 5(a), or 5(b) is better to estimate ? Please provide your opinion. (6 pts)
登入後即可作答並保存紀錄。
核心觀念
本題探討在不同模型假設與資訊整合程度下,估計母體平均數 (50 歲以下女性平均膽固醇)之信賴區間的特性與評估:
- 單一樣本法(3(a)): 僅利用自身樣本資訊估計變異數(),自由度最小(),不依賴跨組同質性假設。
- 兩樣本合併法(5(a)): 利用性別兩群合併之標準差 (),但未分離年齡主效應與交互作用。
- ANOVA 殘差均方法(5(b)): 利用雙因子 ANOVA 模型之殘差均方 (),在控制兩因子主效應與交互作用後估計純隨機誤差變異數。
解題方法
(a) 以題 4(a) 之合併樣本標準差建立 的 90% 信賴區間
- 由題 4(a)(男女兩樣本比較,合併年齡層):
- 90% 信賴水準下,,查 分布臨界值:。
- 誤差界限:
- 90% 信賴區間:
註:若題 4(a) 係採四組組內合併標準差 (),則臨界值為 ,區間即為 (同 (b))。
(b) 以題 4(b) 之 MSE 建立 的 90% 信賴區間
- ANOVA 殘差均方:,殘差自由度 。
- 90% 臨界值:。
- 誤差界限:
- 90% 信賴區間:
(c) 評估何種區間估計較佳(3(a) vs 5(a) vs 5(b))
三者之區間長度比較如下:
- 3(a):(長度 )
- 5(a):(長度 )
- 5(b):(長度 )