111 年 國立臺灣大學經濟學系碩士班《統計學(A)》
第 1 題
A street vendor sells apples and oranges. The number of apples she sells each day can be described by and the number of oranges she sells each day can be described by . The vendor earns from each apple and from each orange. Suppose that , , , , and .
(a) (10 points) Calculate the vendor's expected daily profits and the standard deviation in the vendor's daily profits.
(b) (10 points) Suppose the numbers of the two products sold each day are independent of previous days. Calculate the vendor's expected weekly (7 days) profits and the standard deviation in the vendor's weekly (7 days) profits.
登入後即可作答並保存紀錄。
本題主要在考驗同學對於隨機變數的期望值、變異數、標準差以及共變異數的性質的應用,特別是在線性組合的情況下。
(a) 每日預期利潤與標準差
假設每日利潤為 ,則 可以表示為賣出蘋果的總收入減去賣出橘子的總收入。
蘋果的單價為 ,賣出數量為 。
橘子的單價為 ,賣出數量為 。
所以,每日利潤 。
根據期望值和變異數的線性性質:
代入已知數值:
,
,
計算期望利潤:
計算利潤的變異數:
計算利潤的標準差:
【答案】
每日預期利潤為 元。
每日利潤的標準差約為 元。
(b) 每週預期利潤與標準差
假設每日的銷售量是獨立的,我們有 7 天的銷售數據。
令 為第 天的利潤,。
則每週總利潤 。
根據期望值和變異數的線性性質,以及獨立性:
第 2 題10 分
A mutual fund manager is considering investments in two stocks, A and B. The percentage return on A is normally distributed with mean .18 and standard deviation .10. The percentage return on B is normally distributed with mean .25 and standard deviation .20. The returns on the two stocks are independent of each other. Suppose the manager invests 3 million in B. Calculate the probability that she loses money.
登入後即可作答並保存紀錄。
核心觀念
- 獨立常態隨機變數之線性組合(Linear Combination of Independent Normal RVs):
若 為互相獨立的常態隨機變數,、,則其任意線性組合 亦服從常態分配: - 投資組合報酬率(Portfolio Return):
投資組合總報酬率為各資產報酬率依投資金額比重(Weights)加權之線性組合: - 標準化轉換(Z-transformation):
若 ,則 。
解題方法
步驟一:定義隨機變數與權重
設股票 A 與股票 B 的報酬率分別為 與 :
- 與 互相獨立()
經理人總投資金額為 $2 million + $3 million = $5 million。兩檔股票的投資權重分別為:
步驟二:求投資組合報酬率之期望值與變異數
設投資組合之總報酬率為 。
- 期望值:
- 變異數(因兩者獨立,無共變異數項):
- 標準差:
步驟三:確立分配並計算賠錢機率
由於 為獨立常態隨機變數,其線性組合 。
經理人「賠錢」(loses money)代表投資組合總報酬率小於 0(即 或總獲利金額小於 0):
第 3 題
A travel agency hopes a training program to make its agents more productive. Eighty randomly selected agents are assigned to the training program, and another eighty randomly selected agents are assigned to the control group. Data are collected on the number of clients each serves in the training group () and in the control group () during one week a month after the program is over. Below are summary statistics on the number of clients served during the week along with box plots showing the distribution of data by group.
| (Training) | (Control) | ||
|---|---|---|---|
| N | 80 | 80 | 80 |
| Mean | 54.5 | 52.7 | 1.8 |
| Std. dev. | 8.7 | 7.7 | 11.3 |
| Min. | 40 | 39 | -24 |
| Max. | 68 | 66 | 25 |
🖼️【此處有附圖,請對照原卷】(箱型圖顯示 X 和 Y 的數據分佈)
(a) (4 points) What are the hypotheses for evaluating whether the average number of clients served by an agent is different between the two groups?
(b) (6 points) Derive the sampling distribution of estimator for the parameter of interest.
(c) (4 points) Calculate a test statistic based on your sampling distribution from Part (b).
(d) (2 points) Make a conclusion of the hypothesis test at the 10% level of significance.
(e) (4 points) What type of error might have been made in the conclusion of your test?
登入後即可作答並保存紀錄。
核心觀念
本題的核心觀念為雙母體平均數差之假設檢定(Two-Sample Hypothesis Testing)與實驗設計中的樣本獨立性判斷:
- 實驗設計類型判定(獨立樣本 vs. 配對樣本):80 位業務員隨機分派至實驗組(培訓組),另 80 位隨機分派至對照組,兩組樣本來自不同受試個體(共 160 人),屬於完全隨機化設計之獨立雙樣本(Independent Samples),而非同一受試者前後測之配對設計。
- 中央極限定理(CLT)與抽樣分配:當兩組樣本數均為大樣本(、)時,樣本平均數之差 依據中央極限定理近似常態分配。
- 統計檢定力與統計決策錯誤:當檢定結果為「不拒絕虛無假說(Fail to reject )」時,所承擔的風險為型二錯誤(Type II error, )。
解題方法
從考卷原題附圖與表格可讀出以下關鍵資訊:
- 數據摘要:
- 訓練組():,,,極端值介於 。
- 對照組():,,,極端值介於 。
- 差值欄位():,,。
- 盒鬚圖(Box Plot)觀察:
- 兩組的中位數分別約為 54.5 與 53,箱體跨度(IQR)相近,無顯著極端離群值(outliers),分佈大致對稱且變異數相當。
各小題詳細推導如下:
(a) 建立假設檢定(Hypotheses)
題目旨在評估兩組業務員平均服務客戶數是否有差異("different between the two groups"),應設定為雙尾檢定:
- 虛無假說 :(或 ,即兩組業務員之母體平均客戶數無顯著差異)
- 對立假說 :(或 ,即兩組業務員之母體平均客戶數有顯著差異)
其中 代表參加培訓組業務員的母體平均客戶數, 代表對照組業務員的母體平均客戶數。
(b) 推導感興趣參數估計量之抽樣分配(Sampling Distribution)
感興趣的參數為母體平均數之差 ,點估計量為樣本平均數之差 。
-
期望值(不偏性):
根據期望值之線性性質: -
變異數:
因為兩組為獨立隨機抽樣分派(獨立樣本),共變異數 : -
漸近分配(中央極限定理 CLT):
由於樣本數 且 ,根據中央極限定理, 與 各自漸近常態分配:母體變異數 未知時,以一致估計量 取代,根據 Slutsky 定理,標準化統計量漸近於標準常態分配:
(c) 計算檢定統計量(Test Statistic)
在虛無假說 成立下:
- 估計量之差值:
- 標準誤(Standard Error):
- 檢定統計量數值:
(註:若採用等變異數合併估計量 ,由於兩組樣本數皆為 80,計算之標準誤完全相同,亦得 。)
(d) 於 10% 顯著水準下作成結論(Conclusion at )
- 顯著水準 ,為雙尾檢定,臨界值為 。
- 拒絕域(Rejection Region)為 。
- 計算所得之統計量 (其對應雙尾 )。
- 結論:落於不拒絕域,不拒絕虛無假說(Do not reject )。在 10% 顯著水準下,無充分統計證據顯示受訓組與對照組的業務員平均服務客戶數有顯著差異。
第 4 題
Suppose that the dependent variable, , is related to the independent variable, , and the error (or disturbance), , as
We have a i.i.d. random sample of size , .
(a) (3 points) Determine and , the ordinary least squares (OLS) estimator for and . What condition do you need to obtain and ?
(b) (3 points) Suppose that the error has an expected value of zero given any value of the explanatory variable, i.e., . Show that is an unbiased estimator for , i.e., .
(c) (3 points) Following b., show that is a consistent estimator for , i.e., as , .
(d) (3 points) Suppose that the error has the same variance given any value of the explanatory variable, i.e., . Determine the conditional variance of given .
(e) (3 points) Suppose that . Determine , , and , the maximum likelihood estimator for , , and .
(f) (2 points) Suppose that equation (1) is the true data generating process. However, the econometrician would like to estimate another model:
Determine , the OLS estimator for .
(g) (3 points) Determine , the expectation of , in terms of , , and .
登入後即可作答並保存紀錄。
本題為迴歸分析的基礎題,涵蓋了 OLS 估計量、無偏性、一致性、變異數以及最大概似估計量 (MLE)。
(a) OLS 估計量
OLS 的目標是最小化殘差平方和 (Sum of Squared Residuals, SSR)。
模型為 。
殘差為 。
SSR = 。
為了求得 和 ,我們對 SSR 分別對 和 求偏微分,並令其等於零。
對 微分:
解出 : 。
對 微分:
將 代入上式:
我們知道 (這一步需要仔細驗證,另一種寫法是 ).
另一種推導方式是使用離差形式:
所以,
或者,我們也可以寫成:
OLS 估計量為:
條件:
要得到這些 OLS 估計量,我們不需要任何關於誤差項 的假設。
但是,為了使這些估計量具有良好的性質(如無偏性、一致性、有效性),我們需要一些假設,這些將在後續小題中討論。
從數學上能夠解出 和 的條件是:
- 。這意味著 不能全部相等,即 必須有變異。如果所有 都相同,則分母為零,無法唯一確定 。
【答案】
條件: (即 變數不能是常數)。
(b) 的無偏性
假設 對於所有 。
我們需要證明 。
首先,將 代入 的公式:
現在計算期望值:
我們需要處理 。
假設 是固定的(或與 無關),則 是常數。
由於 ,所以 。
因此,我們需要計算 。
由於假設 ,這意味著 (即使考慮了 的值,期望值也是 0)。
所以,。
因此,
。
證明完畢。
【證明】
, 所以 。
由於 且 為固定的(或不依賴於 ),則 。
所以 。
因此 。
(c) 的一致性
要證明一致性,我們需要證明 在機率上收斂到 。
這通常透過證明 (已證明) 和 當 來實現。
我們需要計算 。
假設 是固定的,則 是常數。
由於 ,所以 。
由於 是獨立的,且 。
假設 (這在小題 (d) 中會給出)。
所以,
為了證明一致性,我們需要 當 。
這要求 當 。
這通常需要 的分佈是穩定的,並且樣本數 足夠大,使得 的取值能夠覆蓋一定的範圍。
如果 的值是從一個有有限變異數的母體中抽取,則 通常會趨近於母體變異數,因此 。
當 時,。
因此,只要 是有限的,且 當 ,則 是一致估計量。
我們假設 不是常數,且 足夠大,使得 趨於無窮大。
【證明】
我們已經證明 。
接著計算變異數:
當 ,假設 不是固定的常數,並且樣本足夠大,使得 。
若 是有限的,則 當 。
根據 Law of Large Numbers 和 Continuous Mapping Theorem,這保證了 在機率上收斂到 。
as .
(d) 的條件變異數
假設 的條件變異數為 (同質性變異數,Homoscedasticity)。
在小題 (c) 中,我們已經推導出:
【答案】
(e) MLE 估計量
第 5 題
Consider the following data:
| y | x |
|---|---|
| 1 | 32 |
| 2 | 50 |
| 3 | 8 |
| 4 | 2 |
| 5 | 18 |
| 6 | 6 |
(a) (2 points) Estimate the relationship between y and x using the ordinary least squares (OLS); that is, obtain the intercept and slope estimates in the equation , .
(b) (2 points) Compute the fitted values and residuals for each observation.
(c) (2 points) Compute the coefficient of determination, i.e., the .
登入後即可作答並保存紀錄。
本題要求計算簡單線性迴歸的 OLS 估計量、擬合值、殘差以及判定係數 。
首先,整理數據並計算所需的總和:
(注意:題目中寫 但數據有 6 筆,這裡以數據筆數為準,即 )
計算樣本平均數:
(a) OLS 估計量
斜率估計量 :
截距估計量 :
【答案】
(b) 擬合值與殘差
擬合值
殘差
| 1 | 1 | 32 | ||
| 2 | 2 | 50 | ||
| 3 | 3 | 8 | ||
| 4 | 4 | 2 | ||
| 5 | 5 | 18 | ||
| 6 | 6 | 6 |
檢查殘差和: (由於四捨五入,非常接近 0)。
【答案】
擬合值與殘差見上表。
(c) 判定係數
第 6 題
Suppose the data generating process is:
where are i.i.d. with . Consider the reverse regression estimator. That is, consider the following model:
Let and be the ordinary least squares estimator for and . Let , and .
(a) (4 points) Which, if any, of the following hold and why:
i. .
ii. .
iii. .
(b) (4 points) Is an unbiased estimator for ?
(c) (4 points) Is a consistent estimator for ?
登入後即可作答並保存紀錄。
本題探討反向迴歸 (reverse regression) 的性質,以及其估計量與原始迴歸估計量的關係,並考驗對 OLS 殘差性質的理解。
首先,我們定義原始模型和反向迴歸模型:
原始模型:, 。
反向迴歸模型:。
其中 是我們感興趣的參數。
OLS 估計量 和 是基於最小化 得到的。
根據 OLS 的性質,我們知道殘差和為零,且殘差與預測變數(在此為 )的協方差為零。
(a) 反向迴歸殘差的性質
由 OLS 的性質可知,對於模型 ,其 OLS 估計量 會滿足以下條件:
- 殘差和為零:。
- 殘差與預測變數的乘積和為零:。
(注意:這裡的預測變數是 ,如果模型是 ,則殘差與所有預測變數的乘積和都為零)。
i. 。
這是 OLS 估計量的標準性質。當我們對 求偏微分並令其為零時,會得到 ,即 。
因此,此敘述成立。
ii. 。
這是 OLS 估計量的另一個標準性質。當我們對 求偏微分並令其為零時,會得到 ,即 。
因此,此敘述成立。
iii. 。
是殘差平方和 (SSR)。SSR 僅在所有觀測值都完美擬合模型時才為零,也就是說,所有殘差 都為零。這通常只發生在樣本點都嚴格落在一個線上,且該線就是由 OLS 估計出的迴歸線。在一般情況下,除非 和 之間存在完美的線性關係,否則 SSR 不會為零。題目並沒有給出 和 之間的完美線性關係,所以此敘述通常不成立。
【答案】
i. 成立。這是 OLS 估計的標準性質,保證了截距項的估計。
ii. 成立。這是 OLS 估計的標準性質,保證了斜率項的估計。
iii. 不成立。除非 和 之間存在完美的線性關係,否則殘差平方和不為零。
(b) 是否為 的無偏估計量?
我們知道原始模型是 ,其中 。
反向迴歸模型是 。
若原始模型的假設成立,特別是 ,那麼 和 之間的關係可以寫成 。
若我們將 表示成 的函數,則:
對比反向迴歸模型 ,我們可以對應出:
現在我們來計算 的期望值。
是基於模型 的 OLS 估計量。
根據 OLS 的性質, 的期望值是真實參數 。
。
我們想知道的是 是否等於 。
根據上面的對應關係,理論上 。
然而,這是在假設 的條件期望為零的條件下成立的。
我們知道 。但是,反向迴歸的誤差項 與 的條件期望是否為零呢?
。
由於 是 和 的函數 (),
。
除非 和 之間沒有相關性,否則 通常不為零。
例如,如果 和 是獨立的,那麼 的變化會包含 的變化,但 仍然可能不為零。
更確切地說,除非 和 獨立,否則 。
然而, 和 通常是相關的,因為 包含 。
如果 和 是獨立的,那麼 。
如果 ,則 的值會包含 的信息,因此 和 通常是相關的。
因此,。
當誤差項的條件期望不為零時,OLS 估計量不再是無偏的。
所以, 不一定是 的無偏估計量。
這稱為「反向迴歸偏差」(reverse regression bias)。
【證明】
我們有 。
若 ,則 。
令 , , 。
反向迴歸模型為 。
OLS 估計量 是 的無偏估計量,若 。
。
通常情況下, 和 是相關的,即 (除非 和 獨立,但 包含 ,所以除非 或 ,否則不獨立)。
因此,。
由於 OLS 估計量僅在誤差項條件期望為零時才無偏,所以 不是 的無偏估計量。
由於 ,故 不是 的無偏估計量。
【答案】
否。
(c) 是否為 的一致估計量?
要判斷一致性,我們需要考慮當樣本數 時, 是否在機率上收斂到 。
是基於模型 的 OLS 估計量。
其極限定理通常是:
第 7 題
Consider the wage equation for married, working women:
where , , , , and are respectively woman 's working experience (years), education (years), age (years), number of children less than six, and number of children at least six years of age.
Using the data on the 428 working, married women from Mroz, 1987, we obtain the following estimation results:
| | Estimate | Std. Error | t value | Pr(>|t|) |
| :-------- | :------- | :--------- | :------ | :------- |
| Intercept | -0.4209 | 0.3169 | -1.328 | 0.185 |
| exper | 0.0398 | 0.0134 | 2.973 | 0.003 |
| expersq | -0.0008 | 0.0004 | -1.942 | 0.053 |
| educ | 0.1078 | 0.0144 | 7.487 | 0.000 |
| age | -0.0015 | 0.0053 | -0.277 | 0.782 |
| kidslt6 | -0.0607 | 0.0888 | -0.684 | 0.494 |
| kidsge6 | -0.0146 | 0.0279 | -0.523 | 0.601 |
. .
(a) (4 points) Can you conclude that, after the productivity variables (exper, expersq, and educ) are controlled for, women are not paid differently depending on their age and number of children (kidslt6 and kidsge6)? Why or why not?
(b) (4 points) Some argue that in the wage equation, at least one very important variable is missing: the adaptive skill, i.e., the skill to cope in the environment with greatest success and least conflict with others. However, the adaptive skill is unobserved. Suppose that the adaptive skill is uncorrelated to all the variables in our equation. Should we worried about the omitted-variable bias for the estimation for the coefficients of age, kidslt6, and kidsge6? Why or why not?
(c) (4 points) To test the omitted-variable bias, one suggests to test the exogeneity condition, i.e., to test if the error-terms are uncorrelated to the independent variables. Since the error-terms are not observable, one suggests to calculate the residuals, and to calculate the correlation coefficient of the residuals and the independent variables as the test statistics. Do you agree? Why or why not?
登入後即可作答並保存紀錄。
本題主要考驗對迴歸結果的解讀、假設檢定、省略變數偏差 (Omitted Variable Bias, OVB) 的判斷與檢驗方法。
(a) 關於年齡和子女數對薪資的影響
我們要判斷的是,在控制了生產力變數 (exper, expersq, educ) 後,年齡 (age)、六歲以下子女數 (kidslt6) 和六歲以上子女數 (kidsge6) 對薪資的影響是否顯著。這可以透過檢定這些變數對應的係數是否顯著不為零來判斷。
我們檢定以下虛無假設:
(年齡、小孩數對薪資無顯著影響)
對立假設:至少有一個係數不為零。
我們觀察迴歸結果中的 t 值和 p 值 (Pr(>|t|)):
- 對於 age (): t value = -0.277, p-value = 0.782
- 對於 kidslt6 (): t value = -0.684, p-value = 0.494
- 對於 kidsge6 (): t value = -0.523, p-value = 0.601
所有這些變數對應的 p 值 (0.782, 0.494, 0.601) 都遠大於一般的顯著水準 (例如 0.05 或 0.10)。
因此,我們無法拒絕這些變數的係數為零的虛無假設。
結論:在控制了生產力變數後,我們沒有足夠的統計證據顯示年齡、六歲以下子女數或六歲以上子女數對女性的薪資有顯著影響。
【答案】
不能。age, kidslt6, 和 kidsge6 對應的 p 值 (0.782, 0.494, 0.601) 都大於常用的顯著水準 (如 0.05),因此我們無法拒絕這些係數為零的虛無假設。這表示在控制了生產力變數後,我們沒有足夠的證據顯示這些變數對薪資有顯著影響。
(b) 省略變數偏差 (OVB) 的問題
省略變數偏差 (OVB) 會發生在被省略的變數 (omitted variable) 與模型中包含的解釋變數 (included explanatory variables) 相關,並且該被省略的變數也對應變數 (dependent variable) 有影響時。
題目提到一個未被觀察到的變數「適應性技能」(adaptive skill),並假設它與模型中所有已包含的變數 (exper, expersq, educ, age, kidslt6, kidsge6) 的相關性為零。
如果一個被省略的變數與模型中已包含的解釋變數「不相關」,那麼它就不會引起 OLS 估計量的偏差。
這裡,題目明確指出「適應性技能」與模型中所有變數「不相關」(uncorrelated)。
因此,即使這個變數很重要,並且可能影響薪資,但由於它與我們模型中的解釋變數不相關,它不會對 (age), (kidslt6), (kidsge6) 的估計量產生偏差。
【答案】
不應該擔心。省略變數偏差產生的原因是被省略的變數與模型中包含的解釋變數相關。題目明確說明「適應性技能」與模型中所有變數都不相關,因此即使它被省略,也不會對 age, kidslt6, 和 kidsge6 的係數估計產生偏差。
(c) 檢定省略變數偏差的方法
題目建議的檢定方法是:
- 計算殘差 (residuals)。
- 計算殘差與每個獨立變數之間的相關係數。
- 將這些相關係數作為檢定統計量。
這種方法實際上是在檢定殘差是否與模型中的解釋變數相關。
如果模型是正確設定的(即所有重要的解釋變數都已包含,且誤差項滿足假設),那麼殘差應該與模型中的所有解釋變數不相關。
然而,這裡的建議是為了「測試省略變數偏差」。
省略變數偏差的根本原因是,被省略的變數與模型中的解釋變數相關。
如果我們想檢定一個特定的省略變數 是否會導致偏差,我們需要: