109 年 國立成功大學醫學資訊研究所《機率統計》
第 1 題
The cruising distances of Gogoro batteries, in km, are recorded as the following:
95, 102, 140, 128, 179, 110, 152, 144,
182, 99, 163, 135, 158, 122, 139, 124,
121, 140, 153, 147, 109, 166, 172, 115,
1.1 Please construct a stem-and-leaf plot for the cruising distances. [15%]
1.2 Please calculate the sample median of the cruising distances. [10%]
登入後即可作答並保存紀錄。
本題主要考驗資料的整理與描述統計量之計算。
1.1 繪製詞幹與葉圖 (Stem-and-Leaf Plot)
詞幹與葉圖是一種用於展示數據分佈情況的圖示方法,特別適合用於中小型數據集。在此問題中,數據為 Gogoro 電池的巡航距離(公里)。
首先,我們需要決定詞幹 (stem) 和葉 (leaf) 的表示方式。由於數據範圍從 95 到 182,我們可以將詞幹設定為十位數,葉則為個位數。
數據整理如下:
95, 99, 102, 109, 110, 115, 121, 122, 124, 128, 135, 139, 140, 140, 144, 147, 152, 153, 158, 163, 166, 172, 179, 182
詞幹與葉圖的建構步驟:
- 將數據的十位數(或更高位數,視情況而定)作為詞幹。
- 將數據的個位數作為葉。
- 將詞幹按遞增順序排列。
- 在每個詞幹旁邊,列出對應的葉,也按遞增順序排列。
詞幹與葉圖如下:
| Stem | Leaf |
|---|---|
| 9 | 5, 9 |
| 10 | 2, 9 |
| 11 | 0, 5 |
| 12 | 1, 2, 4, 8 |
| 13 | 5, 9 |
| 14 | 0, 0, 4, 7 |
| 15 | 2, 3, 8 |
第 2 題
X is a random variable with probability distribution f(x).
2.1 Please derive mean of X if X follows Poisson distribution. [10%]
2.2 Please derive inflection points of f(x) if X follows normal distribution. [10%]
登入後即可作答並保存紀錄。
本題主要考驗對 Poisson 分佈與 Normal 分佈的機率密度函數 (PDF) 或機率質量函數 (PMF) 的理解,以及導出其期望值和 Normal 分佈的拐點。
2.1 推導 Poisson 分佈的期望值
若一個隨機變數 服從參數為 的 Poisson 分佈,其機率質量函數 (PMF) 為:
其中 是分佈的參數,代表平均發生次數。
Poisson 分佈的期望值 (Mean) 定義為:
將 Poisson PMF 代入:
由於當 時,第一項 ,因此求和可以從 開始:
將 和 進行約分 ():
將 提出求和符號,並將 寫成 :
令 。當 時,;當 時,。求和變為:
我們知道泰勒級數展開式 。因此,。
代入求和結果:
所以,Poisson 分佈的期望值就是其參數 。
【答案】若 服從 Poisson 分佈,其期望值 。
2.2 推導 Normal 分佈的拐點 (Inflection Points)
若一個隨機變數 服從參數為 (均值) 和 (方差) 的 Normal 分佈,其機率密度函數 (PDF) 為:
第 3 題
3.1 In a support system in the U.S. space program, a single crucial component works only 60% of
the time. In order to enhance the reliability of the system, it is decided that 3 components will be
installed in parallel such that the system fails only if they all fail. Assume the components act
independently and that they are equivalent in the sense that all 3 of them have a 60% success rate.
Consider the random variable X as the number of components out of 3 that fail. Please give the
probability density function f(x) and its parameters. [10%] In addition, please construct a table
containing all values of x and f(x). [5%]
3.2 If the desire is to have the system be successful with probability 0.99, are three components
sufficient? If not, how many are required? [10%]
登入後即可作答並保存紀錄。
本題考驗對獨立事件、並聯系統的可靠性分析,以及機率分佈的應用。
3.1 建立隨機變數 X 的機率密度函數 (PDF) 及參數
題目描述:
- 單一組件工作成功率為 60%,即成功率 。
- 由於故障率是 。
- 系統由 3 個組件並聯組成,系統失敗的條件是所有組件都失敗。
- 組件之間獨立工作。
- 隨機變數 是 3 個組件中失敗的組件數量。
首先,我們需要確定 所服從的機率分佈。由於我們有固定數量的獨立試驗(3 個組件),每個試驗只有兩種結果(成功或失敗),且每個組件的失敗機率是相同的,因此 服從二項分佈 (Binomial Distribution)。
- 試驗次數 (Number of trials): (共 3 個組件)。
- 單一試驗成功的機率 (Probability of success): 在此情境下,我們將「組件失敗」視為「成功」的事件,因為我們關注的是失敗的數量。因此,單一組件失敗的機率為 。
- 隨機變數 代表 3 次試驗中「失敗」的次數。
所以,隨機變數 服從參數為 和 的二項分佈,記為 。
二項分佈的機率質量函數 (PMF) 為:
在此, 且 。因此,。
參數是 和 。
接下來,我們計算所有可能的 值及其對應的 值,並構造一個表格。
可能的 值有 0, 1, 2, 3。
-
當 (所有組件都成功,沒有失敗):
-
當 (1 個組件失敗,2 個組件成功):
-
當 (2 個組件失敗,1 個組件成功):
-
當 (所有組件都失敗):
驗證總機率是否為 1:
。
表格如下:
| x (失敗組件數) | f(x) (機率) |
|---|---|
| 0 | 0.216 |
| 1 | 0.432 |
第 4 題
- X is a random variable following Poisson distribution with mean of μ.
4.1 If a sample of size n is drawn from X. The n independent observations of the sample are X1,
X2, ..., Xn, where each observation is a random variable. Please find the joint distribution f(X1, X2,
..., Xn). [10%]
4.2 Please give an approximated distribution of sample mean X, where X = (X₁ + X2 + … + Xn)/n,
when n = 100. Please explain in detail if you apply any statistical theory to find the answer. [10%]
登入後即可作答並保存紀錄。
本題考驗對 Poisson 分佈的樣本聯合機率分佈以及中央極限定理的理解與應用。
4.1 求樣本的聯合機率分佈
題目說明:
- 隨機變數 服從 Poisson 分佈,其平均值為 。
- 我們從 中抽取一個大小為 的獨立樣本,觀察值為 。
- 每個觀察值 都是隨機變數。
若 服從 Poisson 分佈,其 PMF 為:
注意:題目中 Poisson 分佈的平均值為 ,通常 Poisson 分佈的參數是 ,且 。這裡題目使用 作為參數,所以我們就用 來表示。假設 。
由於樣本的 個觀察值 是獨立抽取的,它們的聯合機率分佈是各別機率分佈的乘積。
對於每一個 ,其機率分佈與 相同,即:
因此,聯合機率分佈 為:
將分子中的 和 合併:
其中 對於所有 。
【答案】聯合機率分佈為 。
4.2 求樣本平均數的近似分佈
題目說明:
- 樣本大小 。
- 樣本平均數 。
- 皆服從平均值為 的 Poisson 分佈。
此題主要應用中央極限定理 (Central Limit Theorem, CLT)。
中央極限定理指出,對於一個具有有限期望值 和有限方差 的隨機變數序列 ,當樣本數 足夠大時(通常 被認為足夠大),樣本平均數
第 5 題
- A supermarket has been selling discounted apple in bundles of five at their counters. It is known
that the standard deviation of bundle weight is 70 grams. A random sampling of 49 bundles weight
970 grams on average. Please test the hypothesis that average bundle weight μ = 1000 grams
against the alternative hypothesis of μ < 1000 grams at the 0.05 level of significance. [10%]
登入後即可作答並保存紀錄。
本題考驗假設檢定 (Hypothesis Testing) 的概念與應用,特別是針對平均值的單尾檢定。
假設檢定步驟:
- 設定虛無假設 () 和對立假設 ()。
- 選擇檢定統計量 (Test Statistic)。
- 確定顯著水準 ()。
- 計算檢定統計量的數值。
- 決定拒絕域 (Rejection Region) 或計算 P-value。
- 做出統計決策(拒絕或不拒絕 )。
- 解釋檢定結果。
題目資訊:
- 母體標準差 克。
- 樣本大小 綑。
- 樣本平均數 克。
- 顯著水準 。
-
設定假設:
- 虛無假設 : 平均捆重 克。
- 對立假設 : 平均捆重 克。(這是一個左尾檢定)
-
選擇檢定統計量:
由於母體標準差 已知,且樣本大小 ,我們可以使用 Z 檢定。
檢定統計量為:
其中 是虛無假設下的母體平均值。 -
確定顯著水準:
。 -
計算檢定統計量的數值:
將已知數值代入公式: