114 年 國立臺北大學統計學系碩士班《統計學》

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

第 1 題

Let {Y1,…,Yn}\{Y_1, \ldots, Y_n\} be a random sample from the normal distribution with mean μ\mu and known variance σ2\sigma^2. The hypotheses are H0:μ=50H_0: \mu = 50 vs Ha:μ>50H_a: \mu > 50 and the rejection region R={yˉ:yˉ>50+a}R = \{\bar{y}: \bar{y} > 50 + a\}. At 0.050.05 level of significance, the value of aa is ____ and the power of the test for true μ=60\mu = 60 is ____. (5%) (If the value cannot be calculated, use cumulative distribution functions or other ways to express it.)

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

這一題的完整詳解

本題在考驗單一樣本平均值的 ZZ 檢定。我們需要根據顯著水準和拒絕域來計算臨界值 aa,並進一步計算檢定的功效。

核心觀念: 單一樣本 ZZ 檢定、顯著水準、拒絕域、檢定功效。

步驟一:求解臨界值 aa

已知樣本來自常態分配,且母體變異數 σ2\sigma^2 已知。根據題意,檢定為單尾檢定(右尾),顯著水準 α=0.05\alpha = 0.05。
拒絕域為 R={yˉ:yˉ>50+a}R = \{\bar{y}: \bar{y} > 50 + a\}。
在虛無假設 H0:μ=50H_0: \mu = 50 為真時,樣本平均數 yˉ\bar{y} 的抽樣分配為 yˉ∼N(μ=50,σ2/n)\bar{y} \sim N(\mu=50, \sigma^2/n)。
標準化後,Z=yˉ−μσ/n∼N(0,1)Z = \frac{\bar{y} - \mu}{\sigma/\sqrt{n}} \sim N(0, 1)。
拒絕域可以轉換為標準化變數 ZZ 的形式:
yˉ>50+a  ⟹  yˉ−50σ/n>50+a−50σ/n  ⟹  Z>aσ/n\bar{y} > 50 + a \implies \frac{\bar{y} - 50}{\sigma/\sqrt{n}} > \frac{50 + a - 50}{\sigma/\sqrt{n}} \implies Z > \frac{a}{\sigma/\sqrt{n}}。
由於顯著水準為 α=0.05\alpha = 0.05,且為右尾檢定,我們有 P(Z>aσ/n)=0.05P(Z > \frac{a}{\sigma/\sqrt{n}}) = 0.05。
查標準常態分配表,當 P(Z>zα)=0.05P(Z > z_\alpha) = 0.05 時,zα≈1.645z_\alpha \approx 1.645。
因此,aσ/n=1.645\frac{a}{\sigma/\sqrt{n}} = 1.645。
所以,a=1.645σna = 1.645 \frac{\sigma}{\sqrt{n}}。

步驟二:計算檢定功效

檢定功效 (Power of the test) 定義為在對立假設為真時,正確拒絕虛無假設的機率。
即,Power =P(Reject H0∣μ=60)= P(\text{Reject } H_0 | \mu = 60)。
在虛無假設 H0:μ=50H_0: \mu = 50 下,拒絕域為 yˉ>50+a\bar{y} > 50 + a。

🔒

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

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

免費註冊

第 2 題

The probability density functions for X and (Y given X) are given below.
PX(x)=λe−λx!P_X(x) = \frac{\lambda e^{-\lambda}}{x!} where λ>0\lambda > 0 and x=1,2,…x = 1, 2, \ldots
PY∣X(y∣x)=(xy)py(1−p)x−yP_{Y|X}(y|x) = \binom{x}{y} p^y (1-p)^{x-y} where 0<p<10 < p < 1 and y=0,1,2,…,xy = 0, 1, 2, \ldots, x.
The probability density function of Y is ____ (5%) and the variance of Y is ____ (5%).

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

這一題的完整詳解

核心觀念

本題考查「二項分配的隨機試驗次數服從卜瓦松分配」的 thinning property:

  • X∼Poisson⁡(λ)X\sim\operatorname{Poisson}(\lambda);
  • 給定 X=xX=x 時,Y∣X=x∼Binomial⁡(x,p)Y\mid X=x\sim\operatorname{Binomial}(x,p);
  • 每一個原本被計入 XX 的事件,以機率 pp 被計入 YY,因此 YY 仍服從卜瓦松分配,參數變為 λp\lambda p。

題目中的 PX(x)P_X(x) 應為標準卜瓦松機率質量函數

PX(x)=e−λλxx!,x=0,1,2,…P_X(x)=\frac{e^{-\lambda}\lambda^x}{x!},\qquad x=0,1,2,\ldots

原題文字少寫了 λx\lambda^x,且卜瓦松分配的支撐通常包含 x=0x=0。

解題方法:直接求邊際分配

由全機率公式,

PY(y)=∑x=y∞PY∣X(y∣x)PX(x).P_Y(y)=\sum_{x=y}^{\infty}P_{Y\mid X}(y\mid x)P_X(x).

代入題目中的條件分配與卜瓦松分配:

PY(y)=∑x=y∞(xy)py(1−p)x−ye−λλxx!.\begin{aligned} P_Y(y) &=\sum_{x=y}^{\infty} \binom{x}{y}p^y(1-p)^{x-y} \frac{e^{-\lambda}\lambda^x}{x!}. \end{aligned}

利用

(xy)1x!=1y!(x−y)!,\binom{x}{y}\frac{1}{x!} =\frac{1}{y!(x-y)!},

得

PY(y)=∑x=y∞e−λλxpy(1−p)x−yy!(x−y)!.P_Y(y) = \sum_{x=y}^{\infty} \frac{e^{-\lambda}\lambda^x p^y(1-p)^{x-y}} {y!(x-y)!}.

令 k=x−yk=x-y,則 x=k+yx=k+y,因此

PY(y)=e−λ(λp)yy!∑k=0∞{λ(1−p)}kk!=e−λ(λp)yy!eλ(1−p)=e−λp(λp)yy!,y=0,1,2,…\begin{aligned} P_Y(y) &= \frac{e^{-\lambda}(\lambda p)^y}{y!} \sum_{k=0}^{\infty} \frac{\{\lambda(1-p)\}^k}{k!}\\ &= \frac{e^{-\lambda}(\lambda p)^y}{y!} e^{\lambda(1-p)}\\ &= \frac{e^{-\lambda p}(\lambda p)^y}{y!}, \qquad y=0,1,2,\ldots \end{aligned}

這正是參數為 λp\lambda p 的卜瓦松分配:

Y∼Poisson⁡(λp).Y\sim\operatorname{Poisson}(\lambda p).

變異數

使用全變異數公式:

🔒

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

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

免費註冊

第 3 題

Suppose that each of two investments for a portfolio has a 4% chance of a loss of 5million,a25 million, a 2% chance of a loss of 1 million, and 94% chance of a gain of $2 million. Two investments are independent of each other. The 10th percentile for the distribution of this portfolio investment return is ____ (5%).

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

這一題的完整詳解

本題考驗隨機變數的線性組合的機率分配,以及分位數的計算。

