115 年 國立中央大學企業管理學系碩士班丙組《統計學》

📄 試題原卷 免費註冊後即可對照原始考卷 PDF免費註冊

第 1 題

Which of the following statements about hypothesis testing using p-values is false?

(A) The p-value or probability value is a number, calculated from a statistical test, that describes how likely your results would have occurred under the null hypothesis
(B) The p-value, the stronger the evidence against the null hypothesis, and the more likely we are to reject it.
(C) If a null hypothesis is rejected using a one-tailed p-value test, then it will also be rejected under a two-tailed test at the same significance level α\alpha
(D) If a null hypothesis is rejected using a two-tailed p-value test, then it will also be rejected under a one-tailed test at the same significance level α\alpha

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題探討假說檢定(Hypothesis Testing)中 P 值(P-value) 的定義、性質,以及 單尾檢定(One-tailed test) 與 雙尾檢定(Two-tailed test) 在統計決策上的邏輯差異。

P 值是指在虛無假說(Null Hypothesis, H0H_0)為真的前提下,觀察到統計量等於或大於(極端於)現有觀測值的機率。決策規則為:若 P≤αP \le \alpha(顯著水準),則拒絕 H0H_0。

在對稱分布(如常態分布或 tt 分布)中,單尾與雙尾的 P 值關係如下:
Ptwo-tailed=2×Pone-tailedP_{\text{two-tailed}} = 2 \times P_{\text{one-tailed}}

解題方法

透過比較單尾檢定與雙尾檢定對於拒絕域(Rejection Region)的要求,分析選項敘述的正確性。

  1. 判定標準:兩者皆以 P≤αP \le \alpha 作為拒絕標準。
  2. 邏輯推演:
    • 若單尾檢定拒絕 H0H_0,代表 Pone≤αP_{\text{one}} \le \alpha。
    • 此時雙尾檢定的 P 值為 Ptwo=2×PoneP_{\text{two}} = 2 \times P_{\text{one}}。
    • 若要使雙尾檢定拒絕 H0H_0,需滿足 Ptwo≤αP_{\text{two}} \le \alpha,即 2×Pone≤α  ⟹  Pone≤α/22 \times P_{\text{one}} \le \alpha \implies P_{\text{one}} \le \alpha / 2。
    • 當 α/2<Pone≤α\alpha / 2 < P_{\text{one}} \le \alpha 時,單尾檢定會拒絕 H0H_0,但雙尾檢定無法拒絕 H0H_0。因此 (C) 選項的敘述在數學邏輯上不成立。

選項分析

  • (A) 正確:此為 P 值的標準定義。P 值衡量了樣本資料與 H0H_0 的相容程度,數值越小,代表在 H0H_0 為真下發生此結果的機率越低。
  • (B) 正確:P 值越小,代表觀測到的結果越偏離 H0H_0 的預期,因此對 H0H_0 的反證力越強,拒絕 H0H_0 的信心越高。
  • (C) 錯誤:這是本題的錯誤敘述。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 2 題

Given that a 95% confidence interval for the population mean μ\mu is (10.2, 18.6). Which of the following statements is correct?

(A) This means that P(10.2<μ<18.6)=0.95P(10.2 < \mu < 18.6) = 0.95
(B) The probability that μ\mu lies between 10.2 and 18.6 is 0.95
(C) Using a 99% confidence interval would result in a narrower interval than (10.2, 18.6)
(D) If we repeatedly take random samples and construct confidence intervals in the same way, about 95% of those intervals will contain the true value of μ\mu

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對信賴區間 (Confidence Interval, CI) 的正確解釋。

一個 95% 信賴區間 (10.2, 18.6) 表示,我們有 95% 的信心,認為母體平均數 μ\mu 落在這個區間內。然而,對信賴區間的解釋有幾點重要的注意事項:

(A) 和 (B) 錯誤。信賴區間的建構是基於樣本數據,而母體平均數 μ\mu 是一個固定的、未知的常數。我們不能說 P(10.2<μ<18.610.2 < \mu < 18.6) = 0.95。信賴區間的機率是指在多次重複抽樣中,建構出的區間有多大的比例會包含真實的母體平均數。信賴水準 95% 是一個關於區間建構過程的機率陳述,而不是關於特定區間包含 μ\mu 的機率。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 3 題

Suppose there are two estimators T1T_1 and T2T_2 used to estimate the population parameter θ\theta. It is given that E(T1)=2E(T_1) = 2, Var(T1)=1Var(T_1) = 1, and E(T2)=3E(T_2) = 3, Var(T2)=2Var(T_2) = 2. Assume that the true value of θ\theta is 3. Which of the following statements are true?

I. T1T_1 is a biased estimator of θ\theta
II. The mean square error of T2T_2 is smaller than that of T1T_1
III. Since T2T_2 is an unbiased estimator of θ\theta, it means that the estimate of θ\theta equals 3
IV. The absolute efficiency of estimator T1T_1 relative to estimator T2T_2 is 1

(A) I only
(B) I and II
(C) I and IV
(D) I, III, and IV

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對估計量 (Estimator) 的性質,包括偏差 (Bias)、均方誤差 (Mean Squared Error, MSE) 和相對效率 (Relative Efficiency) 的理解。

已知母體參數真實值 θ=3\theta = 3。
估計量 T1T_1 的期望值 E(T1)=2E(T_1) = 2,變異數 Var(T1)=1Var(T_1) = 1。
估計量 T2T_2 的期望值 E(T2)=3E(T_2) = 3,變異數 Var(T2)=2Var(T_2) = 2。

我們逐一檢視每個敘述:

I. T1T_1 is a biased estimator of θ\theta
一個估計量是偏差的 (biased),如果它的期望值不等於母體參數的真實值。
E(T1)=2E(T_1) = 2,而真實值 θ=3\theta = 3。
由於 E(T1)≠θE(T_1) \neq \theta,所以 T1T_1 是一個有偏差的估計量。此敘述正確。

II. The mean square error of T2T_2 is smaller than that of T1T_1
均方誤差 (MSE) 的定義為 MSE(T)=Var(T)+[Bias(T)]2MSE(T) = Var(T) + [Bias(T)]^2。
對於 T1T_1:
偏差 Bias(T1)=E(T1)−θ=2−3=−1Bias(T_1) = E(T_1) - \theta = 2 - 3 = -1。
MSE(T1)=Var(T1)+[Bias(T1)]2=1+(−1)2=1+1=2MSE(T_1) = Var(T_1) + [Bias(T_1)]^2 = 1 + (-1)^2 = 1 + 1 = 2。

對於 T2T_2:
偏差 Bias(T2)=E(T2)−θ=3−3=0Bias(T_2) = E(T_2) - \theta = 3 - 3 = 0。
MSE(T2)=Var(T2)+[Bias(T2)]2=2+(0)2=2+0=2MSE(T_2) = Var(T_2) + [Bias(T_2)]^2 = 2 + (0)^2 = 2 + 0 = 2。

比較 MSE(T1)MSE(T_1) 和 MSE(T2)MSE(T_2),兩者都是 2。因此,MSE(T2)MSE(T_2) 並不小於 MSE(T1)MSE(T_1),它們是相等的。此敘述錯誤。

III. Since T2T_2 is an unbiased estimator of θ\theta, it means that the estimate of θ\theta equals 3
一個估計量是無偏差的 (unbiased) 指的是其期望值等於母體參數的真實值,即 E(T)=θE(T) = \theta。
對於 T2T_2,我們計算其偏差:Bias(T2)=E(T2)−θ=3−3=0Bias(T_2) = E(T_2) - \theta = 3 - 3 = 0。
所以 T2T_2 確實是一個無偏差的估計量。
然而,這並不意味著每一次單次的估計值 (the estimate of θ\theta) 都必須等於 3。無偏差性是關於估計量期望值的長期平均性質,而不是單次觀測值。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 4 題

Which of the following statements is true about the central limit theorem (CLT)?

(A) If you take repeatedly independently random samples of size nn from a uniform distribution, then a moderate value of nn is sufficient for the sampling distribution of the sample mean to be approximately normal
(B) The variance of the sampling distribution of the mean and the population variances are the same
(C) The CLT is applicable only for data sets comprising thirty or more samples
(D) The CLT applies only to populations of numerical data with a normal distribution

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對中央極限定理 (Central Limit Theorem, CLT) 的理解。CLT 是統計學中一個非常重要的定理,它描述了從任何分佈(不論是否為常態分佈)中抽取足夠大樣本的樣本平均數的分佈趨近於常態分佈的特性。

我們逐一檢視各選項:

(A) 正確。CLT 的核心思想是,即使母體分佈不是常態的,只要樣本數 nn 足夠大(通常認為 n≥30n \ge 30 是一個經驗法則,但這取決於母體分佈的偏度和峰度),則樣本平均數的抽樣分佈就會近似於常態分佈。均勻分佈 (uniform distribution) 並非常態分佈,但若樣本數 nn 足夠大(「moderate value of n」在此語境下可理解為足夠大),則樣本平均數的分佈會近似常態。

(B) 錯誤。CLT 說明的是樣本平均數的抽樣分佈的「平均值」接近母體平均值,且「變異數」與母體變異數有關,但並非相同。樣本平均數的抽樣分佈的變異數是母體變異數除以樣本數,即 σ2/n\sigma^2/n。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 5 題

Let A and B be two events. Which of the following statements is correct?

