108 年 國立中央大學工業管理研究所碩士班《統計學》

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

第 1 題

  1. Consider a stochastic activity network as shown in Figure 1 with five activities, A1, ..., A5. Node S denotes project starting and node F denotes project completion. The directed arrows in a stochastic activity network denote not only activities but also precedence constraints. The precedence constraints are as follows. A2 and A3 can only be started after A1 is completed, and A5 can only be started after A3 and A4 are completed. The project is completed after all five activities are completed. Let Di∼Exp(1)D_i \sim \text{Exp}(1) denote the independent duration of activity AiA_i, i=1,…,5i = 1, \dots, 5, and let CiC_i denote the earliest completion time of node i=S,A,B,Ti = S, A, B, T. Our goal is to compute the marginal distribution of the earliest completion time of the project. We will assume that each activity will be started as soon as possible (after completion of all preceding activities). Also, we assume that CS=0C_S = 0.

🖼️【此處有附圖,請對照原卷】

(a) Express CBC_B in terms of CIC_I and DiD_i (5 points)
(b) Determine the conditional CDF of CBC_B given D1=xD_1 = x (10 points)
(c) Determine the conditional CDF of CB+D5C_B + D_5 given D1=xD_1 = x and D5=yD_5 = y (5 points)
(d) Express CTC_T in terms of CIC_I and DiD_i (5 points)
(e) Determine the conditional CDF of CTC_T given D1=xD_1 = x (10 points)

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 1 頁

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

這一題的完整詳解

核心觀念

本題屬於隨機作業網路(Stochastic Activity Network, SAN / 隨機 CPM/PERT 網路)與機率論中多變數連續隨機變數的極值分佈、條件機率與全機率公式應用。涉及的核心觀念包括:

  1. 要徑與節點最早完成時間(Earliest Completion Time):
    • 網路中任一節點 jj 必須在其所有前置作業均完成後才能達成。若作業 AijA_{ij} 連接節點 i→ji \to j 且工期為 DijD_{ij},則節點 jj 的最早完成時間滿足動態規劃關係式: Cj=max⁡i∈Pred(j){Ci+Dij}C_j = \max_{i \in \text{Pred}(j)} \{ C_i + D_{ij} \}
  2. 指數分佈(Exponential Distribution)之累積分配函數(CDF):
    • 若工期 Di∼Exp(1)D_i \sim \text{Exp}(1) 且相互獨立,其機率密度函數(PDF)為 fDi(u)=e−uf_{D_i}(u) = e^{-u}(u≥0u \ge 0),累積分配函數(CDF)為 P(Di≤u)=1−e−uP(D_i \le u) = 1 - e^{-u}(u≥0u \ge 0)。
  3. 獨立隨機變數之極值分配:
    • 若 X1,X2X_1, X_2 獨立,則 P(max⁡(X1,X2)≤t)=P(X1≤t,X2≤t)=P(X1≤t)P(X2≤t)P(\max(X_1, X_2) \le t) = P(X_1 \le t, X_2 \le t) = P(X_1 \le t) P(X_2 \le t)。
  4. 條件獨立性與全機率定理(連續型平滑條件期望值法 / Conditioning):
    • 利用已知條件將相依結構拆解為條件獨立的分量,再對中介變數(如 D5D_5)進行連續型積分求解邊際條件分配。

解題方法

由原卷圖 1 可讀出:網路共有 4 個節點 {S,A,B,T}\{S, A, B, T\}(題目本文敘述之完成節點記為 FF,但原卷圖形與子題符號皆明確標記為終點 TT,依圖形為準)與 5 個有向箭頭表示的作業:

  • S→A1AS \xrightarrow{A_1} A(工期 D1D_1)
  • S→A4BS \xrightarrow{A_4} B(工期 D4D_4)
  • A→A3BA \xrightarrow{A_3} B(工期 D3D_3)
  • A→A2TA \xrightarrow{A_2} T(工期 D2D_2)
  • B→A5TB \xrightarrow{A_5} T(工期 D5D_5)
    起始節點時間給定為 CS=0C_S = 0。

(a) 求 CBC_B 以 CiC_i 與 DiD_i 表示

進入節點 BB 的作業有兩項:來自節點 AA 的作業 A3A_3、以及來自節點 SS 的作業 A4A_4。

  • 作業 A3A_3 的完成時間為 CA+D3C_A + D_3
  • 作業 A4A_4 的完成時間為 CS+D4C_S + D_4

節點 BB 的最早完成時間 CBC_B 為兩項作業皆完成的時間:

CB=max⁡(CA+D3,CS+D4)C_B = \max(C_A + D_3, C_S + D_4)

又因為 CS=0C_S = 0 且進入節點 AA 僅有作業 A1A_1,即 CA=CS+D1=D1C_A = C_S + D_1 = D_1,代入可得展開式:

CB=max⁡(D1+D3,D4)C_B = \max(D_1 + D_3, D_4)

(b) 求給定 D1=xD_1 = x 下 CBC_B 的條件 CDF

給定 D1=xD_1 = x(其中 x≥0x \ge 0),代入 (a) 的結果:

CB∣(D1=x)=max⁡(x+D3,D4)C_B \mid (D_1 = x) = \max(x + D_3, D_4)

因為工期 D3≥0D_3 \ge 0,故 x+D3≥xx + D_3 \ge x,這表示 CB≥xC_B \ge x 必定成立。

  • 當 t<xt < x 時,不可能滿足 CB≤tC_B \le t,因此: P(CB≤t∣D1=x)=0P(C_B \le t \mid D_1 = x) = 0
  • 當 t≥xt \ge x 時,由 D3,D4D_3, D_4 相互獨立且獨立於 D1D_1: P(CB≤t∣D1=x)=P(x+D3≤t,D4≤t∣D1=x)=P(D3≤t−x)⋅P(D4≤t)P(C_B \le t \mid D_1 = x) = P(x + D_3 \le t, D_4 \le t \mid D_1 = x) = P(D_3 \le t - x) \cdot P(D_4 \le t) 因 t≥x≥0t \ge x \ge 0,故 t−x≥0t - x \ge 0 與 t≥0t \ge 0 均成立,代入 Di∼Exp(1)D_i \sim \text{Exp}(1) 的 CDF: P(D3≤t−x)=1−e−(t−x)P(D_3 \le t - x) = 1 - e^{-(t - x)} P(D4≤t)=1−e−tP(D_4 \le t) = 1 - e^{-t} 兩式相乘得: FCB∣D1(t∣x)=(1−e−(t−x))(1−e−t)=1−e−(t−x)−e−t+e−(2t−x)F_{C_B | D_1}(t \mid x) = \left(1 - e^{-(t - x)}\right)\left(1 - e^{-t}\right) = 1 - e^{-(t - x)} - e^{-t} + e^{-(2t - x)}

綜合得:

