108 年 國立清華大學計量財務金融研究所財務工程組《統計學》
第 1 題15 分
Let be a random sample from a normal distribution population with mean and variance . Explain your assumptions and show that
登入後即可作答並保存紀錄。
本題考驗對卡方分配 (Chi-squared distribution) 的理解,特別是樣本變異數與母體變異數的關係。
核心觀念:
- 卡方分配的定義: 若 為獨立的標準常態隨機變數 (mean 0, variance 1),則 服從自由度為 的卡方分配,記為 。
- 樣本平均數的性質: 當來自均值為 、變異數為 的常態分配,樣本平均數 服從均值為 、變異數為 的常態分配。
- 樣本變異數的性質: 對於來自常態分配的隨機樣本, 服從自由度為 的卡方分配,其中 是樣本變異數。
解題步驟與說明:
首先,我們需要明確說明所做的假設:
- 母體分配為常態分配 (Normal Distribution): 對所有 。
- 獨立同分布 (Independent and Identically Distributed, i.i.d.): 樣本 是從這個常態分配中獨立抽取且具有相同的分配。
現在,我們來推導 服從 。
我們知道,對於任意一個隨機變數 ,若 ,則 。
因此,對於樣本中的每一個 ,我們可以寫成:
根據卡方分配的定義,若 ,則 服從自由度為 的卡方分配,即 。
接下來,我們需要將分子中的 替換成 。這一步是關鍵,需要用到一個重要的恆等式:
由於 ,所以中間項為 0。
因此,我們得到:
將這個恆等式代入我們想證明的式子中:
我們知道左邊的式子 服從 。
我們也知道 ,所以 。
因此, 服從自由度為 1 的卡方分配,即 。
根據卡方分配的加法性質,若一個變數可以表示為兩個獨立的平方和,且這兩個變數分別服從 和 ,則它們的和服從 。
在這裡,我們有 。
這個分解成立的關鍵在於, 和 是統計獨立的 (在常態母體下)。
第 2 題20 分
The Computer Anxiety Rating Scale (CARS) measures an individual's level of computer anxiety, on a scale from 20 (no anxiety) to 100 (highest level of anxiety). Researchers at Miami University administered CARS to 172 business students. One of the objectives of the study was to determine whether there is a difference in the level of computer anxiety experienced by female and male business students. They found the following:
| Males | Females | |
|---|---|---|
| 40.26 | 36.85 | |
| 13.35 | 9.42 | |
| 100 | 72 |
Source: Data extracted from T. Broome and D. Havelka, "Determinants of Computer Anxiety in Business Students," The Review of Business Information Systems, Spring 2002, 6(2), pp. 9-16.
Compute the coefficient of correlation between gender (male or female) and the level of computer anxiety experienced. (20%)
登入後即可作答並保存紀錄。
核心觀念
- 點二列相關係數 (point‑biserial correlation):是兩變項其中一個為二元(0/1)離散變數,另一個為連續變數時的 Pearson 相關係數。
- 公式
其中
- 為兩組(分別編碼為 1、0)的樣本平均。
- 、 為兩組在全體樣本中的比例 ()。
- 為 合併標準差(pooled SD),計算方式
其中 , 為各組樣本標準差。
解題方法
- 決定編碼:以 male = 1, female = 0(任意選擇,只會影響符號方向)。
- 計算比例
- 合併變異數
- 平均差
第 3 題15 分
A municipal bond service has three rating categories (A, B, and C). Suppose that in the past year, of the municipal bonds issued throughout the United States, 70% were rated A, 20% were rated B, and 10% were rated C. Of the municipal bonds rated A, 50% were issued by cities, 40% by suburbs, and 10% by rural areas. Of the municipal bonds rated B, 60% were issued by cities, 20% by suburbs, and 20% by rural areas. Of the municipal bonds rated C, 90% were issued by cities, 5% by suburbs, and 5% by rural areas. If a new municipal bond is to be issued by a city, what is the probability that it will receive an A rating? (15%)
登入後即可作答並保存紀錄。
本題考驗對條件機率和貝氏定理 (Bayes' Theorem) 的應用。我們需要計算在已知一個市政債券是由城市發行 (事件 C) 的條件下,該債券獲得 A 評級 (事件 A) 的機率。
核心觀念:
- 全機率法則 (Law of Total Probability): ,其中 是互斥且窮盡的事件。
- 貝氏定理 (Bayes' Theorem): 。
符號定義:
- : 債券獲得 A 評級。
- : 債券獲得 B 評級。
- : 債券獲得 C 評級。
- : 債券由城市發行。
- : 債券由郊區發行。
- : 債券由農村地區發行。
已知資訊:
-
評級機率:
(注意:,這三種評級是窮盡且互斥的。)
-
發行地點在評級下的條件機率:
- 對 A 級債券:
- 對 B 級債券:
- 對 C 級債券:
- 對 A 級債券:
問題:
求 ,即在已知債券由城市發行 (City) 的條件下,它獲得 A 評級 (A) 的機率。
解題步驟:
根據貝氏定理,我們需要計算:
我們已知 和 。
現在我們需要計算分母 ,即一個市政債券由城市發行的總機率。
我們可以利用全機率法則來計算 ,其中事件 A, B, C 是互斥且窮盡的:
代入已知數值:
- (這是債券是 A 級且由城市發行的聯合機率 )
- (這是債券是 B 級且由城市發行的聯合機率 )
- (這是債券是 C 級且由城市發行的聯合機率 )
所以,
這表示所有市政債券中,有 56% 是由城市發行的。
現在,我們可以計算 :
進行計算:
可以約分,35 和 56 都可以被 7 整除:
將其轉換為小數:
結論:
如果一個新的市政債券是由城市發行的,那麼它獲得 A 評級的機率是 0.625。
驗算:
我們可以計算其他評級的條件機率,以確保總和為 1。
第 4 題20 分
Let be a random sample from a normal distribution population with mean and variance . Consider an unbiased estimator for and the estimator is
Compute the expectation value of . (20%)
登入後即可作答並保存紀錄。
核心觀念
對於隨機樣本 ,若 為 之線性無偏估計量(),則差值 的期望值為 ,因此:
或可利用離均差平方和分解式 簡化計算。
解題方法
-
將每項寫為樣本的線性組合:
已知 ,因係數和為 ,故 ,且對每個 皆有 。
分別寫出各差值項: -
利用獨立性計算各項平方期望值(即變異數):
第 5 題30 分
Integrated circuits are manufactured on silicon wafers through a process that involves a series of steps. An experiment was carried out to study the effect on the yield of using three methods in the cleansing step (coded to maintain confidentiality). The results are as follows:
| New1 | New2 | Standard | |
|---|---|---|---|
| 38 | 29 | 31 | |
| 34 | 35 | 23 | |
| 38 | 34 | 38 | |
| 34 | 29 |
a. At the 0.05 level of significance, is there evidence of a difference in the mean yield among the methods used in the cleansing steps? (15%)
b. Repeat (a) by using linear regression model. Write down the linear regression model, define the dependent variable and independent variables, and state the hypothesis. What assumption must you make in order to obtain the same results? (Note: you do not need to calculate the number) (15%)
登入後即可作答並保存紀錄。
Part a: ANOVA Analysis
本題考驗對單因子變異數分析 (One-way ANOVA) 的理解與應用。我們要檢定三種不同的清潔方法 (New1, New2, Standard) 是否對矽晶圓的產出率 (yield) 有顯著不同的影響。
核心觀念:
- 變異數分析 (ANOVA): ANOVA 是一種用於比較兩個或多個組別平均數是否相等的方法。它將總變異分解為組間變異 (between-group variability) 和組內變異 (within-group variability)。
- F 檢定: ANOVA 的檢定統計量是 F 值,它代表組間變異與組內變異的比例。如果組間變異顯著大於組內變異,則表示組別的平均數之間存在差異。
- 顯著水準 (Significance Level, ): 在此題中,。
- 虛無假設 () 與對立假設 ():
- : 所有組別的平均數相等。即 。
- : 至少有一個組別的平均數與其他組別不同。
數據整理:
首先,我們需要整理數據並計算各組的樣本數、平均數和變異數。
| Method | Data Points | Sum | Mean () | Sum of Squares () | Variance () | |
|---|---|---|---|---|---|---|
| New1 | 38, 34, 38, 34 | 4 | 144 | |||
| New2 | 29, 35, 34 | 3 | 98 | |||
| Standard | 31, 23, 38, 29 | 4 | 121 |
總樣本數 。
總平均數 。
計算 ANOVA 表:
-
計算總平方和 (Total Sum of Squares, SST):
New1:
New2:
Standard:
-
計算組間平方和 (Between-Group Sum of Squares, SSB):
精確計算 SSB:
-
計算組內平方和 (Within-Group Sum of Squares, SSW):
或者,我們可以從各組的變異數計算 SSW:
兩種方法計算結果一致。 -
計算自由度 (Degrees of Freedom, df):
- 組間自由度 (k 為組別數)
- 組內自由度
- 總自由度 ()
-
計算均方 (Mean Squares):
- 組間均方
- 組內均方
-
計算 F 值:
-
做出決策:
我們需要將計算出的 F 值與 F 分配表中自由度為 (2, 8) 的臨界值進行比較,在 的水準下。
查 F 分配表 (見題目提供的附錄),對於 (numerator df) 和 (denominator df),在 時,臨界值 。由於計算出的 F 值 小於臨界值 ,我們無法拒絕虛無假設 。
結論:
在 0.05 的顯著水準下,沒有足夠的證據表明三種清潔方法的平均產出率存在顯著差異。
【答案】
a.
1. 數據整理與假設:
- 方法 New1: , ,
- 方法 New2: , ,
- 方法 Standard: , ,
- 總樣本數 , 總平均數 。
- 顯著水準 。
- 虛無假設 。
- 對立假設 : 至少有一個平均數不同。
2. 計算平方和 (Sum of Squares):
- 組間平方和
- 組內平方和
- 總平方和
3. 計算自由度 (Degrees of Freedom):
4. 計算均方 (Mean Squares):
5. 計算 F 值:
6. 決策:
- 臨界值 。
- 由於 ,我們不拒絕 。
結論:
在 0.05 的顯著水準下,沒有足夠的證據表明三種清潔方法的平均產出率存在顯著差異。
【答案】無顯著差異。
Part b: Linear Regression Model
本題要求使用線性迴歸模型來分析三種清潔方法對產出率的影響,並寫出模型、變數定義、假設,以及所需的額外假設。
核心觀念:
- 線性迴歸模型: 描述一個因變數與一個或多個自變數之間線性關係的模型。
- 虛擬變數 (Dummy Variables): 用於將類別型自變數轉換為數值型變數,以便在迴歸模型中使用。
- 模型假設: 線性迴歸模型需要滿足一系列假設才能進行有效的推論。
解題步驟:
-
定義變數:
- 因變數 (Dependent Variable, Y): 產出率 (Yield)。這是我們想要解釋的變數。
- 自變數 (Independent Variables): 清潔方法 (Cleansing Method)。這是一個類別型變數,有三個水準:New1, New2, Standard。
-
建立線性迴歸模型:
由於「清潔方法」是類別型變數,我們需要使用虛擬變數來表示它。有幾種編碼方式,最常見的是使用「參考類別」的方法。
假設我們將「Standard」方法作為參考類別。那麼我們需要兩個虛擬變數:- : 如果方法是 New1,則 ,否則 。
- : 如果方法是 New2,則 ,否則 。