(A) If A and B are mutually exclusive, then the complements of A and B are also mutually exclusive
(B) If A and B are independent, then the complements of A and B are also independent
(C) If A and B are mutually exclusive, then A and B are independent
(D) If A and B are independent, then A and B are mutually exclusive

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對機率論中事件關係的理解,包括互斥事件 (mutually exclusive events)、獨立事件 (independent events) 及其補集 (complements) 的關係。

我們逐一檢視各選項:

(A) 錯誤。若 A 和 B 互斥,表示 A∩B=∅A \cap B = \emptyset (不可能同時發生)。其補集分別為 AcA^c 和 BcB^c。
考慮一個例子:設樣本空間為 {1, 2, 3, 4}。令 A={1}A = \{1\},則 Ac={2,3,4}A^c = \{2, 3, 4\}。令 B={2}B = \{2\},則 Bc={1,3,4}B^c = \{1, 3, 4\}。
A 和 B 互斥,因為 A∩B=∅A \cap B = \emptyset。
但是,Ac∩Bc={2,3,4}∩{1,3,4}={3,4}≠∅A^c \cap B^c = \{2, 3, 4\} \cap \{1, 3, 4\} = \{3, 4\} \neq \emptyset。
所以 AcA^c 和 BcB^c 並非互斥。

(B) 正確。若 A 和 B 是獨立事件,則 P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B)。
我們需要證明 AcA^c 和 BcB^c 也是獨立的,即 P(Ac∩Bc)=P(Ac)P(Bc)P(A^c \cap B^c) = P(A^c)P(B^c)。
根據 De Morgan's Law, Ac∩Bc=(A∪B)cA^c \cap B^c = (A \cup B)^c。
所以 P(Ac∩Bc)=P((A∪B)c)=1−P(A∪B)P(A^c \cap B^c) = P((A \cup B)^c) = 1 - P(A \cup B)。
我們知道 P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)。
由於 A 和 B 獨立, P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B)。
所以 P(A∪B)=P(A)+P(B)−P(A)P(B)P(A \cup B) = P(A) + P(B) - P(A)P(B)。
因此,P(Ac∩Bc)=1−(P(A)+P(B)−P(A)P(B))P(A^c \cap B^c) = 1 - (P(A) + P(B) - P(A)P(B))。
P(Ac∩Bc)=1−P(A)−P(B)+P(A)P(B)P(A^c \cap B^c) = 1 - P(A) - P(B) + P(A)P(B)。

另一方面,我們計算 P(Ac)P(Bc)P(A^c)P(B^c)。
P(Ac)=1−P(A)P(A^c) = 1 - P(A)
P(Bc)=1−P(B)P(B^c) = 1 - P(B)
P(Ac)P(Bc)=(1−P(A))(1−P(B))=1−P(B)−P(A)+P(A)P(B)P(A^c)P(B^c) = (1 - P(A))(1 - P(B)) = 1 - P(B) - P(A) + P(A)P(B)。
比較兩者,我們發現 P(Ac∩Bc)=P(Ac)P(Bc)P(A^c \cap B^c) = P(A^c)P(B^c)。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 6 題

The salary statistics for employees in Taipei City and Taichung City are shown below (nt$1000):

CityMeanStandard Deviation
Taipei12015
Taichung6010

To compare the relative dispersion of salaries between the two cities, which of the following statements is correct?

(A) Since the standard deviation of salaries in Taipei is larger than that in Taichung, one might conclude that salaries are more dispersed in Taipei City
(B) Since the coefficient of variation of salaries in Taipei is larger than that in Taichung, one might conclude that salaries are more dispersed in Taipei City
(C) Since the coefficient of variation of salaries in Taipei is larger than that in Taichung, one might conclude that salaries are more dispersed in Taichung City
(D) Since the average salaries in Taipei is larger than that in Taichung, one might conclude that salary levels are generally higher in Taipei

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查「相對離散程度」的比較。當兩組資料的平均數不同時,不能只比較標準差,因為標準差受到資料尺度與平均水準影響。

比較相對離散程度應使用變異係數(coefficient of variation, CV):

CV=sxˉ×100%CV=\frac{s}{\bar{x}}\times 100\%

其中:

  • ss:標準差
  • xˉ\bar{x}:平均數

CVCV 越大,表示資料相對於其平均數的波動越大,也就是相對離散程度越高。


解題方法

分別計算臺北市與臺中市的變異係數。

臺北市:

CVTaipei=15120×100%=12.5%CV_{\text{Taipei}} =\frac{15}{120}\times 100\% =12.5\%

臺中市:

CVTaichung=1060×100%≈16.67%CV_{\text{Taichung}} =\frac{10}{60}\times 100\% \approx 16.67\%

因此:

CVTaichung>CVTaipeiCV_{\text{Taichung}}>CV_{\text{Taipei}}

表示雖然臺北市的薪資標準差較大,但相對於各自的平均薪資而言,臺中市的薪資離散程度反而較高。

此外,臺北市平均薪資為 120120,臺中市平均薪資為 6060,所以臺北市的平均薪資水準較高。


選項分析

(A) 錯誤

臺北市的標準差為 1515,臺中市為 1010,確實有:

15>1015>10

但標準差衡量的是「絕對離散程度」,題目問的是「相對離散程度」。由於兩地平均薪資不同,不能僅根據標準差判斷哪一地的薪資相對較分散。


(B) 錯誤

臺北市的變異係數並沒有大於臺中市:

CVTaipei=12.5%CV_{\text{Taipei}}=12.5\% CVTaichung≈16.67%CV_{\text{Taichung}}\approx16.67\%

因此「臺北市的變異係數較大」的前提錯誤。


🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 7 題

A researcher wants to estimate the population mean of a variable with a margin of error no greater than 5 at the 95% confidence level. A pilot study suggests that the population standard deviation is approximately 20. Which of the following sample sizes is the minimum required?

(A) 30
(B) 62
(C) 100
(D) 246

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題評量估計母體平均數時之樣本數判定(Sample Size Determination for Estimating Population Mean)。

在常態母體或大樣本條件下,以樣本平均數 Xˉ\bar{X} 估計母體平均數 μ\mu 時,在給定的信心水準 1−α1-\alpha 下,雙尾估計之最大抽樣誤差界限(Margin of Error,簡稱 EE 或 MOEMOE)定義為:

E=zα/2σnE = z_{\alpha/2} \frac{\sigma}{\sqrt{n}}

其中:

  • zα/2z_{\alpha/2} 為標準常態分配對應信心水準 1−α1-\alpha 的臨界值(Critical Value)。
  • σ\sigma 為母體標準差(若未知,常用先驗研究、預試 pilot study 或歷史資料估計)。
  • nn 為所需的樣本數。

當研究者要求誤差界限不大於預設容許值 EE(即抽樣誤差必須控制在 EE 以內)時,列出不等式求解 nn 的下限:

zα/2σn≤E  ⟹  n≥zα/2σE  ⟹  n≥(zα/2σE)2z_{\alpha/2} \frac{\sigma}{\sqrt{n}} \le E \implies \sqrt{n} \ge \frac{z_{\alpha/2} \sigma}{E} \implies n \ge \left( \frac{z_{\alpha/2} \sigma}{E} \right)^2

由於樣本數 nn 必須為正整數,且樣本數愈大抽樣誤差愈小,因此若計算結果非整數,必須無條件進位(取天花板整數 ⌈n⌉\lceil n \rceil),才能確保實際誤差不會超過要求的上限。


解題方法

  1. 整理題意給定條件:

    • 信心水準:1−α=0.95  ⟹  α=0.05  ⟹  z0.025=1.961 - \alpha = 0.95 \implies \alpha = 0.05 \implies z_{0.025} = 1.96
    • 預試估計之母體標準差:σ≈20\sigma \approx 20
    • 容許的最大誤差界限:E≤5E \le 5
  2. 建立不等式並求解 nn:
    依據抽樣誤差不大於 55 的要求,列式如下:

    1.96×20n≤51.96 \times \frac{20}{\sqrt{n}} \le 5

    兩邊同乘 n\sqrt{n} 並同除以 55(注意兩側皆為正數,不等號方向不變):

    n≥1.96×205=39.25=7.84\sqrt{n} \ge \frac{1.96 \times 20}{5} = \frac{39.2}{5} = 7.84

    兩邊平方:

    n≥7.842=61.4656n \ge 7.84^2 = 61.4656
  3. 取滿足條件的最小整數:
    因為 nn 代表抽取個體數,必須為整數;若取 n=61n = 61,則抽樣誤差為 1.96×2061≈5.019>51.96 \times \frac{20}{\sqrt{61}} \approx 5.019 > 5(超過容許誤差)。
    因此必須無條件進位至下一整數:

    n≥⌈61.4656⌉=62n \ge \lceil 61.4656 \rceil = 62

    故所需之最小樣本數為 6262。


選項分析

  • (A) 30:錯誤。
    若 n=30n = 30,最大抽樣誤差為 E=1.96×2030≈39.25.477≈7.16>5E = 1.96 \times \frac{20}{\sqrt{30}} \approx \frac{39.2}{5.477} \approx 7.16 > 5,無法滿足「誤差不大於 5」的條件。
  • (B) 62:正確。
    由公式精確計算得 n≥61.4656n \ge 61.4656,滿足不等式的最小整數即為 6262。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 8 題

