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

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

這一題的完整詳解

此題考驗對 P 值在假設檢定中的意義與應用的理解。P 值是衡量在虛無假設為真時,觀察到現有樣本結果或更極端結果的機率。

(A) P 值的定義正確。P 值是根據檢定統計量計算出來的,用來評估觀察到的數據與虛無假設的符合程度。
(B) P 值越小,表示觀察到的結果在虛無假設為真的情況下越不可能發生,因此我們有越強的證據反對虛無假設,越傾向於拒絕它。此敘述正確。
(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。信賴區間的機率是指在多次重複抽樣中,建構出的區間有多大的比例會包含真實的母體平均數。

🔒

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

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

免費註冊

第 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),它們是相等的。此敘述錯誤。

🔒

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

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

免費註冊

第 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」在此語境下可理解為足夠大),則樣本平均數的分佈會近似常態。

🔒

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

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

免費註冊

第 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)。

🔒

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

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

免費註冊

第 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
🔒

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

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

免費註冊

第 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

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

這一題的完整詳解

此題考驗樣本數的計算,以達到指定的信賴水準和誤差範圍。

當我們想要估計母體平均數 μ\mu 時,樣本平均數 xˉ\bar{x} 的抽樣分佈近似於常態分佈(感謝中央極限定理)。
其信賴區間的公式通常為:
xˉ±zα/2σn\bar{x} \pm z_{\alpha/2} \frac{\sigma}{\sqrt{n}}
其中:

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

誤差範圍 (Margin of Error, MOE) 是信賴區間的半寬,即 MOE=zα/2σnMOE = z_{\alpha/2} \frac{\sigma}{\sqrt{n}}。

題目要求:

  1. 信賴水準 (Confidence Level) = 95%
  2. 誤差範圍 (MOE) ≤5\le 5
  3. 母體標準差 σ≈20\sigma \approx 20

首先,找出 95% 信賴水準下的 zα/2z_{\alpha/2} 值。
信賴水準為 95%,表示 α=1−0.95=0.05\alpha = 1 - 0.95 = 0.05。
α/2=0.025\alpha/2 = 0.025。
查標準常態分佈表,對應於累積機率 1−0.025=0.9751 - 0.025 = 0.975 的 zz 值是 1.961.96。

🔒

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

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

免費註冊

第 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。
🔒

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

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

免費註冊

第 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)}

🔒

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

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

免費註冊

第 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 hype

🔒

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

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

免費註冊

第 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 的比例。

🔒

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

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

免費註冊

第 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
🔒

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

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

免費註冊

第 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。
🔒

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

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

免費註冊

第 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)

平均數與標準差為:

🔒

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

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

免費註冊

第 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。
🔒

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

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

免費註冊

第 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%)

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

這一題的完整詳解

此題考驗隨機變數的期望值、變異數、共變異數以及條件期望值的計算。題目給予了部分資訊,但其中有些資訊是矛盾或冗餘的,需要仔細釐清。

首先,我們分析題目給定的資訊:

  1. X,YX, Y 是隨機變數。
  2. E(X)=μxE(X) = \mu_x
  3. Var(X)=σx2Var(X) = \sigma_x^2
  4. E(Y)=μyE(Y) = \mu_y
  5. Var(Y)=σy2Var(Y) = \sigma_y^2
  6. E(XY)=2Y2E(XY) = 2Y^2
  7. E(Y∣X)=2YE(Y|X) = 2Y
  8. E(Y∣X)=3E(Y|X) = 3
  9. μx\mu_x and σx2\sigma_x^2 are unknown.
  10. Assume that E(X)=3E(X)=3 and σx2=2\sigma_x^2=2.

