115 年 國立臺灣大學農業經濟學系碩士班《統計學(E)》
第 1 題
A. Let Y denote a geometric random variable with probability of success p = 3/4. The
probability P(Y > 2) = (1) ; the probability P(Y > 8|Y > 5) = (2) ; the standard
deviation of Y is (3) ; the moment-generating function (MGF) of Y, = (4) ; the probability-generating function of Y, = (5).
登入後即可作答並保存紀錄。
此題考驗對幾何分布基本性質的理解,包含機率計算、條件機率、期望值、標準差、動差生成函數 (MGF) 及機率生成函數 (PGF)。
幾何分布定義:設隨機變數 Y 為成功所需的嘗試次數,成功機率為 p。則 Y 的機率質量函數 (PMF) 為 ,其中 。
在此題中,,因此 。
(1) 計算
幾何分布有一個重要的性質:。
所以,。
(2) 計算
根據條件機率的定義,。
在此, 為 , 為 。
為 且 ,這等價於 。
所以,。
利用性質 :
因此,。
此結果也符合幾何分布的無記憶性 (memoryless property)。
第 2 題
B. Suppose that, for , the joint probability density function of and is given
by:
The expected value of , ; the expected value ;
the variance of , ; the variance ; the condition
for and to be independent is (10).
登入後即可作答並保存紀錄。
此題考驗對聯合機率密度函數的理解,包含邊際機率密度函數、期望值、變異數、線性組合的期望值與變異數,以及獨立性的判斷。
首先,我們需要找出邊際機率密度函數 和 。
計算積分:
代回 :
, for .
這表示 服從指數分布,參數 。
同理,對稱性可知 , for 。
(6) 計算
因為 服從參數為 的指數分布,其期望值為 。
。
(7) 計算
利用期望值的線性性質:。
。
第 3 題
- (20 points) A researcher studies the relationship between the daily supply quantity of egg y and its unit selling
price x. Using data collected over 8 days, the following summary statistics are obtained:
.
Assume the classical linear regression assumptions hold.
a. (5 points) Using the least squares method, estimate the regression line of y on x (state intercept and
coefficient).
b. (5 points) Compute the coefficient of determination, R². Briefly explain what this value means in this context.
c. (10 points) Test whether the unit selling price has a statistically significant effect on daily supply quantity.
Specifically, test the following hypotheses at the 5% significance level:
vs.
You are given that the estimated variance of the error term is:
Clearly state the test statistic, the rejection rule, and your conclusion (Use the t-table with upper-tail
probabilities).
登入後即可作答並保存紀錄。
核心觀念
本題考查簡單線性迴歸的最小平方法、決定係數與斜率的顯著性檢定。模型為
其中, 為截距, 為單位售價增加一單位時,每日供應量條件平均數的變動量。
定義中心化平方和與交叉乘積和:
含截距的簡單線性迴歸具有下列公式:
解題方法
a. 最小平方法估計迴歸線
最小平方法選取截距與斜率,使殘差平方和
達到最小。由其常態方程可得上述斜率與截距公式。
本題 ,先計算平均數:
再計算:
因此,
估計迴歸線為
斜率表示:單位售價增加一單位,預測的每日供應量增加 單位。截距 表示售價為零時的預測供應量;若零售價不在觀測範圍內,截距主要是模型定位的參數,不宜直接賦予實際經濟意義。
b. 計算並解釋決定係數
供應量的總平方和為
迴歸解釋平方和為
因此,
**解釋:**在這 天的樣本中,每日供應量相對於其平均數的總變異,約有 可由單位售價與供應量之間的線性迴歸關係解釋;其餘約 為模型未解釋的變異。
這個比例衡量模型對樣本變異的解釋程度,並不表示售價造成了 的供應量變動,也不等同於預測正確率。
c. 在 顯著水準下檢定斜率
第 4 題
- (10 points) A researcher estimates the following regression equation:
where Y is the number of asthma hospitalizations, and X is the concentration of sulfur dioxide (SO2) measured in
parts per million (PPM).
Suppose the researcher changes the unit of measurement of X from PPM () to parts per ten thousand (%%),
where , and re-estimates the regression.
Answer the following questions:
a. (5 points) Write down the new regression equation after the unit change.
b. (5 points) Does the coefficient of determination R² change? Explain briefly.
登入後即可作答並保存紀錄。
核心觀念
本題考查「解釋變數的測量單位改變」對迴歸方程式與決定係數 的影響。
原迴歸式為
其中 以 PPM 為單位。依題目給定,新的測量單位滿足
而
因此,數值上的單位轉換會改變斜率係數,但不會改變實際的 值或模型的配適程度。
解題方法
設原本以 PPM 表示的數值為 ,改用新單位後的數值為 。
同一個二氧化硫濃度必須滿足
所以
亦即
將其代回原迴歸式:
因此
截距不變,因為單純改變 的測量單位;斜率則由原本的 變為 。
(a) 新的迴歸方程式
令 表示以新單位表示的 SO 濃度,則新的迴歸方程式為
(b) 是否改變?
不會改變。
理由是,單位轉換後:
第 5 題
- (5 points) The dataset contains 9 observations. Based on the regression of the dependent variable y on the
explanatory variable x, the following estimation results are obtained:
Predictor Coefficient Standard Error
Constant 18.600 6.200
x 1.050 0.300
Source SS df MS F
Regression 210.000 ? ? ?
Error 120.000 ? ? ?
Total 330.000
What is the value of the F statistic for testing the overall significance of the regression?
登入後即可作答並保存紀錄。
此題要求計算簡單線性迴歸的 F 統計量,用於檢定迴歸的整體顯著性。
F 統計量的計算公式為:
其中 MSR 是迴歸均方 (Mean Square Regression),MSE 是誤差均方 (Mean Square Error)。
從 ANOVA (Analysis of Variance) 表格中,我們已知:
SSR (Sum of Squares Regression) = 210.000
SSE (Sum of Squares Error) = 120.000
SST (Sum of Squares Total) = 330.000
(驗證:SSR + SSE = 210.000 + 120.000 = 330.000 = SST,符合。)
樣本數 。
在這個簡單線性迴歸模型中,有 1 個解釋變數 (x)。
迴歸的自由度 。
誤差的自由度 。
總自由度 。
計算均方:
MSR =
MSE =
第 6 題
- (15 points) Answer the following true or false question with brief explanation of the reason.
a. (5 points) In a multiple regression model, if an explanatory variable has a statistically insignificant coefficient,
then removing that variable from the model will not change the estimated coefficients of the remaining
variables.
b. (5 points) In a multiple regression model, the presence of severe multicollinearity causes the OLS estimators
to be biased and the R² of the regression to be low.
c. (5 points) When estimating a regression of agricultural commodity prices on seasonal effects, if there are four
seasons in a year (Spring, Summer, Fall, Winter), four seasonal dummy variables should be included in the
regression model.
登入後即可作答並保存紀錄。
此題考驗對多元迴歸模型性質的理解,包含變數篩選、多重共線性、以及虛擬變數的應用。
a. 判斷敘述「在多元迴歸模型中,若一個解釋變數的係數統計上不顯著,則移除該變數不會改變其他變數的估計係數。」的真偽。
此敘述為 錯誤。
原因:在多元迴歸中,OLS (Ordinary Least Squares) 估計式的係數是同時考慮所有解釋變數的。即使某個變數的係數不顯著,它仍然可能與模型中的其他解釋變數存在相關性(即存在多重共線性)。當我們移除一個解釋變數時,模型中的其他解釋變數的「淨效應」(即在控制了其他變數後,該變數對應變數的影響)可能會改變。這是因為被移除的變數可能在原本的迴歸中與其他變數共同解釋了應變數的一部分變異,或者它與其他變數存在共線性,其係數的估計值包含了其他變數的影響。移除一個變數會重新分配模型中變數的影響力,從而改變其他變數的估計係數,即使這些係數在統計上可能仍然不顯著。
一個特例是,如果被移除的變數與所有剩餘解釋變數之間完全不相關(即共變異數為零),那麼移除它不會影響其他變數的係數。但在一般情況下,這種情況很少發生。
b. 判斷敘述「在多元迴歸模型中,嚴重的多重共線性會導致 OLS 估計量產生偏差,並且迴歸的 R² 值較低。」的真偽。
此敘述為 錯誤。
原因:
- 偏差 (Bias):嚴重的多重共線性並不會導致 OLS 估計量產生偏差。OLS 估計量在多重共線性存在時,仍然是無偏差且一致的估計量。然而,多重共線性會導致估計量的變異數 (variance) 顯著增大,使得係數的估計值非常不穩定,容易受到樣本變異的影響,標準誤 (standard error) 也會很大,進而導致個別係數的顯著性檢定結果(如 t 檢定)變得不顯著。
- R² 值較低:嚴重的多重共線性與較低的 R² 值之間沒有必然的因果關係。事實上,即使存在嚴重的多重共線性,模型的整體擬合優度(由 R² 衡量)仍然可以很高。R² 衡量的是模型對應變數總變異的解釋程度,而多重共線性主要影響的是對個別解釋變數係數的精確估計。