108 年 國立臺北大學通訊工程研究所《機率》
第 1 題
An urn contains four 5 bill. Let the random variable X be the total amount that results when two bills are drawn from the urn with replacement (meaning that a bill is firstly drawn and put back, and then the other bill is drawn again).
(a) Find the pmf of X.
(b) Find the expected value of X.
(c) Find the variance of X.
登入後即可作答並保存紀錄。
本題考驗隨機變數的定義、機率質量函數 (pmf)、期望值與變異數的計算。
核心觀念:
隨機變數的定義、獨立重複試驗 (with replacement) 的機率計算、離散型隨機變數的期望值與變異數公式。
解題步驟:
首先定義可能抽出的兩種面額的錢幣。
令 為第一次抽取的紙鈔面額, 為第二次抽取的紙鈔面額。
紙鈔種類:2, 2, 2 的機率為 。
抽到 P(B_i = 5) = \frac{1}{5}$。
由於是「with replacement」,兩次抽取是獨立的。
隨機變數 為兩次抽取金額的總和,即 。
可能的值有:
- 抽到 2:
- 抽到 5:
- 抽到 2:
- 抽到 5:
所以 的可能值為 。
(a) 求 的機率質量函數 (pmf)。
。
。
。
驗證總機率:。
PMF 為:
(b) 求 的期望值 。
$E[X] = \frac{64}{25} + \frac{56}{25} + \frac{10}{25} = \frac{130}{25} = \frac{26}{5} = 5.2
第 2 題10 分
Let X be the number of successful events in a sequence of N events. Each event is independent and has the probability of success "p". Find the probability mass function (pmf).
登入後即可作答並保存紀錄。
本題考驗二項分布的定義與機率質量函數的推導。
核心觀念:
二項分布 (Binomial Distribution) 的條件:獨立的伯努利試驗 (Bernoulli trials) 重複固定次數,每次試驗成功機率相同。
解題步驟:
題目定義 為「N 個事件序列中成功的事件數量」。
每個事件是獨立的,且成功的機率為 。
這符合二項分布的定義,其中:
- 試驗次數 (number of trials) 為 。
- 每次試驗成功的機率 (probability of success) 為 。
- 隨機變數 代表成功次數。
第 3 題10 分
Let X be the first wrong bit in a sent bit sequence. Then X is a geometric random variable with the parameter p (meaning that the probability of sending a wrong bit is p and the event of sending a bit is independent). If we know the first 4 bits are correct, please find the probability that the first 10 bits are correct.
登入後即可作答並保存紀錄。
核心觀念
令 表示第一個錯誤位元出現的位置。由於每個位元獨立傳送,且單一位元傳錯的機率為 ,傳送正確的機率為
「前 個位元皆正確」等價於「第一個錯誤位元的位置晚於第 位」,即
因此題目要求的是條件機率
解題方法
已知前 個位元正確,代表第 至第 位已經確定沒有錯誤。要使前 個位元皆正確,只需再要求第 至第 位共 個位元全部正確。
由位元傳送彼此獨立,
也可直接利用幾何分布的條件機率表示:
第 4 題10 分
A number N of people entering the front gate of NTPU is a Poisson random variable. Assume that the average people entering the front gate within one hour are 50.
(Just write down the expressions for answers. No need to calculate the values.)
(a) Please write down the pmf of N.
(b) Find the probability that the first person shows up after 0.5 hr.
登入後即可作答並保存紀錄。
核心觀念
本題考查:
- Poisson 隨機變數的機率質量函數(pmf)。
- Poisson process 的到達率與區間計數分布。
- 「第一個人於某時間後才出現」等價於「該時間以前沒有任何人進入」。
一小時平均有 50 人進入,因此到達率為
在標準均勻 Poisson process 假設下,長度為 小時的時間區間內,進入人數服從
解題方法
(a) 的 pmf
題目中的 表示一小時內進入的人數,因此
Poisson 隨機變數的 pmf 為
代入平均值 ,得到
(b) 第一個人於 小時後才出現的機率
令 表示第一個人出現的時間。「第一個人於 小時後才出現」表示前 小時內沒有任何人進入,因此
由 Poisson process 的性質,
因此
第 5 題24 分
Suppose that the random variable X has the c.d.f.
Determine (a) the p.d.f. of X; (b) the mean of X; (c) the variance of X; and (d) the median of X.
登入後即可作答並保存紀錄。
本題考驗累積分布函數 (cdf) 與機率密度函數 (pdf) 的關係,以及期望值、變異數和中位數的計算。
核心觀念:
- cdf 到 pdf 的轉換:。
- 期望值 (Mean):。
- 變異數 (Variance):。
- 中位數 (Median):滿足 的值 。
解題步驟:
給定的累積分布函數 (cdf) 為:
(a) 求 X 的機率密度函數 (p.d.f.)。
pdf 是 cdf 的導數。我們對 在其定義域內進行微分。
對於 ,
。
對於 或 ,cdf 是常數 (0 或 1),其導數為 0。
所以,X 的 p.d.f. 為:
驗證 pdf 的總積分是否為 1:
。 驗證通過。
(b) 求 X 的期望值 (mean) 。
第 6 題26 分
Suppose that three random variables X1, X2 and X3 are jointly distributed with the following p.d.f.
for , and . Determine
(a) the value of the constant k;
(b) the marginal joint p.d.f. for X1 and X3;
(c) the probability ;
(d) the sum of conditional expectations ;
(e) the covariance .
登入後即可作答並保存紀錄。
本題考驗多變量機率的觀念,包括求常數、邊緣機率密度函數、條件機率、條件期望值以及共變異數的計算。
核心觀念:
- 聯合機率密度函數 (Joint PDF) 的歸一化:積分必須為 1。
- 邊緣機率密度函數 (Marginal PDF):對聯合 PDF 積分掉其他變數。
- 條件機率密度函數 (Conditional PDF):。
- 條件期望值 (Conditional Expectation):。
- 共變異數 (Covariance):。
- 指數分布的性質:獨立性。
解題步驟:
給定的聯合機率密度函數 (joint pdf) 為:
且在其他區域為 0。
(a) 求常數 的值。
聯合 PDF 在整個定義域上的積分必須等於 1。
由於各個指數項是獨立的,我們可以將積分拆開:
計算每個積分:
。
所以,
將這些結果代回:
。
所以,聯合 pdf 為 ,for 。
注意到,這可以寫成 。
這表示 是獨立的隨機變數。
的 pdf 是 for (指數分布,參數 )。
的 pdf 是 for (指數分布,參數 )。
的 pdf 是 for (指數分布,參數 )。
(b) 求 和 的邊緣聯合 p.d.f. ()。
邊緣 PDF 是透過對聯合 PDF 積分掉所有其他變數得到的。
我們已經計算過 。
所以,,for 。