核心觀念: 獨立隨機變數的線性組合、機率分配的計算、分位數的定義。

步驟一:定義單一投資的回報

設 X1X_1 為第一個投資的回報, X2X_2 為第二個投資的回報。
已知每個投資有以下幾種可能的回報:

  1. 損失 55 百萬:回報為 −5-5
  2. 損失 11 百萬:回報為 −1-1
  3. 獲得 22 百萬:回報為 22

每個投資的回報分配如下:

  • P(Xi=−5)=0.04P(X_i = -5) = 0.04
  • P(Xi=−1)=0.02P(X_i = -1) = 0.02
  • P(Xi=2)=0.94P(X_i = 2) = 0.94

驗證總機率:0.04+0.02+0.94=1.000.04 + 0.02 + 0.94 = 1.00。

步驟二:計算單一投資的期望值和變異數(非必需,但有助理解)

E[Xi]=(−5)(0.04)+(−1)(0.02)+(2)(0.94)E[X_i] = (-5)(0.04) + (-1)(0.02) + (2)(0.94)
E[Xi]=−0.20−0.02+1.88=1.66E[X_i] = -0.20 - 0.02 + 1.88 = 1.66 (百萬)

E[Xi2]=(−5)2(0.04)+(−1)2(0.02)+(2)2(0.94)E[X_i^2] = (-5)^2(0.04) + (-1)^2(0.02) + (2)^2(0.94)
E[Xi2]=(25)(0.04)+(1)(0.02)+(4)(0.94)E[X_i^2] = (25)(0.04) + (1)(0.02) + (4)(0.94)
E[Xi2]=1.00+0.02+3.76=4.78E[X_i^2] = 1.00 + 0.02 + 3.76 = 4.78

Var(Xi)=E[Xi2]−(E[Xi])2=4.78−(1.66)2=4.78−2.7556=2.0244Var(X_i) = E[X_i^2] - (E[X_i])^2 = 4.78 - (1.66)^2 = 4.78 - 2.7556 = 2.0244

步驟三:定義投資組合的回報

投資組合的總回報為 T=X1+X2T = X_1 + X_2。
由於 X1X_1 和 X2X_2 是獨立的,且具有相同的機率分配,我們可以計算 TT 的所有可能值及其機率。

X1X_1 的可能值:−5,−1,2-5, -1, 2
X2X_2 的可能值:−5,−1,2-5, -1, 2

T=X1+X2T = X_1 + X_2 的所有可能組合及其機率:

  1. X1=−5,X2=−5  ⟹  T=−10X_1 = -5, X_2 = -5 \implies T = -10
    P(T=−10)=P(X1=−5)P(X2=−5)=(0.04)(0.04)=0.0016P(T = -10) = P(X_1 = -5) P(X_2 = -5) = (0.04)(0.04) = 0.0016
  2. X1=−5,X2=−1  ⟹  T=−6X_1 = -5, X_2 = -1 \implies T = -6
    P(T=−6)=P(X1=−5)P(X2=−1)=(0.04)(0.02)=0.0008P(T = -6) = P(X_1 = -5) P(X_2 = -1) = (0.04)(0.02) = 0.0008
  3. X1=−5,X2=2  ⟹  T=−3X_1 = -5, X_2 = 2 \implies T = -3
    P(T=−3)=P(X1=−5)P(X2=2)=(0.04)(0.94)=0.0376P(T = -3) = P(X_1 = -5) P(X_2 = 2) = (0.04)(0.94) = 0.0376
  4. X1=−1,X2=−5  ⟹  T=−6X_1 = -1, X_2 = -5 \implies T = -6
    P(T=−6)=P(X1=−1)P(X2=−5)=(0.02)(0.04)=0.0008P(T = -6) = P(X_1 = -1) P(X_2 = -5) = (0.02)(0.04) = 0.0008
  5. X1=−1,X2=−1  ⟹  T=−2X_1 = -1, X_2 = -1 \implies T = -2
    P(T=−2)=P(X1=−1)P(X2=−1)=(0.02)(0.02)=0.0004P(T = -2) = P(X_1 = -1) P(X_2 = -1) = (0.02)(0.02) = 0.0004
🔒

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

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

免費註冊

第 4 題

Consider a random sample {x1,…,xn}\{x_1, \ldots, x_n\} from the distribution with mean μ\mu and known variance σ2\sigma^2. Define xˉ=1n∑i=1nxi\bar{x} = \frac{1}{n}\sum_{i=1}^n x_i, s12=1n−1∑i=1n(xi−μ)2s_1^2 = \frac{1}{n-1}\sum_{i=1}^n (x_i - \mu)^2, and s22=1n−2∑i=1n(xi−xˉ)2s_2^2 = \frac{1}{n-2}\sum_{i=1}^n (x_i - \bar{x})^2. If n=60n=60, the distributions of n−1σ2s12\frac{n-1}{\sigma^2}s_1^2 and n−2σ2s22\frac{n-2}{\sigma^2}s_2^2 are ____ and ____, respectively. (10%) (Justify your answers)

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

這一題的完整詳解

核心觀念

本題考查常態母體下兩個平方和的卡方分配:

  1. 若 X1,…,XnX_1,\ldots,X_n 為來自 N(μ,σ2)N(\mu,\sigma^2) 的隨機樣本,且 μ\mu 已知,則
    1σ2∑i=1n(Xi−μ)2∼χn2.\frac{1}{\sigma^2}\sum_{i=1}^n(X_i-\mu)^2\sim\chi^2_n.

  2. 若母平均數未知,以樣本平均數 Xˉ\bar X 估計,則
    1σ2∑i=1n(Xi−Xˉ)2∼χn−12.\frac{1}{\sigma^2}\sum_{i=1}^n(X_i-\bar X)^2\sim\chi^2_{n-1}.

其中,自由度減少 11 是因為估計了 μ\mu。

解題方法

題目定義

s12=1n−1∑i=1n(Xi−μ)2.s_1^2=\frac{1}{n-1}\sum_{i=1}^n(X_i-\mu)^2.

因此

n−1σ2s12=1σ2∑i=1n(Xi−μ)2.\frac{n-1}{\sigma^2}s_1^2 = \frac{1}{\sigma^2}\sum_{i=1}^n(X_i-\mu)^2.

由於中心是真實且已知的母平均數 μ\mu,沒有使用樣本資料估計參數,所以自由度為 nn。當 n=60n=60 時,

n−1σ2s12∼χ602.\frac{n-1}{\sigma^2}s_1^2\sim\chi^2_{60}.

再看

s22=1n−2∑i=1n(Xi−Xˉ)2.s_2^2=\frac{1}{n-2}\sum_{i=1}^n(X_i-\bar X)^2.

因此

n−2σ2s22=1σ2∑i=1n(Xi−Xˉ)2.\frac{n-2}{\sigma^2}s_2^2 = \frac{1}{\sigma^2}\sum_{i=1}^n(X_i-\bar X)^2.
🔒

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

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

免費註冊

第 5 題