資訊的矛盾與釐清:

  • 資訊 9 說 μx\mu_x 和 σx2\sigma_x^2 是未知的。

  • 資訊 10 說假設 E(X)=3E(X)=3 和 σx2=2\sigma_x^2=2。
    這表示我們應該使用資訊 10 中的數值,即 μx=3\mu_x = 3 和 σx2=2\sigma_x^2 = 2。

  • 資訊 7 說 E(Y∣X)=2YE(Y|X) = 2Y。

  • 資訊 8 說 E(Y∣X)=3E(Y|X) = 3。
    這兩個條件是矛盾的。如果 E(Y∣X)=2YE(Y|X) = 2Y 是一個恆等式,那麼 E(Y∣X)E(Y|X) 的值就取決於 YY 的值,它本身是一個隨機變數。而 E(Y∣X)=3E(Y|X) = 3 是一個常數。
    一般情況下,E(Y∣X=x)E(Y|X=x) 是關於 xx 的函數。如果 E(Y∣X)=3E(Y|X)=3 恆成立,這意味著 YY 與 XX 無關,且 E(Y)=3E(Y)=3。
    如果 E(Y∣X)=2YE(Y|X)=2Y 恆成立,這意味著 E(Y∣X)E(Y|X) 是一個關於 YY 的函數。
    這兩個陳述不能同時為真,除非 YY 是一個常數。如果 YY 是常數,那麼 E(Y)=YE(Y) = Y 且 Var(Y)=0Var(Y)=0。
    如果 YY 是常數,且 E(Y∣X)=3E(Y|X) = 3,則 Y=3Y=3。
    如果 YY 是常數,且 E(Y∣X)=2YE(Y|X) = 2Y,則 Y=2YY=2Y,這意味著 Y=0Y=0。
    這兩個假設(Y=3Y=3 和 Y=0Y=0)是矛盾的。

    最常見的解釋是,題目可能想給出兩個獨立的條件,其中一個是錯誤的,或者需要根據上下文選擇。
    在給定 E(XY)=2Y2E(XY)=2Y^2 的情況下,如果 E(Y∣X)=3E(Y|X)=3 恆成立,那麼 E(Y)=3E(Y)=3。
    E(XY)=E[E(XY∣X)]E(XY) = E[E(XY|X)]。
    E(XY)=E[YE(X∣X)]E(XY) = E[Y E(X|X)] -- 這不是正確的鏈式法則。
    正確的鏈式法則:E(XY)=E[XE(Y∣X)]E(XY) = E[X E(Y|X)]。
    如果 E(Y∣X)=3E(Y|X) = 3,則 E(XY)=E[X×3]=3E(X)=3×3=9E(XY) = E[X \times 3] = 3 E(X) = 3 \times 3 = 9。
    但是,題目給定 E(XY)=2Y2E(XY) = 2Y^2。這意味著 E(XY)E(XY) 是一個隨機變數,而不是一個常數。
    這暗示了 YY 可能不是一個常數。

    另一個解釋是,題目中的 E(Y∣X)=2YE(Y|X)=2Y 和 E(Y∣X)=3E(Y|X)=3 是獨立的陳述,其中一個可能適用於某種情況,或者其中一個是印刷錯誤。
    讓我們假設 E(Y∣X)=3E(Y|X) = 3 是正確的,因為它是一個常數,比較容易處理。
    如果 E(Y∣X)=3E(Y|X) = 3,那麼 E(Y)=E[E(Y∣X)]=E[3]=3E(Y) = E[E(Y|X)] = E[3] = 3。
    那麼 E(XY)=E[XE(Y∣X)]=E[X×3]=3E(X)=3×3=9E(XY) = E[X E(Y|X)] = E[X \times 3] = 3 E(X) = 3 \times 3 = 9。
    但題目給定 E(XY)=2Y2E(XY) = 2Y^2。
    這又產生了矛盾。E(XY)E(XY) 必須是一個常數,但 2Y22Y^2 是一個隨機變數。
    除非 YY 是一個常數,但如果 YY 是常數,則 Y=3Y=3 (from E(Y∣X)=3E(Y|X)=3),則 E(XY)=E(3X)=3E(X)=9E(XY) = E(3X) = 3E(X) = 9。
    而 2Y2=2(32)=182Y^2 = 2(3^2) = 18。
    9≠189 \neq 18,所以 YY 不能是常數 3。

    如果我們假設 E(Y∣X)=2YE(Y|X) = 2Y 是正確的。
    那麼 E(Y)=E[E(Y∣X)]=E[2Y]=2E(Y)E(Y) = E[E(Y|X)] = E[2Y] = 2 E(Y)。
    這意味著 E(Y)=0E(Y) = 0。
    如果 E(Y)=0E(Y) = 0,那麼 μy=0\mu_y = 0。
    然後, E(XY)=E[XE(Y∣X)]=E[X(2Y)]=2E(XY)E(XY) = E[X E(Y|X)] = E[X (2Y)] = 2 E(XY)。
    這也意味著 E(XY)=0E(XY) = 0。
    但是,題目給定 E(XY)=2Y2E(XY) = 2Y^2。
    如果 E(XY)=0E(XY) = 0,那麼 E(2Y2)=0E(2Y^2) = 0,即 2E(Y2)=02 E(Y^2) = 0,所以 E(Y2)=0E(Y^2) = 0。
    如果 E(Y2)=0E(Y^2) = 0,由於 Var(Y)=E(Y2)−(E(Y))2Var(Y) = E(Y^2) - (E(Y))^2,且 E(Y)=0E(Y)=0,所以 Var(Y)=0−02=0Var(Y) = 0 - 0^2 = 0。
    這意味著 YY 是一個常數,且 Y=0Y=0。
    如果 Y=0Y=0 是常數,那麼 E(Y∣X)=2Y=2(0)=0E(Y|X) = 2Y = 2(0) = 0。
    這與 E(Y∣X)=3E(Y|X)=3 矛盾。

    結論:題目中的資訊存在嚴重的矛盾。
    最有可能的解釋是,有印刷錯誤,或者題目希望我們忽略某些資訊。
    讓我們嘗試一種可能的解釋:

    • 假設 E(X)=3E(X)=3 和 σx2=2\sigma_x^2=2 是確定的。
    • 假設 E(Y∣X)=3E(Y|X) = 3 是正確的 (因為它是一個常數)。
    • 假設 E(XY)=2Y2E(XY) = 2Y^2 是錯誤的,或者需要用 E(Y∣X)=3E(Y|X)=3 來推導。
    • 忽略 E(Y∣X)=2YE(Y|X) = 2Y。

    如果 E(Y∣X)=3E(Y|X)=3 恆成立,則 E(Y)=3E(Y)=3。
    並且 E(XY)=E[XE(Y∣X)]=E[X×3]=3E(X)=3×3=9E(XY) = E[X E(Y|X)] = E[X \times 3] = 3 E(X) = 3 \times 3 = 9。
    如果我們採用這個推導,那麼 E(XY)=9E(XY)=9。
    但是,題目給定 E(XY)=2Y2E(XY) = 2Y^2。這仍然是矛盾的,除非 2Y2=92Y^2=9 恆成立,這意味著 Y2=4.5Y^2 = 4.5, Y=±4.5Y=\pm\sqrt{4.5},這表示 YY 是一個常數,但是 E(Y∣X)=3E(Y|X)=3 則意味著 Y=3Y=3。32=9≠4.53^2 = 9 \neq 4.5。

    另一種可能的解釋:

    • 假設 E(XY)=2Y2E(XY) = 2Y^2 是正確的。
    • 假設 E(Y∣X)=2YE(Y|X) = 2Y 是正確的。
    • 忽略 E(Y∣X)=3E(Y|X) = 3。
    • 如上分析,這導出 E(Y)=0E(Y)=0, E(XY)=0E(XY)=0, E(Y2)=0E(Y^2)=0, Var(Y)=0Var(Y)=0, Y=0Y=0 (常數)。
    • 如果 Y=0Y=0 是常數,那麼 E(Y∣X)=2Y=0E(Y|X)=2Y=0。
    • 這與 E(Y∣X)=3E(Y|X)=3 矛盾。

    最後一種解釋,可能是題目想表達:

    • E(X)=3E(X)=3, Var(X)=2Var(X)=2
    • E(Y)=μyE(Y)= \mu_y, Var(Y)=σy2Var(Y)=\sigma_y^2
    • E(XY)=some valueE(XY) = \text{some value} (可能是常數)
    • E(Y∣X=x)=some function of xE(Y|X=x) = \text{some function of x}。
    • 題目給定的 E(XY)=2Y2E(XY)=2Y^2 和 E(Y∣X)=2YE(Y|X)=2Y, E(Y∣X)=3E(Y|X)=3 是混亂的。

    我將嘗試用最「標準」的統計學方法來處理,並假設其中一個矛盾的條件是主要依據。
    通常,關於 E(Y∣X)E(Y|X) 的陳述是分析共變異數的關鍵。

    假設 E(Y∣X)=3E(Y|X) = 3 是正確的。
    那麼 E(Y)=E[E(Y∣X)]=E[3]=3E(Y) = E[E(Y|X)] = E[3] = 3。
    Cov(X,Y)=E(XY)−E(X)E(Y)Cov(X, Y) = E(XY) - E(X)E(Y)。
    如果 E(Y∣X)=3E(Y|X)=3,則 E(XY)=E[XE(Y∣X)]=E[X×3]=3E(X)=3×3=9E(XY) = E[X E(Y|X)] = E[X \times 3] = 3 E(X) = 3 \times 3 = 9。
    那麼 Cov(X,Y)=9−(3×3)=0Cov(X, Y) = 9 - (3 \times 3) = 0。

🔒

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

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

免費註冊

第 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
🔒

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

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

免費註冊

第 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-R2R^2)、模型假設、ANOVA 表以及整體顯著性檢定。

Part (1): Find the values of R2R^2 and adj-R2R^2. (3%)

給定資訊:

  • 樣本數 n=18n = 18。
  • 獨立變數數量 k=4k = 4。
  • SSR (Sum of Squares due to Regression) = 1851.63。
  • SSE (Sum of Squares due to Error) = 1014.3。

首先,計算總平方和 (SST):
SST=SSR+SSESST = SSR + SSE
SST=1851.63+1014.3=2865.93SST = 1851.63 + 1014.3 = 2865.93

計算判定係數 R2R^2:
R2=SSRSSTR^2 = \frac{SSR}{SST}
R2=1851.632865.93≈0.64607R^2 = \frac{1851.63}{2865.93} \approx 0.64607

計算調整後的判定係數 adj-R2R^2:
adj-R2=1−SSE/(n−k−1)SST/(n−1)R^2 = 1 - \frac{SSE/(n-k-1)}{SST/(n-1)}
或者 adj-R2=1−(1−R2)n−1n−k−1R^2 = 1 - (1 - R^2) \frac{n-1}{n-k-1}

使用第二個公式計算:
n−1=18−1=17n-1 = 18 - 1 = 17 (總自由度)
n−k−1=18−4−1=13n-k-1 = 18 - 4 - 1 = 13 (殘差自由度)

adj-R2=1−(1−0.64607)1713R^2 = 1 - (1 - 0.64607) \frac{17}{13}
adj-R2=1−(0.35393)×1.30769R^2 = 1 - (0.35393) \times 1.30769
adj-R2=1−0.46283R^2 = 1 - 0.46283
adj-R2≈0.53717R^2 \approx 0.53717

結果:
R2≈0.646R^2 \approx 0.646
adj-R2≈0.537R^2 \approx 0.537

Part (2): Since adj-R2≤R2R^2 \le R^2, therefore adj-R2R^2 can be negative theoretically. Please prove. (5%)

首先,證明 adj-R2≤R2R^2 \le R^2。
R2=SSRSSTR^2 = \frac{SSR}{SST}
adj-R2=1−(1−R2)n−1n−k−1R^2 = 1 - (1 - R^2) \frac{n-1}{n-k-1}
由於 n>k+1n > k+1,所以 n−1>n−k−1n-1 > n-k-1。
因此,n−1n−k−1>1\frac{n-1}{n-k-1} > 1。
adj-R2=1−(1−R2)×(a number greater than 1)R^2 = 1 - (1 - R^2) \times (\text{a number greater than 1})
adj-R2=1−(a number greater than (1−R2))R^2 = 1 - (\text{a number greater than } (1-R^2))
adj-R2=1−(1−R2+some positive value)R^2 = 1 - (1 - R^2 + \text{some positive value})
adj-R2=R2−(some positive value)R^2 = R^2 - (\text{some positive value})
所以,adj-R2<R2R^2 < R^2 (當 n>k+1n>k+1 時)。
當 k=0k=0 時,adj-R2=R2R^2 = R^2。

接著,證明 adj-R2R^2 可能為負值。
adj-R2=1−SSE/(n−k−1)SST/(n−1)R^2 = 1 - \frac{SSE/(n-k-1)}{SST/(n-1)}
adj-R2=1−MSEMSTR^2 = 1 - \frac{MSE}{MS_T} (這裡的 MS_T 不是處理均方,而是 SST/(n-1) 稱為總均方)
adj-R2=1−SSE/(n−k−1)SST/(n−1)R^2 = 1 - \frac{SSE/(n-k-1)}{SST/(n-1)}
adj-R2=1−SSEn−k−1×n−1SSTR^2 = 1 - \frac{SSE}{n-k-1} \times \frac{n-1}{SST}
adj-R2=1−SSESST×n−1n−k−1R^2 = 1 - \frac{SSE}{SST} \times \frac{n-1}{n-k-1}
adj-R2=1−(1−R2)n−1n−k−1R^2 = 1 - (1-R^2) \frac{n-1}{n-k-1}