FCB∣D1(t∣x)={(1−e−(t−x))(1−e−t),t≥x0,t<xF_{C_B | D_1}(t \mid x) = \begin{cases} \left(1 - e^{-(t - x)}\right)\left(1 - e^{-t}\right), & t \ge x \\ 0, & t < x \end{cases}

(c) 求給定 D1=xD_1 = x 與 D5=yD_5 = y 下 CB+D5C_B + D_5 的條件 CDF

給定 D1=x,D5=yD_1 = x, D_5 = y(其中 x≥0,y≥0x \ge 0, y \ge 0),因 CB=max⁡(D1+D3,D4)C_B = \max(D_1 + D_3, D_4) 僅與 D1,D3,D4D_1, D_3, D_4 相關,與 D5D_5 相互獨立,故在條件中 D5D_5 視為常數 yy:

P(CB+D5≤t∣D1=x,D5=y)=P(CB+y≤t∣D1=x)=P(CB≤t−y∣D1=x)P(C_B + D_5 \le t \mid D_1 = x, D_5 = y) = P(C_B + y \le t \mid D_1 = x) = P(C_B \le t - y \mid D_1 = x)

這即為 (b) 小題求得的條件 CDF 將變數平移 yy,即 FCB∣D1(t−y∣x)F_{C_B | D_1}(t - y \mid x)。

  • 由於需滿足 t−y≥x  ⟺  t≥x+yt - y \ge x \iff t \ge x + y:
    • 當 t<x+yt < x + y 時,CDF 為 00。
    • 當 t≥x+yt \ge x + y 時: FCB+D5∣D1,D5(t∣x,y)=(1−e−(t−y−x))(1−e−(t−y))=(1−e−(t−x−y))(1−e−(t−y))F_{C_B + D_5 \mid D_1, D_5}(t \mid x, y) = \left(1 - e^{-(t - y - x)}\right)\left(1 - e^{-(t - y)}\right) = \left(1 - e^{-(t - x - y)}\right)\left(1 - e^{-(t - y)}\right)

綜合得:

FCB+D5∣D1,D5(t∣x,y)={(1−e−(t−x−y))(1−e−(t−y)),t≥x+y0,t<x+yF_{C_B + D_5 \mid D_1, D_5}(t \mid x, y) = \begin{cases} \left(1 - e^{-(t - x - y)}\right)\left(1 - e^{-(t - y)}\right), & t \ge x + y \\ 0, & t < x + y \end{cases}

(d) 求 CTC_T 以 CiC_i 與 DiD_i 表示

進入終點節點 TT 的作業有兩項:來自節點 AA 的作業 A2A_2、以及來自節點 BB 的作業 A5A_5。

  • 作業 A2A_2 完成時間為 CA+D2C_A + D_2
  • 作業 A5A_5 完成時間為 CB+D5C_B + D_5

專案完成時間 CTC_T 即為進入節點 TT 的所有作業完成時間之最大值:

CT=max⁡(CA+D2,CB+D5)C_T = \max(C_A + D_2, C_B + D_5)

若將 CA=D1C_A = D_1 與 CB=max⁡(D1+D3,D4)C_B = \max(D_1 + D_3, D_4) 代入,亦可表示為從起點到終點的三條路徑長度之最大值(要徑):

CT=max⁡(D1+D2,D1+D3+D5,D4+D5)C_T = \max(D_1 + D_2, D_1 + D_3 + D_5, D_4 + D_5)

(e) 求給定 D1=xD_1 = x 下 CTC_T 的條件 CDF

由 (d) 小題可知:

CT=max⁡(CA+D2,CB+D5)C_T = \max(C_A + D_2, C_B + D_5)

給定 D1=xD_1 = x:

  • CA+D2=x+D2C_A + D_2 = x + D_2 僅依賴隨機變數 D2D_2。
  • CB+D5=max⁡(x+D3,D4)+D5C_B + D_5 = \max(x + D_3, D_4) + D_5 僅依賴隨機變數 {D3,D4,D5}\{D_3, D_4, D_5\}。
    由於 D2D_2 與 {D3,D4,D5}\{D_3, D_4, D_5\} 相互獨立,故給定 D1=xD_1 = x 時,x+D2x + D_2 與 CB+D5C_B + D_5 為條件獨立。

因此:

P(CT≤t∣D1=x)=P(x+D2≤t∣D1=x)⋅P(CB+D5≤t∣D1=x)P(C_T \le t \mid D_1 = x) = P(x + D_2 \le t \mid D_1 = x) \cdot P(C_B + D_5 \le t \mid D_1 = x)

因為 D2≥0D_2 \ge 0,若 t<xt < x,則 P(x+D2≤t∣D1=x)=0P(x + D_2 \le t \mid D_1 = x) = 0,故當 t<xt < x 時,FCT∣D1(t∣x)=0F_{C_T | D_1}(t \mid x) = 0。

當 t≥xt \ge x 時,分別計算兩項:

  1. 第一項:

    P(x+D2≤t∣D1=x)=P(D2≤t−x)=1−e−(t−x)P(x + D_2 \le t \mid D_1 = x) = P(D_2 \le t - x) = 1 - e^{-(t - x)}
  2. 第二項:利用全機率公式,對 D5=yD_5 = y 積分(D5∼Exp(1)D_5 \sim \text{Exp}(1),PDF 為 fD5(y)=e−yf_{D_5}(y) = e^{-y},其中 y≥0y \ge 0):

    P(CB+D5≤t∣D1=x)=∫0∞P(CB+D5≤t∣D1=x,D5=y)e−y dyP(C_B + D_5 \le t \mid D_1 = x) = \int_0^\infty P(C_B + D_5 \le t \mid D_1 = x, D_5 = y) e^{-y} \, dy

    由 (c) 小題,被積函數僅在 y≤t−xy \le t - x 時大於 0,故積分上限為 t−xt - x:

    P(CB+D5≤t∣D1=x)=∫0t−x(1−e−(t−x−y))(1−e−(t−y))e−y dyP(C_B + D_5 \le t \mid D_1 = x) = \int_0^{t - x} \left(1 - e^{-(t - x - y)}\right)\left(1 - e^{-(t - y)}\right) e^{-y} \, dy

    展開被積函數:

🔒

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

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

免費註冊

第 2 題

  1. The moment generating function of random variable X is defined as follows:
    MX(t)=E[etX]=∫−∞∞etxf(x)dxM_X(t) = E[e^{tX}] = \int_{-\infty}^{\infty} e^{tx} f(x)dx, where f(x)f(x) is the pdf of X.

(a) Find the moment generating function of X, where X is U(0,1) distributed. (5 points)
(b) Find E[Y2]E[Y^2] from the moment generating function of Y, where Y=X+ZY = X + Z, X and Z are independent and U(0,1) distributed. (10 points)

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 2 頁

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

這一題的完整詳解

核心觀念

  1. 動差生成函數(Moment Generating Function, MGF)之定義:
    設連續型隨機變數 XX 的機率密度函數(pdf)為 f(x)f(x),其動差生成函數定義為:
    MX(t)=E[etX]=∫−∞∞etxf(x) dxM_X(t) = E[e^{tX}] = \int_{-\infty}^{\infty} e^{tx} f(x) \, dx
    在 t=0t = 0 處,必有 MX(0)=E[e0]=1M_X(0) = E[e^0] = 1。
  2. 獨立隨機變數和的動差生成函數性質:
    若隨機變數 XX 與 ZZ 相互獨立,則其和 Y=X+ZY = X + Z 的動差生成函數為各自動差生成函數之乘積:
    MY(t)=E[et(X+Z)]=E[etXetZ]=E[etX]E[etZ]=MX(t)MZ(t)M_Y(t) = E[e^{t(X+Z)}] = E[e^{tX} e^{tZ}] = E[e^{tX}] E[e^{tZ}] = M_X(t) M_Z(t)
  3. 從動差生成函數求動差(Moments):
    隨機變數 YY 的 kk 階原動差可透過 MY(t)M_Y(t) 在 t=0t = 0 處取 kk 階導數獲得:
    E[Yk]=MY(k)(0)=dkdtkMY(t)∣t=0E[Y^k] = M_Y^{(k)}(0) = \left. \frac{d^k}{dt^k} M_Y(t) \right|_{t=0}
    亦可利用馬克勞林級數(Maclaurin series)展開式直接對應係數:
    MY(t)=∑k=0∞E[Yk]k!tk=1+E[Y]t+E[Y2]2!t2+E[Y3]3!t3+⋯M_Y(t) = \sum_{k=0}^{\infty} \frac{E[Y^k]}{k!} t^k = 1 + E[Y]t + \frac{E[Y^2]}{2!} t^2 + \frac{E[Y^3]}{3!} t^3 + \cdots
    其中 E[Y2]=2!×(t2 項之係數)E[Y^2] = 2! \times (t^2 \text{ 項之係數})。

解題方法

(a) 求 X∼U(0,1)X \sim U(0,1) 的動差生成函數 MX(t)M_X(t)

均勻分配 X∼U(0,1)X \sim U(0,1) 的機率密度函數為:
f(x)={1,0<x<10,其他f(x) = \begin{cases} 1, & 0 < x < 1 \\ 0, & \text{其他} \end{cases}

依定義計算積分:

  1. 當 t≠0t \neq 0 時:
    MX(t)=∫01etx⋅1 dx=[etxt]01=et−e0t=et−1tM_X(t) = \int_0^1 e^{tx} \cdot 1 \, dx = \left[ \frac{e^{tx}}{t} \right]_0^1 = \frac{e^t - e^0}{t} = \frac{e^t - 1}{t}
  2. 當 t=0t = 0 時:
    MX(0)=E[e0]=∫011 dx=1M_X(0) = E[e^0] = \int_0^1 1 \, dx = 1
    (由羅必達法則可驗證極限連續性:lim⁡t→0et−1t=lim⁡t→0et1=1\lim_{t \to 0} \frac{e^t - 1}{t} = \lim_{t \to 0} \frac{e^t}{1} = 1)

因此,XX 的動差生成函數為:
MX(t)={et−1t,t≠01,t=0M_X(t) = \begin{cases} \dfrac{e^t - 1}{t}, & t \neq 0 \\ 1, & t = 0 \end{cases}


(b) 由 MY(t)M_Y(t) 求 E[Y2]E[Y^2]

已知 Y=X+ZY = X + Z,其中 XX 與 ZZ 相互獨立且皆服從 U(0,1)U(0,1),故 MZ(t)=MX(t)M_Z(t) = M_X(t)。
由獨立性可知:
MY(t)=MX(t)⋅MZ(t)=[MX(t)]2=(et−1t)2=e2t−2et+1t2(t≠0)M_Y(t) = M_X(t) \cdot M_Z(t) = [M_X(t)]^2 = \left( \frac{e^t - 1}{t} \right)^2 = \frac{e^{2t} - 2e^t + 1}{t^2} \quad (t \neq 0)

題目要求「from the moment generating function of YY」求出 E[Y2]E[Y^2],提供以下兩種推導方式:

方法一:馬克勞林級數展開法(最簡潔且不易在微分商法則中出錯)

將分子中的指數函數展開至 t4t^4 項:
e2t=1+2t+(2t)22!+(2t)33!+(2t)44!+O(t5)=1+2t+2t2+43t3+23t4+O(t5)e^{2t} = 1 + 2t + \frac{(2t)^2}{2!} + \frac{(2t)^3}{3!} + \frac{(2t)^4}{4!} + O(t^5) = 1 + 2t + 2t^2 + \frac{4}{3}t^3 + \frac{2}{3}t^4 + O(t^5)
2et=2(1+t+t22!+t33!+t44!+O(t5))=2+2t+t2+13t3+112t4+O(t5)2e^t = 2\left( 1 + t + \frac{t^2}{2!} + \frac{t^3}{3!} + \frac{t^4}{4!} + O(t^5) \right) = 2 + 2t + t^2 + \frac{1}{3}t^3 + \frac{1}{12}t^4 + O(t^5)

分子相減後整理得:
e2t−2et+1=(1−2+1)+(2−2)t+(2−1)t2+(43−13)t3+(23−112)t4+O(t5)e^{2t} - 2e^t + 1 = (1 - 2 + 1) + (2 - 2)t + (2 - 1)t^2 + \left(\frac{4}{3} - \frac{1}{3}\right)t^3 + \left(\frac{2}{3} - \frac{1}{12}\right)t^4 + O(t^5)
=t2+t3+712t4+O(t5)= t^2 + t^3 + \frac{7}{12}t^4 + O(t^5)

將分子除以分母 t2t^2:
MY(t)=t2+t3+712t4+O(t5)t2=1+t+712t2+O(t3)M_Y(t) = \frac{t^2 + t^3 + \frac{7}{12}t^4 + O(t^5)}{t^2} = 1 + t + \frac{7}{12}t^2 + O(t^3)

根據動差生成函數與動差的展開關係:
MY(t)=1+E[Y]t+E[Y2]2!t2+O(t3)M_Y(t) = 1 + E[Y] t + \frac{E[Y^2]}{2!} t^2 + O(t^3)

🔒

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

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

免費註冊

第 3 題

  1. To test a particular coin fair or not, (i.e. p=Pr("head")=0.5p = \text{Pr}("head") = 0.5), we decide to flip the coin nn times. Let X denote the number of heads appearing in n flips.

(a) Please provide a M.L.E. of pp; (5 points)
(b) Let n=4n = 4, try to use X to be the test statistics to develop a test on H0:p=0.5H_0: p = 0.5
(1) Show the distribution of X. (5 points)
(2) Let's set the significant level, α\alpha, to be 0.15, show the rejection rule. (5 points)
(3) Based on your rejection rule in (b-2), what is the testing power on Ha:p=0.3H_a: p = 0.3? (5 points)
(4) If only one head appears in 4 flips, what is your conclusion? (5 points)
(5) Please develop a 85% confidence interval of pp. (5 points)
(c) If n=50n = 50, let's use Y=X/nY = X/n to be the test statistics to test on H0:p=0.5H_0: p = 0.5
(1) Since n=50n = 50, we can invoke the Central Limit Theory, show the approximate distribution of Y.
(5 points)
(2) Let's set the significant level, α\alpha, to be 0.15, show the rejection rule. In other words, what is the
critical number of heads appearing to reject H0H_0. (5 points)
(3) Based on your rejection rule in (c-2), what is the testing power on Ha:p=0.3H_a: p = 0.3? (5 points)
(4) Please develop a 85% confidence interval of pp. (5 points)

🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 2 頁

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

這一題的完整詳解

核心觀念

本題探討單一母體比例(Bernoulli 試驗之成功機率 pp)的點估計、小樣本精確檢定與大樣本漸近檢定:

  1. 最大概似估計(MLE):二項分配的概似函數對數微分求極值。
  2. 小樣本二項檢定(Exact Binomial Test):樣本數小(n=4n = 4)時無法使用常態近似,必須直接以二項分配機率質量函數計算顯著水準 α\alpha(型 I 錯誤率)、拒絕域、檢定力(Power)及信賴區間。
  3. 大樣本常態近似檢定(Central Limit Theorem, CLT):樣本數較大(n=50n = 50)時,樣本比例 p^=Y\hat{p} = Y 漸近服從常態分配,可利用標準常態統計量 ZZ 建構雙尾拒絕域、計算對立假設下的檢定力及漸近信賴區間。

解題方法與詳細推導

(a) 求 pp 的最大概似估計量(M.L.E.)

在 nn 次獨立投擲中,每次正面出現的機率為 pp。令 XX 為正面出現次數,則 X∼Binomial(n,p)X \sim \text{Binomial}(n, p),其機率質量函數為:

P(X=x)=(nx)px(1−p)n−x,x=0,1,…,nP(X = x) = \binom{n}{x} p^x (1-p)^{n-x}, \quad x = 0, 1, \dots, n

概似函數(Likelihood function)與對數概似函數(Log-likelihood function)為:

L(p)=(nx)px(1−p)n−xL(p) = \binom{n}{x} p^x (1-p)^{n-x} ln⁡L(p)=ln⁡(nx)+xln⁡p+(n−x)ln⁡(1−p)\ln L(p) = \ln \binom{n}{x} + x \ln p + (n-x) \ln (1-p)

對 pp 微分並令其為 0(一階條件):

dln⁡L(p)dp=xp−n−x1−p=0\frac{d \ln L(p)}{dp} = \frac{x}{p} - \frac{n-x}{1-p} = 0 x(1−p)=(n−x)p  ⟹  x=np  ⟹  p^=xnx(1-p) = (n-x)p \implies x = np \implies \hat{p} = \frac{x}{n}

二階導數為:

d2ln⁡L(p)dp2=−xp2−n−x(1−p)2<0\frac{d^2 \ln L(p)}{dp^2} = -\frac{x}{p^2} - \frac{n-x}{(1-p)^2} < 0

因此極大值成立,母體比例 pp 的最大概似估計量(MLE)為:

p^=Xn\hat{p} = \frac{X}{n}

(b) 當 n=4n = 4,以 XX 為檢定統計量檢定 H0:p=0.5 vs Ha:p≠0.5H_0: p = 0.5 \text{ vs } H_a: p \neq 0.5

(1) 說明 XX 的分配

在 n=4n = 4 次獨立 Bernoulli 試驗中,XX 代表正面出現次數,因此 XX 服從二項分配:

X∼Binomial(4,p)X \sim \text{Binomial}(4, p)

若在虛無假設 H0:p=0.5H_0: p = 0.5 成立下:

X∼Binomial(4,0.5)X \sim \text{Binomial}(4, 0.5)

其個別點機率為 P(X=x)=(4x)(0.5)4P(X = x) = \binom{4}{x} (0.5)^4:

  • P(X=0)=(40)(12)4=116=0.0625P(X = 0) = \binom{4}{0} \left(\frac{1}{2}\right)^4 = \frac{1}{16} = 0.0625
  • P(X=1)=(41)(12)4=416=0.25P(X = 1) = \binom{4}{1} \left(\frac{1}{2}\right)^4 = \frac{4}{16} = 0.25
  • P(X=2)=(42)(12)4=616=0.375P(X = 2) = \binom{4}{2} \left(\frac{1}{2}\right)^4 = \frac{6}{16} = 0.375
  • P(X=3)=(43)(12)4=416=0.25P(X = 3) = \binom{4}{3} \left(\frac{1}{2}\right)^4 = \frac{4}{16} = 0.25
  • P(X=4)=(44)(12)4=116=0.0625P(X = 4) = \binom{4}{4} \left(\frac{1}{2}\right)^4 = \frac{1}{16} = 0.0625
(2) 顯著水準 α=0.15\alpha = 0.15 下的拒絕域(Rejection Rule)

雙尾檢定 H0:p=0.5 vs Ha:p≠0.5H_0: p = 0.5 \text{ vs } H_a: p \neq 0.5,對稱拒絕域應落在兩側極端值 {0,4}\{0, 4\}:

P(X=0 或 X=4∣p=0.5)=0.0625+0.0625=0.125P(X = 0 \text{ 或 } X = 4 \mid p = 0.5) = 0.0625 + 0.0625 = 0.125

若再納入 X=1X = 1 或 X=3X = 3,則機率增加 0.25+0.25=0.50.25 + 0.25 = 0.5,將使型 I 錯誤率達到 0.6250.625,大幅超過 0.150.15。
在離散分配中,名目顯著水準 α=0.15\alpha = 0.15 下,不超過 α\alpha 的最大可能精確拒絕域為:

Reject H0 if X∈{0,4}(即 X=0 或 X=4)\text{Reject } H_0 \text{ if } X \in \{0, 4\} \quad (\text{即 } X = 0 \text{ 或 } X = 4)

此時實際型 I 錯誤率為 αactual=0.125≤0.15\alpha_{\text{actual}} = 0.125 \le 0.15。

(3) 在 Ha:p=0.3H_a: p = 0.3 時的檢定力(Testing Power)

檢定力為在對立假設真實值下正確拒絕 H0H_0 的機率:

Power=P(Reject H0∣p=0.3)=P(X=0∣p=0.3)+P(X=4∣p=0.3)\text{Power} = P(\text{Reject } H_0 \mid p = 0.3) = P(X = 0 \mid p = 0.3) + P(X = 4 \mid p = 0.3)

當 p=0.3p = 0.3 時:

P(X=0)=(40)(0.3)0(0.7)4=0.74=0.2401P(X = 0) = \binom{4}{0} (0.3)^0 (0.7)^4 = 0.7^4 = 0.2401 P(X=4)=(44)(0.3)4(0.7)0=0.34=0.0081P(X = 4) = \binom{4}{4} (0.3)^4 (0.7)^0 = 0.3^4 = 0.0081 Power=0.2401+0.0081=0.2482\text{Power} = 0.2401 + 0.0081 = 0.2482
(4) 若 4 次投擲中出現 1 次正面,檢定結論為何?

觀測值 x=1x = 1。
對照 (b-2) 之拒絕域 {0,4}\{0, 4\},x=1x = 1 不屬於拒絕域(即 x∉{0,4}x \notin \{0, 4\})。
因此結論為:不拒絕 H0H_0(Fail to reject H0H_0),在顯著水準 α=0.15\alpha = 0.15 下,沒有足夠證據顯示該硬幣不公正。

(5) 建立 pp 的 85% 信賴區間
  • 方法一(小樣本二項精確 Clopper-Pearson 區間,觀測值 x=1,n=4x = 1, n = 4):
    雙尾 α=0.15\alpha = 0.15,單尾 α/2=0.075\alpha/2 = 0.075。
    下界 pLp_L 滿足:

    P(X≥1∣pL)=1−(1−pL)4=0.075  ⟹  (1−pL)4=0.925  ⟹  pL=1−(0.925)1/4≈0.0194P(X \ge 1 \mid p_L) = 1 - (1 - p_L)^4 = 0.075 \implies (1 - p_L)^4 = 0.925 \implies p_L = 1 - (0.925)^{1/4} \approx 0.0194

    上界 pUp_U 滿足:

    P(X≤1∣pU)=(1−pU)4+4pU(1−pU)3=0.075P(X \le 1 \mid p_U) = (1 - p_U)^4 + 4 p_U (1 - p_U)^3 = 0.075

    數值解得 pU≈0.6414p_U \approx 0.6414。
    精確 85% 信賴區間為 [0.0194,0.6414][0.0194, 0.6414]。

  • 方法二(若考題要求直接套用標準 Wald 區間公式):

    p^=14=0.25\hat{p} = \frac{1}{4} = 0.25

    對應 85% 信賴水準,查標準常態臨界值 z0.075≈1.44z_{0.075} \approx 1.44:

    p^±z0.075p^(1−p^)n=0.25±1.440.25×0.754=0.25±1.44×0.2165=0.25±0.3118\hat{p} \pm z_{0.075} \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} = 0.25 \pm 1.44 \sqrt{\frac{0.25 \times 0.75}{4}} = 0.25 \pm 1.44 \times 0.2165 = 0.25 \pm 0.3118

    截斷至機率合理範圍 [0,1][0, 1] 後為 [0,0.5618][0, 0.5618](或一般 Wald 區間式 [−0.0618,0.5618][-0.0618, 0.5618])。


(c) 當 n=50n = 50,以 Y=X/nY = X/n 為檢定統計量

(1) 根據中央極限定理(CLT),說明 YY 的漸近分配

Y=Xn=1n∑i=1nBiY = \frac{X}{n} = \frac{1}{n}\sum_{i=1}^n B_i,其中 Bi∼iidBernoulli(p)B_i \overset{\text{iid}}{\sim} \text{Bernoulli}(p),期望值 E(Bi)=pE(B_i) = p,變異數 Var(Bi)=p(1−p)\text{Var}(B_i) = p(1-p)。
當 n=50n = 50 充足大時,由中央極限定理(CLT):

Y∼aN(p,p(1−p)n)=N(p,p(1−p)50)Y \stackrel{a}{\sim} N\left(p, \frac{p(1-p)}{n}\right) = N\left(p, \frac{p(1-p)}{50}\right)

在 H0:p=0.5H_0: p = 0.5 成立下:

E(Y)=0.5,Var(Y)=0.5×0.550=0.2550=0.005E(Y) = 0.5, \quad \text{Var}(Y) = \frac{0.5 \times 0.5}{50} = \frac{0.25}{50} = 0.005

標準誤 σY=0.005≈0.07071\sigma_Y = \sqrt{0.005} \approx 0.07071。
因此 YY 的漸近分配為:

Y∼aN(0.5,0.005)Y \stackrel{a}{\sim} N(0.5, 0.005)
(2) 顯著水準 α=0.15\alpha = 0.15 下的拒絕域與正面出現的臨界次數

雙尾檢定,兩側尾端機率各為 α/2=0.075\alpha / 2 = 0.075。
查標準常態分配臨界值:z0.075≈1.44z_{0.075} \approx 1.44(即 P(Z>1.44)≈0.075P(Z > 1.44) \approx 0.075)。
標準常態統計量為:

Z=Y−0.50.005=Y−0.50.07071Z = \frac{Y - 0.5}{\sqrt{0.005}} = \frac{Y - 0.5}{0.07071}

拒絕規則為:

Reject H0 if ∣Z∣>1.44  ⟺  Y<0.5−1.44(0.07071) 或 Y>0.5+1.44(0.07071)\text{Reject } H_0 \text{ if } |Z| > 1.44 \iff Y < 0.5 - 1.44(0.07071) \text{ 或 } Y > 0.5 + 1.44(0.07071)

計算 YY 的臨界值:

Y<0.5−0.1018=0.3982或Y>0.5+0.1018=0.6018Y < 0.5 - 0.1018 = 0.3982 \quad \text{或} \quad Y > 0.5 + 0.1018 = 0.6018

轉換為正面次數 X=50YX = 50Y:

X<50×0.3982=19.91或X>50×0.6018=30.09X < 50 \times 0.3982 = 19.91 \quad \text{或} \quad X > 50 \times 0.6018 = 30.09

由於 XX 為整數,拒絕 H0H_0 的臨界正面次數規則為:

🔒

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

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

免費註冊

第 4 題

  1. A sample of size n=10 is drawn from a normal distribution with unknown mean μ\mu and known variance σ2=4\sigma^2 = 4.
    (a) If the sample mean is xˉ=10\bar{x} = 10, what is the 95% confidence interval for μ\mu? (5 points)
    (b) If the sample mean is xˉ=10\bar{x} = 10, what is the p-value for the test of H0:μ=8H_0: \mu = 8 against Ha:μ>8H_a: \mu > 8? (5 points)
    (c) If we want to perform a hypothesis test of H0:μ=8H_0: \mu = 8 against Ha:μ≠8H_a: \mu \neq 8 with significance level α=0.05\alpha = 0.05, and we want the power of the test to be 0.8 when μ=9\mu = 9, what is the required sample size nn? (10 points)

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

這一題的完整詳解

本題主要考驗關於正態分佈的參數估計和假設檢定,特別是當母體變異數已知時,如何計算信賴區間、p-value 以及確定所需的樣本大小。

(a) If the sample mean is xˉ=10\bar{x} = 10, what is the 95% confidence interval for μ\mu?
題目給定樣本大小 n=10n=10,母體服從正態分佈,且已知母體變異數 σ2=4\sigma^2 = 4。因此,母體標準差 σ=4=2\sigma = \sqrt{4} = 2。
樣本均值 xˉ=10\bar{x} = 10。
由於母體變異數已知,我們使用 Z 分佈來建構信賴區間。
95% 信賴區間的公式為:xˉ±zα/2σn\bar{x} \pm z_{\alpha/2} \frac{\sigma}{\sqrt{n}}。
對於 95% 的信賴水準,α=1−0.95=0.05\alpha = 1 - 0.95 = 0.05。
α/2=0.025\alpha/2 = 0.025。
查找標準常態分佈表,與 0.0250.025 的尾部機率對應的 zz 值是 z0.025=1.96z_{0.025} = 1.96。
將已知數值代入公式:
信賴區間 =10±1.96×210= 10 \pm 1.96 \times \frac{2}{\sqrt{10}}
=10±1.96×23.162= 10 \pm 1.96 \times \frac{2}{3.162}
=10±1.96×0.632= 10 \pm 1.96 \times 0.632
=10±1.239= 10 \pm 1.239
信賴區間為 (10−1.239,10+1.239)=(8.761,11.239)(10 - 1.239, 10 + 1.239) = (8.761, 11.239)。

【答案】95% 信賴區間為 (8.761,11.239)(8.761, 11.239)。

(b) If the sample mean is xˉ=10\bar{x} = 10, what is the p-value for the test of H0:μ=8H_0: \mu = 8 against Ha:μ>8H_a: \mu > 8?
這是關於均值的單尾假設檢定。
虛無假設 H0:μ=8H_0: \mu = 8。
對立假設 Ha:μ>8H_a: \mu > 8。
已知 xˉ=10\bar{x} = 10, n=10n=10, σ=2\sigma = 2。
由於 σ\sigma 已知,我們使用 Z 檢定統計量。
檢定統計量 Z=xˉ−μ0σ/nZ = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}},其中 μ0\mu_0 是 H0H_0 下的均值。
Z=10−82/10=20.632≈3.162Z = \frac{10 - 8}{2/\sqrt{10}} = \frac{2}{0.632} \approx 3.162。
p-value 是在 H0H_0 為真時,觀察到比樣本結果更極端的結果的機率。對於右尾檢定 (Ha:μ>8H_a: \mu > 8),p-value 是 P(Z≥observed Z statistic∣H0)P(Z \ge \text{observed Z statistic} | H_0)。
p-value =P(Z≥3.162)= P(Z \ge 3.162)。
查標準常態分佈表, P(Z≥3.162)=1−P(Z<3.162)P(Z \ge 3.162) = 1 - P(Z < 3.162)。
P(Z<3.162)≈0.9992P(Z < 3.162) \approx 0.9992。
p-value ≈1−0.9992=0.0008\approx 1 - 0.9992 = 0.0008。

【答案】p-value 約為 0.00080.0008。

(c) If we want to perform a hypothesis test of H0:μ=8H_0: \mu = 8 against Ha:μ≠8H_a: \mu \neq 8 with significance level α=0.05\alpha = 0.05, and we want the power of the test to be 0.8 when μ=9\mu = 9, what is the required sample size nn?
這個問題是關於樣本大小的確定。
虛無假設 H0:μ=8H_0: \mu = 8。
對立假設 Ha:μ≠8H_a: \mu \neq 8。
顯著水準 α=0.05\alpha = 0.05。
檢定力 (Power) =0.8= 0.8。
當真實均值 μ=9\mu = 9 時,我們希望檢定力為 0.8。
由於 σ\sigma 已知,我們使用 Z 檢定。

對於雙尾檢定,顯著水準 α=0.05\alpha = 0.05,我們有 α/2=0.025\alpha/2 = 0.025。
對應的臨界 Z 值是 zα/2=z0.025=1.96z_{\alpha/2} = z_{0.025} = 1.96。
檢定力為 0.80.8,這表示在對立假設下,我們希望正確地拒絕 H0H_0 的機率為 0.80.8。
由於對立假設是 μ≠8\mu \neq 8,檢定力是指 P(Reject H0∣μ=9)=0.8P(\text{Reject } H_0 | \mu = 9) = 0.8。
在雙尾檢定中,拒絕域是 Z<−zα/2Z < -z_{\alpha/2} 或 Z>zα/2Z > z_{\alpha/2}。
所以,P(Xˉ−μ0σ/n<−zα/2 or Xˉ−μ0σ/n>zα/2∣μ=9)=0.8P(\frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}} < -z_{\alpha/2} \text{ or } \frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}} > z_{\alpha/2} | \mu = 9) = 0.8。
其中 μ0=8\mu_0 = 8。
P(Xˉ<μ0−zα/2σn or Xˉ>μ0+zα/2σn∣μ=9)=0.8P(\bar{X} < \mu_0 - z_{\alpha/2} \frac{\sigma}{\sqrt{n}} \text{ or } \bar{X} > \mu_0 + z_{\alpha/2} \frac{\sigma}{\sqrt{n}} | \mu = 9) = 0.8。