Consider a population of five weights identical in appearance but weighing 1, 3, 5, 7 and 9 ounces. The variance for the population (σ2\sigma^2) is ____ (5%). Sampling without replacement from the above population with a sample size of 2 produces ten possible samples. Using the ten sample mean values to calculate the variance of Xˉ\bar{X}, it is ____ (5%). Why is this value not the same as σ2/n\sigma^2/n?

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

這一題的完整詳解

核心觀念

本題考查兩個重點:

  1. 有限母體變異數
  2. 不放回抽樣下,樣本平均數 Xˉ\bar X 的抽樣分配與變異數

若母體大小為 NN,抽取樣本數為 nn,且採用不放回簡單隨機抽樣,則:

Var⁡(Xˉ)=σ2n(N−nN−1)\operatorname{Var}(\bar X) = \frac{\sigma^2}{n} \left(\frac{N-n}{N-1}\right)

其中

N−nN−1\frac{N-n}{N-1}

稱為有限母體修正因子(finite population correction, FPC)。


解題方法一:先求母體變異數

母體為:

1, 3, 5, 7, 91,\ 3,\ 5,\ 7,\ 9

母體平均數為:

μ=1+3+5+7+95=5\mu=\frac{1+3+5+7+9}{5}=5

母體變異數的定義為:

σ2=1N∑i=1N(xi−μ)2\sigma^2=\frac{1}{N}\sum_{i=1}^{N}(x_i-\mu)^2

因此:

σ2=(1−5)2+(3−5)2+(5−5)2+(7−5)2+(9−5)25\sigma^2 = \frac{(1-5)^2+(3-5)^2+(5-5)^2+(7-5)^2+(9-5)^2}{5} =16+4+0+4+165=405=8= \frac{16+4+0+4+16}{5} = \frac{40}{5} = 8

所以第一個空格為:

σ2=8\boxed{\sigma^2=8}

解題方法二:列出十個可能樣本與樣本平均數

由五個物體中不放回抽取兩個,樣本數為:

(52)=10\binom{5}{2}=10

十個樣本及其樣本平均數如下:

樣本Xˉ\bar X
(1,3)(1,3)22
(1,5)(1,5)33
(1,7)(1,7)44
(1,9)(1,9)55
(3,5)(3,5)44
(3,7)(3,7)55
(3,9)(3,9)66
(5,7)(5,7)66
(5,9)(5,9)77
(7,9)(7,9)88

樣本平均數的平均值為:

E(Xˉ)=2+3+4+5+4+5+6+6+7+810=5010=5E(\bar X) = \frac{2+3+4+5+4+5+6+6+7+8}{10} = \frac{50}{10} = 5

這也符合不放回簡單隨機抽樣下:

E(Xˉ)=μ=5E(\bar X)=\mu=5

接著計算樣本平均數的變異數:

Var⁡(Xˉ)=110∑j=110(xˉj−5)2\operatorname{Var}(\bar X) = \frac{1}{10}\sum_{j=1}^{10}(\bar x_j-5)^2 =(2−5)2+(3−5)2+(4−5)2+(5−5)2+(4−5)210= \frac{(2-5)^2+(3-5)^2+(4-5)^2+(5-5)^2+(4-5)^2} {10} +(5−5)2+(6−5)2+(6−5)2+(7−5)2+(8−5)210\quad+ \frac{(5-5)^2+(6-5)^2+(6-5)^2+(7-5)^2+(8-5)^2}{10} =9+4+1+0+1+0+1+1+4+910=3010=3= \frac{9+4+1+0+1+0+1+1+4+9}{10} = \frac{30}{10} = 3
🔒

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

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

免費註冊

第 II. 1. (1) 題5 分

A college received applications from prospective students. The application form contains a variety of information including gender, the individual's Scholastic Aptitude Test (SAT) score and whether or not the student is in-state. SAT scores are normally distributed. The results are in the following table.

Sample sizenumber of students are in-stateSAT score (mean)SAT score (standard deviation)
male36161300
female16101360

(1) Conduct a statistical test to determine whether there is a significant difference between the variances in the SAT score of male and female students. Report the test statistic and make a conclusion (reject or not reject the null hypothesis). (5%)

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

這一題的完整詳解

本題考驗對兩個獨立常態母體變異數的 FF 檢定。

核心觀念: 兩個獨立樣本變異數的 FF 檢定。

步驟一:設定虛無假設與對立假設

我們要檢定的是男性和女性 SAT 分數變異數是否存在顯著差異。
虛無假設 H0H_0:男性與女性 SAT 分數的母體變異數相等。
對立假設 HaH_a:男性與女性 SAT 分數的母體變異數不相等。

數學表示:
H0:σ12=σ22H_0: \sigma_1^2 = \sigma_2^2
Ha:σ12≠σ22H_a: \sigma_1^2 \neq \sigma_2^2

其中 σ12\sigma_1^2 是男性 SAT 分數的母體變異數,σ22\sigma_2^2 是女性 SAT 分數的母體變異數。

步驟二:識別樣本數據

  • 男性樣本:n1=36n_1 = 36, s1=90s_1 = 90。樣本變異數 s12=902=8100s_1^2 = 90^2 = 8100。
  • 女性樣本:n2=16n_2 = 16, s2=130s_2 = 130。樣本變異數 s22=1302=16900s_2^2 = 130^2 = 16900。

步驟三:計算檢定統計量

兩個獨立常態母體變異數的 ratio 的檢定,我們使用 FF 檢定統計量:
F=s12s22F = \frac{s_1^2}{s_2^2} 或 F=s22s12F = \frac{s_2^2}{s_1^2}。
通常,我們將較大的樣本變異數放在分子,以進行右尾檢定,並調整自由度。
這裡 s22=16900s_2^2 = 16900 較大,s12=8100s_1^2 = 8100 較小。
所以,我們計算 F=s22s12F = \frac{s_2^2}{s_1^2}。

F=169008100≈2.0864F = \frac{16900}{8100} \approx 2.0864。

自由度:
分子自由度 df1=n2−1=16−1=15df_1 = n_2 - 1 = 16 - 1 = 15。
分母自由度 df2=n1−1=36−1=35df_2 = n_1 - 1 = 36 - 1 = 35。

步驟四:決定顯著水準與臨界值

題目沒有明確指定顯著水準,但通常在 II. 問答題部分,除非另有說明,顯著水準為 α=0.05\alpha = 0.05。
由於這是雙尾檢定 (Ha:σ12≠σ22H_a: \sigma_1^2 \neq \sigma_2^2),我們需要將 α\alpha 分配到兩邊,即 α/2=0.025\alpha/2 = 0.025。
我們需要尋找 Fα/2,df1,df2F_{\alpha/2, df_1, df_2} 和 F1−α/2,df1,df2F_{1-\alpha/2, df_1, df_2}。
由於我們將較大的變異數放在分子,我們只需要考慮右尾臨界值。
臨界值 F0.025,15,35F_{0.025, 15, 35}。

🔒

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

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

免費註冊

第 II. 1. (2) 題5 分

(2) Based on the result of previous question, conduct a statistical test to determine whether the mean SAT score of male students is significantly LOWER than the mean SAT score of female students. Report the test statistic and make a conclusion (reject or not reject the null hypothesis). (5%)

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

這一題的完整詳解

本題考驗兩個獨立常態母體平均值的 tt 檢定,特別是單尾檢定。

核心觀念: 兩個獨立樣本 tt 檢定(變異數相等或不等)。

步驟一:設定虛無假設與對立假設

我們要檢定的是男性 SAT 平均分數是否顯著低於女性 SAT 平均分數。
虛無假設 H0H_0:男性與女性 SAT 分數的母體平均數相等。
對立假設 HaH_a:男性 SAT 的母體平均數顯著低於女性 SAT 的母體平均數。

數學表示:
H0:μ1=μ2H_0: \mu_1 = \mu_2 (或 μ1−μ2=0\mu_1 - \mu_2 = 0)
Ha:μ1<μ2H_a: \mu_1 < \mu_2 (或 μ1−μ2<0\mu_1 - \mu_2 < 0)

其中 μ1\mu_1 是男性 SAT 分數的母體平均數,μ2\mu_2 是女性 SAT 分數的母體平均數。
這是一個左尾檢定。

步驟二:識別樣本數據

  • 男性樣本:n1=36n_1 = 36, xˉ1=1300\bar{x}_1 = 1300, s1=90s_1 = 90, s12=8100s_1^2 = 8100。
  • 女性樣本:n2=16n_2 = 16, xˉ2=1360\bar{x}_2 = 1360, s2=130s_2 = 130, s22=16900s_2^2 = 16900。

步驟三:判斷是否需要進行變異數相等檢定

在進行 tt 檢定之前,我們需要知道是否可以假設兩個母體變異數相等。
在上一題 (II. 1. (1)) 中,我們進行了 FF 檢定來比較兩個母體變異數。
F=s22s12≈2.0864F = \frac{s_2^2}{s_1^2} \approx 2.0864,自由度為 (15,35)(15, 35)。
臨界值 F0.025,15,35≈2.089F_{0.025, 15, 35} \approx 2.089。
由於 2.0864<2.0892.0864 < 2.089,我們沒有拒絕虛無假設 σ12=σ22\sigma_1^2 = \sigma_2^2。
因此,在這個問題中,我們可以假設兩個母體變異數相等,並使用合併變異數的 tt 檢定公式。

步驟四:計算合併變異數 sp2s_p^2

當假設 σ12=σ22\sigma_1^2 = \sigma_2^2 時,合併變異數 sp2s_p^2 為:
sp2=(n1−1)s12+(n2−1)s22n1+n2−2s_p^2 = \frac{(n_1-1)s_1^2 + (n_2-1)s_2^2}{n_1 + n_2 - 2}
sp2=(36−1)(902)+(16−1)(1302)36+16−2s_p^2 = \frac{(36-1)(90^2) + (16-1)(130^2)}{36 + 16 - 2}
sp2=(35)(8100)+(15)(16900)50s_p^2 = \frac{(35)(8100) + (15)(16900)}{50}
sp2=283500+25350050s_p^2 = \frac{283500 + 253500}{50}
sp2=53700050=10740s_p^2 = \frac{537000}{50} = 10740。

步驟五:計算 tt 檢定統計量

t=(xˉ1−xˉ2)−(μ1−μ2)sp1n1+1n2t = \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)}{s_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}
在虛無假設下,(μ1−μ2)=0(\mu_1 - \mu_2) = 0。
sp=sp2=10740≈103.634s_p = \sqrt{s_p^2} = \sqrt{10740} \approx 103.634。

t=(1300−1360)−0103.634136+116t = \frac{(1300 - 1360) - 0}{103.634 \sqrt{\frac{1}{36} + \frac{1}{16}}}
t=−60103.6340.027778+0.0625t = \frac{-60}{103.634 \sqrt{0.027778 + 0.0625}}
t=−60103.6340.090278t = \frac{-60}{103.634 \sqrt{0.090278}}
t=−60103.634×0.30046t = \frac{-60}{103.634 \times 0.30046}
t=−6031.127t = \frac{-60}{31.127}
t≈−1.9275t \approx -1.9275。

🔒

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

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

免費註冊

第 II. 1. (3) 題5 分

(3) Are the proportions of in-state students the same for male and female students? Report the test statistic and P-value. (5%)

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

這一題的完整詳解

本題考驗兩個獨立樣本比例的卡方檢定(或 zz 檢定)。

核心觀念: 兩個比例的卡方檢定,或使用標準常態 zz 檢定。

步驟一:設定虛無假設與對立假設

我們要檢定的是男性與女性學生中,州內學生比例是否相同。
虛無假設 H0H_0: 男性與女性學生中,州內學生的比例相同 (p1=p2p_1 = p_2)。
對立假設 HaH_a: 男性與女性學生中,州內學生的比例不同 (p1≠p2p_1 \neq p_2)。

其中 p1p_1 是男性學生中州內學生的比例,p2p_2 是女性學生中州內學生的比例。
這是一個雙尾檢定。

步驟二:整理數據

從表格中提取所需數據:

  • 男性:樣本總數 n1=36n_1 = 36,州內學生數 x1=16x_1 = 16。
  • 女性:樣本總數 n2=16n_2 = 16,州內學生數 x2=10x_2 = 10。

步驟三:計算樣本比例

  • 男性州內比例 p^1=x1n1=1636≈0.4444\hat{p}_1 = \frac{x_1}{n_1} = \frac{16}{36} \approx 0.4444。
  • 女性州內比例 p^2=x2n2=1016=0.6250\hat{p}_2 = \frac{x_2}{n_2} = \frac{10}{16} = 0.6250。

步驟四:計算合併比例 p^\hat{p}

在虛無假設下,我們估計所有學生的州內學生比例。
合併州內學生數 x=x1+x2=16+10=26x = x_1 + x_2 = 16 + 10 = 26。
合併樣本總數 n=n1+n2=36+16=52n = n_1 + n_2 = 36 + 16 = 52。
合併比例 p^=xn=2652=0.5\hat{p} = \frac{x}{n} = \frac{26}{52} = 0.5。

步驟五:計算檢定統計量

我們可以使用卡方檢定或 zz 檢定。

方法一:卡方檢定

卡方檢定用於比較兩個或多個類別變數的獨立性。在這裡,我們檢定「性別」和「是否為州內學生」是否獨立。
首先,構建期望次數表:

GenderIn-state (Observed)Out-of-state (Observed)Total
Male1636−16=2036 - 16 = 2036
Female1016−10=616 - 10 = 616
Total2620+6=2620 + 6 = 2652

計算期望次數 Eij=Row Totali×Column TotaljGrand TotalE_{ij} = \frac{\text{Row Total}_i \times \text{Column Total}_j}{\text{Grand Total}}:

  • Male, In-state: E11=36×2652=36×12=18E_{11} = \frac{36 \times 26}{52} = \frac{36 \times 1}{2} = 18
  • Male, Out-of-state: E12=36×2652=18E_{12} = \frac{36 \times 26}{52} = 18
  • Female, In-state: E21=16×2652=16×12=8E_{21} = \frac{16 \times 26}{52} = \frac{16 \times 1}{2} = 8
  • Female, Out-of-state: E22=16×2652=8E_{22} = \frac{16 \times 26}{52} = 8

