113 年 國立政治大學經濟學系碩士班《統計學》
第 1 題40 分
In the model , with non-stochastic. Assume that is independent and identically distributed . Giving the following sample moments:
Assume that this model holds for with and with .
(a) Calculate the best linear unbiased predictor of and .
(b) Estimate the standard error of your forecast in (a).
(c) Construct 95% confidence intervals for and .
(d) If the realized values for and are 1 and 2 respectively, test the null hypothesis that and at the 5% level.
登入後即可作答並保存紀錄。
此題考驗對簡單線性迴歸模型中預測(預測值與信賴區間)的理解,以及對殘差(誤差項)的假設檢定。
首先,我們需要從樣本矩計算出迴歸模型的參數估計值。
樣本數 。
樣本均值:
樣本變異數與共變異數:
迴歸係數估計值:
迴歸模型估計式為:
接著,我們需要估計誤差項的變異數 。
殘差平方和
另外,也可以計算
誤差項變異數的無偏估計量:
核心觀念:
- BLUP (Best Linear Unbiased Predictor): 對於未來未知的觀測值 ,其預測值 應為基於現有樣本資訊的線性組合,且期望值等於真實值,同時具有最小的預測誤差變異數。
- 預測標準誤: 衡量預測值 相對於真實值 的不確定性。
- 信賴區間: 提供一個範圍,以一定信賴水準涵蓋真實值 。
- 假設檢定: 檢驗模型的基本假設,在此題中是關於誤差項期望值。
(a) Calculate the best linear unbiased predictor of and .
BLUP 的形式為 。
對於 ,已知 。
預測值 。
對於 ,已知 。
預測值 。
【答案】
的最佳線性不偏預測值為 5.2。
的最佳線性不偏預測值為 -2。
(b) Estimate the standard error of your forecast in (a).
預測值 的預測誤差為 。
由於 和 的估計值是基於樣本的,預測誤差的變異數不僅包含 的變異數 ,還包含參數估計誤差的影響。
預測誤差的變異數為 .
在簡單線性迴歸中,預測值 的預測誤差變異數為:
我們使用 作為 的估計。
, , .
對於 ():
預測標準誤 。
對於 ():
預測標準誤 。
【答案】
的預測標準誤為 2。
的預測標準誤為 2。
第 2 題20 分
Suppose that a random sample is exponentially distributed, that is
We consider using maximum likelihood estimation to estimate the unknown parameter .
(a) Write down the likelihood function.
(b) Derive the first order conditions and the maximum likelihood estimator for .
(c) Five observations are 1, 1.5, 0.7, 0.8 and 3. Find the maximum likelihood estimate for .
登入後即可作答並保存紀錄。
此題考驗對最大概似估計法 (Maximum Likelihood Estimation, MLE) 的掌握,包括如何建構概似函數、求導求解以及實際計算。
核心觀念:
- 概似函數 (Likelihood Function): 描述在給定參數值下,觀察到樣本數據的機率(或機率密度)。
- 對數概似函數 (Log-Likelihood Function): 概似函數的自然對數,通常更容易進行微分和最佳化。
- 一階條件 (First Order Conditions, FOCs): 對數概似函數對參數微分後等於零的條件,這些條件的解是可能的極值點(通常是最大值點)。
- 最大概似估計量 (Maximum Likelihood Estimator, MLE): 使得概似函數(或對數概似函數)最大的參數值。
(a) Write down the likelihood function.
給定一個隨機樣本 ,其機率密度函數為 ,其中 。
由於樣本是隨機且獨立的,聯合機率密度函數(即概似函數)是各個機率密度的乘積:
【答案】
概似函數為 。
(b) Derive the first order conditions and the maximum likelihood estimator for .
為了便於微分,我們通常對概似函數取自然對數,得到對數概似函數:
接下來,我們對 對 微分,並令其等於零,以找到極值點:
第 3 題15 分
Given the following distribution function,
Please find the density function and compute the mean and variance.
登入後即可作答並保存紀錄。
此題考驗對累積分布函數 (Cumulative Distribution Function, CDF) 的理解,以及如何從 CDF 推導機率密度函數 (Probability Density Function, PDF),並計算期望值和變異數。
核心觀念:
- 累積分布函數 (CDF): ,描述隨機變數 的值小於或等於 的機率。
- 機率密度函數 (PDF): ,描述隨機變數在某一點的機率密度。
- 期望值 (Mean): 。
- 變異數 (Variance): 。
首先,我們需要確定隨機變數的定義域。題目給定 適用於 。
因此,隨機變數 的定義域是 。
對於 , 。
對於 , 。
1. Find the density function.
機率密度函數 (PDF) 是累積分布函數 (CDF) 對其變數的微分:
對於 :
對於 或 , 。
在 和 處,PDF 的值不影響積分,通常定義為 0 或由上下文決定。
因此,機率密度函數為:
我們也需要驗證 PDF 的積分是否為 1:
第 4 題25 分
Consider the following model
with independent and identically distributed , and . Please find
(a) the distribution of ,
(b) the autocovariance and autocorrelation of .
登入後即可作答並保存紀錄。
核心觀念
本題是帶有漂移項的單根模型(random walk with drift):
其中 、,且 獨立同分配於 。
解題關鍵有三:
- 將遞迴式逐期展開。
- 利用獨立常態變數和仍為常態分配。
- 利用獨立誤差項的共變異數為零,計算不同時點的共變異數。
由於模型含有單根 , 並非弱平穩序列,因此其自共變異數會依賴時間 ,不能只寫成單純的 lag 函數 。
解題方法:先將模型展開
代入 :
逐期展開:
因為 ,所以
令
則
(a) 的分配
每一個 ,且彼此獨立,因此
加上常數 只會改變平均數,不會改變變異數,因此
亦即:
例如:
- ;
- 。
(b) 自共變異數
一般形式:
由
常數不影響共變異數,因此
兩個總和中共同出現的誤差項為
由於各誤差項相互獨立,且每一項變異數為 ,得到
以 lag 表示
若 ,其中 ,則
因此 lag 的自共變異數為
特別地,當 時: