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 的絕對值為
第四步:求 的聯合密度
第 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 顆。這是將球與箱子一一配對,共有
種安排。
所以
化簡得
因為所有 種安排等可能,因此
第 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% 信賴區間為:
第 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 |
第 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)
登入後即可作答並保存紀錄。
本題為問題 3 和問題 4 的延伸,主要考驗對信賴區間建立的理解,特別是在不同假設條件下如何選擇合適的估計方法,並比較不同方法的優劣。
核心觀念:
- 信賴區間的建立:當母體標準差未知時,使用 t 分佈。
- 合併標準差 (pooled standard deviation) 的使用時機。
- 均方誤差 (Mean Squared Error, MSE) 在 ANOVA 中的意義。
- 信賴區間的長度與效率。
問題 3 關注的是一個單一樣本 () 的平均值 (我們記為 )。
問題 4 進行了涉及四個組別的 ANOVA 分析,其中 是其中一個組別。
(a) Please develop a 90% confidence interval estimate of with the pooled sample standard deviation in problem 4(a). (3 pts)
在問題 4(a) 中,我們進行了男性與女性的 t 檢定,並計算了合併標準差 和自由度 。
雖然問題 4(a) 是比較男女平均數,但其計算過程使用了所有四組數據的合併變異數 (或標準差)。
這裡要求我們使用這個「合併標準差」來估計 的 90% 信賴區間。
然而,這是一個有點奇怪的要求。問題 4(a) 的合併標準差是基於所有四組數據(假設它們來自一個共同的母體變異數)來計算的,用於比較男女總體平均數。
如果我們將這個合併標準差應用於單一樣本 來估計 ,我們應該使用 作為標準誤的估計。
但是,問題 3 已經給出了 的樣本數據,並計算了其樣本標準差 和自由度 。
如果題目是要求「使用來自問題 4(a) 的合併標準差 」,那麼我們應該使用 來計算標準誤。
信賴區間公式:
(來自問題 3)
(來自問題 4(a))
(樣本數)
, .
這裡的自由度應該是多少?如果我們使用 ,通常其自由度是來自合併變異數的計算,即 (來自問題 4(b) 的 Within Groups )。
所以,我們使用 .
標準誤 .
邊際誤差 .
90% 信賴區間 = .
(b) Please develop a 90% confidence interval estimate of with the MSE in problem 4(b). (3 pts)
在問題 4(b) 的 ANOVA 分析中,我們計算了 Within Groups 的均方 (Mean Squared Error, MSE),它被用作母體變異數 的無偏估計。
.
的平方根是合併標準差的估計,.
注意, 的自由度是 。
所以,這個要求實際上與 (a) 是相同的,因為 在問題 4(a) 的計算中就是 。
因此,使用 MSE 來建立信賴區間,其標準誤的計算與 (a) 相同。
信賴區間公式:
, .
.
標準誤 .
邊際誤差 .
90% 信賴區間 = .
思考: 題目要求使用「pooled sample standard deviation in problem 4(a)」和「MSE in problem 4(b)」。
在 4(a) 中,我們計算了 。
在 4(b) 的 ANOVA 表中,MSE = MSW = 366.3。
所以,這兩個計算結果是完全一樣的。這兩部分的標準誤計算和信賴區間結果也應該是相同的。
這似乎意味著這兩個小題的意圖是相同的,即估計 的信賴區間,但假設 可以從所有數據(或多組數據)合併估計。
(c) Which interval estimate of 3(a), 5(a), or 5(b) is better to estimate ? Please provide your opinion. (6 pts)
我們有三個信賴區間可以比較:
- 來自問題 3(a): 使用 的樣本數據,計算得到 , , 。
90% CI = .