計算卡方統計量 χ2=∑(Oij−Eij)2Eij\chi^2 = \sum \frac{(O_{ij} - E_{ij})^2}{E_{ij}}:
χ2=(16−18)218+(20−18)218+(10−8)28+(6−8)28\chi^2 = \frac{(16-18)^2}{18} + \frac{(20-18)^2}{18} + \frac{(10-8)^2}{8} + \frac{(6-8)^2}{8}

🔒

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

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

免費註冊

第 II. 1. (4) 題5 分

(4) Construct a 95% confidence interval for the difference of the proportion of in-state students for male and female students. (5%)

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

這一題的完整詳解

本題考驗兩個獨立比例的信賴區間建構。

核心觀念: 兩個比例差的信賴區間。

步驟一:識別樣本數據與目標

我們要建構男性與女性學生中,州內學生比例差異的 95% 信賴區間。
樣本比例差異為 p^1−p^2\hat{p}_1 - \hat{p}_2。

  • 男性:n1=36n_1 = 36, x1=16x_1 = 16, p^1=16/36≈0.4444\hat{p}_1 = 16/36 \approx 0.4444。
  • 女性:n2=16n_2 = 16, x2=10x_2 = 10, p^2=10/16=0.6250\hat{p}_2 = 10/16 = 0.6250。

信賴水準為 95%,所以 α=1−0.95=0.05\alpha = 1 - 0.95 = 0.05。
由於是雙尾信賴區間,我們需要 zα/2=z0.025z_{\alpha/2} = z_{0.025}。

步驟二:計算樣本比例差異

比例差異 =p^1−p^2=0.4444−0.6250=−0.1806= \hat{p}_1 - \hat{p}_2 = 0.4444 - 0.6250 = -0.1806。

步驟三:計算標準誤

在建構比例差的信賴區間時,我們使用合併比例 p^\hat{p} 來估計標準誤,因為我們通常假設虛無假設下比例相等。
從上題 (II. 1. (3)),我們計算出合併比例 p^=0.5\hat{p} = 0.5。

標準誤 (Standard Error, SE) 的公式為:
SE(p^1−p^2)=p^(1−p^)(1n1+1n2)SE(\hat{p}_1 - \hat{p}_2) = \sqrt{\hat{p}(1-\hat{p})(\frac{1}{n_1} + \frac{1}{n_2})}
SE=0.5(1−0.5)(136+116)SE = \sqrt{0.5(1-0.5)(\frac{1}{36} + \frac{1}{16})}
SE=0.25×(0.027778+0.0625)SE = \sqrt{0.25 \times (0.027778 + 0.0625)}
SE=0.25×0.090278SE = \sqrt{0.25 \times 0.090278}
SE=0.0225695≈0.15023SE = \sqrt{0.0225695} \approx 0.15023。

步驟四:尋找臨界 zz 值

對於 95% 信賴區間,α=0.05\alpha = 0.05,α/2=0.025\alpha/2 = 0.025。
臨界 zz 值 z0.025=1.96z_{0.025} = 1.96。

步驟五:計算信賴區間

信賴區間的公式為:
(點估計) ±\pm (臨界值) ×\times (標準誤)
(p^1−p^2)±zα/2×SE(p^1−p^2)(\hat{p}_1 - \hat{p}_2) \pm z_{\alpha/2} \times SE(\hat{p}_1 - \hat{p}_2)

信賴區間 =−0.1806±1.96×0.15023= -0.1806 \pm 1.96 \times 0.15023
信賴區間 =−0.1806±0.29445= -0.1806 \pm 0.29445

🔒

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

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

免費註冊

第 II. 2. (1) 題5 分

A researcher wishes to try three different techniques to lower the blood pressure of individual diagnosed with high blood pressure. The subjects are randomly assigned to three groups. The first group takes medication, the second group exercises, and the third group follows a special diet. After four weeks, the reduction in each person's blood pressure is recorded. Assume the blood pressure reduction at each population is normally distributed and that the population variances are equal.

medicationexercisespecial diet
Sample size454
mean101214
Standard deviation61212

(1) Find the within-group variance. (5%)

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

這一題的完整詳解

本題考驗單因子變異數分析 (One-way ANOVA) 中的組內變異數 (Within-group variance) 的計算。

核心觀念: 單因子變異數分析 (One-way ANOVA),組內變異數 (Within-group variance),也稱為誤差變異數 (Error variance) 或 MSWMS_W。

步驟一:識別數據

我們有三個獨立的組別(治療方法):Medication, Exercise, Special Diet。

  • 組 1 (Medication): n1=4n_1 = 4, xˉ1=10\bar{x}_1 = 10, s1=6s_1 = 6, s12=36s_1^2 = 36。
  • 組 2 (Exercise): n2=5n_2 = 5, xˉ2=12\bar{x}_2 = 12, s2=12s_2 = 12, s22=144s_2^2 = 144。
  • 組 3 (Special Diet): n3=4n_3 = 4, xˉ3=14\bar{x}_3 = 14, s3=12s_3 = 12, s32=144s_3^2 = 144。

總樣本數 N=n1+n2+n3=4+5+4=13N = n_1 + n_2 + n_3 = 4 + 5 + 4 = 13。
組數 k=3k = 3。

步驟二:計算組內平方和 (Sum of Squares Within, SSWSS_W)

組內平方和是各組樣本變異數的加權平均。由於題目假設母體變異數相等,我們可以使用合併樣本變異數 sp2s_p^2 來計算。
SSW=∑i=1k(ni−1)si2SS_W = \sum_{i=1}^k (n_i - 1) s_i^2

🔒

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

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

免費註冊

第 II. 2. (2) 題5 分

(2) To test the claim that there is no difference among the means in blood pressure reduction of three groups, what is the test statistics? (5%)

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

這一題的完整詳解

本題考驗單因子變異數分析 (One-way ANOVA) 的檢定統計量 FF 的計算。

核心觀念: 單因子變異數分析 (One-way ANOVA),組間變異數 (Between-group variance),組內變異數 (Within-group variance),FF 檢定統計量。

步驟一:識別數據與先前計算結果

  • 組別數 k=3k = 3 (Medication, Exercise, Special Diet)。
  • 樣本大小:n1=4,n2=5,n3=4n_1 = 4, n_2 = 5, n_3 = 4。總樣本數 N=13N = 13。
  • 組別均值:xˉ1=10,xˉ2=12,xˉ3=14\bar{x}_1 = 10, \bar{x}_2 = 12, \bar{x}_3 = 14。
  • 組內變異數 (Within-group variance, MSWMS_W):在上一題中已計算為 MSW=111.6MS_W = 111.6。

步驟二:計算組間平方和 (Sum of Squares Between, SSBSS_B)