令 μalt=9\mu_{alt} = 9。
這等價於:
P(Xˉ<8−1.962n∣μ=9)+P(Xˉ>8+1.962n∣μ=9)=0.8P(\bar{X} < 8 - 1.96 \frac{2}{\sqrt{n}} | \mu = 9) + P(\bar{X} > 8 + 1.96 \frac{2}{\sqrt{n}} | \mu = 9) = 0.8。

我們將 Xˉ\bar{X} 標準化,使其均值為 μalt=9\mu_{alt}=9。
P(Xˉ−μaltσ/n<8−1.962n−92/n)+P(Xˉ−μaltσ/n>8+1.962n−92/n)=0.8P(\frac{\bar{X} - \mu_{alt}}{\sigma/\sqrt{n}} < \frac{8 - 1.96 \frac{2}{\sqrt{n}} - 9}{2/\sqrt{n}}) + P(\frac{\bar{X} - \mu_{alt}}{\sigma/\sqrt{n}} > \frac{8 + 1.96 \frac{2}{\sqrt{n}} - 9}{2/\sqrt{n}}) = 0.8。

🔒

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

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

免費註冊

第 5 題

  1. A random sample of size n=25n=25 is taken from a population with unknown mean μ\mu and unknown variance σ2\sigma^2.
    (a) If the sample mean is xˉ=10\bar{x}=10 and the sample standard deviation is s=5s=5, construct a 95% confidence interval for μ\mu. (5 points)
    (b) If we want to test H0:μ=8H_0: \mu=8 against Ha:μ≠8H_a: \mu \ne 8 with α=0.05\alpha=0.05, and the sample mean is xˉ=10\bar{x}=10 and the sample standard deviation is s=5s=5, what is the conclusion of the test? (5 points)
    (c) If the sample mean is xˉ=10\bar{x}=10 and the sample standard deviation is s=5s=5, what is the p-value for the test in part (b)? (5 points)

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

