108 年 國立中央大學工業管理研究所碩士班《統計學》
第 1 題
- Consider a stochastic activity network as shown in Figure 1 with five activities, A1, ..., A5. Node S denotes project starting and node F denotes project completion. The directed arrows in a stochastic activity network denote not only activities but also precedence constraints. The precedence constraints are as follows. A2 and A3 can only be started after A1 is completed, and A5 can only be started after A3 and A4 are completed. The project is completed after all five activities are completed. Let denote the independent duration of activity , , and let denote the earliest completion time of node . Our goal is to compute the marginal distribution of the earliest completion time of the project. We will assume that each activity will be started as soon as possible (after completion of all preceding activities). Also, we assume that .
🖼️【此處有附圖,請對照原卷】
(a) Express in terms of and (5 points)
(b) Determine the conditional CDF of given (10 points)
(c) Determine the conditional CDF of given and (5 points)
(d) Express in terms of and (5 points)
(e) Determine the conditional CDF of given (10 points)
登入後即可作答並保存紀錄。
本題主要考驗對隨機活動網絡 (Stochastic Activity Network) 的理解,以及如何計算節點的最早完成時間 (Earliest Completion Time),並推導其機率分佈。這涉及到機率論中指數分佈的性質以及條件機率的應用。
(a) Express in terms of and
根據圖一所示,節點 B 是由活動 A4 所代表。活動 A4 的開始時間取決於其前置節點 S 的完成時間,也就是 。由於活動 A4 的持續時間為 ,因此節點 B 的最早完成時間 可以表示為:
又已知 ,所以:
【答案】
(b) Determine the conditional CDF of given
我們已經知道 。由於 和 是獨立的隨機變數,因此 的分佈與 的值無關。
服從指數分佈,其機率密度函數 (PDF) 為 ,其中 。
累積分佈函數 (CDF) 為 ,其中 。
因此, 的 CDF 為:
由於 和 獨立,條件 對 的分佈沒有影響。
,其中 。
【答案】,對於 。
(c) Determine the conditional CDF of given and
我們需要計算 。
根據 (a) 和 (d) 的推導,我們知道 。
所以我們要求的是 。
由於 , , 是獨立的隨機變數,條件 和 對 的分佈沒有影響。
因此,我們只需要計算 ,也就是 。
由於 ,其 CDF 為 for 。
所以,,當 。
如果 ,則機率為 0。
【答案】
(d) Express in terms of and
節點 T 是專案的完成節點 F,代表專案的結束。根據圖一,節點 T 的最早完成時間 取決於所有前置活動 A1, A2, A3, A4, A5 的完成情況。
從圖中可以看出,節點 A 的最早完成時間 是由活動 A1 決定,即 。
節點 B 的最早完成時間 是由活動 A4 決定,即 。
活動 A2 的前置節點是 A1,所以 A2 的開始時間是 。活動 A2 的完成時間是 。
活動 A3 的前置節點是 A1,所以 A3 的開始時間是 。活動 A3 的完成時間是 。
節點 T 的前置節點是 A2, A3, A4, A5。
活動 A5 的前置節點是 A3 和 A4。因此,A5 的開始時間是 。
活動 A5 的完成時間是 。
然而,題目敘述中提到「The project is completed after all five activities are completed.」。並且「The directed arrows in a stochastic activity network denote not only activities but also precedence constraints.」。從圖一來看,T 節點似乎連接了 A2, A3, A4, A5,但 A2, A3, A4, A5 的箭頭都指向 T。這表示 T 的完成時間是所有這些活動的最晚完成時間。
更精確地說,T 的最早完成時間 是由所有到達 T 的箭頭所代表活動的最早完成時間中的最大值。
A2 完成時間:
A3 完成時間:
A4 完成時間: (因為 A4 的前置是 S)
A5 的開始時間是 。
A5 的完成時間是 。
節點 T 的完成時間 是所有活動 A1, A2, A3, A4, A5 完成的最晚時間。
A1 完成時間:
A2 完成時間:
第 2 題
- The moment generating function of random variable X is defined as follows:
, where is the pdf of X.
(a) Find the moment generating function of X, where X is U(0,1) distributed. (5 points)
(b) Find from the moment generating function of Y, where , X and Z are independent and U(0,1) distributed. (10 points)
登入後即可作答並保存紀錄。
本題主要考驗矩母函數 (Moment Generating Function, MGF) 的定義與性質,特別是如何利用 MGF 計算期望值與變異數,以及獨立隨機變數和的 MGF 性質。
(a) Find the moment generating function of X, where X is U(0,1) distributed.
對於一個在區間 上均勻分佈的隨機變數 ,其機率密度函數 (PDF) 為:
矩母函數 (MGF) 的定義為 。
將 代入:
計算積分:
這個結果對所有 都成立。當 時,此函數趨近於 1 (可通過 L'Hopital's rule 驗證:)。
【答案】,對於 。
(b) Find from the moment generating function of Y, where , X and Z are independent and U(0,1) distributed.
首先,我們需要找到隨機變數 的矩母函數 。
由於 和 是獨立的隨機變數,且都服從 分佈,它們各自的 MGF 為:
對於獨立隨機變數的和,其 MGF 等於各自 MGF 的乘積:
矩母函數的性質是,其 階導數在 的值等於 。也就是 。
我們需要計算 ,這等於 。
為了計算二階導數,我們需要對 進行兩次微分。這會比較複雜,因為 時函數有 的不定形式。我們可以使用泰勒展開式來處理。
的泰勒展開式為
所以,
第 3 題
- To test a particular coin fair or not, (i.e. ), we decide to flip the coin times. Let X denote the number of heads appearing in n flips.
(a) Please provide a M.L.E. of ; (5 points)
(b) Let , try to use X to be the test statistics to develop a test on
(1) Show the distribution of X. (5 points)
(2) Let's set the significant level, , to be 0.15, show the rejection rule. (5 points)
(3) Based on your rejection rule in (b-2), what is the testing power on ? (5 points)
(4) If only one head appears in 4 flips, what is your conclusion? (5 points)
(5) Please develop a 85% confidence interval of . (5 points)
(c) If , let's use to be the test statistics to test on
(1) Since , we can invoke the Central Limit Theory, show the approximate distribution of Y.
(5 points)
(2) Let's set the significant level, , to be 0.15, show the rejection rule. In other words, what is the
critical number of heads appearing to reject . (5 points)
(3) Based on your rejection rule in (c-2), what is the testing power on ? (5 points)
(4) Please develop a 85% confidence interval of . (5 points)
登入後即可作答並保存紀錄。
核心觀念
本題探討單一母體比例(Bernoulli 試驗之成功機率 )的點估計、小樣本精確檢定與大樣本漸近檢定:
- 最大概似估計(MLE):二項分配的概似函數對數微分求極值。
- 小樣本二項檢定(Exact Binomial Test):樣本數小()時無法使用常態近似,必須直接以二項分配機率質量函數計算顯著水準 (型 I 錯誤率)、拒絕域、檢定力(Power)及信賴區間。
- 大樣本常態近似檢定(Central Limit Theorem, CLT):樣本數較大()時,樣本比例 漸近服從常態分配,可利用標準常態統計量 建構雙尾拒絕域、計算對立假設下的檢定力及漸近信賴區間。
解題方法與詳細推導
(a) 求 的最大概似估計量(M.L.E.)
在 次獨立投擲中,每次正面出現的機率為 。令 為正面出現次數,則 ,其機率質量函數為:
概似函數(Likelihood function)與對數概似函數(Log-likelihood function)為:
對 微分並令其為 0(一階條件):
二階導數為:
因此極大值成立,母體比例 的最大概似估計量(MLE)為:
(b) 當 ,以 為檢定統計量檢定
(1) 說明 的分配
在 次獨立 Bernoulli 試驗中, 代表正面出現次數,因此 服從二項分配:
若在虛無假設 成立下:
其個別點機率為 :
(2) 顯著水準 下的拒絕域(Rejection Rule)
雙尾檢定 ,對稱拒絕域應落在兩側極端值 :
若再納入 或 ,則機率增加 ,將使型 I 錯誤率達到 ,大幅超過 。
在離散分配中,名目顯著水準 下,不超過 的最大可能精確拒絕域為:
此時實際型 I 錯誤率為 。
(3) 在 時的檢定力(Testing Power)
檢定力為在對立假設真實值下正確拒絕 的機率:
當 時:
(4) 若 4 次投擲中出現 1 次正面,檢定結論為何?
觀測值 。
對照 (b-2) 之拒絕域 , 不屬於拒絕域(即 )。
因此結論為:不拒絕 (Fail to reject ),在顯著水準 下,沒有足夠證據顯示該硬幣不公正。
(5) 建立 的 85% 信賴區間
-
方法一(小樣本二項精確 Clopper-Pearson 區間,觀測值 ):
雙尾 ,單尾 。
下界 滿足:上界 滿足:
數值解得 。
精確 85% 信賴區間為 。 -
方法二(若考題要求直接套用標準 Wald 區間公式):
對應 85% 信賴水準,查標準常態臨界值 :
截斷至機率合理範圍 後為 (或一般 Wald 區間式 )。
第 4 題
- A sample of size n=10 is drawn from a normal distribution with unknown mean and known variance .
(a) If the sample mean is , what is the 95% confidence interval for ? (5 points)
(b) If the sample mean is , what is the p-value for the test of against ? (5 points)
(c) If we want to perform a hypothesis test of against with significance level , and we want the power of the test to be 0.8 when , what is the required sample size ? (10 points)
登入後即可作答並保存紀錄。
本題主要考驗關於正態分佈的參數估計和假設檢定,特別是當母體變異數已知時,如何計算信賴區間、p-value 以及確定所需的樣本大小。
(a) If the sample mean is , what is the 95% confidence interval for ?
題目給定樣本大小 ,母體服從正態分佈,且已知母體變異數 。因此,母體標準差 。
樣本均值 。
由於母體變異數已知,我們使用 Z 分佈來建構信賴區間。
95% 信賴區間的公式為:。
對於 95% 的信賴水準,。
。
查找標準常態分佈表,與 的尾部機率對應的 值是 。
將已知數值代入公式:
信賴區間
信賴區間為 。
【答案】95% 信賴區間為 。
(b) If the sample mean is , what is the p-value for the test of against ?
這是關於均值的單尾假設檢定。
虛無假設 。
對立假設 。
已知 , , 。
由於 已知,我們使用 Z 檢定統計量。
檢定統計量 ,其中 是 下的均值。
。
p-value 是在 為真時,觀察到比樣本結果更極端的結果的機率。對於右尾檢定 (),p-value 是 。
p-value 。
查標準常態分佈表, 。
。
p-value 。
【答案】p-value 約為 。
(c) If we want to perform a hypothesis test of against with significance level , and we want the power of the test to be 0.8 when , what is the required sample size ?
這個問題是關於樣本大小的確定。
虛無假設 。
對立假設 。
顯著水準 。
檢定力 (Power) 。
當真實均值 時,我們希望檢定力為 0.8。
由於 已知,我們使用 Z 檢定。
對於雙尾檢定,顯著水準 ,我們有 。
對應的臨界 Z 值是 。
檢定力為 ,這表示在對立假設下,我們希望正確地拒絕 的機率為 。
由於對立假設是 ,檢定力是指 。
在雙尾檢定中,拒絕域是 或 。
第 5 題
- A random sample of size is taken from a population with unknown mean and unknown variance .
(a) If the sample mean is and the sample standard deviation is , construct a 95% confidence interval for . (5 points)
(b) If we want to test against with , and the sample mean is and the sample standard deviation is , what is the conclusion of the test? (5 points)
(c) If the sample mean is and the sample standard deviation is , what is the p-value for the test in part (b)? (5 points)
登入後即可作答並保存紀錄。
本題主要考驗當母體變異數未知時,如何進行樣本均值的信賴區間估計和假設檢定,這通常涉及到 t 分佈。
(a) If the sample mean is and the sample standard deviation is , construct a 95% confidence interval for .
題目給定樣本大小 ,樣本均值 ,樣本標準差 。
由於母體變異數 未知,我們使用 t 分佈來建構信賴區間。
信賴區間的公式為:。
自由度 (degrees of freedom, df) 為 。
對於 95% 的信賴水準,。
。
查找 t 分佈表,在 df=24 且右尾機率為 的臨界值是 。
將已知數值代入公式:
信賴區間
信賴區間為 。
【答案】95% 信賴區間為 。
(b) If we want to test against with , and the sample mean is and the sample standard deviation is , what is the conclusion of the test?
這是關於均值的雙尾假設檢定,母體變異數未知。
虛無假設 。
對立假設 。
顯著水準 。
樣本數據:, , 。
由於 未知,我們使用 t 檢定。
檢定統計量 。
。
自由度 df = 。