113 年 國立臺灣大學農業經濟學系碩士班《統計學(E)》
第 1 題26 分
A researcher conducted a study to examine the effect of college education on earnings in Taiwan. Using data from a large survey, he estimated several regression models. Definitions of the selected variables are provided in Table 1, and the results of the regression analyses are presented in Table 2. Utilize this information to answer to the following questions. Calculate to the third decimal place.
Table 1. Definitions of selected variables.
| Variable | Definition |
|---|---|
| College | A binary variable for whether the respondent holds a college degree. |
| Earnings | Monthly earnings. |
| East | A binary variable for whether the respondent resides in eastern Taiwan. |
| North | A binary variable for whether the respondent resides in northern Taiwan. |
| Central | A binary variable for whether the respondent resides in central Taiwan. |
| South | A binary variable for whether the respondent resides in southern Taiwan. |
Table 2. Regression results
| Variable | Coef. | S. E. | Coef. | S. E. | Coef. | S. E. |
|---|---|---|---|---|---|---|
| Model 1 | Model 1 | Model 2 | Model 2 | Model 3 | Model 3 | |
| Earnings | Earnings | Earnings | Earnings | Log(Earnings) | Log(Earnings) | |
| College | 5.332*** | 0.097 | 5.062*** | 0.097 | 0.322*** | 0.004 |
| East | -3.215*** | 0.117 | -0.144*** | 0.005 | ||
| North | 4.029*** | 0.275 | 0.100*** | 0.012 | ||
| Central | -0.131 | 0.120 | -0.017*** | 0.005 | ||
| Constant | 30.472*** | 0.072 | 31.217*** | 0.093 | 3.113*** | 0.004 |
| R² | 0.0121 | 0.0156 | 0.0251 | |||
| Observations | 272,357 | 272,357 | 272,357 |
Note: *** p<0.01, ** p<0.05, * p <0.1.
A. What is the estimated correlation coefficient between College and Earnings? (3 points)
B. What is the average earnings among respondents without a college degree? (3 points)
C. What are the (i) average and (ii) the standard deviation of earnings for the full sample? (6 points)
D. Based on the results in Model 2, what is the expected difference in the average earnings between respondents in Northern Taiwan and respondents in Eastern Taiwan? (3 points)
E. Interpret the estimated coefficient of College in Model 2 and Model 3, respectively. Be specific. (4 points)
F. Can we conclude that Model 3 is superior to Model 2 on the ground of higher R²? Explain. (3 points)
G. Based on the regression results in Table 2, can we conclude that college education leads to higher earnings? Explain. (4 points)
登入後即可作答並保存紀錄。
核心觀念
本題考查:
- 簡單線性迴歸與相關係數的關係。
- 虛擬變數迴歸中,截距與係數的意義。
- 由迴歸的 、係數與標準誤反推樣本平均數及標準差。
- 多元迴歸中控制變數後的邊際效果。
- 線性模型與對數模型係數的解釋。
- 不同應變數下不可直接以 比較模型優劣。
- 迴歸相關不等於因果關係。
A. College 與 Earnings 的估計相關係數
Model 1 是以二元變數 College 解釋 Earnings 的簡單迴歸。在簡單迴歸中:
Model 1 的 ,且 College 的迴歸係數為正,因此相關係數取正平方根:
【答案】估計相關係數為
B. 沒有大學學位者的平均 earnings
Model 1 可寫為:
其中:
- :沒有大學學位;
- :具有大學學位。
因此,沒有大學學位者的預測平均 earnings 為截距:
【答案】沒有大學學位者的平均 earnings 為
C. 全樣本 earnings 的平均數與標準差
(i) 全樣本平均 earnings
先利用 Model 1 的兩個標準誤反推出 College 的樣本比例。
令:
在含截距的簡單迴歸中,若使用一般同質變異標準誤,會有:
而截距標準誤滿足:
因此:
代入表中數值:
Model 1 中:
- 沒有大學學位者的平均 earnings:;
- 有大學學位者相對於沒有大學學位者高:。
所以全樣本平均數為:
(ii) 全樣本 earnings 的標準差
二元自變數 College 的變異數為:
簡單迴歸的決定係數為:
因此:
代入:
故標準差為:
【答案】
解題技巧:二元變數迴歸中,若知道兩組平均差與 ,可用
反推出整體應變數變異數。
D. 北部與東部的平均 earnings 差異
Model 2 為:
第 2 題20 分
Answer the following true or false questions with a brief explanation.
A. A researcher is interested in estimating the mean income of the population. He collected a random sample and found a 98% confidence interval of 40,000. This implies that this interval has a 98% chance of containing the mean income in the population. (4 points)
B. In the analysis of variance (ANOVA), the larger the variability between group means relative to the within-group variability, the stronger the evidence against the null hypothesis. (4 points)
C. It is generally advisable to include a higher number of variables in a regression model for better model performance and accuracy. (4 points)
D. In a simple regression model with only one explanatory variable, it is possible that the estimated coefficient is insignificant, even though the global F-test is significant. (4 points)
E. In a multiple regression model with more than one explanatory variables, it is possible that all estimated coefficients are insignificant, even though the global F-test is significant. (4 points)
登入後即可作答並保存紀錄。
核心觀念
本題考查四項統計推論與迴歸分析觀念:
- 信賴區間的正確解釋。
- ANOVA 的組間變異、組內變異與 統計量。
- 迴歸模型的變數選擇與過度配適。
- 個別 檢定與整體 檢定的關係。
解題方法與選項分析
A. 錯誤
研究者得到母體平均所得的 信賴區間為 $35,000 至 $40,000。題目宣稱此區間有 的機率包含母體平均數,這是錯誤的。
在古典統計中,母體平均數 是固定但未知的參數;信賴區間則是由隨機樣本計算出的隨機區間。 信賴水準的正確意義是:
若以相同抽樣方法重複抽樣,並每次建立信賴區間,長期而言約有 的區間會包含真正的 。
可表示為:
其中 與 是由樣本產生的隨機上下限。
一旦本次樣本已經觀察完成,區間 $35,000 至 $40,000 已經是固定的,而 也是固定的;在古典解釋下,該區間不是「有 機率」包含 ,而是實際上包含或不包含 。
B. 正確
ANOVA 的虛無假設通常為:
其 統計量為:
其中:
- :組間均方,衡量各組平均數彼此之間的變異。
- :組內均方,衡量同一組內觀察值的變異。
當組間平均數的變異相對於組內變異越大時, 值越大:
較大的 值表示各組平均數之間的差異,不太可能單純由組內隨機波動造成,因此反對所有母體平均數相等的虛無假設之證據越強。
C. 錯誤
在迴歸模型中加入更多變數,確實會使樣本內的 不下降,因為增加變數後,模型的解釋能力至少不會變差。然而,這不代表模型在新資料上的表現與準確度一定提高。
加入過多變數可能造成:
- 過度配適(overfitting)。
- 模型變得複雜,解釋性降低。
- 估計量的變異增加。
- 多重共線性,使個別係數的標準誤變大。
- 樣本外預測能力下降。
因此,模型選擇應考慮變數是否具有理論意義,以及調整後決定係數、AIC、BIC、交叉驗證誤差等指標,而不是一味增加變數。
調整後決定係數可表示為:
第 3 題4 分
Given the probability density function of an exponential probability distribution provided below, derive its cumulative density function.
登入後即可作答並保存紀錄。
核心觀念
累積分布函數(CDF)定義為
指數分布的參數須滿足 。由於機率密度函數在 時為 ,因此 CDF 必須依照 與 分段計算。
解題方法與推導
情形一:
當 時,從負無限大積分至 的範圍內,機率密度函數皆為 ,因此
情形二:
當 時,
因為 對所有 成立,所以
計算積分:
因此
第 4.(1) 題5 分
A. Let denotes the time (in minutes) until the first arrival at a checkout counter, denotes the time between the first and second arrival, and denotes the time between the -th and -th arrival. are independent random variables from the exponential distribution with mean . The variance of is (1) ; the moment generating function (MGF) of is (2) ; Let . The meaning of is (3) ; the MGF of , ; the variance of , .
登入後即可作答並保存紀錄。
本題為填空題,考驗指數分配的性質,包含變異數、動差生成函數 (MGF)、以及多個獨立同分布指數分配變數和的分配。
核心觀念:
- 指數分配的性質: 指數分配的 PDF 為 (),其期望值 且變異數 。
- 動差生成函數 (MGF): 對於一個隨機變數 ,其 MGF 為 。
- 獨立隨機變數和的 MGF: 若 是獨立隨機變數,則其和 的 MGF 為 。
- 獨立隨機變數和的變異數: 若 是獨立隨機變數,則其和 的變異數為 。
- 指數分配的 MGF: 若 ,則 ,適用於 。
- 指數分配的期望值與變異數: 若 ,則 且 。
題目資訊:
- 是獨立的隨機變數。
- 它們來自平均值為 的指數分配。
- 因此,每個 的期望值 。
- 對於指數分配,期望值 ,所以 。
- 這意味著 。
- 指數分配的變異數為 。
(1) The variance of is (1)
來自平均值為 的指數分配。
對於指數分配,若其平均值為 ,則其變異數為 。
(因為 ,所以 。 )。
【答案】
(2) the moment generating function (MGF) of is (2)
第 4.(2) 題5 分
B. Let denote a random sample of size from a Poisson distribution with unknown mean and denote the sample mean. The variance of , ; A sufficient statistic for is (7) ; the minimum-variance unbiased estimator for is (8) ; the method-of-moments estimator of is (9) ; the maximum likelihood estimator for is (10). (N.B.: Use the notations defined in this question B to answer.)
登入後即可作答並保存紀錄。
本題為填空題,考驗泊松分配的性質,包含樣本平均數的變異數、充分統計量、最小變異數不偏估計量、動量法估計量以及最大概似估計量。
核心觀念:
- 泊松分配的性質: 若 ,則 且 。
- 樣本平均數的性質: 若 是來自母體平均數為 、變異數為 的隨機樣本,則樣本平均數 的期望值 ,變異數 。
- 充分統計量 (Sufficient Statistic): 一個統計量 若包含了母體參數 的所有資訊,使得給定 的值後,樣本 的條件機率分佈不再依賴於 ,則 是 的充分統計量。對於獨立同分布的樣本,樣本總和或樣本平均數通常是充分統計量。
- 最小變異數不偏估計量 (MVUE): 在所有不偏估計量中,變異數最小的估計量。
- 動量法估計量 (Method of Moments Estimator, MOM): 令樣本動量 (sample moments) 等於母體動量 (population moments),然後解出母體參數。
- 最大概似估計量 (Maximum Likelihood Estimator, MLE): 找到使觀測到樣本機率最大的母體參數值。
- 泊松分配的 : 若 ,則 。因此 。
題目資訊:
- 是來自母體為未知參數 的泊松分配的隨機樣本。
- 是樣本平均數。
(6) The variance of ,
對於泊松分配 ,其母體的平均值 且母體的變異數 。
樣本平均數 的期望值 。
樣本平均數 的變異數 。
【答案】
(7) A sufficient statistic for is (7)
對於來自母體 的獨立同分布樣本 ,其聯合機率密度函數為:
對於泊松分配,,其中 是非負整數。
聯合機率函數為:
根據費雪-史坦尼定理 (Fisher-Neyman factorization theorem),一個統計量 是參數 的充分統計量,若聯合機率函數可以寫成 的形式,其中 不含 。
在此例中,。
令 (樣本總和)。