這一題的完整詳解

本題主要考驗當母體變異數未知時,如何進行樣本均值的信賴區間估計和假設檢定,這通常涉及到 t 分佈。

(a) If the sample mean is xˉ=10\bar{x}=10 and the sample standard deviation is s=5s=5, construct a 95% confidence interval for μ\mu.
題目給定樣本大小 n=25n=25,樣本均值 xˉ=10\bar{x}=10,樣本標準差 s=5s=5。
由於母體變異數 σ2\sigma^2 未知,我們使用 t 分佈來建構信賴區間。
信賴區間的公式為:xˉ±tα/2,dfsn\bar{x} \pm t_{\alpha/2, df} \frac{s}{\sqrt{n}}。
自由度 (degrees of freedom, df) 為 n−1=25−1=24n-1 = 25-1 = 24。
對於 95% 的信賴水準,α=1−0.95=0.05\alpha = 1 - 0.95 = 0.05。
α/2=0.025\alpha/2 = 0.025。
查找 t 分佈表,在 df=24 且右尾機率為 0.0250.025 的臨界值是 t0.025,24=2.064t_{0.025, 24} = 2.064。
將已知數值代入公式:
信賴區間 =10±2.064×525= 10 \pm 2.064 \times \frac{5}{\sqrt{25}}
=10±2.064×55= 10 \pm 2.064 \times \frac{5}{5}
=10±2.064×1= 10 \pm 2.064 \times 1
=10±2.064= 10 \pm 2.064
信賴區間為 (10−2.064,10+2.064)=(7.936,12.064)(10 - 2.064, 10 + 2.064) = (7.936, 12.064)。