A certain disease occurs in 1% of the population. A pharmaceutical company has developed a new test. If a person has the disease, the test is positive with probability 99%. If a person does not have the disease, the test is negative with probability 99%. A person is selected at random. What is the probability that the test result is positive? If a person tests positive, what is the probability that the person actually has the disease?

(A) 0.02, 0.50
(B) 0.02, 0.33
(C) 0.01, 0.50
(D) 0.01, 0.99

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗貝氏定理 (Bayes' Theorem) 的應用,涉及條件機率的計算,特別是在醫學診斷情境中。

我們定義以下事件:

  • D: 該人生病 (Disease)
  • DcD^c: 該人沒有生病 (No Disease)
  • +: 檢測結果為陽性 (Positive Test)
  • -: 檢測結果為陰性 (Negative Test)

根據題目提供的資訊:

  1. 疾病發生率 (Population prevalence):P(D)=0.01P(D) = 0.01。
    因此,沒有生病的機率 P(Dc)=1−P(D)=1−0.01=0.99P(D^c) = 1 - P(D) = 1 - 0.01 = 0.99。
  2. 檢測的靈敏度 (Sensitivity, True Positive Rate):若有病,檢測為陽性的機率。P(+∣D)=0.99P(+|D) = 0.99。
  3. 檢測的特異度 (Specificity, True Negative Rate):若無病,檢測為陰性的機率。P(−∣Dc)=0.99P(-|D^c) = 0.99。
    因此,若無病,檢測為陽性的機率 (False Positive Rate) 為 P(+∣Dc)=1−P(−∣Dc)=1−0.99=0.01P(+|D^c) = 1 - P(-|D^c) = 1 - 0.99 = 0.01。

題目要求計算兩個機率:

  1. 隨機選取一人,檢測結果為陽性的機率 P(+)P(+)。
  2. 若檢測結果為陽性,該人實際有病的機率 P(D∣+)P(D|+)。

第一部分:計算 P(+)P(+)
我們使用全機率法則 (Law of Total Probability):
P(+)=P(+∣D)P(D)+P(+∣Dc)P(Dc)P(+) = P(+|D)P(D) + P(+|D^c)P(D^c)
P(+)=(0.99×0.01)+(0.01×0.99)P(+) = (0.99 \times 0.01) + (0.01 \times 0.99)
P(+)=0.0099+0.0099P(+) = 0.0099 + 0.0099
P(+)=0.0198P(+) = 0.0198

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 9 題

A beverage company runs a promotion in which customers can win a prize by collecting all five letters L, U, C, K, Y from bottle caps. Each bottle cap contains one of these five letters, and each letter appears with equal probability. On average, how many bottles must a customer buy in order to be able to redeem a prize (i.e., collect all five different letters)?

(A) 56
(B) 8
9
(C) 1112
(D) 14
15

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對「收集者問題」(Coupon Collector's Problem) 的理解。這個問題是機率論中的一個經典問題,問的是需要購買多少物品(在此是瓶蓋)才能收集到所有 kk 種不同的類型(在此是 5 種字母)。

令 k=5k=5 為我們需要收集的不同字母的數量。
假設每種字母出現的機率是相等的,即 p=1/k=1/5p = 1/k = 1/5。

我們需要計算平均需要購買的瓶蓋數量。
我們可以用期望值的概念來解決。
設 TT 為收集到所有 kk 種不同字母所需的購買次數(瓶蓋數)。
我們將收集過程分為 kk 個階段:從收集到第 1 種字母,到收集到第 kk 種字母。

  • 階段 1:收集到第 1 種字母。這很容易,第一次購買就一定能得到一種新的字母。所需的購買次數期望值是 1。
  • 階段 2:收集到第 2 種不同的字母。此時我們已經有 1 種字母,需要再收集到一種不同的。有 k−1k-1 種是新的,有 1 種是重複的。每種字母出現的機率是 1/k1/k。所以,在任何一次購買中,得到新字母的機率是 k−1k\frac{k-1}{k}。這是一個幾何分佈的場景,參數為 p2=k−1kp_2 = \frac{k-1}{k}。所需的購買次數期望值是 1/p2=kk−11/p_2 = \frac{k}{k-1}。
  • 階段 3:收集到第 3 種不同的字母。此時我們已有 2 種字母,需要再收集到一種不同的。有 k−2k-2 種是新的。得到新字母的機率是 k−2k\frac{k-2}{k}。所需的購買次數期望值是 1/p3=kk−21/p_3 = \frac{k}{k-2}。
  • ...
  • 階段 ii:收集到第 ii 種不同的字母。已有 i−1i-1 種,需要再收集一種。有 k−(i−1)k-(i-1) 種是新的。得到新字母的機率是 k−(i−1)k\frac{k-(i-1)}{k}。所需的購買次數期望值是 kk−(i−1)\frac{k}{k-(i-1)}。
  • ...
  • 階段 kk:收集到第 kk 種不同的字母。已有 k−1k-1 種,需要再收集最後一種。只有 1 種是新的。得到新字母的機率是 1k\frac{1}{k}。所需的購買次數期望值是 k1\frac{k}{1}。

總的期望購買次數 E(T)E(T) 是所有階段期望次數的總和:
E(T)=∑i=1kkk−(i−1)E(T) = \sum_{i=1}^{k} \frac{k}{k-(i-1)}
E(T)=kk+kk−1+kk−2+⋯+k2+k1E(T) = \frac{k}{k} + \frac{k}{k-1} + \frac{k}{k-2} + \dots + \frac{k}{2} + \frac{k}{1}
E(T)=k(1k+1k−1+1k−2+⋯+12+11)E(T) = k \left( \frac{1}{k} + \frac{1}{k-1} + \frac{1}{k-2} + \dots + \frac{1}{2} + \frac{1}{1} \right)
E(T)=k∑j=1k1jE(T) = k \sum_{j=1}^{k} \frac{1}{j}

這個 ∑j=1k1j\sum_{j=1}^{k} \frac{1}{j} 被稱為 kk 階的調和數 (Harmonic Number),記作 HkH_k。
所以,E(T)=kHkE(T) = k H_k。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 10 題

Which of the following statements about the hypergeometric distribution, binomial distribution, and Poisson distribution is correct?

(A) When the population size is large relative to the sample size, the binomial distribution can be approximated by the hypergeometric distribution
(B) The binomial distribution is used when sampling is done without replacement, while the hypergeometric distribution is used when sampling is done with replacement
(C) When the number of trials is large and the success probability is large, the binomial distribution can be approximated by the Poisson distribution
(D) When the number of trials is large and the success probability is small, the binomial distribution can be approximated by the hypergeometric distribution

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題比較三種離散機率分配:

  1. 超幾何分配(Hypergeometric distribution)
    從有限母體中「不放回抽樣」,因此每次抽樣的成功機率會改變。

  2. 二項分配(Binomial distribution)
    進行 nn 次相互獨立的試驗,每次成功機率固定為 pp。常見情況是「放回抽樣」,或母體很大、抽樣比例極低時,近似視為獨立抽樣。

  3. 卜瓦松分配(Poisson distribution)
    當二項分配的試驗次數 nn 很大、成功機率 pp 很小,且 λ=np\lambda=np 維持固定時,可用卜瓦松分配近似:

X∼Binomial⁡(n,p)⟹X≈Poisson⁡(λ=np)X\sim \operatorname{Binomial}(n,p) \quad\Longrightarrow\quad X\approx \operatorname{Poisson}(\lambda=np)

解題方法

判斷本題各選項時,掌握兩個近似關係即可:

超幾何分配≈二項分配\text{超幾何分配}\approx \text{二項分配}

成立條件是母體很大、樣本相對母體很小,使得不放回抽樣造成的成功機率變化可以忽略。

另外:

二項分配≈卜瓦松分配\text{二項分配}\approx \text{卜瓦松分配}

成立條件是:

n 很大,p 很小,λ=np 固定n\text{ 很大},\qquad p\text{ 很小},\qquad \lambda=np\text{ 固定}

因此,題目中的正確敘述應該是:

當母體相對於樣本數很大時,超幾何分配可以用二項分配近似;
當試驗次數很大且成功機率很小時,二項分配可以用卜瓦松分配近似。


選項分析

(A) 錯誤

選項敘述為:

When the population size is large relative to the sample size, the binomial distribution can be approximated by the hypergeometric distribution.

母體很大、樣本相對很小時,不放回抽樣與獨立抽樣的結果接近,因此是:

Hypergeometric≈Binomial\text{Hypergeometric}\approx \text{Binomial}

也就是「超幾何分配可由二項分配近似」,而不是二項分配由超幾何分配近似。

因此此選項的近似方向相反,錯誤。


(B) 錯誤

選項敘述為:

The binomial distribution is used when sampling is done without replacement, while the hypergeometric distribution is used when sampling is done with replacement.

兩種分配的抽樣方式正好相反:

  • 二項分配:通常對應放回抽樣,或每次試驗彼此獨立且成功機率固定。
  • 超幾何分配:對應不放回抽樣,且母體大小有限。

因此此選項把兩者的使用條件顛倒,錯誤。


(C) 錯誤

選項敘述為:

When the number of trials is large and the success probability is large, the binomial distribution can be approximated by the Poisson distribution.

二項分配近似卜瓦松分配的條件是:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 11 題

If the confidence level is held constant and the sample size is tripled, what fraction of the original length does the confidence interval for the population mean μ\mu (assuming a normal distribution) become?

(A) 3
(B) 1/3
(C) 3\sqrt{3}
(D) 1/31/\sqrt{3}

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗信賴區間 (Confidence Interval, CI) 的長度如何隨著樣本數的變化而變化。

信賴區間的公式為:
xˉ±zα/2σn\bar{x} \pm z_{\alpha/2} \frac{\sigma}{\sqrt{n}}
其中:

  • xˉ\bar{x} 是樣本平均數
  • zα/2z_{\alpha/2} 是在給定信賴水準下的標準常態分位數
  • σ\sigma 是母體標準差
  • nn 是樣本數

信賴區間的長度 (Length) 是區間的上限減去下限,即 2×MOE2 \times MOE (Margin of Error)。
Length=2×zα/2σnLength = 2 \times z_{\alpha/2} \frac{\sigma}{\sqrt{n}}

題目假設:

  1. 信賴水準 (Confidence Level) 保持不變,這意味著 zα/2z_{\alpha/2} 保持不變。
  2. 母體標準差 σ\sigma 假設為已知(或由 pilot study 估計),並且保持不變。
  3. 樣本數 nn 被三倍,也就是新的樣本數 n′=3nn' = 3n。

我們需要計算新的信賴區間長度 Length′Length' 相對於原始長度 LengthLength 的比例。

原始長度:Length=2×zα/2σnLength = 2 \times z_{\alpha/2} \frac{\sigma}{\sqrt{n}}
新的長度:Length′=2×zα/2σn′Length' = 2 \times z_{\alpha/2} \frac{\sigma}{\sqrt{n'}}
將 n′=3nn' = 3n 代入:
Length′=2×zα/2σ3nLength' = 2 \times z_{\alpha/2} \frac{\sigma}{\sqrt{3n}}

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 12 題

