113 年 國立中央大學財務金融學系碩士班甲組《統計學》
第 1 題
You have a dataset of per capita CO2 emissions (y) and per capita GDPs (x) from 50 countries in 2023. You run a regression of y on x and x², and obtain the following estimated results
(30.3) (0.05) (0.0002)
where standard errors are reported in parentheses.
(a) Is it necessary to assume that the error terms of the regression model are normally distributed? Explain. (3%)
(b) What is the marginal effect of per capita GDP on per capita CO2 emission? (4%)
(c) Would you keep the quadratic term () in the model? Explain. (4%)
(d) Do you think this regression model provides an unbiased estimator for the ceteris paribus effect of per capita GDP on per capita CO2 emission conditional on a certain level of per capita GDP? (4%)
登入後即可作答並保存紀錄。
第 1 題詳解
(a) 是否需要假設誤差項服從常態分配?
核心觀念:古典線性迴歸模型(CLRM)中 OLS 估計量的性質與推論假設。
解題方法:
分析迴歸模型時,對於誤差項(Error terms)的假設取決於分析的目的:
- 點估計(Point Estimation):若僅需獲得 BLUE(Best Linear Unbiased Estimator)的估計量,僅需滿足高斯-馬可夫(Gauss-Markov)假設,即誤差項具有零條件期望值 且變異數同質,無需假設常態分配。
- 統計推論(Inference):若要進行有限樣本下的假設檢定(如 檢定、 檢定)或建構精確的信賴區間,則需要假設誤差項服從常態分配,以確保 統計量與 統計量分別服從 分配與 分配。
- 大樣本情況:若樣本數足夠大,根據中央極限定理(CLT),即使誤差項不服從常態分配,OLS 估計量仍會趨近於常態分配,此時可進行大樣本推論。
結論:不一定要假設誤差項服從常態分配。若僅為取得 OLS 點估計值,此假設非必要;若為有限樣本下的顯著性檢定,則常態假設為必要條件。
(b) 人均 GDP 對人均 CO2 排放的邊際效應
核心觀念:偏微分(Partial Derivative)應用於迴歸模型的邊際效應分析。
解題方法:
給定迴歸模型 ,邊際效應為自變數 對應變數 的偏微分:
代入估計係數:
結論:邊際效應為 。此效應並非固定常數,而是隨著人均 GDP 的水準 而變動。
(c) 是否應保留二次項 ()?
核心觀念:利用 統計量進行係數顯著性檢定。
解題方法:
- 建立檢定:針對 對抗 。
- 計算 統計量:
- 判斷顯著性:樣本數為 50,自由度 。
第 2 題8 分
Let , and . Consider two regression models:
Model A: ,
Model B: , where ,
Assume . What is the relationship between and ? Explain in detail. (8%)
登入後即可作答並保存紀錄。
本題考查線性迴歸模型中,對解釋變數與應變數進行母體平均數中心化(Centering)轉換後,對迴歸斜率係數與截距項之數學影響。
一、模型設定與斜率之母體定義
考慮兩個單變量線性迴歸模型:
- Model A:
- Model B:,其中中心化變數定義為 且 。
已知母體期望值為 、,且誤差項滿足外生性條件 。
在普通最小平方法(OLS)或母體線性投影下,單變量迴歸斜率係數的理論定義為共變異數與變異數之比:
二、中心化變數之共變異數與變異數推導
檢視中心化轉換後的隨機變數性質:
- 中心化隨機變數的期望值:
- 中心化變數 與 的共變異數:
依據共變異數定義:
將 與 代入:
因此,中心化處理不改變變數之間的共變異數:
- 中心化變數 的變異數:
依據變異數定義:
第 3 題
A finance department is experimenting with an online pre-course for incoming Master students, to be taken during the summer before the students enroll. Twenty students are randomly assigned to take the pre-course while 16 are assigned to a control group. All of the students take a qualifying exam at the end of their first year. The department would like to test the null hypothesis that the pre-course has no effect against the alternative that the pre-course increases the mean qualifying-exam score. The average scores of students who take the pre-course and of students who do not are
(for students who take the pre-course), and
(for students who do not take the pre-course).
The sample variances of scores of students who take the pre-course and of students who do
not are and .
(a) What assumptions must hold for the department to be able to use these estimates as the basis for a hypothesis test? (3%)
(b) Can the department reject the null hypothesis that the pre-course has no effect in favor of the alternative that the pre-course increases the mean score of the qualifying exam at a 5% significance level? (Assume that the assumptions you answer in (a) hold.) (7%)
登入後即可作答並保存紀錄。
核心觀念
本題比較兩獨立組別(預修組與對照組)之母體平均數差異,在小樣本()且母體變異數未知但假設相等的情況下,應採用獨立雙樣本合併變異數 檢定(Pooled-Variance Two-Sample -test)。
解題方法
(a) 進行檢定所需之統計假設
- 獨立性(Independence):兩組樣本彼此獨立,且組內每位學生的成績互相獨立(題目採隨機分派設計有助於滿足此假設)。
- 常態性(Normality):兩組母體的資格考分數皆服從常態分配(因兩組樣本數皆小於 ,常態性假設尤為關鍵)。
- 變異數同質性(Homogeneity of Variances):兩組母體變異數相等(),如此方可使用合併變異數估計量。(若此假設不成立,則應改採 Welch's -test。)
(b) 假設檢定()
-
設定假說
- 虛無假說 (或 ,預修課程無提升效果)
- 對立假說 (預修課程能提高平均分數,右尾檢定)
- 顯著水準 。
-
樣本統計量與合併變異數
- 預修組:
- 對照組:
- 合併變異數 :
-
計算檢定統計量與決策
第 4 題
Suppose we want to model the number of rainy days in a small town during a 120-day period using a Bernoulli trials process with unknown parameter , the probability of a rainy day, where if it rains on day , and otherwise.
(a) What is the expected value of the sample mean ? (5%)
(b) Is the percentage of rainy days over the 120-day period an unbiased estimator of ? Explain. (3%)
(c) What is the variance of the sample mean ? (4%)
登入後即可作答並保存紀錄。
核心觀念
在獨立同分布(i.i.d.)的伯努利試驗過程 ()中,每個隨機變數 皆滿足:
120 天內下雨天數的比例即為樣本平均數 。
解題方法
-
(a) 樣本平均數 的期望值
利用期望值的線性性質:
-
(b) 120 天的下雨天數比例是否為 的不偏估計量
是。 該期間下雨天數的百分比(比例)即為 。由 (a) 可知 ,符合不偏估計量(Unbiased Estimator)的定義 ,故為 的不偏估計量。
第 5 題5 分
A researcher estimates the following two regression models
Model A: ,
Model B:
where and are i.i.d. error terms and is an irrelevant variable which is not related to . Will both values of and adjusted be higher for Model B than Model A? Explain your answer. (5%)
登入後即可作答並保存紀錄。
核心觀念
本題評量多元線性迴歸模型中,決定係數()與調整後決定係數(Adjusted ,記為 )之數學性質,以及納入「無關變數(irrelevant variable)」對兩者的影響。核心定義與定理如下:
- 決定係數(Coefficient of Determination, ): 其中 為總變異平方和, 為殘差平方和(Residual/Error Sum of Squares)。
- 調整後決定係數(Adjusted , ): 其中 為樣本數, 為不含截距項的解釋變數個數, 為殘差均方(Mean Squared Error)。
- 巢狀模型(Nested Models)下最小平方法(OLS)之性質:
Model A 是 Model B 的受限模型(約束條件為 )。當在迴歸模型中加入額外解釋變數時,OLS 最佳化目標為最小化 ,未受限模型的解空間涵蓋受限模型,故必有 。 - 上升之充要條件:
在模型中新增單一解釋變數時, 會上升()的充要條件為該新增變數之個別檢定 統計量絕對值大於 1(或偏 統計量 )。
解題方法
1. 分析決定係數 的變化
Model B 為 Model A 之擴展模型(多包含一個變數 )。
- 在 OLS 估計下,Model B 透過選擇 使得 達到全域最小。
- 若令 ,則 Model B 之 恰等於 Model A 之 。
- 因此,放寬參數限制後必滿足:
- 由於依變數 相同,兩模型的 完全相等,故: 除非樣本中 與 在控制其他變數後的偏相關剛好為零(即估計係數 ),否則通常 ,使 。
2. 分析調整後決定係數 的變化
對增加解釋變數造成的自由度損失進行懲罰。比較 Model A()與 Model B():
因此,。
利用新增單一變數時的偏 統計量(等於其個別顯著性 統計量的平方,):
將此式代入 的表示式:
比較兩者大小:
由推導可知:Model B 的 要高於 Model A,必須滿足 。
3. 結合題目條件評估
題目給定 為無關變數(irrelevant variable),即母體真實參數為:
在此虛無假說下,樣本檢定統計量 服從自由度為 的 分配:
- 在 分配下, 具有相當高的機率(一般自由度下約為 65% 至 68%)。
- 當估計出的樣本統計量滿足 時,,導致 (自由度損失的懲罰超過了殘差平方和減少的效益)。
- 由於無法保證 ,Model B 的 並不一定會高於 Model A。
詳細分析
- 是否更高:
在最小平方法下,加入任何變數必有 ,故 絕不會下降()。
第 6 題
Let's assume stock return , where and are stock prices are today (time zero) and future time T, respectively.
The equality implies . Assuming follows a uniform distribution such at .
(a) Please derive the formula for the expected stock price (5%)
(b) Please derive the formula for the variance of stock price
Now, if follows a normal distribution. .
(c) Please derive the formula for the expected stock price (5%)
(d) Please derive the formula for the variance of stock price
登入後即可作答並保存紀錄。
【答案】
(a)
(b)
(c)
(d)
詳解
本題考查資產定價模型中股價隨機過程之期望值與變異數推導,涵蓋均勻分佈與常態分佈誤差項下的動差生成與變換性質。
給定股價動態為 ,其中初始價格 與漂移項 為常數。
利用期望值與變異數之純量性質:
(a) 當 時,推導
均勻分佈之機率密度函數為 ()。
計算動差 :
代入 可得:
(b) 當 時,推導
計算二階動差 :
因此,隨機項的變異數為:
乘上常數係數 ,即得股價變異數:
(c) 當 時,推導
第 7 題
Assume a COVID-19 test has been developed to detect COVID-19. Given a person contaminated by COVID-19, the probability of a positive test result is 0.9. For a healthy person, the probability of a negative test result is 0.9. [A positive test indicates this person is contaminated by Covid-19]
(a) In an area with 50% of the population contaminated by COVID-19, if a positive test result has been observed, what is the probability that this person is contaminated? (4%)
(b) In an area with 1% of the population contaminated by COVID-19, if a positive test result has been observed, what is the probability that this person is contaminated? (4%)
(c) Given this example, will you suggest your friend have a flue test when flue is not prevailing? (2%)
登入後即可作答並保存紀錄。
核心觀念
本題應用貝氏定理(Bayes' Theorem)計算醫學篩檢的陽性預測值(Positive Predictive Value, PPV)。令 表示「實際染疫」、 表示「健康未染疫」、 表示「檢測呈陽性」、 表示「檢測呈陰性」。由題意知:
- 靈敏度(Sensitivity):
- 特異度(Specificity): 偽陽性率
依貝氏定理,檢測為陽性下真正染疫的機率為:
解題方法
-
(a) 盛行率為 ()
-
(b) 盛行率為 ()
第 8 題
Let's assume the TWSE (The Taiwan Stock Exchange) index is now 16000 (and the risk-free rate is now zero), and you use its historical data to calculate its distribution. You find the mean of daily return is 0, and the standard deviation is 0.01. (i.e., 1%). Now, you are designing a contract for your client, and the contract is a one-day contract. That is, based on this contract, your client pays the price to buy the contract and gets the indicated payoff tomorrow. (The payoff is listed below.) Given that you fully believe in statistical estimations and believe that historical probability will repeat. Please based only on historical statistical probability, price the following daily contracts or calculate the value of the contract today.
(a) Please price a contract that will give your client 1 dollar tomorrow if the TWSE index is greater than 15840. (5%)
[When we mention "price a contract," here it refers to setting an dollar amount that your client needs to pay today.]
登入後即可作答並保存紀錄。
核心觀念
本題探討金融市場中的衍生性金融商品定價。在市場無風險利率為零、且完全依賴歷史統計機率(Historical Probability)的前提下,一份僅存續一日、支付一美元的數位合約(Digital Contract),其今日的合理價格即等於該事件在明日發生的機率。
設明日股價指數為 ,初始指數為 。每日報酬率定義為 。根據題意,報酬率 服從常態分配 ,其中 、。因此,股價指數的變動與報酬率關係如下:
此題目的設計巧妙,透過標準化變數 將股價門檻轉化為標準常態分配下的臨界值,考生僅需運用標準常態分配表即可求解。
解題方法
由於題目設定明日報酬率 ,我們可以將 的判斷條件轉換為 的判斷條件,進而計算 值。
(a) 合約支付條件為 :
將條件代入 :
計算標準化變數 :
該事件發生的機率為:
查閱標準常態分配表,。
故合約價格為 0.1587 美元。
(b) 合約支付條件為 :
將條件代入 :
計算標準化變數 :
該事件發生的機率為:
故合約價格為 0.8413 美元。
第 9 題
Consider the population described by the probability distribution of a random variable x below.
(a) Find the sampling distribution of the sample mean for a random sample of n = 3 measurements from this distribution. (3%). Find the sampling distribution of the sample median for a random sample of n = 3 observations from this population. (3%)
(b) Show that both the mean and the median are unbiased estimators of µ for this population. (4 %)
登入後即可作答並保存紀錄。
核心觀念
樣本平均數與樣本中位數都是由樣本資料計算出的統計量。其「抽樣分配」是指:從母體獨立抽取大小為 的隨機樣本時,統計量各種可能取值及其機率。
母體平均數為
若估計量 的期望值等於母體參數 ,即 ,則稱 為 的不偏估計量。
(a) 樣本平均數的抽樣分配
令 為三個獨立觀察值,且各自以相同機率取 。為方便計數,先將每個觀察值除以 ,令 ,則 可能為 ,各自的機率均為 。
設 。三個觀察值的組合數由下列生成函數係數給出:
總樣本組合數為 ,所以 的機率分別是上述係數除以 。由於
樣本平均數的抽樣分配如下:
| 機率 |
(a) 樣本中位數的抽樣分配
將三個觀察值由小到大排列後,中間的觀察值即為樣本中位數。
中位數為 ,須至少有兩個觀察值等於 。恰有兩個 的排列數為 ,三個皆為 的排列數為 ,因此
同理,中位數為 時須至少有兩個觀察值等於 ,所以
其餘樣本的中位數皆為 ,機率為
因此,樣本中位數的抽樣分配為:
| 樣本中位數 | |||
|---|---|---|---|
| 機率 |
(b) 證明樣本平均數與樣本中位數皆為 的不偏估計量
由樣本平均數的抽樣分配,