109 年 國立臺灣大學財務金融研究所甲組《商用統計學》
Professor Samuel Oak investigates a special pocket monster, Pikachu, for its feeding and weight. Professor Oak randomly samples 12 Pikachu monsters and obtains data below for regression analysis, which is specified as
and are weight of Pikachu and forage for Pikachu per day. Gender is a binary variable, with value 1 for male, and zero for female. The regression coefficients are estimated by OLS. Professor Oak is aware of assumptions for multiple linear regression analysis below.
MLR 1: Regressors are linear in parameters.
MLR 2: Random sampling.
MLR 3: Non-perfect collinearity among independent variables.
MLR 4: , .
MLR 5: .
MLR 6: Normality of .
| 1 | 1 | 1 | 1 | 1 | 2 | 2 | 2 | 3 | 3 | 3 | 3 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Feed | 1 | 1 | 1 | 1 | 1 | 2 | 2 | 2 | 3 | 3 | 3 | 3 |
| Weight | 4 | 4.5 | 5 | 5.5 | 6 | 6 | 6 | 6.5 | 6.5 | 7 | 7.5 | 8 |
| Gender | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 1 |
第 1 題
Supposed that the dynamic of could be theoretically defined by random variable , where
Given another random variable , and
and are independent. Please find .
登入後即可作答並保存紀錄。
核心觀念
本題考查條件機率密度函數。已知
且 與 相互獨立,因此 皆服從 。
要求的是在事件 發生下, 的條件密度:
解題方法
固定 時,事件 等價於 。由於 ,
又因為 與 同為獨立且相同分布的連續隨機變數,
因此
在其他範圍內,條件密度為 。故完整表示為
快速驗算
條件密度必須積分為 :
第 2 題
Please use Stem and Leaf Plots to illustrate the frequency of from the given data.
登入後即可作答並保存紀錄。
核心觀念
本題考查莖葉圖(Stem-and-Leaf Plot)。莖葉圖將每筆數值拆成:
- 莖(Stem):數值的整數部分。
- 葉(Leaf):數值的小數部分。
莖葉圖可同時呈現資料的分布形狀與各數值的出現次數。每一片葉子代表一筆觀察值,因此葉子的總數必須等於樣本數 。
解題方法
將 Weight 資料由小到大排列:
以整數部分作為莖,以十分位數作為葉:
- 與 對應 、
- 與 對應 、
- 三筆 與兩筆 對應
- 與 對應 、
- 對應
因此莖葉圖為:
圖例:
各莖的次數如下:
| Weight 區間 | 次數 |
|---|---|
| – | 2 |
| – | 2 |
| – | 5 |
| – | 2 |
第 3 題
Please use ANOVA to analyze the relationship between and for Professor Oak. Write down your testing hypothesis and tabulate the ANOVA table.
Note: .
登入後即可作答並保存紀錄。
核心觀念
本題以單因子變異數分析(one-way ANOVA)檢定不同餵食量 下,Pikachu 平均體重 是否相同。
有三個水準:
- :
- :
- :
總樣本數為 。
假設為:
其中 表示 時的母體平均體重。
ANOVA 將總變異分解為:
其中:
- :總平方和(Total Sum of Squares)
- :組間平方和(Between-group Sum of Squares)
- :組內平方和(Within-group Sum of Squares)
檢定統計量為:
解題方法與計算
1. 計算各組平均數與總平均數
:
:
:
總平均數為:
2. 計算組間平方和
公式為:
因此:
3. 計算組內平方和
公式為:
:
:
:
所以:
4. 計算總平方和
ANOVA 表
自由度如下:
- 組間自由度:
- 組內自由度:
- 總自由度:
均方為:
因此:
第 4 題
State the validation of the linearity assumption required in OLS (MLR 1).
登入後即可作答並保存紀錄。
核心觀念
MLR 1 要求的是「模型對參數呈線性」,並非要求應變數與每個自變數之間一定呈現直線關係。一般形式為:
其中參數 只能以一次方、加法方式出現,不能出現參數的平方、參數彼此相乘,或參數位於指數函數內。
解題方法
本題指定模型為:
將條件平均數寫出:
可見:
- 、、 均以一次方出現;
- 各參數之間沒有相乘;
- 沒有 、 或 等非線性參數形式;
- 是二元虛擬變數,取值為 0 或 1,不影響模型對參數的線性性。
因此,此模型符合 MLR 1。
其中,性別的效果可解釋為:在餵食量相同下,雄性與雌性 Pikachu 的條件平均體重差異為 。餵食量每增加一單位,條件平均體重改變 單位。
如何驗證線性假設
MLR 1 的理論檢查,首先是觀察模型的函數形式,確認參數是否線性出現。本題由模型本身即可判定符合。
若要使用樣本資料進行經驗檢查,可採用:
- 繪製殘差對 的散佈圖,觀察是否出現明顯的彎曲型態。
- 繪製殘差對預測值的圖,檢查是否存在系統性曲線。
- 加入平方項、立方項或交乘項,例如:
再以 Ramsey RESET test 或聯合顯著性檢定檢查新增的非線性項是否顯著。
第 5 題4 分
Verify the non-perfect collinearity for MLR 3 by showing centered and uncentered Pearson correlation coefficients.
登入後即可作答並保存紀錄。
核心觀念
MLR 3「非完全共線性」要求:除了不含截距的解釋變數之間不能存在完全線性關係外,解釋變數也不能由其他解釋變數與截距項精確表示。
本題的解釋變數為:
因此,檢驗重點是觀察 與 的相關係數是否等於 。
常用的兩種 Pearson 相關係數為:
- 中心化相關係數
- 未中心化相關係數
若相關係數的絕對值等於 ,表示兩變數完全線性相關,會違反 MLR 3。
解題方法與計算
令:
樣本數為 。
由資料可得:
男性出現於:
- 時有 2 位;
- 時有 1 位;
- 時有 3 位。
因此:
一、中心化 Pearson 相關係數
平均數為:
中心化交叉乘積為:
的中心化平方和為:
的中心化平方和為:
所以:
因此,中心化 Pearson 相關係數為:
二、未中心化 Pearson 相關係數
直接代入公式:
第 6 題
To test heteroskedasticity, Professor Oak groups the sample into two subgroups: and . Please help Oak test MLR 5 by computing -test.
Note: .
登入後即可作答並保存紀錄。
核心觀念
本題以 Feed 將樣本分成兩組,利用 檢定比較兩組的變異數:
- :,樣本數
- :,樣本數
檢定假設為:
若拒絕 ,表示不同 Feed 水準下的變異程度不相同,支持異質變異的可能性。
兩組樣本變異數分別具有自由度:
這也正是題目提供臨界值 的由來。
解題方法與計算
第一組:
此組的 Weight 為:
樣本平均數為:
樣本變異數為:
第二組:
此組的 Weight 為:
樣本平均數為:
平方離差和可利用公式計算:
其中:
因此:
樣本變異數為:
計算 統計量
依照題目所指定的自由度順序,以 組作為分子:
臨界值為:
第 7 題
Verify the normality assumption required in OLS (MLR 6).
登入後即可作答並保存紀錄。
核心觀念
本題要求檢驗多元線性迴歸的常態性假設 MLR 6:
實務上無法直接觀察誤差項 ,因此以 OLS 殘差 作為代理,透過殘差圖、常態機率圖及常態性檢定判斷。
常見的 Jarque–Bera 檢定為:
其中:
- 為樣本偏態係數;
- 為樣本峰度;
- :誤差項服從常態分配;
- :誤差項不服從常態分配。
在 成立且樣本數夠大時:
本題樣本數僅 ,因此檢定結果應搭配殘差圖謹慎解讀。
解題方法
迴歸模型為:
由 OLS 估計可得:
因此殘差為:
依照題目資料,各觀察值的殘差約為:
| 觀察值 | 殘差 |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 |
殘差總和約為零,符合含截距項 OLS 迴歸的基本性質。
由這組殘差計算:
代入 Jarque–Bera 統計量:
在顯著水準 下,臨界值為:
因為:
第 8 題2 分
Please estimate coefficient and test null hypothesis by -test.
登入後即可作答並保存紀錄。
核心觀念
本題考查多元線性迴歸中,控制性別變數 後,估計飼料量 對體重 的邊際影響,並以
檢定
模型為
其中 的意義是:在性別相同下,每日飼料量增加一單位,體重的平均變化量。
解題方法:先計算迴歸所需的交叉離差
樣本數為 ,解釋變數個數為 ,包含截距項後,殘差自由度為
各變數平均數為
計算離差平方和與離差乘積:
估計
在含有兩個解釋變數的多元迴歸中,
分母為
分子為
因此
所以,控制 後,每日飼料量增加一單位,預測體重平均增加約 單位。
計算 的標準誤
先計算 的總離差平方和:
迴歸殘差平方和為
其中
因此
誤差變異數估計量為
第 9 題
To test exogeneity assumption, i.e., , Professor Oak plans to compute Pearson correlation coefficients of estimated regression residuals and explanatory variables:
He would expect that two correlation coefficients are close to zero under MLR 4. Please help Oak and complete the test.
登入後即可作答並保存紀錄。
核心觀念
本題考查兩個重點:
-
OLS 殘差的正交性:
-
不可用「樣本殘差與解釋變數的相關係數為零」檢驗外生性假設 MLR 4。
由於 Feed 與 Gender 都已經包含在 OLS 迴歸式中,OLS 的一階條件會使殘差與每一個解釋變數的樣本內積必定為零。這是估計方法的機械結果,不是由於母體外生性成立。
解題方法
迴歸模型為
設設計矩陣為 ,殘差向量為
OLS 估計量滿足正規方程式:
因此
由於 包含截距、Feed 與 Gender 三個欄位,所以有
先由資料計算 OLS 估計式。相關總和為
故正規方程式為
解得
因此估計迴歸式為
由 OLS 正交性,
又因為模型含有截距,殘差平均數為零:
所以樣本共變異數為
同理,
資料中 Feed 與 Gender 都具有變異,且殘差也不是完全為零,因此 Pearson 相關係數定義良好。故
第 10 題
From previous question, do you think his way to test exogeneity assumption a good method? Why or why not? Please state your reasons in 1 sentence.
登入後即可作答並保存紀錄。
核心觀念
本題考查外生性(exogeneity)假設。若解釋變數與誤差項不相關,則需滿足:
但誤差項 無法直接觀察,只能以 OLS 殘差 估計。
解題方法
若前一題以 OLS 殘差與各解釋變數的樣本相關係數來檢驗外生性,該方法並不恰當,因為含截距的 OLS 估計具有正規方程式:
因此,OLS 殘差在樣本中必然與每一個解釋變數正交;即使母體中存在內生性,樣本殘差相關係數仍可能等於零,故此檢驗沒有辨識外生性的能力。
第 1 題5 分
Below is the joint probability distribution of economic conditions and stock performance. Suppose . What is the value of ?
| Recession () | Boom () | Total | |
|---|---|---|---|
| Negative returns () | 0.15 | 0.07 | 0.22 |
| Positive returns () | 0.15 | 0.63 | 0.78 |
| Total | 0.30 | 0.70 | 1.00 |
(A) 4.3
(B) 5.9
(C) 7.5
(D) 9.6
登入後即可作答並保存紀錄。
核心觀念
本題考查:
- 邊際機率的計算
- 期望值的線性性質
由聯合機率分配表可得:
因為 為二元變數,所以
且題目給定:
利用期望值的線性性質:
解題方法
先計算 的期望值:
因此:
也可直接依照 的取值計算:
- 當 時,
- 當 時,
所以:
選項分析
第 2 題5 分
, , are i.i.d. Bernoulli random variables with . Let denote the sample mean. Use the central limit theorem to compute approximations for when .
(A) 0.04
(B) 0.05
(C) 0.43
(D) 0.57
登入後即可作答並保存紀錄。
核心觀念
本題考查:
- Bernoulli 隨機變數的期望值與變異數。
- 樣本平均數的期望值與變異數。
- 中央極限定理(Central Limit Theorem, CLT)。
- 標準常態分配右尾機率的查表計算。
若 ,則
當 夠大時,中央極限定理指出:
解題方法
題目給定 、,因此
且
所以樣本平均數的標準差為
欲計算
將 標準化:
因此
查標準常態分配表:
故
選項分析
第 3 題5 分
and are two independently distributed standard normal random variables. . Please calculate .
(A)
(B)
(C)
(D)
登入後即可作答並保存紀錄。
核心觀念
本題考查期望值的線性性質,以及標準常態分配的基本結果。
若 ,則:
又因為:
所以:
此外,若 ,則:
期望值具有線性性質:
解題方法
題目給定:
對兩邊取期望值:
利用期望值的線性性質:
由於 與 都是標準常態隨機變數:
代入得:
因此正確選項為 。
補充而言,本題雖然提供 與 獨立的條件,但計算 時只使用期望值的線性性質,並不需要獨立性。獨立性通常在計算乘積期望值、共變異數或變異數時才特別重要。
選項分析
- (A) :錯誤。
,而 ,兩者相加不會得到負數。
第 4 題5 分
Suppose that a researcher, using data on corporate earnings and capital expenditure from 1000 companies, estimate the OLS regression:
All regression variables are measured in million dollars. The sample average capital expenditure across the 1000 firms is 43 million dollars. What is the sample mean average of the corporate earnings across the 1000 firms?
(A) 134 million dollars
(B) 286 million dollars
(C) 316 million dollars
(D) It cannot be determined.
登入後即可作答並保存紀錄。
核心觀念
OLS 迴歸線必定通過樣本平均數所組成的點:
因此,對迴歸式
將樣本平均資本支出 代入,即可求得樣本平均公司盈餘 。
解題方法
由 OLS 迴歸線通過樣本平均點:
計算斜率項:
因此:
公司盈餘以百萬美元表示,四捨五入至選項所呈現的整數後為 316 百萬美元。
選項分析
-
(A) 134 million dollars:錯誤。
134 是迴歸式的截距,代表資本支出為 0 時的預測盈餘,不是樣本平均盈餘。 -
(B) 286 million dollars:錯誤。
此數值並非將平均資本支出 43 代入迴歸式所得的結果。
第 5 題5 分
Consider a regression
All OLS assumptions are satisfied. You are interested in , which is the causal effect of on . Suppose and are uncorrelated. You estimate by regressing on only , but not . Which of the following statement is correct regarding the OLS (ordinary least squares) estimator in the regression you have estimated?
(A) It is consistent and unbiased.
(B) It is consistent but biased in small sample.
(C) It is inconsistent and biased.
(D) We cannot be certain whether it is consistent.
登入後即可作答並保存紀錄。
核心觀念
本題考查「遺漏變數偏誤」(omitted variable bias)以及「一致性」(consistency)與「有限樣本無偏性」(unbiasedness)的差異。
真實模型為
若只將 對 迴歸,則 被遺漏,新的誤差項為
因此,關鍵在於判斷 是否與新的誤差項 相關。
解題方法:由簡單迴歸估計量推導
含截距的簡單迴歸中, 可寫為
代入真實模型:
整理可得
其中第二項就是遺漏 所造成的偏誤來源。
由題目條件, 與 在母體中不相關:
因此,當樣本數增加時,
在 OLS 假設成立下,誤差項也與 不相關,因此
所以
也就是說, 是一致的。
然而,在有限樣本中,樣本共變異數
不必恰好等於零。即使母體相關為零,某一次抽樣所得的樣本仍可能出現非零相關,因此有限樣本估計量可能偏離 ,產生小樣本偏誤。
選項分析
(A) It is consistent and unbiased.
錯誤。
Please use the following information to answer questions 6 and 7.
A random sample of 100 MBA students is selected from a population and these students’ weight and height are recorded. A regression of weight, measured in pounds, on height, measured in inches, yields
where refers to the standard error of the regression. Suppose now we change the unit of measurement from pounds to kilograms for weight and from inches to centimeters for height.
Note: 1 pound equals 0.454 kilogram, and 1 inch equals 2.54 centimeters.
第 6 題5 分
What is the estimated regression coefficient of in the new regression model?
(A) 17.959
(B) 8.153
(C) 3.21
(D) 0.574
登入後即可作答並保存紀錄。
核心觀念
迴歸模型中,斜率表示自變數增加一個單位時,應變數平均改變多少。本題同時改變應變數與自變數的測量單位,因此斜率也必須依比例換算。
原迴歸式為:
其中:
- Weight 以磅計算;
- Height 以英吋計算。
單位換算為:
因此:
解題方法
將原迴歸式中的兩個變數改寫成新單位:
代入原迴歸式:
再以 代入:
因此,新迴歸式的斜率為:
所以新模型約為:
選項分析
- (A) 17.959:錯誤。
此數值相當於錯誤地將高度換算比例放在分子,導致斜率被放大。高度由英吋改為公分後,數值變大,因此每增加一公分所對應的體重變化應變小,而非變大。
第 7 題5 分
What is the estimated regression in the new regression model?
(A) 0.26
(B) 0.45
(C) 0.57
(D) 0.69
登入後即可作答並保存紀錄。
核心觀念
本題考察迴歸分析中的決定係數 ,以及變更測量單位對迴歸結果的影響。
決定係數定義為
當應變數與自變數只進行正比例的單位轉換時,資料的相對變異與線性關係並未改變,因此 不變。
解題方法
原迴歸式為
令原單位下的體重與身高分別為 與 ,新單位下分別為 與 ,則
因此
新迴歸式可由原式轉換得到:
整理後為
截距與斜率會因測量單位改變,但新模型的預測值與實際值都同時乘上 ,所以殘差平方和與總平方和皆乘上 :
故
身高由英吋改為公分只會改變自變數的數值尺度,不會改變觀測值之間的線性相關程度;體重由磅改為公斤也同樣不影響 。
選項分析
第 8 題5 分
The interpretation of the slope coefficient in the model
is as follows:
(A) A 1% change in is associated with a change in .
(B) A 1 unit change in is associated with a change in of .
(C) A 1% change in is associated with a unit change in .
(D) A 1 unit change in is associated with a change in of .
登入後即可作答並保存紀錄。
核心觀念
模型為
這是「半對數模型」(semi-log model):應變數 取自然對數,自變數 保持原始單位。
斜率係數 的意義是:當 增加 1 單位時, 約變動 。
更精確的百分比變化為
當 的絕對值不大時,使用近似式
因此常見的教科書解釋為: 增加 1 單位, 約改變 。
解題方法
由模型可得
對 微分:
由於
所以
整理後:
其中 是 的相對變化率,因此當 增加 1 單位時:
換算成百分比:
故斜率係數的正確解釋是「 增加 1 單位, 約變動 」。
選項分析
(A) 錯誤。
「 改變 1%」是百分比變化,但本模型中的 未取對數,因此 對應的是 增加 1 單位,而非增加 1%。此敘述適用於雙對數模型,而非本題的半對數模型。
第 9 題5 分
The true population model is
Suppose that you estimate the following model by OLS (ordinary least squares):
where is the estimate of , and equals . Assume that is not correlated with . is the OLS estimator of . Which of the following statements is correct?
(A) The OLS estimator is a consistent estimator of .
(B) The OLS estimator in a large sample.
(C) in a small sample.
(D) in a large sample.
登入後即可作答並保存紀錄。
核心觀念
本題考查「應變數測量誤差」對 OLS 估計量的影響。
真實模型為
實際估計時使用的應變數為
其中 是應變數的測量誤差。代入真實模型:
因此,實際估計的模型可寫為
其中
本題的關鍵在於:測量誤差出現在應變數,而非解釋變數。只要誤差項與 不相關,便不會造成 OLS 斜率估計量的不一致。
解題方法
OLS 斜率估計量為
由於
可得
第一項是使用真實 時的 OLS 斜率估計量,第二項則是測量誤差造成的額外項。
由真實模型
可知
因此,
在標準 OLS 外生性條件下, 與 不相關;題目另給定 與 不相關。因此,大樣本下由大數法則:
所以
也就是說, 是 的一致估計量。
選項分析
(A) The OLS estimator is a consistent estimator of .
正確。
因為測量誤差 位於應變數中,且題目已假設 與 不相關。在真實模型滿足標準外生性條件的前提下:
因此 是 的一致估計量。
第 10 題5 分
An ordinary light bulb has a mean life of 835 hours and a standard deviation of 100 hours. Jennifer is developing a new manufacturing process through which she hopes can improve the average life of a light bulb. She randomly selects 500 light bulbs produced by the new process. She says that she will believe that the new process works better than the old process if the sample mean life of those 500 light bulbs is greater than 840 hours; otherwise, she will conclude that the new light bulbs are no better than the old ones.
Let denote the mean life, in hours, of the new light bulb. Consider the null and alternative hypotheses:
What is the size of the plant manager’s testing procedure? Please use the Central Limit Theorem to approximate the distribution of the -statistics.
(A) 0
(B) 0.065
(C) 0.13
(D) 0.26
登入後即可作答並保存紀錄。
核心觀念
本題考查假設檢定中的「檢定程序大小(size)」以及中央極限定理。
檢定程序的大小,是在虛無假設成立時,錯誤拒絕虛無假設的機率。由於本題的虛無假設為單一值
因此檢定程序的大小為
題目規定當樣本平均數大於 小時便拒絕 ,所以拒絕域為
解題方法
已知單一燈泡壽命的標準差為 ,樣本數為 。
依中央極限定理,樣本平均數近似服從常態分配:
在虛無假設成立時,,因此
樣本平均數的標準誤為
故檢定程序的大小為
查標準常態分配表:
因此
題目所稱的 統計量,在大樣本下可由中央極限定理近似為標準常態分配;本題 ,使用常態近似十分適當。
選項分析
- (A) 0