For nn observations, the sample correlation between xx and yy is r=0.6r = 0.6. Suppose you run the simple linear regression: y=β0+β1x+ϵy = \beta_0 + \beta_1 x + \epsilon. Given the sample standard deviation of xx and yy are sx=10s_x = 10 and sy=20s_y = 20, respectively. Which of the following is correct?

(A) The slope estimate of β1\beta_1 is b1=0.3b_1 = 0.3, R2=0.36R^2 = 0.36
(B) The slope estimate of β1\beta_1 is b1=1.2b_1 = 1.2, R2=0.36R^2 = 0.36
(C) The slope estimate of β1\beta_1 is b1=0.6b_1 = 0.6, R2=0.36R^2 = 0.36
(D) The slope estimate of β1\beta_1 is b1=0.6b_1 = 0.6, R2=0.6R^2 = 0.6

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗簡單線性迴歸中的斜率估計值 (b1b_1) 和判定係數 (R2R^2) 的計算,以及它們與樣本相關係數 (rr) 和樣本標準差 (sx,sys_x, s_y) 的關係。

在簡單線性迴歸模型 y=β0+β1x+ϵy = \beta_0 + \beta_1 x + \epsilon 中,斜率 β1\beta_1 的樣本估計值 b1b_1 可以通過以下公式計算:
b1=rsysxb_1 = r \frac{s_y}{s_x}
其中:

  • rr 是樣本相關係數
  • sys_y 是樣本 yy 的標準差
  • sxs_x 是樣本 xx 的標準差

給定:

  • 樣本相關係數 r=0.6r = 0.6
  • 樣本標準差 sx=10s_x = 10
  • 樣本標準差 sy=20s_y = 20

計算斜率估計值 b1b_1:
b1=0.6×2010b_1 = 0.6 \times \frac{20}{10}
b1=0.6×2b_1 = 0.6 \times 2
b1=1.2b_1 = 1.2

接下來,計算判定係數 R2R^2。
在簡單線性迴歸中,判定係數 R2R^2 等於樣本相關係數 rr 的平方。
R2=r2R^2 = r^2

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 13 題

A multiple regression model with three independent variables is estimated using 25 observations. What are the degrees of freedom for the regression, the residual, and the total, respectively?

(A) 3, 21, 24
(B) 3, 22, 25
(C) 3, 24, 24
(D) 4, 20, 24

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對多變量迴歸模型中自由度 (Degrees of Freedom, df) 的理解。

在迴歸分析中,總自由度 (Total df) 通常是樣本數減一。
總自由度 = n−1n - 1
其中 nn 是觀察值的數量。

迴歸自由度 (Regression df) 是指模型中解釋變數 (independent variables) 的數量。
迴歸自由度 = kk
其中 kk 是獨立變數的數量。

殘差自由度 (Residual df),也稱為誤差自由度 (Error df),是總自由度減去迴歸自由度。
殘差自由度 = (n−1)−k(n - 1) - k

根據題目資訊:

  • 樣本數 n=25n = 25。
  • 獨立變數的數量 (three independent variables) = 3。所以 k=3k = 3。

現在我們計算各項自由度:

  1. 迴歸自由度 (Regression df):
    k=3k = 3。

  2. 總自由度 (Total df):
    n−1=25−1=24n - 1 = 25 - 1 = 24。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 14 題

A random sample of 600 residents is drawn from Taipei City to study whether they support an increase in bus fare to improve service quality. The null hypothesis is that 60% of citizens support the fare increase. The null hypothesis will be accepted if the proportion of supporters in the sample is between 570 and 630. What is the probability of a Type I error? If only 48% of citizens support the fare increase, what is the probability of a Type II error?

(A) 0.10, 0.01
(B) 0.01, 0.05
(C) 0.02, 0.50
(D) 0.05, 0.00

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查二項分配下的假設檢定,以及兩類錯誤:

  • 型一錯誤(Type I error):虛無假設 H0H_0 為真,卻拒絕 H0H_0。
  • 型二錯誤(Type II error):虛無假設 H0H_0 為假,卻接受 H0H_0。

令 XX 表示樣本中支持調漲票價的人數,則

X∼Binomial⁡(n,p)X\sim\operatorname{Binomial}(n,p)

題目設定的接受域為:

570≤X≤630570\leq X\leq 630

因此:

  • 型一錯誤:P(X<570 或 X>630∣p=0.6)P(X<570\text{ 或 }X>630\mid p=0.6)。
  • 型二錯誤:P(570≤X≤630∣p=0.48)P(570\leq X\leq630\mid p=0.48)。

題幹寫樣本數為 600600,但接受域上限為 630630,與樣本數矛盾;依選項與數字設定,應為樣本數 n=1000n=1000。以下依此合理假設計算。


解題方法:型一錯誤

在虛無假設成立時:

H0:p=0.6H_0:p=0.6

若 n=1000n=1000,則

X∼Binomial⁡(1000,0.6)X\sim\operatorname{Binomial}(1000,0.6)

其平均數與標準差為:

μ=np=1000(0.6)=600\mu=np=1000(0.6)=600 σ=np(1−p)=1000(0.6)(0.4)=240≈15.49\sigma=\sqrt{np(1-p)} =\sqrt{1000(0.6)(0.4)} =\sqrt{240}\approx15.49

接受域為 570≤X≤630570\leq X\leq630,因此型一錯誤發生在兩側尾端:

α=P(X<570)+P(X>630)\alpha=P(X<570)+P(X>630)

利用常態近似並採連續性修正:

α≈P(Z<569.5−60015.49)+P(Z>630.5−60015.49)\alpha\approx P\left(Z<\frac{569.5-600}{15.49}\right) + P\left(Z>\frac{630.5-600}{15.49}\right)

由於接受域以 600600 為中心,兩側對稱:

z=30.515.49≈1.97z=\frac{30.5}{15.49}\approx1.97

所以

α≈2P(Z>1.97)=2(0.0244)≈0.0488\alpha\approx2P(Z>1.97) =2(0.0244) \approx0.0488

因此:

P(Type I error)≈0.05P(\text{Type I error})\approx0.05

解題方法:型二錯誤

若實際上只有 48%48\% 的居民支持調漲票價,則

p=0.48p=0.48

此時:

X∼Binomial⁡(1000,0.48)X\sim\operatorname{Binomial}(1000,0.48)

平均數與標準差為:

μ=1000(0.48)=480\mu=1000(0.48)=480 σ=1000(0.48)(0.52)=249.6≈15.80\sigma=\sqrt{1000(0.48)(0.52)} =\sqrt{249.6}\approx15.80

型二錯誤是實際支持率為 0.480.48 時,樣本結果仍落在接受域:

β=P(570≤X≤630∣p=0.48)\beta=P(570\leq X\leq630\mid p=0.48)

採連續性修正:

β≈P(569.5−48015.80≤Z≤630.5−48015.80)\beta\approx P\left( \frac{569.5-480}{15.80} \leq Z\leq \frac{630.5-480}{15.80} \right)

下限標準化為:

z1=569.5−48015.80≈5.66z_1=\frac{569.5-480}{15.80}\approx5.66

上限標準化為:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 15 題

A study aims to test the starting salaries of college graduates across the financial industry, the information technology industry, and the government sector. A random sample of individuals is selected from each industry. The sample statistics for each industry are shown in the table below (in thousand dollars):

IndustrynnMeanStandard Deviation
Financial industry1031.62.68
Information technology1230.53.54
Government sector8282.45

What is the value of mean square within groups?

(A) 1.98
(B) 9.06
(C) 29.7
(D) There is insufficient information to calculate

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗單因子變異數分析 (One-Way ANOVA) 中的組內均方 (Mean Square Within, MSW) 的計算。MSW 也稱為誤差均方 (Mean Square Error, MSE)。

