108 年 國立成功大學統計學研究所《統計學》
第 1 題
Adding additional independent variables in a regression equation will
(A) increase the value of the coefficient of multiple determination.
(B) improve the predictive power of the equation.
(C) reduce the predictive power of the equation.
(D) Additional independent variables may not be added to a regression equation.
(E) none of the above
登入後即可作答並保存紀錄。
此題考驗對複迴歸模型中加入解釋變數的影響的理解。
在複迴歸模型中,加入額外的解釋變數,即使該變數對應的迴歸係數的統計檢定不顯著,調整後的判定係數(Adjusted R-squared)可能會下降,但未調整的判定係數(R-squared)一定會增加或維持不變。這是因為 R-squared 的定義為 ,其中 SSE 是殘差平方和,SST 是總平方和。當我們加入一個新的解釋變數時,即使它不能顯著解釋變異,模型也能夠「擬合」得更好一點,導致 SSE 減少(或至少不增加),進而使得 R-squared 增加(或至少不減少)。
然而,加入無關的解釋變數會增加模型的複雜度,並可能導致過度擬合(overfitting),反而降低模型在未見數據上的預測能力。但題目問的是「predictive power」,這通常是指模型解釋變異的能力,而非泛指在未來數據上的預測能力。若加入的變數有助於解釋變異,則模型的預測能力(在此脈絡下指對樣本內數據的擬合能力)會有所提升。
選項 (A) 提到「coefficient of multiple determination」,這就是 。
第 2 題
Dummy variables are usually used to incorporate ____ into a regression analysis.
(A) dependent variables
(B) nominal variables
(C) interval/ratio variables
(D) multicollinearity
(E) beta coefficients
登入後即可作答並保存紀錄。
此題考查虛擬變數(Dummy Variables)在迴歸分析中的應用。
虛擬變數是用來處理類別型(Categorical)資料,特別是名目尺度(Nominal Scale)的變數。當迴歸模型中包含一個具有 個類別的類別型解釋變數時,我們通常會建立 個虛擬變數。這些虛擬變數可以將類別型變數的資訊量化,並納入迴歸模型中進行分析。
選項 (A) 應變數(dependent variables)是我們試圖解釋的變數,通常不是用虛擬變數來處理。
選項 (B) 名目變數(nominal variables)是類別型變數的一種,其類別之間沒有順序關係。
第 3 題
Null and alternative hypotheses are statements about:
(A) population parameters.
(B) sample parameters.
(C) sample statistics.
(D) it depends - sometimes population parameters and sometimes sample statistics.
(E) estimation
登入後即可作答並保存紀錄。
此題考查統計檢定的基本概念,特別是虛無假設(Null Hypothesis, )與對立假設(Alternative Hypothesis, )的本質。
在統計推論中,我們感興趣的是母體(population)的特性,例如母體平均數 、母體比例 或母體變異數 等。然而,我們通常無法取得整個母體的數據,只能從母體中抽取樣本(sample)來進行研究。
假設檢定(Hypothesis Testing)的目的,是利用樣本的資訊來對母體的某個參數(parameter)做出決策。虛無假設和對立假設都是關於母體參數的陳述。我們收集樣本數據,計算樣本統計量(sample statistic),並根據樣本統計量來評估虛無假設的真偽,進而對母體參數做出推論。
第 4 題
Fisher's Exact Probability Test is used when:
(A) The calculations for chi-square test are too difficult
(B) You have more cells with expected frequencies of less than 5
(C) You have a 3 by 2 contingency table
(D) You have non-categorical data
(E) For a given data set, the underlying distribution is normal
登入後即可作答並保存紀錄。
核心觀念
Fisher's Exact Probability Test(費雪精確機率檢定)是用於列聯表中檢定兩個類別變數是否獨立的方法,特別適合樣本數較小、或卡方檢定的期望次數過小時使用。
以 列聯表為例:
| 結果 1 | 結果 2 | 列合計 | |
|---|---|---|---|
| 組別 1 | |||
| 組別 2 | |||
| 欄合計 |
在固定列合計與欄合計的條件下,左上角觀察值為 的機率服從超幾何分配:
Fisher 檢定直接計算觀察到的表格及所有更極端表格的機率,因此稱為「精確」檢定,不依賴大樣本的卡方近似。
卡方檢定常用的期望次數為:
當許多儲存格的期望次數小於 時,卡方分配近似可能不佳,此時宜改用 Fisher 精確機率檢定。
解題方法
本題問的是 Fisher 精確機率檢定的適用情況。判斷重點有二:
- 資料必須是類別資料,通常整理成列聯表。
- 當樣本數小或期望次數過小,使卡方檢定的近似條件不適合時,使用 Fisher 檢定。
因此,符合上述條件的是「有較多儲存格的期望次數小於 」,即選項 (B)。
選項分析
(A) The calculations for chi-square test are too difficult
錯誤。
Fisher 檢定不是因為卡方檢定的計算太困難而使用。選擇檢定方法的依據是資料型態、樣本數及期望次數是否符合卡方近似的條件,而非計算者覺得計算是否繁瑣。
第 5 題
Based on a regression model, which of the following statistics is NOT design for detecting the outliers?
(A) Cook's distance
(B) Standardized residual
(C) DFFITS
(D) VIF(variance inflation factor)
(E) Hat matrix
登入後即可作答並保存紀錄。
此題考查迴歸診斷(Regression Diagnostics)中用於偵測離群值(Outliers)或影響點(Influential Points)的統計量,並找出其中不適用於此目的的選項。
在迴歸分析中,離群值是指那些在應變數(Y)上與模型預測值差異很大的觀測點。影響點(Influential Points)則是指那些對迴歸模型的係數估計有顯著影響的觀測點。許多診斷統計量同時用於偵測這兩者。
我們逐一分析選項:
(A) Cook's distance:Cook's distance 是一種衡量單一觀測點對整個迴歸模型影響程度的指標。它同時考慮了該點的殘差大小(離群值特性)和其在解釋變數空間中的位置(高槓桿點特性),是偵測影響點的常用工具。
(B) Standardized residual:標準化殘差(Standardized Residual)是衡量應變數觀測值與模型預測值之間差異的標準化指標。較大的標準化殘差(絕對值)通常表示該點是潛在的離群值。
第 6 題
Early studies showed that the time between arrivals at the car wash follows the exponential distribution with
mean 4 hours. What is the probability that no arrival during a two-hour period?
(A)
(B)
(C)
(D)
(E)
登入後即可作答並保存紀錄。
核心觀念
設到達間隔時間為 。題目指出 服從平均數為 小時的指數分配:
指數分配的平均數為
因此
其中 為每小時的平均到達率。
解題方法
題目問「兩小時期間內沒有任何到達」的機率,即到下一次到達所需時間超過 小時:
指數分配的存活函數為
代入 與 :
因此正確選項為 (D)。
選項分析
- (A) :錯誤。
指數部分應為 ,不是 。
第 7 題
Suppose we have a sample of the heights of students and want to use the sample mean to get a confidence interval
for the mean height in the population. Which of the following would increase the width of this confidence
interval?
(A) Increasing the sample size used to calculate the sample mean.
(B) Switching from a 95% confidence interval to a 99% confidence interval.
(C) Switching from a 95% confidence interval to a 90% confidence interval.
(D) Increasing the sample mean.
(E) None of the above.
登入後即可作答並保存紀錄。
此題考查信賴區間(Confidence Interval, CI)寬度的影響因素。信賴區間的寬度通常與以下因素有關:
信賴區間的一般形式為:
對於母體平均數 的信賴區間,若母體變異數 已知,或樣本量夠大(),則 CI 為:
若母體變異數 未知,則使用樣本標準差 :
Margin of Error (MOE) = 或 。
信賴區間的寬度是 。
現在分析各選項如何影響信賴區間的寬度:
(A) 增加樣本數 :
在 MOE 的公式中, 在分母。當 增加時, 增加, 減小,因此 MOE 減小,信賴區間的寬度減小。
第 8 題
Suppose X ~Uniform[0, 4]. Suppose a random sample of 100 observations is taken from each population.
How is the sample mean of X distributed?
(A) Uniform[0, 4]
(B) Uniform [0, 0.4]
(C) N(0, 0.4)
(D) N(2, 1.333)
(E) N(2, 0.013)
登入後即可作答並保存紀錄。
核心觀念
本題的核心觀念為中央極限定理(Central Limit Theorem, CLT)以及連續均勻分配(Continuous Uniform Distribution)的期望值與變異數。
-
連續均勻分配的動差性質:
若隨機變數 ,其母體平均數 與母體變異數 分別為: -
中央極限定理(CLT):
設隨機樣本 獨立且同分配(i.i.d.),其母體期望值為 ,母體變異數為 。當樣本數 充分大(一般經驗法則 )時,樣本平均數 的抽樣分配近似服從常態分配:
解題方法
題目給定母體為 ,抽樣樣本數 。欲求樣本平均數 的分配,依序進行以下步驟:
-
計算母體期望值 :
-
計算母體變異數 :
-
計算樣本平均數 的期望值與變異數:
- 期望值:
- 變異數:
第 9 題
Simpson's Paradox occurs when
(A) No baseline risk is given, so it is not known whether or not a high relative risk has practical importance.
(B) A confounding variable rather than the explanatory variable is responsible for a change in the response
variable.
(C) The direction of the relationship between two variables changes when the categories of a confounding
variable are taken into account.
(D) The results of a test are statistically significant but are really due to chance.
(E) This is not a randomized experiment.
登入後即可作答並保存紀錄。
核心觀念
Simpson's Paradox(辛普森悖論)是指:
當資料按照某個潛在的混淆變數分層後,兩變數之間的關係方向,與未分層時的整體關係方向相反。
設:
- :解釋變數
- :反應變數
- :混淆變數或分層變數
若整體資料顯示 與 呈正相關,但固定 的各個類別後,卻都呈負相關,便形成 Simpson's Paradox。反向情形亦然。
關鍵不只是「存在混淆變數」,而是:
解題方法
本題屬於定義辨識題,直接比對各選項與 Simpson's Paradox 的正式定義即可。
判斷重點有兩個:
- 是否有按照混淆變數的類別進行分層或控制。
- 分層前後,兩變數關係的方向是否發生改變。
例如,某項治療在整體資料中看似較有效,但分別比較輕症患者與重症患者後,卻發現治療在兩個群體中都較差。這種「整體結論」與「分層結論」方向相反的現象,就是 Simpson's Paradox。
選項分析
(A) No baseline risk is given, so it is not known whether or not a high relative risk has practical importance.
此敘述是在說明相對風險的實際重要性需要搭配基準風險判斷。
例如相對風險為 ,若基準風險由 增加至 ,與由 增加至 ,其實際影響差異很大。這與 Simpson's Paradox 無關。
因此,(A) 錯誤。
(B) A confounding variable rather than the explanatory variable is responsible for a change in the response variable.
此敘述描述的是一般的混淆作用:混淆變數影響反應變數,使人誤以為解釋變數造成了變化。
第 10 題
The following diagram graphically describes the probability of type I
error (a) and the probability of type II error (β) of a hypothesis test
regarding the population mean u when the sample size is 100. Given the
significance level a, the critical value is 9. Choose a set of hypotheses
from the following alternatives that corresponds to this diagram.
(A)
(B)
(C)
(D)
(E)
登入後即可作答並保存紀錄。
核心觀念
本題考查假設檢定中:
- 顯著水準 :在虛無假設 為真時,錯誤拒絕 的機率。
- 型二錯誤 :在對立假設 為真時,未拒絕 的機率。
- 臨界值的位置可判斷拒絕域方向。
- 兩條曲線的中心可判斷虛無假設與對立假設所代表的母體平均數。
圖中可讀得:
- 左側曲線中心在 。
- 右側曲線中心在 。
- 臨界值為 。
- 的右側為 區域,表示拒絕域為 。
- 右側曲線在 左側的區域標示為 。
解題方法
由臨界值 的右側為拒絕域,可知這是右尾檢定,因此:
圖中左側曲線是虛無假設下的抽樣分配,其中心為 ;右側曲線是對立假設下的抽樣分配,其中心為 。
所以假設應為:
在此設定下:
- 時, 的右尾面積為型一錯誤 。
- 時, 的左側面積為型二錯誤 。
因此符合圖形的是選項 (D)。
選項分析
- (A)
第 11 題
Which statement(s) is (are) CORRECT?
(I) The difference between the sample mean and the population mean is called the margin of error.
(II) The difference between the upper limit of a confidence interval and the point estimate used in
constructing the confidence interval is called the margin of error.
(III) The margin of error equals to half the width of a confidence interval.
(IV) The sampling error can either be positive or negative.
(A) I, III
(B) I, II, III
(C) II, III, IV
(D) II, IV
(E) I, II, III, IV
登入後即可作答並保存紀錄。
核心觀念
本題考查「抽樣誤差(sampling error)」與「誤差範圍(margin of error)」的定義及信賴區間的結構。
設母體平均數為 ,樣本平均數為 :
-
抽樣誤差:
它表示樣本平均數與母體平均數的實際差距,可能為正,也可能為負。
-
點估計值:通常以 估計 。
-
信賴區間:一般可寫成
例如平均數的信賴區間為
其中 即為誤差範圍(margin of error)。
若信賴區間為 ,則
因此信賴區間的總寬度為
故
解題方法
逐一判斷四個敘述是否符合上述定義:
- 「樣本平均數與母體平均數的差」是抽樣誤差。
- 「信賴區間上限與點估計值的差」是誤差範圍。
- 對稱信賴區間的誤差範圍等於區間寬度的一半。
- 抽樣誤差 的正負取決於 大於或小於 。
選項分析
敘述(I)錯誤
樣本平均數與母體平均數的差為
這個量稱為抽樣誤差,而非誤差範圍。
誤差範圍是建立信賴區間時,點估計值上下所延伸的距離,兩者概念不同。
敘述(II)正確
若信賴區間為
第 12 題
In a survey sampling, what is the smallest sample size n required if the margin of error (suppose a is set to be
0.05), in estimating the population proportion p, is set to be less than 0.03? Assume that 0.2≤p ≤0.4.
(A) 1068
(B) 1025
(C) 1000
(D) 996
(E) None for all the above four.
登入後即可作答並保存紀錄。
此題考查如何計算估計母體比例所需的最小樣本數,以達到指定的邊際誤差(Margin of Error, MOE)。
估計母體比例 的信賴區間通常為 ,其中 是樣本比例。
邊際誤差的公式為:
題目給定:
- 邊際誤差需小於 0.03,即 。
- 信賴水準為 95%,因此 ,。查表可知,。
- 估計的母體比例 的範圍是 。
我們要計算最小樣本數 。
首先,我們需要找到 的上界,以便確定 的最小值。
為了使 MOE 最小,我們需要使 最小。
在給定的區間 內,我們需要找到 的最大值。
函數 的最大值發生在 。
然而,在此題的區間 內,函數 是單調遞增的。
因此,在區間的端點 時, 達到最大值。
第 13 題
From a population with a variance of 900, a sample of 225 items is selected. At 95% confidence, the margin
of error for estimating the population mean is
(A)15
(B) 2 (C) 3.28 (D) 4
(E) 3.92
登入後即可作答並保存紀錄。
此題考查母體平均數信賴區間的邊際誤差(Margin of Error, MOE)計算。
信賴區間的邊際誤差公式,假設母體變異數 已知,或樣本量夠大 ():
題目給定:
- 母體變異數 。
- 母體標準差 。
- 樣本數 。
- 信賴水準為 95%。因此,,。
第 14 題
A normal population has mean µ and standard deviation 12. The hypotheses to be tested are Ho: μ = 40
versus H₁: μ ≠ 0. Which would result in the highest probability of a Type II error?
(A) μ = 38; n = 10
(B) μ = 38; n = 100
(C) μ = 39; n = 10
(D) μ = 42; n = 10
(E) μ = 43; n = 100
登入後即可作答並保存紀錄。
題目說明
題幹寫 versus ,其中 的「0」應為「40」的漏字(對立假設必須與虛無假設互斥且針對同一個值),依 的雙尾檢定作答。
核心觀念
型二錯誤 =「真實 不等於 40,卻沒有拒絕 」的機率。在相同顯著水準下:
- 真實 越接近 40,兩個分配重疊越多, 越大。
- 樣本數 越小,標準誤 越大,分配越寬, 也越大。
真正決定 的是標準化距離
越小, 越大。
計算各選項()
| 選項 |
|---|
第 15 題
Suppose we have a random variable X where P(X = k) = , for k = 0,1,...,15.
What is the mean of X?
(A) 0.29
(B) 0.71
(C) 4.35
(D) 10.65
(E) None of the above
登入後即可作答並保存紀錄。
此題考查離散型隨機變數的機率質量函數(Probability Mass Function, PMF)的辨識,以及二項分佈(Binomial Distribution)的期望值(Mean)計算。
給定的機率質量函數為:
, for .
這個形式與二項分佈的 PMF 完全一致:
, for .
比較我們給定的 PMF 與二項分佈的標準形式,我們可以確定:
- 試驗次數 。
- 成功機率 。
- 失敗機率 。
第 16 題
Suppose the R² for a bivariate regression is equal to 1. This tells us that:
(A) The correlation between the dependent and independent variables is equal to 1.
(B) The slope coefficient is equal to 1 or -1.
(C) The error sum of squares is equal to the total sum of squares.
(D) The dependent and independent variables are perfectly correlated.
(E) A smaller F statistic for the regression.
登入後即可作答並保存紀錄。
核心觀念
本題考察「簡單線性迴歸」中決定係數 與相關係數 的關係。
在含截距項的二變量線性迴歸模型中:
決定係數定義為:
其中:
- :總平方和
- :迴歸平方和
- :誤差平方和
對於簡單線性迴歸:
因此,若 ,則:
這代表 與 之間具有完全線性相關,但相關方向可能為正,也可能為負。
解題方法
由 ,直接得到:
此時所有觀測點都落在同一條直線上,迴歸模型可以完全解釋應變數的變異,因此:
且:
所以本題應選擇表示「應變數與自變數完全相關」的選項。
選項分析
(A) The correlation between the dependent and independent variables is equal to 1.
錯誤。
由 只能推出:
相關係數可能等於 ,也可能等於 。例如:
- 時,
- 時,
因此不能限定相關係數一定等於 。
(B) The slope coefficient is equal to 1 or -1.
錯誤。
簡單線性迴歸的斜率為:
當 時:
斜率的絕對值取決於 與 的尺度比例,不一定等於 。
例如:
第 1 題
A retailer of electronic equipment received six VCRs from the manufacturer. Three of the VCRs were damaged
in the shipment. The retailer sold two VCRs to two customers. What is the probability that both customers
received damaged VCRs?
登入後即可作答並保存紀錄。
此題考查條件機率與組合的應用,屬於抽取不放回的抽樣問題。
題目情境:
- 總共有 6 台 VCR。
- 其中 3 台是損壞的 (D),3 台是完好的 (G)。
- 零售商賣出了 2 台 VCR 給兩位顧客。
- 我們想知道這兩台 VCR 都損壞的機率。
這是一個從 6 台 VCR 中抽取 2 台進行銷售的過程。我們關心的是這 2 台 VCR 的狀態。
我們可以用兩種方法來思考:
方法一:逐步計算條件機率。
第一位顧客購買到損壞 VCR 的機率:
總共有 6 台 VCR,其中 3 台損壞。
。
在第一位顧客買到損壞 VCR 的前提下,第二位顧客購買到損壞 VCR 的機率:
此時,還剩下 5 台 VCR。由於第一位顧客買走了一台損壞的,所以剩下 2 台損壞的 VCR。
。
因此,兩位顧客都買到損壞 VCR 的機率是這兩個事件的乘積:
第 2 題
Scores on a statistics exam were normally distributed with a mean of 80 and a standard deviation of 6.
If the top 2.5% of test scores receive merit awards, what is the lowest score eligible for an award?
登入後即可作答並保存紀錄。
此題考查常態分佈(Normal Distribution)的性質,以及如何根據百分位數(percentile)來計算特定分數。
題目給定:
- 考試分數服從常態分佈。
- 平均數 。
- 標準差 。
- 只有前 2.5% 的分數可以獲得獎勵。
我們需要找出這個分數線。這相當於找出常態分佈中,使其右尾機率為 0.025 的分數值。
也就是說,我們要找一個分數 ,使得 。
這也相當於找出 。
第 3 題
Consider these two graphs.
Compared to Graph 1, Graph 2 clearly shows a regression analysis where the coefficient of determination is
(smaller, similar, or larger) and the F test statistic is
(smaller, similar, or larger).
登入後即可作答並保存紀錄。
此題考查對迴歸分析圖形(散佈圖與迴歸線)的視覺判斷,以及判定係數 () 和 F 統計量與圖形特徵的關係。
首先,我們觀察 Graph 1 和 Graph 2 的散佈圖以及其中的迴歸線。
Graph 1:
- 散佈圖顯示數據點大致圍繞著迴歸線分佈。
- 數據點與迴歸線的距離(殘差)相對較小。
- 點的集中度看起來比較高。
Graph 2:
- 散佈圖顯示數據點同樣圍繞著迴歸線分佈。
- 但是,數據點與迴歸線的距離(殘差)明顯比 Graph 1 大。
- 點的散佈範圍更廣,集中度較低。
判定係數 ():
判定係數 表示應變數的總變異中,由迴歸模型解釋的比例。
。
SSE 是殘差平方和,SST 是總平方和。
值越接近 1,表示模型對數據的擬合越好,解釋能力越強。
值越接近 0,表示模型對數據的解釋能力越弱。
從圖形上看,Graph 1 的數據點更緊密地聚集在迴歸線周圍,殘差較小,因此 SSE 較小。
Graph 2 的數據點離迴歸線較遠,殘差較大,因此 SSE 較大。
假設 SST(總變異)在兩個圖中大致相似(或者說,我們比較的是相對擬合程度),那麼:
第 4 題
A study of 1,000 families gave the following results:
X = 68: average height of husband in inches, sx = 2.7 inches;
Y = 63: average height of wife in inches, sy = 2.5 inches;
Sxy = 1.6875 inches
If her husband is 72 inches tall, on average the height of a wife in inches is
登入後即可作答並保存紀錄。
此題考查簡單線性迴歸(Simple Linear Regression)的應用,特別是如何利用迴歸方程進行預測。
題目給定了一些統計量,用於描述丈夫身高 (X) 和妻子身高 (Y) 之間的關係。
- 樣本數 。
- 丈夫平均身高 英吋,樣本標準差 英吋。
- 妻子平均身高 英吋,樣本標準差 英吋。
- 樣本共變異數 (單位為平方英吋,但題目中寫 inches,這裡假設是平方英吋,因為共變異數的單位是兩個變數單位乘積)。
我們需要建立一個迴歸模型,預測妻子身高 Y,基於丈夫身高 X。
迴歸方程的形式為: 。
首先,計算迴歸係數 (斜率) 和 (截距)。
斜率 的計算公式為:
我們需要先計算 ,即樣本變異數。
。
現在計算 :
。
截距 的計算公式為:
。
因此,迴歸方程為:
。
題目要求,如果丈夫身高是 72 英吋,預測妻子的平均身高。
將 代入迴歸方程:
。
由於題目提供的數字(尤其是 )有特定的格式,我們嘗試使用分數來計算,看是否能得到更精確或簡潔的結果。
。
。
。
第 5 題
A researcher wants to know whether men and women in a particular community differ in their political party
preferences. She collects data from a random sample of 200 registered voters, and observes the following:
political party
Male
Female
Party A
Party B
55
65
50
30
To answer the question "Do men and women significantly differ in their political preferences", the appropriate
test statistic is
登入後即可作答並保存紀錄。
核心觀念
本題要判斷「性別」與「政治黨派偏好」是否有關聯。兩個變數皆為類別變數,因此應使用「列聯表的卡方獨立性檢定」。
虛無假設與對立假設為:
- :性別與政治黨派偏好相互獨立。
- :性別與政治黨派偏好不獨立。
卡方獨立性檢定統計量為
其中 為觀察次數, 為虛無假設成立時的期望次數。
解題方法
觀察資料如下:
| 政治黨派 | 男性 | 女性 | 合計 |
|---|---|---|---|
| Party A | 55 | 50 | 105 |
| Party B | 65 | 30 | 95 |
| 合計 | 120 | 80 | 200 |
每一格的期望次數為
因此:
所有期望次數皆大於 ,符合卡方檢定的常用適用條件。
代入卡方統計量:
第 6 題
Let X have range [0,3] and density f(x) = kx², Find the 12.5th percentile of X.
登入後即可作答並保存紀錄。
此題考查連續型隨機變數的機率密度函數(PDF)的應用,特別是如何求解百分位數(percentile)。
題目給定:
- 隨機變數 X 的範圍是 [0, 3]。
- 機率密度函數為 。
首先,我們需要確定常數 的值。
根據機率密度函數的性質,在整個定義域上的積分必須等於 1:
由於 X 的範圍是 [0, 3],所以:
計算積分:
。
所以,,解得 。
因此,機率密度函數是 ,對於 。
接下來,我們要找出 X 的第 12.5 個百分位數(12.5th percentile)。
第 個百分位數 是指一個值,使得隨機變數小於或等於該值的機率為 。
第 7 題
A sample of 41 observations yielded a sample standard deviation of 5. If we want to test H₁: σ² = 20, the test statistic
is
登入後即可作答並保存紀錄。
此題考查對母體變異數(population variance)的假設檢定,以及對應的檢定統計量。
我們想檢定關於母體變異數 的假設。
虛無假設:。
對立假設:題目中只寫了 ,這通常是一個印刷錯誤。假設這是一個關於變異數的檢定,對立假設應該是 (雙尾檢定)或者 或 (單尾檢定)。
我們將假設檢定是針對 的值。
題目給定:
- 樣本數 。
- 樣本標準差 。
- 樣本變異數 。
- 虛無假設的母體變異數 。
第 1 題12 分
An experiment is conducted to study the treatments of diabetes. Twenty-five subjects are
randomized to the five treatment groups described below. The blood sugar levels are checked to make sure
that the patients are under control.
| Treatment Group | Sample mean | Sample std. deviation |
|---|---|---|
| 1 | 43 | 4.4 |
| 2 | 51 | 9.7 |
| 3 | 39 | 12.1 |
| 4 | 46 | 11.2 |
| 5 | 23 | ? |
(A) Specify a model for this experiment that allows for treatment effects. State all the usual assumptions
required for the analysis of variance.
(B) The error mean square is given by MSE= 90. Deduce the sample variance of treatment group 5.
(C) We know that the sum of squares due to the treatment is SSt=2181. Using the summary statistics above,
complete an appropriate ANOVA table. Formulate and test the hypothesis that the mean longevity is
constant across the five treatment groups. Use level a = 0.05 and draw a brief conclusion.
(D) Construct and estimate a contrast that compares sample mean for group 4 to that for group 5. Report a
standard error. Do the two sample mean differ significantly?
登入後即可作答並保存紀錄。
此題為一組計算題,考驗對單因子變異數分析(One-Way ANOVA)的理解與應用。
實驗設計:
- 實驗目的是研究不同治療方法對糖尿病的影響。
- 共有 5 個治療組。
- 總受試者數 。
- 每個治療組有 名受試者。
- 測量指標是血液糖水準(Blood Sugar Levels)。
Part (A): 模型與假設
(A) 模型的指定與假設
模型:
這個實驗是一個典型的單因子變異數分析(One-Way ANOVA)情境。模型可以表示為:
其中:
- 是第 個治療組的第 個受試者的血液糖水準。
- 是第 個治療組的母體平均血液糖水準。
- 是隨機誤差項,代表了除了治療組別差異之外的其他所有變異。
另一種常見的寫法是將總體平均數和組別效應分開:
其中:
- 是所有治療組的總平均血液糖水準(在某些模型設定下)。
- 是第 個治療組的「效應」(treatment effect),代表該組平均值相對於總平均值(或參考組平均值)的差異。。
- 是隨機誤差項。
假設:
對於單因子變異數分析,通常需要以下假設:
- 獨立性 (Independence): 每個實驗單位的觀測值是相互獨立的。這意味著一個受試者的結果不會影響另一個受試者的結果。在隨機分派的實驗中,這個假設通常是合理的。
- 常態性 (Normality): 對於每一治療組,誤差項 (或觀測值 )服從常態分佈。也就是說,。這意味著各組的觀測值本身也服從常態分佈,但平均值不同。
- 變異數同質性 (Homogeneity of Variances): 所有治療組的誤差項具有相同的變異數 。也就是說,各組的母體變異數相等,。
Part (B): 推導組別 5 的樣本變異數
(B) 推導組別 5 的樣本變異數
我們已知:
- 總誤差均方 (Error Mean Square, MSE) = 90。
- MSE 在 ANOVA 中就是對各組變異數 的估計值,也就是pooled variance。
- 假設各組的母體變異數相等,MSE 是所有組別內平方和 (SSE) 除以總自由度。
- 每個組別的樣本數 。
- 總自由度為 。
MSE 的計算公式為:
其中 是第 組的組內平方和(Sum of Squared Errors within group )。
,其中 是第 組的樣本變異數。
我們知道 MSE = 90。
。
所以,。
。
我們需要計算 。
從表格中,我們有:
將這些值代入總和:
所以,治療組 5 的樣本變異數是 64.70。
Part (C): ANOVA 表與假設檢定
(C) ANOVA 表、假設檢定與結論
1. 完成 ANOVA 表
ANOVA 表的結構如下:
| Source of Variation | Sum of Squares (SS) | Degrees of Freedom (df) | Mean Square (MS) | F-statistic |
|---|---|---|---|---|
| Treatment (Between Groups) | ||||
| Error (Within Groups) | ||||
| Total |
已知:
- (治療組數)
- (總受試者數)
計算 df:
- (驗證:)
計算 MS:
- (已知)
計算 F-statistic:
第 2 題12 分
The economic structure of Major League Baseball (MLB) allows some teams to make substantially
more money than others, which in turn allows some teams to spend much more on player salaries. These
teams might therefore be expected to have better players and win more games on the field as a result. Over
the course of the last 4 years (2015-2018), each of the 30 MLB teams were measured each year and the
following data were collected for these 120 observations:
wins: number of games the team won for a specific year
payroll: opening day payroll, in millions of dollars, for the team for a specific year
year: the year in which the measurement was taken
A regression model was run to predict the number of wins a team had from the ln(payroll), and the results
are shown below, along with some summary statistics:
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 44.076 11.654 3.782 0.000246 ***
log(payroll) 7.963 2.505 3.179 0.001887 **
Residual standard error: 10.5649 on 118 degrees of freedom
Multiple R-squared: 0.06250, Adjusted R-squared: 0.06709
F-statistic: 10.11 on 1 and 118 DF, p-value: 0.001887
登入後即可作答並保存紀錄。
核心觀念
本題為單一線性迴歸,以球隊的開季薪資總額 (取自然對數)預測單季勝場數 :
重點包括:
- 迴歸係數的解讀。
- 檢定薪資是否與勝場數具有顯著線性關係。
- 檢定與整體 檢定的關係。
- 決定係數 對模型解釋力的意義。
- 對數自變數模型中,薪資「比例變動」對勝場的影響。
解題方法
由估計結果可得迴歸式:
其中, 的單位為百萬美元。
截距 表示當 ,亦即 百萬美元時,預測勝場為 場。由於 1 百萬美元遠低於 MLB 球隊實際薪資水準,截距主要是用以構成迴歸直線,不宜作過度的實務解釋。
薪資對數的迴歸係數為 。當 增加 1 單位時,預測勝場平均增加 場。由於:
故薪資提高為原來的 倍時,預測勝場增加約 場。
若薪資增加 ,則:
因此預測勝場約增加:
即薪資增加 時,平均約多贏 場;薪資增加 時,較精確的效果為:
亦即預測勝場約增加 場。
顯著性檢定
欲檢定薪資是否對勝場具有顯著影響,設定:
檢定統計量為:
其 值為 。在常用的 或 顯著水準下,均有:
第 3 題
The mean and standard deviation of log(payroll) are 4.6371 and 0.3867.
(A) What is the estimated correlation between wins and log(payroll)?
(B) Calculate Y, the mean number of wins, and sy, the standard deviation for the number of wins among the
120 observations.
(C) The Red Sox are projected to spend about $180 million dollars on payroll in 2019. Provide a formula for
the 95% interval for the number of games they will win next year (You don't need to calculate it).
(D) List out all of the assumptions for this regression model, and comment on how to check if they are
reasonable.
登入後即可作答並保存紀錄。
核心觀念
本題考查「簡單線性迴歸」及其推論:
其中:
- :球隊勝場數;
- :薪資總額的自然對數;
- :誤差項。
重要關係如下:
因此:
若迴歸輸出提供決定係數 ,則:
題目給定:
不過題目節錄未提供迴歸斜率、截距、、勝場數平均數或勝場數標準差,因此數值答案必須以完整迴歸輸出中的資料代入。
(A) 估計 wins 與 log(payroll) 的相關係數
解題方法
若迴歸結果為:
則估計相關係數為:
其中 是勝場數的樣本標準差。
若題目附有 ,計算更快速:
由於通常薪資越高,預期勝場數越多,若 ,則:
若迴歸輸出只有斜率的 統計量,也可利用:
(B) 計算勝場數的平均數 與標準差
平均勝場數
簡單線性迴歸的迴歸線一定通過樣本平均點:
因此:
代入題目給定的 :
這就是 120 筆觀察值中,球隊平均勝場數的計算式。
勝場數的標準差
由相關係數與迴歸斜率的關係:
可得:
代入 :
若使用 ,且 ,因為 ,所以:
若完整迴歸輸出提供殘差標準差 與 ,也可由:
計算 。由於:
因此:
在本題 :
(C) 2019 年紅襪隊勝場數的 95% 區間
解題方法
薪資為 180 million dollars,而題目中的 平均數約為 ,可知 payroll 應以「百萬美元」為單位。因此:
若採自然對數:
預測勝場數為:
題目問的是紅襪隊「下一年實際會贏幾場」的區間,屬於個別新觀察值的預測區間,而非平均勝場數的信賴區間。
因此,95% 預測區間為:
其中:
且 為迴歸殘差標準差。
若只要求寫出公式,不必計算 或其他數值。公式中的 不可省略,因為它代表新球隊實際勝場數所包含的個別誤差變異。
第 4 題
The mean and standard deviation of log(payroll) are 4.6371 and 0.3867.
(A) What is the estimated correlation between wins and log(payroll)?
(B) Calculate Y, the mean number of wins, and sy, the standard deviation for the number of wins among the
120 observations.
(C) The Red Sox are projected to spend about $180 million dollars on payroll in 2019. Provide a formula for
the 95% interval for the number of games they will win next year (You don't need to calculate it).
(D) List out all of the assumptions for this regression model, and comment on how to check if they are
reasonable.
登入後即可作答並保存紀錄。
核心觀念
本題考查「簡單線性迴歸」及其推論:
其中:
- :球隊勝場數;
- :薪資總額的自然對數;
- :誤差項。
重要關係如下:
因此:
若迴歸輸出提供決定係數 ,則:
題目給定:
不過題目節錄未提供迴歸斜率、截距、、勝場數平均數或勝場數標準差,因此數值答案必須以完整迴歸輸出中的資料代入。
(A) 估計 wins 與 log(payroll) 的相關係數
解題方法
若迴歸結果為:
則估計相關係數為:
其中 是勝場數的樣本標準差。
若題目附有 ,計算更快速:
由於通常薪資越高,預期勝場數越多,若 ,則:
若迴歸輸出只有斜率的 統計量,也可利用:
(B) 計算勝場數的平均數 與標準差
平均勝場數
簡單線性迴歸的迴歸線一定通過樣本平均點:
因此:
代入題目給定的 :
這就是 120 筆觀察值中,球隊平均勝場數的計算式。
勝場數的標準差
由相關係數與迴歸斜率的關係:
可得:
代入 :
若使用 ,且 ,因為 ,所以:
若完整迴歸輸出提供殘差標準差 與 ,也可由:
計算 。由於:
因此:
在本題 :
(C) 2019 年紅襪隊勝場數的 95% 區間
解題方法
薪資為 180 million dollars,而題目中的 平均數約為 ,可知 payroll 應以「百萬美元」為單位。因此:
若採自然對數:
預測勝場數為:
題目問的是紅襪隊「下一年實際會贏幾場」的區間,屬於個別新觀察值的預測區間,而非平均勝場數的信賴區間。
因此,95% 預測區間為:
其中:
且 為迴歸殘差標準差。
若只要求寫出公式,不必計算 或其他數值。公式中的 不可省略,因為它代表新球隊實際勝場數所包含的個別誤差變異。
第 5 題
The mean and standard deviation of log(payroll) are 4.6371 and 0.3867.
(A) What is the estimated correlation between wins and log(payroll)?
(B) Calculate Y, the mean number of wins, and sy, the standard deviation for the number of wins among the
120 observations.
(C) The Red Sox are projected to spend about $180 million dollars on payroll in 2019. Provide a formula for
the 95% interval for the number of games they will win next year (You don't need to calculate it).
(D) List out all of the assumptions for this regression model, and comment on how to check if they are
reasonable.
登入後即可作答並保存紀錄。
核心觀念
本題考查「簡單線性迴歸」及其推論:
其中:
- :球隊勝場數;
- :薪資總額的自然對數;
- :誤差項。
重要關係如下:
因此:
若迴歸輸出提供決定係數 ,則:
題目給定:
不過題目節錄未提供迴歸斜率、截距、、勝場數平均數或勝場數標準差,因此數值答案必須以完整迴歸輸出中的資料代入。
(A) 估計 wins 與 log(payroll) 的相關係數
解題方法
若迴歸結果為:
則估計相關係數為:
其中 是勝場數的樣本標準差。
若題目附有 ,計算更快速:
由於通常薪資越高,預期勝場數越多,若 ,則:
若迴歸輸出只有斜率的 統計量,也可利用:
(B) 計算勝場數的平均數 與標準差
平均勝場數
簡單線性迴歸的迴歸線一定通過樣本平均點:
因此:
代入題目給定的 :
這就是 120 筆觀察值中,球隊平均勝場數的計算式。
勝場數的標準差
由相關係數與迴歸斜率的關係:
可得:
代入 :
若使用 ,且 ,因為 ,所以:
若完整迴歸輸出提供殘差標準差 與 ,也可由:
計算 。由於:
因此:
在本題 :
(C) 2019 年紅襪隊勝場數的 95% 區間
解題方法
薪資為 180 million dollars,而題目中的 平均數約為 ,可知 payroll 應以「百萬美元」為單位。因此:
若採自然對數:
預測勝場數為:
題目問的是紅襪隊「下一年實際會贏幾場」的區間,屬於個別新觀察值的預測區間,而非平均勝場數的信賴區間。
因此,95% 預測區間為:
其中:
且 為迴歸殘差標準差。
若只要求寫出公式,不必計算 或其他數值。公式中的 不可省略,因為它代表新球隊實際勝場數所包含的個別誤差變異。