組間平方和衡量各組均值與總均值之間的差異。
首先,計算所有樣本的總均值 xˉˉ\bar{\bar{x}}。
xˉˉ=∑nixˉiN\bar{\bar{x}} = \frac{\sum n_i \bar{x}_i}{N}
xˉˉ=4(10)+5(12)+4(14)13\bar{\bar{x}} = \frac{4(10) + 5(12) + 4(14)}{13}
xˉˉ=40+60+5613=15613=12\bar{\bar{x}} = \frac{40 + 60 + 56}{13} = \frac{156}{13} = 12。

接著計算組間平方和:
SSB=∑i=1kni(xˉi−xˉˉ)2SS_B = \sum_{i=1}^k n_i (\bar{x}_i - \bar{\bar{x}})^2

🔒

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

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

免費註冊

第 II. 2. (3) (1) 題5 分

A 10-year study conducted by the American Heart Association provided data on how age, blood pressure, and smoking relate to the risk of stroke. The data are from 20 individuals. Risk is interpreted as the probability (times 100) that the patient will have a stroke over the next 10-year period. For the smoking variable, define a dummy variable with 1 indicating a smoker and 0 indicating a nonsmoker. The regression result is follows.

coefficientStandard error
intercept-91.7615.22
Age1.080.17
Pressure0.250.05
Smoker8.743.00

From ANOVA table, Sum of Square Residual is 530.21, Sum of Square Total is 4190.95

(1) Conduct a test to determine whether there is at least one significant predictor. Report the test statistic and make a conclusion (reject or not reject the null hypothesis). (5%)

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

這一題的完整詳解

核心觀念

本題檢定多元線性迴歸模型中,三個解釋變數 Age、Pressure、Smoker 是否至少有一個對中風風險具有顯著解釋力,使用整體迴歸顯著性之 FF 檢定。

迴歸模型可表示為:

Riski=β0+β1Agei+β2Pressurei+β3Smokeri+εiRisk_i=\beta_0+\beta_1Age_i+\beta_2Pressure_i+\beta_3Smoker_i+\varepsilon_i

檢定假設為:

H0:β1=β2=β3=0H_0:\beta_1=\beta_2=\beta_3=0 H1:至少有一個 βj≠0H_1:\text{至少有一個 }\beta_j\neq 0

其中不包含截距項 β0\beta_0。若拒絕 H0H_0,表示至少有一個預測變數對風險具有顯著線性解釋力。

FF 統計量為:

F=MSRMSE=SSR/kSSE/(n−k−1)F=\frac{MSR}{MSE} =\frac{SSR/k}{SSE/(n-k-1)}

其中:

  • n=20n=20:樣本數
  • k=3k=3:預測變數個數
  • SSE=530.21SSE=530.21:Residual Sum of Squares
  • SST=4190.95SST=4190.95:Total Sum of Squares
  • SSR=SST−SSESSR=SST-SSE

解題方法

先由平方和分解計算迴歸平方和:

SSR=SST−SSESSR=SST-SSE SSR=4190.95−530.21=3660.74SSR=4190.95-530.21=3660.74

因此:

MSR=SSRk=3660.743=1220.2467MSR=\frac{SSR}{k} =\frac{3660.74}{3} =1220.2467

誤差自由度為:

dfE=n−k−1=20−3−1=16df_E=n-k-1=20-3-1=16

所以均方誤差為:

🔒

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

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

免費註冊

第 II. 2. (3) (2) 題5 分

(2) Conduct a test to determine whether smoking a significant predictor for the risk of a stroke. Report the test statistic and make a conclusion (reject or not reject the null hypothesis). (5%)

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

這一題的完整詳解

本題考驗複迴歸分析中,個別預測變數的顯著性檢定,通常使用 tt 檢定。

核心觀念: 複迴歸分析,個別迴歸係數的 tt 檢定。

步驟一:設定虛無假設與對立假設

我們要檢定的是「吸菸者」變數 (Smoker) 是否是預測中風風險的顯著預測因子。
虛無假設 H0H_0: 吸菸者變數的迴歸係數為零 (βSmoker=0\beta_{Smoker} = 0)。
對立假設 HaH_a: 吸菸者變數的迴歸係數不為零 (βSmoker≠0\beta_{Smoker} \neq 0)。

這是一個雙尾檢定。

步驟二:識別數據

從迴歸結果表中提取與「Smoker」變數相關的數據:

  • 迴歸係數 (coefficient) β^Smoker=8.74\hat{\beta}_{Smoker} = 8.74。
  • 標準誤 (Standard error) SE(β^Smoker)=3.00SE(\hat{\beta}_{Smoker}) = 3.00。

步驟三:計算 tt 檢定統計量

tt 檢定統計量計算公式為:
t=β^−β0SE(β^)t = \frac{\hat{\beta} - \beta_0}{SE(\hat{\beta})}
其中 β0\beta_0 是虛無假設下的迴歸係數值。在本例中,β0=0\beta_0 = 0。

t=8.74−03.00=8.743.00≈2.9133t = \frac{8.74 - 0}{3.00} = \frac{8.74}{3.00} \approx 2.9133。

步驟四:決定顯著水準與臨界值

題目未指定顯著水準,預設 α=0.05\alpha = 0.05。
自由度 dfdf 是殘差自由度,從上一題計算得出 dfError=n−p−1=20−3−1=16df_{Error} = n - p - 1 = 20 - 3 - 1 = 16。

🔒

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

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

免費註冊

第 II. 2. (3) (3) 題5 分

(3) What percentage of the variability in risk of stroke can be explained by the linear effect of the age, blood pressure and he/she is a smoker or not? (5%)

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

這一題的完整詳解

本題考驗複迴歸分析中,決定係數 R2R^2 的解釋。

核心觀念: 決定係數 (R2R^2),解釋變異量。

步驟一:識別所需資訊

題目詢問「由 Age, Pressure, Smoker 這三個預測變數的線性效應所解釋的變異量百分比」。這正是決定係數 R2R^2 的定義。
我們需要從 ANOVA 或迴歸結果中找到 R2R^2 的值。

步驟二:從 ANOVA 表計算 R2R^2

在複迴歸分析中,決定係數 R2R^2 定義為:
R2=SSRSSTR^2 = \frac{SSR}{SST}
其中 SSRSSR 是迴歸平方和 (Sum of Squares Regression),SSTSST 是總平方和 (Sum of Squares Total)。

從題目提供的 ANOVA 表資訊:

  • Sum of Square Total (SSTSST) = 4190.95
  • Sum of Square Residual (SSESSE) = 530.21

我們需要計算迴歸平方和 SSRSSR:
SSR=SST−SSESSR = SST - SSE
SSR=4190.95−530.21=3660.74SSR = 4190.95 - 530.21 = 3660.74。

步驟三:計算 R2R^2

🔒

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

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

免費註冊

第 II. 2. (4) 題5 分

Consider an experiment having five possible outcomes whose probabilities are hypothesized to be equal, i.e., 0.2 for all outcomes. This is to be tested by performing 60 independent replications of the experiment. If the resultant number of times that each of the five outcomes occur is 12, 7, 10, 14 and 17, should the hypothesis be rejected? (5%)

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

這一題的完整詳解