在 ANOVA 中,MSW 是用來估計母體變異數 σ2\sigma^2 的無偏差估計量。
MSW 的計算公式為:
MSW=SSEdfwithinMSW = \frac{SSE}{df_{within}}
其中:

  • SSESSE 是組內平方和 (Sum of Squares Within, Sum of Squares Error)。
  • dfwithindf_{within} 是組內自由度 (Degrees of Freedom Within)。

首先,計算組內平方和 SSESSE。
SSE=∑i=1k∑j=1ni(xij−xˉi)2SSE = \sum_{i=1}^{k} \sum_{j=1}^{n_i} (x_{ij} - \bar{x}_i)^2
其中 kk 是組數, nin_i 是第 ii 組的樣本數,xijx_{ij} 是第 ii 組的第 jj 個觀測值,xˉi\bar{x}_i 是第 ii 組的樣本平均數。
然而,題目直接給出了每組的標準差 (sis_i),而不是原始數據。
我們知道,組內平方和與組內標準差的關係是:
si2=∑j=1ni(xij−xˉi)2ni−1s_i^2 = \frac{\sum_{j=1}^{n_i} (x_{ij} - \bar{x}_i)^2}{n_i - 1}
所以,∑j=1ni(xij−xˉi)2=si2(ni−1)\sum_{j=1}^{n_i} (x_{ij} - \bar{x}_i)^2 = s_i^2 (n_i - 1)。
因此,SSE=∑i=1ksi2(ni−1)SSE = \sum_{i=1}^{k} s_i^2 (n_i - 1)。

接著,計算組內自由度 dfwithindf_{within}。
dfwithin=∑i=1k(ni−1)=(∑ni)−kdf_{within} = \sum_{i=1}^{k} (n_i - 1) = (\sum n_i) - k。

題目中的數據:

  • 組數 k=3k = 3 (Financial, Information technology, Government)。
  • 組別 1 (Financial): n1=10n_1 = 10, xˉ1=31.6\bar{x}_1 = 31.6, s1=2.68s_1 = 2.68。
  • 組別 2 (Information technology): n2=12n_2 = 12, xˉ2=30.5\bar{x}_2 = 30.5, s2=3.54s_2 = 3.54。
  • 組別 3 (Government): n3=8n_3 = 8, xˉ3=28\bar{x}_3 = 28, s3=2.45s_3 = 2.45。

計算 SSESSE:
s12=(2.68)2≈7.1824s_1^2 = (2.68)^2 \approx 7.1824
s22=(3.54)2≈12.5316s_2^2 = (3.54)^2 \approx 12.5316
s32=(2.45)2≈6.0025s_3^2 = (2.45)^2 \approx 6.0025

SSE=s12(n1−1)+s22(n2−1)+s32(n3−1)SSE = s_1^2 (n_1 - 1) + s_2^2 (n_2 - 1) + s_3^2 (n_3 - 1)

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 I.1 題

Let XX and YY be two random variables. The expected value of XX is μx\mu_x and the variance of XX is σx2\sigma_x^2. Besides, the expected value of YY is μy\mu_y and the variance of YY is σy2\sigma_y^2. Assume that E(XY)=2Y2E(X Y)=2 Y^{2}, E(Y∣X)=2YE(Y | X)=2 Y, and E(Y∣X)=3E(Y | X)=3. Both μx\mu_x and σx2\sigma_x^2 are unknown. Assume that E(X)=3E(X)=3 and σx2=2\sigma_x^2=2. Find:
(1) μx\mu_x, σx2\sigma_x^2 (6%)
(2) Cov(X,Y)Cov(X, Y) (4%)

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題測試統計學中期望值 (EE)、變異數 (VarVar) 以及條件期望值 (E[Y∣X]E[Y|X]) 的基本定義與性質。核心重點在於釐清條件期望值與共變異數 (Covariance) 之間的關係:

  1. 條件期望值定義:E[Y∣X]E[Y|X] 是隨機變數 XX 的函數,若其結果為常數 cc,則代表 XX 與 YY 在期望值上無關聯。
  2. 全期望值法則 (Law of Iterated Expectations):E[Y]=E[E[Y∣X]]E[Y] = E[E[Y|X]]。
  3. 共變異數定義:Cov(X,Y)=E[XY]−E[X]E[Y]Cov(X, Y) = E[XY] - E[X]E[Y],且若 E[Y∣X]=E[Y]E[Y|X] = E[Y],則 Cov(X,Y)=0Cov(X, Y) = 0。

題意釐清與補充說明

在解題前,必須指出原題目給定的條件在數學定義上存在相互矛盾之處:

  • 題幹中 E(XY)=2Y2E(XY)=2Y^2 與 E(Y∣X)=2YE(Y|X)=2Y 的表達式中包含了隨機變數 YY,而期望值運算後的結果 E[⋅]E[\cdot] 應為常數值,不應包含隨機變數。
  • 題幹同時給出 E(Y∣X)=2YE(Y|X)=2Y 與 E(Y∣X)=3E(Y|X)=3,這在代數上無法同時滿足。
  • 針對題幹矛盾,本詳解依據統計推論原則,優先採用題幹明確給出的「已知量」作為解題基準,並說明結論。

解題方法

(1) μx\mu_x 與 σx2\sigma_x^2 之求取

題幹末段已明確給出資訊:
E(X)=μx=3E(X) = \mu_x = 3
σx2=2\sigma_x^2 = 2
由於題目要求「Find μx,σx2\mu_x, \sigma_x^2」,此處直接根據題目設定回答即可。

【答案】μx=3\mu_x = 3;σx2=2\sigma_x^2 = 2

(2) Cov(X,Y)Cov(X, Y) 之求取

根據條件期望值性質,若已知 E(Y∣X)=3E(Y|X) = 3(此處視 E(Y∣X)=3E(Y|X)=3 為有效條件):

利用共變異數定義式:
Cov(X,Y)=E[XY]−E[X]E[Y]Cov(X, Y) = E[XY] - E[X]E[Y]

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 II.2 題

A coffee chain wants to test the effects of three new coffee bean blends (Blend A, Blend B, and Blend C) on customer satisfaction. The experiment is conducted in three different cities (Taipei, Taichung, and Kaohsiung). Each city is treated as a block because customers' taste preferences and average satisfaction levels may systematically differ across locations. Each blend is tested in each city, and customer satisfaction scores (out of 100) are collected, as shown in the table below:

CityBlend ABlend BBlend C
Taipei859082
Taichung758070
Kaohsiung687260

(1) Describe main assumptions needed for valid results. (3%)
(2) Please construct a RCB (Randomly Completely Blocked Design) ANOVA table and conduct a F-test on the null hypothesis H0:μA=μB=μCH_0: \mu_A = \mu_B = \mu_C at α=0.05\alpha = 0.05. State your conclusion with respect to the effects of three new bean blends on customer satisfaction. (8%)
(3) If you ignore the block (City) and analyze it as a CRD (Completely Randomized Design). Please construct a CRD ANOVA table and conduct a F-test on the null hypothesis H0:μA=μB=μCH_0: \mu_A = \mu_B = \mu_C at α=0.05\alpha = 0.05. Also, state your conclusion with respect to the effects of three new bean blends on customer satisfaction and see what happens when you ignore blocking? (5%)
(4) Using independent t-tests for multiple comparisons if the null hypothesis (in (2)) if false, increasing the chance of falsely-wise type I error rate (family-wise error), increasing the chance of falsely-wise type I error rate (family-wise error), even if none exist. For three treatments (coffee bean blends) in overall error rate (family-wise)? (3%)
(5) Following comparison (4), what is the overall error rate if you use Bonferroni to compare all pairwise differences? Does Bonferroni provide a more conservative level of significance than t-tests? (6%)

登入後即可作答並保存紀錄。

這一題的完整詳解

這是一道關於隨機完全區集設計 (Randomly Completely Blocked Design, RCB) 和完全隨機設計 (Completely Randomized Design, CRD) 的 ANOVA 分析題目。

Part (1): Describe main assumptions needed for valid results. (3%)
進行 ANOVA 分析,特別是基於 F 檢定的結果,需要以下主要假設:

  1. 獨立性 (Independence):各組內的觀測值以及各組之間的觀測值是相互獨立的。對於 RCB 設計,區集內和區集間的觀測值也應獨立。
  2. 常態性 (Normality):殘差(或各組內的觀測值)應近似服從常態分佈。也就是說,對於每個處理(咖啡豆混合物)和每個區集(城市),其結果應來自常態分佈。
  3. 變異數同質性 (Homogeneity of variances):各組(或各處理)的母體變異數應該相等。在 RCB 設計中,殘差的變異數應在所有區集和處理之間是相等的。
  4. 加法模型 (Additivity):處理效應和區集效應應是加法的,即處理和區集之間沒有顯著的交互作用。這意味著某種處理的效應在不同區集中的差異是相似的,反之亦然。

Part (2): Construct a RCB ANOVA table and conduct a F-test on H0:μA=μB=μCH_0: \mu_A = \mu_B = \mu_C at α=0.05\alpha = 0.05. State your conclusion. (8%)

RCB 設計的 ANOVA 表結構:

變異來源 (Source of Variation)自由度 (df)平方和 (SS)均方 (MS)F 統計量 (F-statistic)
區集 (Blocks, City)b−1b-1SSBSS_BMSBMS_BMSB/MSEMS_B / MS_E
處理 (Treatments, Blend)k−1k-1SSTSS_TMSTMS_TMST/MSEMS_T / MS_E
殘差 (Error)(b−1)(k−1)(b-1)(k-1)SSESSEMSEMS_E
總計 (Total)bk−1bk-1SSTSST

