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) 每日預期利潤與標準差
假設每日利潤為 ,則 可以表示為賣出蘋果的總收入減去賣出橘子的總收入。
蘋果的單價為 ,賣出數量為 。
橘子的單價為 ,賣出數量為 。
所以,每日利潤 。
根據期望值和變異數的線性性質:
代入已知數值:
,
,
計算期望利潤:
計算利潤的變異數:
計算利潤的標準差:
【答案】
每日預期利潤為 元。
每日利潤的標準差約為 元。
第 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。兩檔股票的投資權重分別為:
步驟二:求投資組合報酬率之期望值與變異數
設投資組合之總報酬率為 。
- 期望值:
- 變異數(因兩者獨立,無共變異數項):
- 標準差:
第 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?
登入後即可作答並保存紀錄。
本題主要在考驗假設檢定、抽樣分配的推導以及對第一類與第二類錯誤的理解。
(a) 虛無假設與對立假設
我們感興趣的參數是兩組平均客戶數的差異。
設 為訓練組平均客戶數, 為對照組平均客戶數。
我們要檢定的是訓練組的平均客戶數是否與對照組不同。
虛無假設 ():兩組的平均客戶數沒有差異。
或
對立假設 ():兩組的平均客戶數有差異。
或
這是雙尾檢定。
【答案】
(b) 估計量參數的抽樣分配
我們感興趣的參數是 。
根據題目提供的摘要統計量,我們有兩組樣本:訓練組 () 和對照組 ()。
樣本大小 。
訓練組樣本平均數 ,樣本標準差 。
對照組樣本平均數 ,樣本標準差 。
由於兩組樣本大小都足夠大 ( 且 ),我們可以應用中央極限定理。
根據中央極限定理,樣本平均數的抽樣分配近似於常態分配。
樣本平均數 的抽樣分配近似為:
當 未知時,我們使用樣本變異數 來估計:
同樣地,對照組樣本平均數 的抽樣分配近似為:
當 未知時,我們使用樣本變異數 來估計:
我們感興趣的參數是 的估計量。
一個自然的估計量是樣本平均數的差值:。
題目也給出了差值 的摘要統計量,其中樣本平均數 ,樣本標準差 。
考慮估計量 。
由於 和 是來自獨立樣本的平均數,它們也是獨立的。
的期望值:
因此, 是 的一個無偏估計量。
的變異數:
(因為獨立)
當母體變異數 和 未知時,我們使用樣本變異數 和 作為估計。
然而,由於 和 足夠大,我們可以近似使用樣本標準差來計算標準誤。
的標準誤 (Standard Error, SE) 估計為:
根據中央極限定理,當 足夠大時,估計量 的抽樣分配近似於:
或者,我們也可以直接使用差值 的樣本統計量。
樣本差值 。
樣本差值的標準差 。
樣本大小 。
第 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) 的一致性
要證明一致性,我們需要證明 在機率上收斂到 。
這通常透過證明 (已證明) 和 當 來實現。
我們需要計算 。
假設 是固定的,則 是常數。
第 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 |
第 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)。
第 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) 的估計量產生偏差