115 年 國立政治大學財政學系碩士班《統計學》
第 1 題15 分
Let X and Y be two random variables representing monthly asset returns for two assets. You are given the following
summary statistics:
- Sample Variance of X:
- Sample Variance of Y:
- Sample Covariance:
a) (7%) Compute the Pearson correlation coefficient () between X and Y.
b) (8%) An analyst proposes a linear transformation of the original variables to account for leverage and fees. The new
variables are defined as:
Derive the value of the covariance between W and Z (i.e., ).
登入後即可作答並保存紀錄。
核心觀念
皮爾森相關係數衡量兩個變數的線性關聯方向與強度,定義為共變異數除以兩變數標準差的乘積:
線性轉換後的共變異數遵循以下性質:若 、,則
其中,常數項 與 不影響共變異數;共變異數只會乘上兩個變數的縮放係數 與 。
解題方法
(a)計算皮爾森相關係數
由題目給定的變異數可得標準差:
代入相關係數公式:
第 2 題20 分
You are advising a regulator on the solvency of a bank. Let S denote "Solvent" and I denote "Insolvent". Based on
historical market data, the prior probability of the bank being Insolvent is .
You have access to two distinct, conditionally independent auditing algorithms: Audit A and Audit B. If the bank is
Insolvent, Audit A flags it positive (A+) with probability 0.90. If the bank is Solvent, Audit A flags it positive (A+) with
probability 0.10. If the bank is Insolvent, Audit B flags it positive (B+) with probability 0.80. If the bank is Solvent,
Audit B flags it positive (B+) with probability 0.05.
a) (6%) Suppose Audit A returns a positive flag (A+). Calculate the posterior probability that the bank is Insolvent.
b) (8%) After observing the positive result from Audit A in (a), you run Audit B and it also returns a positive flag (B+).
Update your posterior probability that the bank is Insolvent after this observation.
c) (6%) The regulator considers intervening. Intervention incurs costs C. If the bank is truly Insolvent, intervention
prevents a financial loss L. If the bank is Solvent, intervention provides no benefit.
- Express the condition under which the regulator should intervene in terms of the posterior probability of
insolvency, , and the ratio C/L. - Based on your answer in (b), if the potential loss L is 3 times the cost of intervention C, should the
regulator intervene?
登入後即可作答並保存紀錄。
本題考驗貝氏定理在實際情境中的應用,特別是關於更新機率(後驗機率)的計算,以及決策理論中關於成本效益分析的應用。
核心觀念:
- 貝氏定理 (Bayes' Theorem):用於更新條件機率。
- 聯合機率與邊際機率的計算。
- 決策樹或期望值分析,用於判斷是否進行干預。
符號定義:
- I: 銀行為 Insolvent (不 પ્રુધ)
- S: 銀行為 Solvent ( પ્રુધ)
- A+: Audit A 標記為 Positive (高度懷疑不 પ્રુધ)
- A-: Audit A 標記為 Negative
- B+: Audit B 標記為 Positive (高度懷疑不 પ્રુધ)
- B-: Audit B 標記為 Negative
- :銀行為 Insolvent 的後驗機率 (posterior probability)
已知條件:
- 先驗機率 。
- 由於 I 與 S 是互斥且窮盡的事件,。
- Audit A 的條件機率:
- (若銀行不 પ્રુધ, Audit A 標記 Positive 的機率)
- (若銀行 પ્રુધ, Audit A 標記 Positive 的機率)
- Audit B 的條件機率:
- (若銀行不 પ્રુધ, Audit B 標記 Positive 的機率)
- (若銀行 પ્રુધ, Audit B 標記 Positive 的機率)
- Audit A 和 Audit B 是條件獨立的 (conditionally independent)。
解題過程:
a) 計算在 Audit A 回報 A+ 的情況下,銀行為 Insolvent 的後驗機率 。
我們使用貝氏定理:
首先,計算邊際機率 :
現在,將值代入貝氏定理:
因此,在 Audit A 回報 A+ 的情況下,銀行為 Insolvent 的後驗機率約為 0.3214。
【答案】
b) 在 Audit A 回報 A+ 後,又觀察到 Audit B 回報 B+ 的情況下,更新銀行為 Insolvent 的後驗機率 。
由於 Audit A 和 Audit B 是條件獨立的,給定銀行狀態 (I 或 S) 的情況下,它們的結果是獨立的。因此,我們可以將聯合後驗機率分解:
由於條件獨立性,。
同理,。
第 3 題20 分
A Public Health Department is evaluating compliance with a new "Sugar Tax" regulation. Based on preliminary data, the
probability that a randomly selected retailer is non-compliant is 20%.
You randomly select a sample of n = 100 retailers for inspection. Let X denote the number of non-compliant retailers
in your sample.
a) (5%) State the expected value and the variance of the random variable X.
b) (5%) Write the expression for the probability of finding exactly 25 non-compliant retailers using the Binomial PMF.
(You do not need to compute the final decimal value).
c) (5%) Use the Normal Approximation to estimate the probability that the number of non-compliant retailers is strictly
greater than 25 (i.e., P(X > 25)). Is this approximation appropriate given the sample size and proportion? Briefly
explain.
d) (5%) A junior analyst suggests that if the sample size were extremely large (n→∞) and the probability of non-
compliance were extremely small (p → 0) such that np remained constant, a different distribution should be
used. Which distribution is the analyst referring to?
登入後即可作答並保存紀錄。
核心觀念
每家零售商是否違規可視為一次伯努利試驗:違規機率為 ,抽查 家,且假設各家是否違規彼此獨立。因此違規家數服從二項分配:
二項分配的期望值與變異數分別為 、。
解題方法
a)期望值與變異數
代入 、:
因此,期望違規家數為 家,變異數為 ;標準差為 家。
b)恰有 25 家違規的機率
二項分配機率質量函數為:
令 ,得到:
c)常態近似估計
二項分配可用平均數相同、變異數相同的常態分配近似:
由於 等同於 ,使用連續性修正後,將邊界調整為 :
第 4 題20 分
A public agency pilots three training programs for unemployed workers: Program A, Program B, and Program C. The
outcome is post-training monthly earnings (in ten-thousand dollars). Independent samples of participants were selected
from each program.
You observe the following summary statistics:
| Program | Sample Size | Sample Mean | Sample Variance |
|---|---|---|---|
| A | 4 | 2.1 | 0.36 |
| B | 4 | 2.6 | 0.49 |
| C | 4 | 1.9 | 0.25 |
a) (12%) Construct an ANOVA table to partition the variance in monthly earnings.
b) (8%) Conduct an F-test at the 5% significance level. Based on the results, what can you conclude about the relative
effectiveness of these programs?
登入後即可作答並保存紀錄。
本題考驗單因子變異數分析 (One-Way ANOVA) 的應用,包括構建 ANOVA 表、進行 F 檢定以比較多組樣本的平均數,並根據結果得出結論。
核心觀念:
- 單因子變異數分析 (One-Way ANOVA) 的原理。
- 變異數的分割:總變異數 (Total Variation) 分割為組間變異數 (Between-group Variation, Treatment Variation) 和組內變異數 (Within-group Variation, Error Variation)。
- ANOVA 表的構成要素:自由度 (df)、平方和 (SS)、均方 (MS)、F 值。
- F 檢定:用於檢定各組平均數是否相等。
- 統計顯著性的判斷:與臨界值比較或計算 p 值。
- 統計結果的解釋:在實際情境中的含義。
已知條件:
- 三個獨立樣本,代表三個訓練計畫 A, B, C。
- 各組樣本大小 。
- 各組樣本平均數 , , 。
- 各組樣本變異數 , , 。
- 總樣本大小 。
- 顯著水準 。
解題過程:
a) 建構 ANOVA 表
ANOVA 的基本思想是將總變異數分解為組間變異數和組內變異數。
- 總平方和 (SST - Total Sum of Squares): 衡量所有數據點與總平均數之間的差異。
- 組間平方和 (SSB - Sum of Squares Between Groups / Treatment Sum of Squares): 衡量各組平均數與總平均數之間的差異,反映處理效果。
- 組內平方和 (SSW - Sum of Squares Within Groups / Error Sum of Squares): 衡量各組內部數據點與該組平均數之間的差異,反映隨機誤差。
步驟 1:計算總平均數 ()
首先,我們需要所有樣本數據的總平均數。由於樣本大小相等,可以直接對樣本平均數取平均:
步驟 2:計算 SSB (組間平方和)
, 其中 是組數。
步驟 3:計算 SSW (組內平方和)
SSW 是所有組內平方和的總和。對於每一組,組內平方和是 。
第 5 題25 分
You study whether household annual consumption expenditure (in thousands of dollars) is related to household
disposable income (in thousands of dollars) using a cross-sectional survey of households. You estimate the
OLS regression with an intercept:
,
Assume the observations are independent, and the error term () is homoskedastic and normally distributed.
From the regression output and sample summaries:
- Sample standard deviation of X:
- Sample standard deviation of Y:
a) (5%) Provide an interpretation of the value.
b) (7%) Suppose X and Y are positively correlated. Calculate the OLS estimate, .
c) (8%) Compute the standard error of .
d) (5%) Test the statistical significance of at the 5% significance level.
登入後即可作答並保存紀錄。
本題考驗對普通最小平方法 (OLS) 迴歸分析的理解,包括 的解釋、迴歸係數的計算與標準誤的計算,以及迴歸係數的顯著性檢定。
核心觀念:
- 的解釋:決定係數,衡量自變數解釋應變數變異的比例。
- OLS 估計式:特別是斜率係數 的計算公式。
- 迴歸係數標準誤的計算。
- 迴歸係數的 t 檢定:用於檢定斜率係數是否顯著不為零。
已知條件:
- 樣本大小 。
- 。
- 自變數 X 的樣本標準差 。
- 應變數 Y 的樣本標準差 。
- 迴歸模型:。
- 假設誤差項同質變異且呈常態分佈。
- X 和 Y 是正相關。
- 顯著水準 。
解題過程:
a) 解釋 的值。
(決定係數) 代表模型中自變數 (在此為 ) 解釋了應變數 (在此為 ) 總變異的比例。
表示,在我們的迴歸模型中,Household Disposable Income () 解釋了 Household Annual Consumption Expenditure () 總變異的 36%。
換句話說,有 36% 的消費支出變異可以由可支配所得的變異來解釋,而其餘 64% 的變異則歸因於模型未包含的其他因素 (即誤差項 )。
【答案】 表示,Household Disposable Income 解釋了 Household Annual Consumption Expenditure 總變異的 36%。
b) 計算 OLS 估計量 。
OLS 斜率係數 的計算公式與相關係數 () 和樣本標準差有關:
我們知道 (如果模型只有一個自變數且包含截距項)。
因此,。
由於題目說明 X 和 Y 是正相關,所以 必須是正值。
。
現在,將 , , 代入 的公式:
因此,OLS 估計的斜率係數 為 0.9。
【答案】
c) 計算 的標準誤 ()。
OLS 斜率係數的標準誤公式為:
(這個公式是針對 且 已經中心化)
更常見且通用的公式是:
其中,。
所以,。
我們需要先估計誤差項的標準差 。
,其中 是殘差平方和, 是迴歸參數的數量 (在這裡是 和 ,所以 )。