其中:

  • bb 是區集數量 (城市數) = 3。
  • kk 是處理數量 (咖啡豆混合物數) = 3。
  • bkbk 是總觀測數 = 3×3=93 \times 3 = 9。

步驟:

  1. 計算總平均值 (xˉgrand\bar{x}_{grand}):
    所有數據的總和 = (85+90+82) + (75+80+70) + (68+72+60) = 257 + 225 + 200 = 682。
    總觀測數 bk=9bk = 9。
    xˉgrand=682/9≈75.7778\bar{x}_{grand} = 682 / 9 \approx 75.7778。

  2. 計算總平方和 (SST):
    SST=∑i=1b∑j=1k(xij−xˉgrand)2SST = \sum_{i=1}^{b} \sum_{j=1}^{k} (x_{ij} - \bar{x}_{grand})^2
    SST=(85−75.7778)2+(90−75.7778)2+(82−75.7778)2+⋯+(60−75.7778)2SST = (85-75.7778)^2 + (90-75.7778)^2 + (82-75.7778)^2 + \dots + (60-75.7778)^2
    SST=(9.2222)2+(14.2222)2+(6.2222)2+(−0.7778)2+(4.2222)2+(−5.7778)2+(−7.7778)2+(−3.7778)2+(−15.7778)2SST = (9.2222)^2 + (14.2222)^2 + (6.2222)^2 + (-0.7778)^2 + (4.2222)^2 + (-5.7778)^2 + (-7.7778)^2 + (-3.7778)^2 + (-15.7778)^2
    SST≈85.04+202.27+38.72+0.61+17.83+33.38+60.50+14.27+248.93SST \approx 85.04 + 202.27 + 38.72 + 0.61 + 17.83 + 33.38 + 60.50 + 14.27 + 248.93
    SST≈701.55SST \approx 701.55

  3. 計算區集平方和 (SSBSS_B):
    SSB=k∑i=1b(xˉi.−xˉgrand)2SS_B = k \sum_{i=1}^{b} (\bar{x}_{i.} - \bar{x}_{grand})^2 (其中 xˉi.\bar{x}_{i.} 是第 i 行的平均值)
    Taipei: (85+90+82)/3=257/3≈85.6667(85+90+82)/3 = 257/3 \approx 85.6667
    Taichung: (75+80+70)/3=225/3=75.0000(75+80+70)/3 = 225/3 = 75.0000
    Kaohsiung: (68+72+60)/3=200/3≈66.6667(68+72+60)/3 = 200/3 \approx 66.6667
    SSB=3×[(85.6667−75.7778)2+(75.0000−75.7778)2+(66.6667−75.7778)2]SS_B = 3 \times [(85.6667-75.7778)^2 + (75.0000-75.7778)^2 + (66.6667-75.7778)^2]
    SSB=3×[(9.8889)2+(−0.7778)2+(−9.1111)2]SS_B = 3 \times [(9.8889)^2 + (-0.7778)^2 + (-9.1111)^2]
    SSB=3×[97.79+0.61+83.01]SS_B = 3 \times [97.79 + 0.61 + 83.01]
    SSB=3×181.41≈544.23SS_B = 3 \times 181.41 \approx 544.23

  4. 計算處理平方和 (SSTSS_T):
    SST=b∑j=1k(xˉ.j−xˉgrand)2SS_T = b \sum_{j=1}^{k} (\bar{x}_{.j} - \bar{x}_{grand})^2 (其中 xˉ.j\bar{x}_{.j} 是第 j 列的平均值)
    Blend A: (85+75+68)/3=228/3=76.0000(85+75+68)/3 = 228/3 = 76.0000
    Blend B: (90+80+72)/3=242/3≈80.6667(90+80+72)/3 = 242/3 \approx 80.6667
    Blend C: (82+70+60)/3=212/3≈70.6667(82+70+60)/3 = 212/3 \approx 70.6667
    SST=3×[(76.0000−75.7778)2+(80.6667−75.7778)2+(70.6667−75.7778)2]SS_T = 3 \times [(76.0000-75.7778)^2 + (80.6667-75.7778)^2 + (70.6667-75.7778)^2]
    SST=3×[(0.2222)2+(4.8889)2+(−5.1111)2]SS_T = 3 \times [(0.2222)^2 + (4.8889)^2 + (-5.1111)^2]
    SST=3×[0.05+23.90+26.12]SS_T = 3 \times [0.05 + 23.90 + 26.12]
    SST=3×50.07≈150.21SS_T = 3 \times 50.07 \approx 150.21

  5. 計算殘差平方和 (SSESSE):
    SSE=SST−SSB−SSTSSE = SST - SS_B - SS_T
    SSE=701.55−544.23−150.21=7.11SSE = 701.55 - 544.23 - 150.21 = 7.11

  6. 計算自由度 (df):
    dfBlocks=b−1=3−1=2df_{Blocks} = b-1 = 3-1 = 2
    dfTreatments=k−1=3−1=2df_{Treatments} = k-1 = 3-1 = 2
    dfError=(b−1)(k−1)=(3−1)(3−1)=2×2=4df_{Error} = (b-1)(k-1) = (3-1)(3-1) = 2 \times 2 = 4
    dfTotal=bk−1=3×3−1=8df_{Total} = bk-1 = 3 \times 3 - 1 = 8
    (檢查:dfBlocks+dfTreatments+dfError=2+2+4=8=dfTotaldf_{Blocks} + df_{Treatments} + df_{Error} = 2 + 2 + 4 = 8 = df_{Total}。正確。)

  7. 計算均方 (MS):
    MSB=SSB/dfBlocks=544.23/2=272.115MS_B = SS_B / df_{Blocks} = 544.23 / 2 = 272.115
    MST=SST/dfTreatments=150.21/2=75.105MS_T = SS_T / df_{Treatments} = 150.21 / 2 = 75.105
    MSE=SSE/dfError=7.11/4=1.7775MS_E = SSE / df_{Error} = 7.11 / 4 = 1.7775

  8. 計算 F 統計量:
    F-test for treatments: F=MST/MSE=75.105/1.7775≈42.25F = MS_T / MS_E = 75.105 / 1.7775 \approx 42.25

  9. F 檢定:
    虛無假設 H0:μA=μB=μCH_0: \mu_A = \mu_B = \mu_C (所有咖啡豆混合物的平均滿意度相同)。
    對立假設 H1H_1: 至少有一個混合物的平均滿意度不同。
    顯著水準 α=0.05\alpha = 0.05。
    自由度為 (dfT,dfE)=(2,4)(df_T, df_E) = (2, 4)。
    查 F 分佈表,在 α=0.05\alpha=0.05, df1=2df_1=2, df2=4df_2=4 下,臨界值 FcriticalF_{critical} 約為 6.94。
    由於計算出的 F 統計量 F≈42.25F \approx 42.25 遠大於臨界值 6.94 (Fcalc>FcriticalF_{calc} > F_{critical}),我們拒絕虛無假設 H0H_0。

  10. 結論:
    在 α=0.05\alpha = 0.05 的顯著水準下,有足夠的統計證據表明,這三種新的咖啡豆混合物對顧客滿意度有顯著不同的影響。也就是說,至少有一種咖啡豆混合物的平均顧客滿意度與其他混合物不同。

ANOVA Table:

Source of VariationdfSSMSF
Blocks (City)2544.23272.115153.09
Treatments (Blend)2150.2175.10542.25
Error47.111.7775
Total8701.55

結論: 拒絕 H0H_0,F(2,4)=42.25F(2, 4) = 42.25, p<0.05p < 0.05。三種咖啡豆混合物的平均顧客滿意度有顯著差異。

Part (3): Analyze as CRD, conduct F-test on H0:μA=μB=μCH_0: \mu_A = \mu_B = \mu_C at α=0.05\alpha = 0.05. State conclusion and what happens when ignoring blocking. (5%)

CRD 設計的 ANOVA 表結構:

變異來源 (Source of Variation)自由度 (df)平方和 (SS)MSF 統計量 (F-statistic)
處理 (Treatments, Blend)k−1k-1SSTSS_TMSTMS_TMST/MSEMS_T / MS_E
殘差 (Error)ntotal−kn_{total}-kSSESSEMSEMS_E
總計 (Total)ntotal−1n_{total}-1SSTSST

其中:

  • kk 是處理數量 (Blend) = 3。
  • ntotaln_{total} 是總觀測數 = 9。