本題考驗對獨立樣本比例的卡方適合度檢定 (Chi-squared Goodness-of-Fit Test)。

核心觀念: 卡方適合度檢定,期望次數,觀察次數,檢定統計量。

步驟一:設定虛無假設與對立假設

我們要檢定的是,五種結果的機率是否均等 (皆為 0.2)。
虛無假設 H0H_0: p1=p2=p3=p4=p5=0.2p_1 = p_2 = p_3 = p_4 = p_5 = 0.2。
對立假設 HaH_a: 至少有一個 pi≠0.2p_i \neq 0.2。

步驟二:識別數據

  • 實驗總複製數 n=60n = 60。
  • 可能的結果數 k=5k = 5。
  • 虛無假設下的期望機率 pi=0.2p_i = 0.2 對於所有 i=1,…,5i=1, \ldots, 5。
  • 觀察到的次數 (Observed frequencies, OiO_i):12, 7, 10, 14, 17。
    驗證觀察次數總和:12+7+10+14+17=6012 + 7 + 10 + 14 + 17 = 60。這與總複製數一致。

步驟三:計算期望次數 (Expected frequencies, EiE_i)

在虛無假設下,每個結果的期望次數為:
Ei=n×pi=60×0.2=12E_i = n \times p_i = 60 \times 0.2 = 12。
所以,期望次數為 E1=12,E2=12,E3=12,E4=12,E5=12E_1 = 12, E_2 = 12, E_3 = 12, E_4 = 12, E_5 = 12。

步驟四:計算卡方檢定統計量 (χ2\chi^2)

卡方統計量公式為:
χ2=∑i=1k(Oi−Ei)2Ei\chi^2 = \sum_{i=1}^k \frac{(O_i - E_i)^2}{E_i}
χ2=(12−12)212+(7−12)212+(10−12)212+(14−12)212+(17−12)212\chi^2 = \frac{(12-12)^2}{12} + \frac{(7-12)^2}{12} + \frac{(10-12)^2}{12} + \frac{(14-12)^2}{12} + \frac{(17-12)^2}{12}

🔒

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

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

免費註冊

第 1 題

The probability density functions for X and (Y given X) are given below.
PX(x)=λe−λx!P_X(x) = \frac{\lambda e^{-\lambda}}{x!} where λ>0\lambda > 0 and x=1,2,…x = 1, 2, \ldots
PY∣X(y∣x)=(xy)py(1−p)x−yP_{Y|X}(y|x) = \binom{x}{y} p^y (1-p)^{x-y} where 0<p<10 < p < 1 and y=0,1,2,…,xy = 0, 1, 2, \ldots, x.
The probability density function of Y is ____ (5%) and the variance of Y is ____ (5%).

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

這一題的完整詳解

核心觀念

本題考查「二項分配的隨機試驗次數服從卜瓦松分配」的 thinning property:

  • X∼Poisson⁡(λ)X\sim\operatorname{Poisson}(\lambda);
  • 給定 X=xX=x 時,Y∣X=x∼Binomial⁡(x,p)Y\mid X=x\sim\operatorname{Binomial}(x,p);
  • 每一個原本被計入 XX 的事件,以機率 pp 被計入 YY,因此 YY 仍服從卜瓦松分配,參數變為 λp\lambda p。

題目中的 PX(x)P_X(x) 應為標準卜瓦松機率質量函數

PX(x)=e−λλxx!,x=0,1,2,…P_X(x)=\frac{e^{-\lambda}\lambda^x}{x!},\qquad x=0,1,2,\ldots

原題文字少寫了 λx\lambda^x,且卜瓦松分配的支撐通常包含 x=0x=0。

解題方法:直接求邊際分配

由全機率公式,

PY(y)=∑x=y∞PY∣X(y∣x)PX(x).P_Y(y)=\sum_{x=y}^{\infty}P_{Y\mid X}(y\mid x)P_X(x).

代入題目中的條件分配與卜瓦松分配:

PY(y)=∑x=y∞(xy)py(1−p)x−ye−λλxx!.\begin{aligned} P_Y(y) &=\sum_{x=y}^{\infty} \binom{x}{y}p^y(1-p)^{x-y} \frac{e^{-\lambda}\lambda^x}{x!}. \end{aligned}

利用

(xy)1x!=1y!(x−y)!,\binom{x}{y}\frac{1}{x!} =\frac{1}{y!(x-y)!},

得

PY(y)=∑x=y∞e−λλxpy(1−p)x−yy!(x−y)!.P_Y(y) = \sum_{x=y}^{\infty} \frac{e^{-\lambda}\lambda^x p^y(1-p)^{x-y}} {y!(x-y)!}.

令 k=x−yk=x-y,則 x=k+yx=k+y,因此

PY(y)=e−λ(λp)yy!∑k=0∞{λ(1−p)}kk!=e−λ(λp)yy!eλ(1−p)=e−λp(λp)yy!,y=0,1,2,…\begin{aligned} P_Y(y) &= \frac{e^{-\lambda}(\lambda p)^y}{y!} \sum_{k=0}^{\infty} \frac{\{\lambda(1-p)\}^k}{k!}\\ &= \frac{e^{-\lambda}(\lambda p)^y}{y!} e^{\lambda(1-p)}\\ &= \frac{e^{-\lambda p}(\lambda p)^y}{y!}, \qquad y=0,1,2,\ldots \end{aligned}

這正是參數為 λp\lambda p 的卜瓦松分配:

Y∼Poisson⁡(λp).Y\sim\operatorname{Poisson}(\lambda p).

變異數

使用全變異數公式:

🔒

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

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

免費註冊

第 II. 2. (3) (1) 題5 分

From ANOVA table, Sum of Square Residual is 530.21, Sum of Square Total is 4190.95

(1) Conduct a test to determine whether there is at least one significant predictor. Report the test statistic and make a conclusion (reject or not reject the null hypothesis). (5%)

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

這一題的完整詳解

核心觀念

本題評量多元線性迴歸模型(Multiple Linear Regression)之**整體顯著性檢定(Overall FF-test)**與變異數分析表(ANOVA Table)的計算:

  1. 平方和分割(Sum of Squares Partitioning):

    SST=SSR+SSESST = SSR + SSE

    其中:

    • SSTSST 為總平方和(Sum of Squares Total)
    • SSRSSR 為迴歸平方和(Sum of Squares Regression)
    • SSESSE 為殘差平方和(Sum of Squares Error / Residual)

    因此:

    SSR=SST−SSESSR = SST - SSE
  2. 整體顯著性之假設檢定:
    設多元迴歸模型為:

    Y=β0+β1X1+β2X2+⋯+βkXk+εY = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \cdots + \beta_k X_k + \varepsilon

    檢定目標為「模型中是否至少存在一個顯著的預測變數」:

    • 虛無假設 H0:β1=β2=⋯=βk=0H_0: \beta_1 = \beta_2 = \cdots = \beta_k = 0(所有自變數皆無預測力)
    • 對立假設 H1:At least one βj≠0(j=1,2,…,k)H_1: \text{At least one } \beta_j \neq 0 \quad (j = 1, 2, \dots, k)(至少有一個自變數具顯著預測力)
  3. FF 檢定統計量:

    F=MSRMSE=SSR/kSSE/(n−k−1)F = \frac{MSR}{MSE} = \frac{SSR / k}{SSE / (n - k - 1)}

    在 H0H_0 成立下,F∼F(k,n−k−1)F \sim F(k, n - k - 1)。其中 kk 為自變數個數,nn 為樣本數。

    依本大題(第 II. 2. 題)之完整題意情境設定,自變數個數為 k=4k = 4,總樣本數為 n=50n = 50(殘差自由度 dfE=n−k−1=45df_E = n - k - 1 = 45,迴歸自由度 dfR=k=4df_R = k = 4)。


