114 年 國立政治大學金融學系碩士班金融管理組《統計學A》
第 1 題20 分
- (20%) Suppose you roll a fair 6-sided die 40 times (independently), and you get X_1X_2X_3X_4Y=X_1 + X_2 + X_3+X_4$ be the total number of dollars you win over all 40 rolls.
(1) Describe the probability mass (density) function of . (6%)
(2) Compute the expectation and variance of . (7%)
(3) Let . Compute the expectation and variance of . (7%)
登入後即可作答並保存紀錄。
此題主要在考察隨機變數的定義、期望值與變異數的計算,以及線性組合的期望值與變異數性質。
首先,我們需要釐清每一個獨立事件的期望值與變異數。
一個公平的六面骰子,出現數字 2 的機率為 。
如果出現數字 2,則贏得 WP(W=5) = p = \frac{1}{6}P(W=0) = 1-p = \frac{5}{6}$
期望值 。
變異數 。
。
。
分別代表在前 10, 11-20, 21-30, 31-40 次滾動中贏得的總金額。由於每一次滾動都是獨立的,且每次滾動贏得金額的期望值和變異數都相同,所以 實際上是 10 次獨立的 Bernoulli 實驗(每次實驗的成功機率為 ,成功則贏得 5 元)的總金額。
更精確地說,如果我們定義一個指示變數 表示第 次滾動是否為 2 ( 若為 2, 若非 2),則每次滾動的贏得金額為 。
因為 是 Bernoulli 隨機變數,具有 。
(1) Describe the probability mass (density) function of . (6%)
是 40 次獨立滾動贏得的總金額。由於每次滾動贏得的金額是 5 元或 0 元,且總共有 40 次滾動,因此 的可能值為 ,其中 是 40 次滾動中出現數字 2 的總次數。
這 40 次滾動可以看作是 40 次獨立的 Bernoulli 試驗,每次試驗成功的機率(滾出數字 2)為 。
令 為 40 次滾動中出現數字 2 的總次數。則 服從二項分佈 。
, for .
由於 ,所以 的可能值為 。
的機率質量函數 (PMF) 為:
, for .
注意,只有當 是 5 的倍數時,機率才不為零。
【答案】 的機率質量函數為 ,其中 $y \in {0, 5, 10, \dots, 200}
第 2 題23 分
- (23%) A VP of Consumer Credit of a bank monitors the default rate on personal loans at their member banks. One of her standard's is "no more than 5% of personal loans should be in default." On each Friday, the default rate is calculated for a sample of 500 personal loans.
(1) Last Friday's sample contained 30 defaulted loans. Based on the information, please confirm whether the VP's standard is correct at the 0.01 significance level. (7%)
(2) Compute the power for part (1) when the true default rate on personal loans is 7%. (10%)
(3) At a 95% confidence level, the VP would like to have a margin of error for the loan default estimate being within 1%. Find the required sample size. (6%)
登入後即可作答並保存紀錄。
核心觀念
本題考查三個比例推論概念:
- 單一母體比例的右尾假設檢定
- 檢定力(power)
- 母體比例估計的樣本數決定
令個人貸款違約率為 ,樣本違約比例為 。樣本量為 時,違約件數可視為:
當 與 皆足夠大時,可使用常態近似。
(1) 檢定副總裁的標準是否成立
解題方法
副總裁的標準為「違約率不超過 」,因此要檢查是否有足夠證據顯示實際違約率超過 。
設定假設:
這是右尾檢定,顯著水準為:
在虛無假設邊界 下,樣本違約率為:
比例檢定統計量為:
代入數值:
右尾檢定在 下的臨界值為:
拒絕域為:
但本題:
因此不拒絕 。
亦可用 值判斷:
由於:
同樣得到不拒絕 的結論。
結論
在 顯著水準下,沒有足夠證據顯示實際違約率高於 。因此,本次樣本結果與副總裁「違約率不超過 」的標準一致。
需注意:不拒絕 並不代表已證明 一定不超過 ,而是證據不足以判定標準遭到違反。
(2) 當真實違約率為 時的檢定力
解題方法
檢定力定義為:
首先找出本檢定的拒絕門檻。
由右尾檢定:
整理得:
因此,檢定的拒絕域約為:
當真實違約率為 時:
第 3 題17 分
- (17%) A bank' policy requires consistent, uniform training of employees at all bank branches. Consequently, the VP of Human Resources orders a survey of mean employee training time in the Southeast region (indicated as population 1) and the Southwest region (indicated as population 2). His staff randomly selected personnel records of 15 employees from each region, and reported the following: hours, hours, , and .
(1) Conduct a test to decide whether the population variances for training time in both regions are equal at the 0.05 significance level. (7%)
(2) Conduct a test to decide whether the population mean training time in the Southeast region is greater than that of the Southwest region at the 0.01 significance level. (10%)
登入後即可作答並保存紀錄。
此題主要考察兩個獨立樣本的變異數相等檢定(F檢定)以及兩個獨立樣本的平均數相等檢定(t檢定)。
給定數據:
Southeast Region (Population 1): , ,
Southwest Region (Population 2): , ,
(1) Conduct a test to decide whether the population variances for training time in both regions are equal at the 0.05 significance level. (7%)
這是檢定兩個獨立樣本變異數是否相等的 F 檢定。
虛無假設
對立假設
顯著水準 。
檢定統計量為變異數的比值:
(通常將較大的樣本變異數放在分子,以進行單尾檢定,但為了對稱性,也可以直接用 然後查雙尾臨界值)
這裡,我們直接使用 和 的值。
自由度:
分子自由度 。
分母自由度 。
查 F 分配表,在 的顯著水準下,雙尾檢定。
我們需要查找 和 。
對於 雙尾檢定,通常我們查找 。
在 F 分配表中,尋找 的欄位。
在 (即 ) 的位置,我們可以找到臨界值。
查表(或使用軟體),。
(如果使用 ,則需要查 ,通常這個值是 ,所以 )。
我們比較計算出的 F 值與臨界值。
臨界區域是 或 (如果我們將較小的變異數放分子)。
如果我們將較大的變異數放在分子 (),則對立假設是 。
臨界值是 和 。
。
。
檢定統計量 。
因為 ,所以 值不在拒絕域內。
結論:在 0.05 的顯著水準下,我們無法拒絕虛無假設,認為兩個地區的員工訓練時間的母體變異數是相等的。
【答案】檢定統計量 。臨界值 (雙尾) 約為 和 。由於 ,無法拒絕 。兩個地區的母體變異數相等。
(2) Conduct a test to decide whether the population mean training time in the Southeast region is greater than that of the Southwest region at the 0.01 significance level. (10%)
這是檢定兩個獨立樣本平均數差異的 t 檢定。
虛無假設 (或 )
對立假設 (或 )
顯著水準 。
由於 part (1) 的結果是我們無法拒絕變異數相等的假設,所以我們可以使用合併變異數 (pooled variance) 的 t 檢定。
然而,如果 part (1) 的結果是拒絕變異數相等,我們則應使用 Welch's t-test (不假設變異數相等)。
這裡我們假設 part (1) 的結論可以指導我們做 part (2) 的決策。
由於我們未能拒絕 ,我們使用合併變異數。
第 4 題15 分
- (15%) A bank manager believes that number of customers arriving at his branch have a Poisson distribution. He collected a random sample and constructed the following frequency distribution to investigate his hypothesis.
| Customers per 15 minute interval | 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|---|
| Observed Frequency | 5 | 15 | 17 | 12 | 10 | 8 |
Please conduct the appropriate decision to examine whether the observed data follow a Poisson distribution at the 0.01 significance level. (Note: )
登入後即可作答並保存紀錄。
核心觀念
本題考查「卡方適合度檢定」:
- 虛無假設::顧客數 服從某個 Poisson 分配。
- 對立假設::顧客數不服從 Poisson 分配。
- 顯著水準:。
- 因為 Poisson 參數 未知,必須先由樣本估計 ,再計算卡方統計量。
- 由於最後一組為 ,不能直接將該組的每筆資料視為 ;應將其視為合併區間處理。
Poisson 機率為
卡方適合度統計量為
其中 為觀察次數, 為理論期望次數。
解題方法
一、建立假設
總樣本數為
二、估計 Poisson 參數
前五組的觀察值分別為 ,最後一組只知道 。因此,依分組資料的概似函數估計 。
其估計方程式可寫成
其中
以 Poisson 分配計算,解得
三、計算各組理論機率與期望次數
令 ,則
因此
第 5 題25 分
- (25%) The following ANOVA table is from a multiple regression analysis with n = 25 and four explanatory variables.
| Source | df | SS | MS | F |
|---|---|---|---|---|
| Regression | (a) | 700 | (e) | (g) |
| Error | (b) | (d) | (f) | |
| Total | (c) | 1000 |
(1) Please compute the values (a) to (g) in details, together with the required formulas. (12%)
(2) Explain the purpose of the F value, and conclude your result at the 0.05 significance level. (6%)
(3) Show the relationship between F and R². (7%)
登入後即可作答並保存紀錄。
此題主要考察多元迴歸分析中的 ANOVA 表計算、F 檢定的解釋與應用,以及決定係數 的意義。
給定信息:
樣本數 。
解釋變數個數 。
總平方和 。
迴歸平方和 。
(1) Please compute the values (a) to (g) in details, together with the required formulas. (12%)
ANOVA 表各項的計算公式:
(a) 迴歸自由度 (df Regression) = 解釋變數個數 。
。
(b) 誤差自由度 (df Error) = 總樣本數 - 解釋變數個數 - 1 (截距項)。
。
(c) 總自由度 (df Total) = 樣本數 - 1。
。
驗證:。
(d) 誤差平方和 (SS Error) = 總平方和 - 迴歸平方和 。
。
(e) 迴歸均方 (MS Regression) = 迴歸平方和 / 迴歸自由度 。
。
(f) 誤差均方 (MS Error) = 誤差平方和 / 誤差自由度 。
。
(g) F 統計量 (F value) = 迴歸均方 / 誤差均方 。
。
填入 ANOVA 表:
| Source | df | SS | MS | F |
|---|---|---|---|---|
| Regression | 4 | 700 | 175 | 11.67 |
| Error | 20 | 300 | 15 | |
| Total | 24 | 1000 |
【答案】(a)=4, (b)=20, (c)=24, (d)=300, (e)=175, (f)=15, (g)≈11.67。
(2) Explain the purpose of the F value, and conclude your result at the 0.05 significance level. (6%)
F 統計量的目的:
在多元迴歸分析中,F 統計量用於檢定所有解釋變數的係數是否同時為零。也就是檢定模型整體是否有顯著的解釋能力。
虛無假設 (所有迴歸係數皆為零)。
對立假設 : 至少有一個 。