步驟:

  1. 總平方和 (SST) 和 處理平方和 (SSTSS_T) 與 RCB 中的計算相同,因為它們僅取決於處理和數據本身,而不取決於區集。
    SST=701.55SST = 701.55
    SST=150.21SS_T = 150.21

  2. 殘差平方和 (SSE) 在 CRD 中計算方式不同:
    SSECRD=SST−SSTSSE_{CRD} = SST - SS_T
    SSECRD=701.55−150.21=551.34SSE_{CRD} = 701.55 - 150.21 = 551.34

  3. 自由度 (df):
    dfTreatments=k−1=3−1=2df_{Treatments} = k-1 = 3-1 = 2
    dfErrorCRD=ntotal−k=9−3=6df_{Error_{CRD}} = n_{total}-k = 9-3 = 6
    dfTotal=ntotal−1=9−1=8df_{Total} = n_{total}-1 = 9-1 = 8
    (檢查:dfTreatments+dfErrorCRD=2+6=8=dfTotaldf_{Treatments} + df_{Error_{CRD}} = 2 + 6 = 8 = df_{Total}。正確。)

  4. 均方 (MS):
    MST=SST/dfTreatments=150.21/2=75.105MS_T = SS_T / df_{Treatments} = 150.21 / 2 = 75.105 (與 RCB 中的 MSTMS_T 相同)
    MSECRD=SSECRD/dfErrorCRD=551.34/6=91.89MS_{E_{CRD}} = SSE_{CRD} / df_{Error_{CRD}} = 551.34 / 6 = 91.89

  5. F 統計量:
    FCRD=MST/MSECRD=75.105/91.89≈0.817F_{CRD} = MS_T / MS_{E_{CRD}} = 75.105 / 91.89 \approx 0.817

  6. F 檢定:
    H0:μA=μB=μCH_0: \mu_A = \mu_B = \mu_C
    α=0.05\alpha = 0.05
    自由度為 (dfT,dfE)=(2,6)(df_T, df_E) = (2, 6)。
    查 F 分佈表,在 α=0.05\alpha=0.05, df1=2df_1=2, df2=6df_2=6 下,臨界值 FcriticalF_{critical} 約為 5.14。
    由於計算出的 F 統計量 FCRD≈0.817F_{CRD} \approx 0.817 小於臨界值 5.14 (Fcalc<FcriticalF_{calc} < F_{critical}),我們未能拒絕虛無假設 H0H_0。

  7. 結論:
    在 α=0.05\alpha = 0.05 的顯著水準下,沒有足夠的統計證據表明這三種咖啡豆混合物的平均顧客滿意度有顯著差異。

忽略區集 (City) 的影響:
當我們忽略區集 (City) 並將其視為 CRD 時,殘差均方 MSECRD=91.89MS_{E_{CRD}} = 91.89 顯著大於 RCB 設計中的殘差均方 MSE=1.7775MS_E = 1.7775。
這是因為 CRD 的 SSE 包含了原本在 RCB 中被歸類為區集效應 (City effect) 的變異。
MSW (或 MSE) 代表了我們估計的隨機變異程度。MSECRDMS_{E_{CRD}} 包含了區集效應和真正的隨機誤差,因此它更大。
由於 F 統計量是 F=MST/MSEF = MS_T / MS_E,當 MSEMS_E 變大時,F 統計量會變小。
在 RCB 設計中,F 統計量為 42.25,顯著。
在 CRD 設計中,F 統計量為 0.817,不顯著。

結論: 當忽略區集效應時,我們未能發現三種咖啡豆混合物之間存在顯著差異。這表明區集(城市)的差異(即顧客的口味偏好和滿意度水平在不同城市有系統性差異)對於分析的結果產生了重要影響。RCB 設計能夠更有效地分離出處理效應和區集效應,從而更精確地檢定處理效應。忽略區集效應會導致較大的誤差項,降低檢定效力,可能無法偵測到真實存在的處理效應。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 II.3 題

In a regression analysis with 18 observations and 4 independent variables, the sum of squares due to regression (SSR) is 1851.63 and the sum of squares due to error (SSE) is 1014.3.

(1) Find the values of R2R^2 and adj-R2R^2. (3%)
(2) Since adj-R2≤R2R^2 \le R^2, therefore adj-R2R^2 can be negative theoretically. Please prove. (5%)
(3) Please write down the regression model and key assumptions for valid results. (6%)
(4) Construct the ANOVA table, write down the null hypothesis, and conduct the appropriate test to assess the overall significance of the model at α=0.05\alpha = 0.05. (6%)

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題評量多元線性迴歸分析之判定係數(R2R^2)與調整後判定係數(adj-R2\text{adj-}R^2)之計算與數學性質、古典線性迴歸模型(Gauss-Markov Assumptions)之核心假設,以及變異數分析(ANOVA)之 F 檢定流程。

解題方法

  1. Part (1):計算 SST=SSR+SSESST = SSR + SSE,進而求得 R2=SSR/SSTR^2 = SSR / SST,再代入 adj-R2=1−SSE/(n−k−1)SST/(n−1)\text{adj-}R^2 = 1 - \frac{SSE/(n-k-1)}{SST/(n-1)} 計算數值。
  2. Part (2):由 adj-R2=1−(1−R2)n−1n−k−1\text{adj-}R^2 = 1 - (1 - R^2)\frac{n-1}{n-k-1} 展開,推導 adj-R2<0\text{adj-}R^2 < 0 之充要條件為 R2<kn−1R^2 < \frac{k}{n-1}(或 MSE>MSTMSE > MST),並說明極端狀況下之負值意義。
  3. Part (3):清楚寫出母體迴歸方程式,並條列 Gauss-Markov 六大基本假設及推論檢定所需之常態性假設。
  4. Part (4):建立標準單一完整 ANOVA 表,清楚列出虛無假設 H0H_0 與對立假設 H1H_1,計算 F 統計量並與臨界值比較做出決策。

步驟推導與分析

(1) 計算 R2R^2 與 adj-R2\text{adj-}R^2

給定樣本數 n=18n = 18,自變數個數 k=4k = 4,SSR=1851.63SSR = 1851.63,SSE=1014.3SSE = 1014.3。
總平方和(SST)為:

SST=SSR+SSE=1851.63+1014.3=2865.93SST = SSR + SSE = 1851.63 + 1014.3 = 2865.93

判定係數 R2R^2:

R2=SSRSST=1851.632865.93≈0.64608≈0.6461R^2 = \frac{SSR}{SST} = \frac{1851.63}{2865.93} \approx 0.64608 \approx 0.6461

自由度分別為:總自由度 dfT=n−1=17df_T = n - 1 = 17;殘差自由度 dfE=n−k−1=18−4−1=13df_E = n - k - 1 = 18 - 4 - 1 = 13。
調整後判定係數 adj-R2\text{adj-}R^2:

adj-R2=1−SSE/(n−k−1)SST/(n−1)=1−1014.3/132865.93/17=1−78.0231168.5841≈1−0.4628=0.5372\text{adj-}R^2 = 1 - \frac{SSE / (n - k - 1)}{SST / (n - 1)} = 1 - \frac{1014.3 / 13}{2865.93 / 17} = 1 - \frac{78.0231}{168.5841} \approx 1 - 0.4628 = 0.5372

(2) 證明 adj-R2≤R2\text{adj-}R^2 \le R^2 且理論上可為負值

根據定義公式:

adj-R2=1−(1−R2)n−1n−k−1\text{adj-}R^2 = 1 - (1 - R^2)\frac{n - 1}{n - k - 1}

因 k≥1k \ge 1,故分母 n−k−1<n−1n - k - 1 < n - 1,得比值 n−1n−k−1>1\frac{n - 1}{n - k - 1} > 1。
由於 (1−R2)≥0(1 - R^2) \ge 0,因此:

(1−R2)n−1n−k−1≥(1−R2)  ⟹  adj-R2≤R2(1 - R^2)\frac{n - 1}{n - k - 1} \ge (1 - R^2) \implies \text{adj-}R^2 \le R^2

進一步檢視其為負值之條件:

adj-R2<0  ⟺  1−(1−R2)n−1n−k−1<0  ⟺  1−R2>n−k−1n−1  ⟺  R2<1−n−k−1n−1=kn−1\text{adj-}R^2 < 0 \iff 1 - (1 - R^2)\frac{n - 1}{n - k - 1} < 0 \iff 1 - R^2 > \frac{n - k - 1}{n - 1} \iff R^2 < 1 - \frac{n - k - 1}{n - 1} = \frac{k}{n - 1}

亦即等價於 MSE>MSTMSE > MST。當模型中加入之自變數解釋能力極微弱,使得 R2<kn−1R^2 < \frac{k}{n - 1} 時,adj-R2\text{adj-}R^2 即會小於 0。
例如在極端狀況 R2=0R^2 = 0(自變數毫無解釋力)時:

adj-R2=1−1×n−1n−k−1=−kn−k−1<0\text{adj-}R^2 = 1 - 1 \times \frac{n - 1}{n - k - 1} = -\frac{k}{n - k - 1} < 0

故得證 adj-R2\text{adj-}R^2 理論上可為負值。

(3) 迴歸模型與關鍵假設

多元線性迴歸模型表示為:

yi=β0+β1xi1+β2xi2+⋯+βkxik+ϵi,i=1,2,…,ny_i = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} + \dots + \beta_k x_{ik} + \epsilon_i, \quad i = 1, 2, \dots, n

使 OLS 估計量具備最佳線性不偏估計量(BLUE)之關鍵假設(Gauss-Markov 假設):

  1. 線性性(Linearity in parameters):模型對母體參數 β\beta 為線性關係。
  2. 隨機抽樣(Random sampling):樣本觀測值獨立且代表母體。
  3. 無完全共線性(No perfect multicollinearity):自變數之間不存在完美的線性相依關係。
  4. 條件期望值為零(Zero conditional mean):E(ϵi∣xi1,…,xik)=0E(\epsilon_i \mid x_{i1}, \dots, x_{ik}) = 0,誤差項外生無系統性偏差。
  5. 同質變異數(Homoscedasticity):Var(ϵi∣xi1,…,xik)=σ2\text{Var}(\epsilon_i \mid x_{i1}, \dots, x_{ik}) = \sigma^2 為常數。
  6. 誤差項無自我相關(No serial correlation / Independent errors):當 i≠ji \neq j 時,Cov(ϵi,ϵj)=0\text{Cov}(\epsilon_i, \epsilon_j) = 0。
  7. 誤差項常態性(Normality of errors,推論檢定所需):ϵi∼i.i.d.N(0,σ2)\epsilon_i \overset{i.i.d.}{\sim} N(0, \sigma^2),供小樣本下進行 t 檢定與 F 檢定。