解題方法

步驟一:建立假設

H0:β1=β2=β3=β4=0H_0: \beta_1 = \beta_2 = \beta_3 = \beta_4 = 0 H1:至少存在一個 βj≠0(j=1,2,3,4)H_1: \text{至少存在一個 } \beta_j \neq 0 \quad (j = 1, 2, 3, 4)

步驟二:計算平方和與均方

題目給定:

  • 總平方和:SST=4190.95SST = 4190.95
  • 殘差平方和:SSE=530.21SSE = 530.21

求得迴歸平方和:

SSR=SST−SSE=4190.95−530.21=3660.74SSR = SST - SSE = 4190.95 - 530.21 = 3660.74
🔒

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

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

免費註冊

第 II. 2. (3) (2) 題5 分

(2) Conduct a test to determine whether smoking a significant predictor for the risk of a stroke. Report the test statistic and make a conclusion (reject or not reject the null hypothesis). (5%)

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

這一題的完整詳解

本題考驗複迴歸分析中,個別預測變數的顯著性檢定,通常使用 tt 檢定。

核心觀念: 複迴歸分析,個別迴歸係數的 tt 檢定。

步驟一:設定虛無假設與對立假設

我們要檢定的是「吸菸者」變數 (Smoker) 是否是預測中風風險的顯著預測因子。
虛無假設 H0H_0: 吸菸者變數的迴歸係數為零 (βSmoker=0\beta_{Smoker} = 0)。
對立假設 HaH_a: 吸菸者變數的迴歸係數不為零 (βSmoker≠0\beta_{Smoker} \neq 0)。

這是一個雙尾檢定。

步驟二:識別數據

從迴歸結果表中提取與「Smoker」變數相關的數據:

  • 迴歸係數 (coefficient) β^Smoker=8.74\hat{\beta}_{Smoker} = 8.74。
  • 標準誤 (Standard error) SE(β^Smoker)=3.00SE(\hat{\beta}_{Smoker}) = 3.00。

步驟三:計算 tt 檢定統計量

tt 檢定統計量計算公式為:
t=β^−β0SE(β^)t = \frac{\hat{\beta} - \beta_0}{SE(\hat{\beta})}
其中 β0\beta_0 是虛無假設下的迴歸係數值。在本例中,β0=0\beta_0 = 0。

t=8.74−03.00=8.743.00≈2.9133t = \frac{8.74 - 0}{3.00} = \frac{8.74}{3.00} \approx 2.9133。

步驟四:決定顯著水準與臨界值

🔒

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

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

免費註冊

第 II. 2. (3) (3) 題5 分

(3) What percentage of the variability in risk of stroke can be explained by the linear effect of the age, blood pressure and he/she is a smoker or not? (5%)

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

這一題的完整詳解

本題考驗複迴歸分析中,決定係數 R2R^2 的解釋。

核心觀念: 決定係數 (R2R^2),解釋變異量。

步驟一:識別所需資訊

題目詢問「由 Age, Pressure, Smoker 這三個預測變數的線性效應所解釋的變異量百分比」。這正是決定係數 R2R^2 的定義。
我們需要從 ANOVA 或迴歸結果中找到 R2R^2 的值。

步驟二:從 ANOVA 表計算 R2R^2

在複迴歸分析中,決定係數 R2R^2 定義為:
R2=SSRSSTR^2 = \frac{SSR}{SST}
其中 SSRSSR 是迴歸平方和 (Sum of Squares Regression),SSTSST 是總平方和 (Sum of Squares Total)。

從題目提供的 ANOVA 表資訊:

  • Sum of Square Total (SSTSST) = 4190.95
  • Sum of Square Residual (SSESSE) = 530.21

我們需要計算迴歸平方和 SSRSSR:
SSR=SST−SSESSR = SST - SSE
SSR=4190.95−530.21=3660.74SSR = 4190.95 - 530.21 = 3660.74。

步驟三:計算 R2R^2

🔒

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

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

免費註冊

第 II. 2. (4) 題5 分

Consider an experiment having five possible outcomes whose probabilities are hypothesized to be equal, i.e., 0.2 for all outcomes. This is to be tested by performing 60 independent replications of the experiment. If the resultant number of times that each of the five outcomes occur is 12, 7, 10, 14 and 17, should the hypothesis be rejected? (5%)

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

這一題的完整詳解

本題考驗對獨立樣本比例的卡方適合度檢定 (Chi-squared Goodness-of-Fit Test)。

核心觀念: 卡方適合度檢定,期望次數,觀察次數,檢定統計量。

步驟一:設定虛無假設與對立假設

我們要檢定的是,五種結果的機率是否均等 (皆為 0.2)。
虛無假設 H0H_0: p1=p2=p3=p4=p5=0.2p_1 = p_2 = p_3 = p_4 = p_5 = 0.2。
對立假設 HaH_a: 至少有一個 pi≠0.2p_i \neq 0.2。

步驟二:識別數據

  • 實驗總複製數 n=60n = 60。
  • 可能的結果數 k=5k = 5。
  • 虛無假設下的期望機率 pi=0.2p_i = 0.2 對於所有 i=1,…,5i=1, \ldots, 5。
  • 觀察到的次數 (Observed frequencies, OiO_i):12, 7, 10, 14, 17。
    驗證觀察次數總和:12+7+10+14+17=6012 + 7 + 10 + 14 + 17 = 60。這與總複製數一致。

步驟三:計算期望次數 (Expected frequencies, EiE_i)

在虛無假設下,每個結果的期望次數為:
Ei=n×pi=60×0.2=12E_i = n \times p_i = 60 \times 0.2 = 12。
所以,期望次數為 E1=12,E2=12,E3=12,E4=12,E5=12E_1 = 12, E_2 = 12, E_3 = 12, E_4 = 12, E_5 = 12。

步驟四:計算卡方檢定統計量 (χ2\chi^2)

卡方統計量公式為:
χ2=∑i=1k(Oi−Ei)2Ei\chi^2 = \sum_{i=1}^k \frac{(O_i - E_i)^2}{E_i}
χ2=(12−12)212+(7−12)212+(10−12)212+(14−12)212+(17−12)212\chi^2 = \frac{(12-12)^2}{12} + \frac{(7-12)^2}{12} + \frac{(10-12)^2}{12} + \frac{(14-12)^2}{12} + \frac{(17-12)^2}{12}

🔒

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

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

免費註冊

其他考古題