【答案】95% 信賴區間為 (7.936,12.064)(7.936, 12.064)。

(b) If we want to test H0:μ=8H_0: \mu=8 against Ha:μ≠8H_a: \mu \ne 8 with α=0.05\alpha=0.05, and the sample mean is xˉ=10\bar{x}=10 and the sample standard deviation is s=5s=5, what is the conclusion of the test?
這是關於均值的雙尾假設檢定,母體變異數未知。
虛無假設 H0:μ=8H_0: \mu = 8。
對立假設 Ha:μ≠8H_a: \mu \neq 8。
顯著水準 α=0.05\alpha = 0.05。
樣本數據:n=25n=25, xˉ=10\bar{x}=10, s=5s=5。
由於 σ2\sigma^2 未知,我們使用 t 檢定。
檢定統計量 t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}。
t=10−85/25=25/5=21=2t = \frac{10 - 8}{5/\sqrt{25}} = \frac{2}{5/5} = \frac{2}{1} = 2。
自由度 df = n−1=24n-1 = 24。

對於雙尾檢定,我們比較 ∣t∣|t| 和臨界值 tα/2,dft_{\alpha/2, df}。
α=0.05\alpha = 0.05, α/2=0.025\alpha/2 = 0.025, df = 24。
臨界值 t0.025,24=2.064t_{0.025, 24} = 2.064。
我們的檢定統計量 ∣t∣=∣2∣=2|t| = |2| = 2。
比較 ∣t∣|t| 和臨界值:2<2.0642 < 2.064。
由於 ∣t∣|t| 小於臨界值,我們不拒絕虛無假設 H0H_0。

結論:在顯著水準 α=0.05\alpha=0.05 下,沒有足夠的證據拒絕母體均值 μ=8\mu=8 的假設。

【答案】沒有足夠的證據拒絕 H0:μ=8H_0: \mu=8。

(c) If the sample mean is xˉ=10\bar{x}=10 and the sample standard deviation is s=5s=5, what is the p-value for the test in part (b)?

🔒

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

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

免費註冊

其他考古題