109 年 國立臺灣大學土木系碩士班交通組《統計學(C)》
第 1 題10 分
- Show that the following definition of sample variance is a biased estimator of the population variance .
登入後即可作答並保存紀錄。
核心觀念
本題考查樣本變異數的期望值,以及「不偏估計量」的判定:
若估計量 滿足
則稱 為母體參數 的不偏估計量。
設母體平均數為 、變異數為 ,且 為來自同一母體的獨立隨機樣本,則
題目給定
此定義其實是標準的「不偏樣本變異數」。
解題方法
關鍵是將偏差平方和改寫成以母體平均數 為中心的形式。
由
可得
展開後:
因為
且
所以
兩邊取期望值:
第一項為
又因為
因此
第 2 題30 分
- The joint probability mass function of random variables and is given in the following table.
(i) (10%) Find the marginal probability mass functions for both and .
(ii) (5%) What is the expected value for ?
(iii) (10%) Are and statistically independent? Give your reasons.
(iv) (5%) Given , what is the probability that ?
登入後即可作答並保存紀錄。
此題為聯合機率分布的應用題,涵蓋邊際機率、期望值、獨立性檢定及條件機率的計算。
首先,我們將給定的聯合機率質量函數 (joint probability mass function, jpmf) 整理成一個表格,並計算總機率,確認其為有效的機率分布。
聯合機率分布表:
總機率檢查:
。
總機率為 1,因此此聯合機率分布有效。
(i) 邊際機率質量函數 (Marginal Probability Mass Functions)
邊際機率質量函數 是將聯合機率函數對所有可能的 值加總:。
邊際機率質量函數 是將聯合機率函數對所有可能的 值加總:。
計算 :
驗證 的總和: 。
計算 :
驗證 的總和: 。
邊際機率質量函數:
:
:
(ii) 的期望值 (Expected Value of Y)
期望值 的計算公式為 。
第 3 題30 分
- The occurrence of large-magnitude earthquakes in a city can be modeled as a Poisson process. 10 large-magnitude earthquakes occurred in City A within the last 10 years. If there is at least one occurrence of earthquake in a year, that year would be classified as a hazard year.
(i) (10%) What is the probability that there will be exactly one large-magnitude earthquake next year in City A?
(ii) (10%) What is the probability that the next year would be a hazard year for City A?
(iii) (10%) What is the probability that there will be 2 hazard years within the next 4 years?
登入後即可作答並保存紀錄。
此題涉及 Poisson Process 的應用,用於模擬地震發生的頻率。題目要求計算在不同時間尺度下,發生特定數量的地震或特定類型的年份(Hazard Year)的機率。
首先,我們需要確定 Poisson Process 的參數 。
Poisson Process 的特性是事件發生率是恆定的。題目提到「10 large-magnitude earthquakes occurred in City A within the last 10 years」。
這表示在 10 年的期間內,平均發生了 10 次地震。
因此,平均每年發生的地震次數為 。
所以,Poisson Process 的平均發生率 (次/年)。
Poisson 分布的機率質量函數 (PMF) 為:
其中 是在特定時間間隔內事件發生的平均次數。
(i) 下一年恰好發生一次大地震的機率
我們關注的是「下一年」這個時間間隔,長度為 1 年。
對於這個時間間隔,平均發生的地震次數 。
我們要求恰好發生一次大地震的機率,即 ,其中 是下一年發生的地震次數。
。
。
【答案】 。
(ii) 下一年是 Hazard Year 的機率
定義:如果一年內至少發生一次地震,該年就稱為 Hazard Year。
我們要求的是下一年是 Hazard Year 的機率。
這意味著下一年發生的地震次數 必須大於或等於 1 ()。
計算 比較直接的方法是計算其補集的機率:。
在 Poisson 分布中, 的值是非負整數,所以 相當於 。
。
所以,。
。
答案: 。
(iii) 未來 4 年內有 2 個 Hazard Years 的機率
現在我們關注的時間間隔是「未來 4 年」。
在這個 4 年的期間內,平均發生的地震次數為 。
第 4 題10 分
- A survey is performed to study the proportion of residents in City A and City B who support the construction of a new railway line. It is found that 680 of 1000 City A residents favor the construction while 730 of 1000 City B residents are in favor. Is there a significant difference between the proportions of City A and City B residents who favor the construction of the new railway line? Use the P-value approach to help your draw your conclusion. Use 0.05 as the level of significance.
登入後即可作答並保存紀錄。
此題為兩比例的假設檢定 (Hypothesis Testing for Two Proportions),我們需要比較兩個城市居民對鐵路建設支持比例的差異,並使用 P-value approach 來做判斷。
1. 設定假設檢定:
我們要檢定兩個城市的居民支持比例是否存在顯著差異。
令 為 City A 居民支持比例,令 為 City B 居民支持比例。
虛無假設 : (兩個城市的居民支持比例沒有顯著差異)
對立假設 : (兩個城市的居民支持比例有顯著差異)
這是一個雙尾檢定 (two-tailed test)。
2. 收集數據:
City A: 樣本數 ,支持人數 。
City B: 樣本數 ,支持人數 。
計算樣本比例:
3. 計算合併比例 (Pooled Proportion):
在虛無假設 下,我們假設兩個母體比例相等,因此使用合併的樣本比例作為估計值。
4. 計算檢定統計量 (Test Statistic):
對於兩個比例的差異檢定,我們使用 Z 檢定統計量。
在 下,。
第 5 題20 分
- Company A and Company B are steel manufacturers. 25 steel specimens are obtained from each company to determine the yield strength. The result shows that the sample mean strength and sample standard deviation for Company A are 30.2 ksi and 4.0 ksi respectively. For Company B, the sample mean strength and sample standard deviation are 35.3 ksi and 5.0 ksi respectively.
(i) (10%) Construct a 95% confidence interval for the difference in the mean yield strength for the 2 companies. Assume normality for the distribution of yield strength.
(ii) (10%) Construct a 95% confidence interval for the population variance of the yield strength for Company A.
登入後即可作答並保存紀錄。
此題為兩個獨立樣本的變異數與平均數的信賴區間估計問題。題目要求分別計算兩個公司平均數差異的信賴區間,以及其中一個公司母體變異數的信賴區間。
已知資訊:
公司 A:樣本數 ,樣本平均數 ksi,樣本標準差 ksi。
公司 B:樣本數 ,樣本平均數 ksi,樣本標準差 ksi。
信賴水準:95%。
假設:樣本來自常態分配。
(i) 兩個公司平均數差異的 95% 信賴區間
我們要計算母體平均數差異 的 95% 信賴區間。
由於兩個母體變異數 和 未知,且樣本數 (不大),我們通常會使用 t 分布。
我們需要判斷是否假設兩個母體變異數相等。題目沒有明確說明,但通常在未提及相等時,應假設它們不等 (unequal variances),並使用 Welch-Satterthwaite 方法來計算自由度。然而,如果題目允許假設變異數相等 (equal variances),則會使用池化變異數 (pooled variance) 和較簡單的自由度計算。
在沒有明確指示的情況下,且樣本數相等,我們可以使用兩種方法。最保守且常見的做法是假設變異數不等。
方法一:假設變異數不等 (Unequal Variances)
信賴區間的公式為:
首先計算自由度 使用 Welch-Satterthwaite 方程式:
我們通常取整數的自由度,可以取 45 或 46。為了保守起見,可以取較小的自由度 45,或者查表時使用更精確的 值。若取 ,查 t 分布表,對於 95% 信賴水準 (),。
計算信賴區間:
信賴區間為 。