(4) ANOVA 表與模型整體顯著性檢定(α=0.05\alpha = 0.05)

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 II.3 (continued) 題

(1) Find the values of R2R^2 and adj-R2R^2. (3%)
(2) Since adj-R2≤R2R^2 \le R^2, therefore adj-R2R^2 can be negative theoretically. Please prove. (5%)
(3) Please write down the regression model and key assumptions for valid results. (6%)
(4) Construct the ANOVA table, write down the null hypothesis, and conduct the appropriate test to assess the overall significance of the model at α=0.05\alpha = 0.05. (6%)

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查多元線性迴歸的決定係數、調整後決定係數,以及整體迴歸顯著性的 FF 檢定。題目給定樣本數 n=18n=18、自變數個數 k=4k=4、迴歸平方和 SSR=1851.63SSR=1851.63、誤差平方和 SSE=1014.3SSE=1014.3。

總平方和為

SST=SSR+SSESST=SSR+SSE

決定係數與調整後決定係數分別為

R2=SSRSST=1−SSESSTR^2=\frac{SSR}{SST}=1-\frac{SSE}{SST} adj⁡R2=1−SSE/(n−k−1)SST/(n−1)\operatorname{adj}R^2 =1-\frac{SSE/(n-k-1)}{SST/(n-1)}

(1) 計算 R2R^2 與調整後 R2R^2

先計算總平方和:

SST=1851.63+1014.3=2865.93SST=1851.63+1014.3=2865.93

因此

R2=1851.632865.93≈0.6462R^2=\frac{1851.63}{2865.93}\approx 0.6462

再計算調整後決定係數。誤差自由度為 18−4−1=1318-4-1=13,總自由度為 18−1=1718-1=17:

adj⁡R2=1−1014.3/132865.93/17≈0.5372\operatorname{adj}R^2 =1-\frac{1014.3/13}{2865.93/17} \approx 0.5372

(2) 證明調整後 R2R^2 可為負

令自變數個數為 kk。由定義,

adj⁡R2=1−SSE/(n−k−1)SST/(n−1)=1−(1−R2)n−1n−k−1\operatorname{adj}R^2 =1-\frac{SSE/(n-k-1)}{SST/(n-1)} =1-(1-R^2)\frac{n-1}{n-k-1}

當 k>0k>0 且 n−k−1>0n-k-1>0 時,

n−1n−k−1>1\frac{n-1}{n-k-1}>1

又因為 R2≤1R^2\leq 1,所以 1−R2≥01-R^2\geq 0。因此調整後決定係數會扣除比 1−R21-R^2 更大的量,故

adj⁡R2≤R2\operatorname{adj}R^2\leq R^2

當模型的 R2R^2 足夠小時,調整後決定係數會小於零。由上式可得其為負的條件:

1−(1−R2)n−1n−k−1<01-(1-R^2)\frac{n-1}{n-k-1}<0

整理得

R2<kn−1R^2<\frac{k}{n-1}

本題的門檻為 4/17≈0.23534/17\approx 0.2353;實際 R2≈0.6462R^2\approx 0.6462,因此本題的調整後 R2R^2 為正。

(3) 迴歸模型與主要假設

有 1818 筆觀測值及 44 個自變數時,樣本迴歸模型可寫為

Yi=β0+β1Xi1+β2Xi2+β3Xi3+β4Xi4+εi,i=1,…,18Y_i=\beta_0+\beta_1X_{i1}+\beta_2X_{i2} +\beta_3X_{i3}+\beta_4X_{i4}+\varepsilon_i, \qquad i=1,\ldots,18

其中 β0,…,β4\beta_0,\ldots,\beta_4 為迴歸係數,εi\varepsilon_i 為誤差項。進行有效的估計與推論,主要假設如下:

  • 線性與模型設定正確:​反應變數的條件平均數可由所列自變數的線性組合表示。
  • 誤差平均數為零:E(εi∣X)=0E(\varepsilon_i\mid X)=0,亦即自變數與誤差項不相關。
  • 誤差互相獨立且變異數相同:Var⁡(εi∣X)=σ2\operatorname{Var}(\varepsilon_i\mid X)=\sigma^2,且不同觀測值的誤差互相獨立。
  • 無完全共線性:​自變數之間不存在完全線性依賴。
  • 常態性:​若要使用小樣本下的精確 tt 與 FF 檢定,另假設 εi∣X∼N(0,σ2)\varepsilon_i\mid X\sim N(0,\sigma^2)。

(4) ANOVA 表與整體顯著性檢定

整體顯著性檢定檢驗所有斜率係數是否同時為零:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 II.3 (continued) 題

(1) Find the values of R2R^2 and adj-R2R^2. (3%)
(2) Since adj-R2≤R2R^2 \le R^2, therefore adj-R2R^2 can be negative theoretically. Please prove. (5%)
(3) Please write down the regression model and key assumptions for valid results. (6%)
(4) Construct the ANOVA table, write down the null hypothesis, and conduct the appropriate test to assess the overall significance of the model at α=0.05\alpha = 0.05. (6%)

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查多元線性迴歸的決定係數、調整後決定係數,以及整體迴歸顯著性的 FF 檢定。題目給定樣本數 n=18n=18、自變數個數 k=4k=4、迴歸平方和 SSR=1851.63SSR=1851.63、誤差平方和 SSE=1014.3SSE=1014.3。

總平方和為

SST=SSR+SSESST=SSR+SSE

決定係數與調整後決定係數分別為

R2=SSRSST=1−SSESSTR^2=\frac{SSR}{SST}=1-\frac{SSE}{SST} adj⁡R2=1−SSE/(n−k−1)SST/(n−1)\operatorname{adj}R^2 =1-\frac{SSE/(n-k-1)}{SST/(n-1)}

(1) 計算 R2R^2 與調整後 R2R^2

先計算總平方和:

SST=1851.63+1014.3=2865.93SST=1851.63+1014.3=2865.93

因此

R2=1851.632865.93≈0.6462R^2=\frac{1851.63}{2865.93}\approx 0.6462

再計算調整後決定係數。誤差自由度為 18−4−1=1318-4-1=13,總自由度為 18−1=1718-1=17:

adj⁡R2=1−1014.3/132865.93/17≈0.5372\operatorname{adj}R^2 =1-\frac{1014.3/13}{2865.93/17} \approx 0.5372

(2) 證明調整後 R2R^2 可為負

令自變數個數為 kk。由定義,

adj⁡R2=1−SSE/(n−k−1)SST/(n−1)=1−(1−R2)n−1n−k−1\operatorname{adj}R^2 =1-\frac{SSE/(n-k-1)}{SST/(n-1)} =1-(1-R^2)\frac{n-1}{n-k-1}

當 k>0k>0 且 n−k−1>0n-k-1>0 時,

n−1n−k−1>1\frac{n-1}{n-k-1}>1

又因為 R2≤1R^2\leq 1,所以 1−R2≥01-R^2\geq 0。因此調整後決定係數會扣除比 1−R21-R^2 更大的量,故

adj⁡R2≤R2\operatorname{adj}R^2\leq R^2

當模型的 R2R^2 足夠小時,調整後決定係數會小於零。由上式可得其為負的條件:

1−(1−R2)n−1n−k−1<01-(1-R^2)\frac{n-1}{n-k-1}<0

整理得

R2<kn−1R^2<\frac{k}{n-1}

本題的門檻為 4/17≈0.23534/17\approx 0.2353;實際 R2≈0.6462R^2\approx 0.6462,因此本題的調整後 R2R^2 為正。

(3) 迴歸模型與主要假設

有 1818 筆觀測值及 44 個自變數時,樣本迴歸模型可寫為

Yi=β0+β1Xi1+β2Xi2+β3Xi3+β4Xi4+εi,i=1,…,18Y_i=\beta_0+\beta_1X_{i1}+\beta_2X_{i2} +\beta_3X_{i3}+\beta_4X_{i4}+\varepsilon_i, \qquad i=1,\ldots,18

其中 β0,…,β4\beta_0,\ldots,\beta_4 為迴歸係數,εi\varepsilon_i 為誤差項。進行有效的估計與推論,主要假設如下:

  • 線性與模型設定正確:​反應變數的條件平均數可由所列自變數的線性組合表示。
  • 誤差平均數為零:E(εi∣X)=0E(\varepsilon_i\mid X)=0,亦即自變數與誤差項不相關。
  • 誤差互相獨立且變異數相同:Var⁡(εi∣X)=σ2\operatorname{Var}(\varepsilon_i\mid X)=\sigma^2,且不同觀測值的誤差互相獨立。
  • 無完全共線性:​自變數之間不存在完全線性依賴。
  • 常態性:​若要使用小樣本下的精確 tt 與 FF 檢定,另假設 εi∣X∼N(0,σ2)\varepsilon_i\mid X\sim N(0,\sigma^2)。

(4) ANOVA 表與整體顯著性檢定

整體顯著性檢定檢驗所有斜率係數是否同時為零:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

其他考古題