adj-R2R^2 會是負值,當 1<(1−R2)n−1n−k−11 < (1-R^2) \frac{n-1}{n-k-1}。
這意味著 1<SSE/(n−k−1)SST/(n−1)1 < \frac{SSE/(n-k-1)}{SST/(n-1)}。
也就是說,當誤差均方 (MSE) 相對於總均方 (MST) 非常大時,adj-R2R^2 就會是負值。
MSE=SSE/(n−k−1)MSE = SSE/(n-k-1)
MST=SST/(n−1)MST = SST/(n-1)

adj-R2R^2 的計算公式為:
adj-R2=1−SSESSTn−1n−k−1R^2 = 1 - \frac{SSE}{SST} \frac{n-1}{n-k-1}
adj-R2R^2 為負值,當 1<SSESSTn−1n−k−11 < \frac{SSE}{SST} \frac{n-1}{n-k-1}
adj-R2R^2 為負值,當 SSTn−1<SSEn−k−1\frac{SST}{n-1} < \frac{SSE}{n-k-1}
adj-R2R^2 為負值,當 MST<MSEMST < MSE。

在迴歸分析中,MSE 是對母體誤差變異數 σ2\sigma^2 的估計。
MST 是總變異數 σtotal2\sigma_{total}^2 的估計。
如果 MSE > MST,表示模型中的迴歸項 SSR 對於解釋總變異 SST 的貢獻很小,甚至可能因為隨機波動而導致 MSE 大於 MST。
這通常發生在模型中加入了過多的解釋變數,而這些變數對因變數的解釋力很弱時。
adj-R2R^2 懲罰了模型中不必要的變數,當加入的變數對 R2R^2 的提升不足以彌補自由度的損失時,adj-R2R^2 就會比 R2R^2 下降更多,甚至可能變為負值。
adj-R2<0R^2 < 0 意味著模型對數據的擬合程度甚至不如一個僅包含截距項的簡單模型(即預測值都是樣本平均值 yˉ\bar{y} 時的 SSE)。

證明:
adj-R2=1−SSESSTn−1n−k−1R^2 = 1 - \frac{SSE}{SST} \frac{n-1}{n-k-1}
adj-R2<0  ⟺  1<SSESSTn−1n−k−1R^2 < 0 \iff 1 < \frac{SSE}{SST} \frac{n-1}{n-k-1}
  ⟺  SSTn−1<SSEn−k−1\iff \frac{SST}{n-1} < \frac{SSE}{n-k-1}
  ⟺  MST<MSE\iff MST < MSE
其中 MST=SST/(n−1)MST = SST/(n-1) 是總變異數的估計,而 MSE=SSE/(n−k−1)MSE = SSE/(n-k-1) 是誤差變異數的估計。
當模型解釋力很弱,SSR 相對較小時,SSE 相對較大。如果 SSE 的增加幅度超過了 SSTSST 的增加幅度,並且考慮到自由度的調整,就可能出現 MST<MSEMST < MSE 的情況,從而導致 adj-R2R^2 為負。

Part (3): Please write down the regression model and key assumptions for valid results. (6%)

迴歸模型 (Regression Model):
對於有 kk 個獨立變數 x1,x2,…,xkx_1, x_2, \dots, x_k,因變數 yy 的多元線性迴歸模型可以寫成:
yi=β0+β1xi1+β2xi2+⋯+βkxik+ϵiy_i = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} + \dots + \beta_k x_{ik} + \epsilon_i, for i=1,2,…,ni = 1, 2, \dots, n
其中:

  • yiy_i 是第 ii 個觀測值的因變數。
  • xi1,xi2,…,xikx_{i1}, x_{i2}, \dots, x_{ik} 是第 ii 個觀測值對應的 kk 個獨立變數的值。
  • β0\beta_0 是截距項 (intercept)。
  • β1,β2,…,βk\beta_1, \beta_2, \dots, \beta_k 是迴歸係數 (regression coefficients),代表當其他獨立變數固定時,對應獨立變數每改變一個單位,因變數預期改變的量。
  • ϵi\epsilon_i 是隨機誤差項 (random error term),代表模型未能解釋的變異。
🔒

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

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

免費註冊

第 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
🔒

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

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

免費註冊

第 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
🔒

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

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

免費註冊

其他考古題