113 年 國立臺北大學金融與合作經營學系碩士班《統計學》

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

第 1 題

Each bag in a large box contain 25 tulip bulbs. Three-fourths of the bags contain bulbs for 5 red and 20 yellow tulips; one-fourths of the bags contain bulbs for 15 red and 10 yellow tulips. A bag is selected at random and one bulb is planted. Give the probability that it will produce a
(a) (5%) Red tulip, say P(R)P(R).
(b) (5%) If the tulip is red, find the conditional probability that a bag having 15 red and 10 yellow tulips was selected.

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

這一題的完整詳解

本題考驗機率的基本概念,包含聯合機率、條件機率以及全機率公式的應用。

首先,我們定義事件:
令 B1B_1 為選到含有 5 顆紅球和 20 顆黃球的袋子。
令 B2B_2 為選到含有 15 顆紅球和 10 顆黃球的袋子。
令 RR 為選到紅球的事件。

根據題目敘述,袋子的比例為:
P(B1)=34P(B_1) = \frac{3}{4}
P(B2)=14P(B_2) = \frac{1}{4}

(a) 求選到紅球的機率 P(R)P(R)。
我們可以使用全機率公式來計算 P(R)P(R):
P(R)=P(R∣B1)P(B1)+P(R∣B2)P(B2)P(R) = P(R|B_1)P(B_1) + P(R|B_2)P(B_2)

首先計算條件機率 P(R∣B1)P(R|B_1) 和 P(R∣B2)P(R|B_2):
在袋子 B1B_1 中,有 5 顆紅球和 20 顆黃球,總共 25 顆。
P(R∣B1)=525=15P(R|B_1) = \frac{5}{25} = \frac{1}{5}

在袋子 B2B_2 中,有 15 顆紅球和 10 顆黃球,總共 25 顆。
P(R∣B2)=1525=35P(R|B_2) = \frac{15}{25} = \frac{3}{5}

🔒

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

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

免費註冊

第 2 題

Let X and Y denote the tarsus lengths of male and female grackles, respectively. Assume that X is N(μx,σx2)N(\mu_x, \sigma_x^2) and Y is N(μy,σy2)N(\mu_y, \sigma_y^2). A sample of size n=25 yielded xˉ=33.80\bar{x}=33.80, sx=4.88s_x=4.88, and a sample of size m=30 yielded yˉ=31.66\bar{y} = 31.66, sy=5.81s_y= 5.81.
Test
(a) (10%) H0:σx2/σy2=1H_0: \sigma_x^2/\sigma_y^2 = 1 against a two-side alternative with α=0.02\alpha = 0.02.
(b) (10%) H0:μx=μyH_0: \mu_x = \mu_y against H1:μx>μyH_1: \mu_x > \mu_y with α=0.01\alpha = 0.01.
(Some critical values Fα(df1,df2)F_\alpha(df_1, df_2) and tα(df)t_\alpha(df), where Pr(F>Fα(df1,df2))=αPr(F > F_\alpha(df_1, df_2)) = \alpha and Pr(t>tα(df))=αPr(t > t_\alpha(df)) = \alpha, are given as follows :
F0.02(24,29)=2.236F_{0.02}(24, 29) = 2.236, F0.01(24,29)=2.495F_{0.01}(24, 29) = 2.495, F0.02(29,24)=2.306F_{0.02}(29, 24) = 2.306,
F0.01(29,24)=2.589F_{0.01}(29, 24) = 2.589, F0.02(30,25)=2.267F_{0.02}(30, 25) = 2.267, F0.01(30,25)=2.538F_{0.01}(30, 25) = 2.538,
t0.01(53)=2.398t_{0.01}(53) = 2.398, t0.01(54)=2.397t_{0.01}(54) = 2.397, t0.01(55)=2.396t_{0.01}(55) = 2.396,
t0.005(53)=2.672t_{0.005}(53) = 2.672, t0.005(54)=2.670t_{0.005}(54) = 2.670, t0.005(55)=2.668t_{0.005}(55) = 2.668)

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

這一題的完整詳解

本題主要考驗樣本數據進行變異數檢定 (F-test) 和平均數檢定 (t-test) 的能力。

首先,我們整理樣本數據:
男性樣本 (X): n=25n=25, xˉ=33.80\bar{x}=33.80, sx=4.88s_x=4.88
女性樣本 (Y): m=30m=30, yˉ=31.66\bar{y}=31.66, sy=5.81s_y=5.81

(a) 檢定變異數比例是否為 1:H0:σx2/σy2=1H_0: \sigma_x^2/\sigma_y^2 = 1 對 H1:σx2/σy2≠1H_1: \sigma_x^2/\sigma_y^2 \neq 1,顯著水準 α=0.02\alpha = 0.02。
此檢定使用 F 檢定。檢定統計量為:
F=sx2sy2F = \frac{s_x^2}{s_y^2}
自由度為 df1=n−1=25−1=24df_1 = n-1 = 25-1 = 24 (分子),df2=m−1=30−1=29df_2 = m-1 = 30-1 = 29 (分母)。

計算樣本變異數:
sx2=(4.88)2=23.8144s_x^2 = (4.88)^2 = 23.8144
sy2=(5.81)2=33.7561s_y^2 = (5.81)^2 = 33.7561

計算檢定統計量:
F=23.814433.7561≈0.7055F = \frac{23.8144}{33.7561} \approx 0.7055

臨界值:
由於是雙邊檢定,我們需要尋找 α/2=0.01\alpha/2 = 0.01 的臨界值。
根據題目提供的臨界值,F0.01(24,29)=2.495F_{0.01}(24, 29) = 2.495。
拒絕域為 F<F1−α/2(df1,df2)F < F_{1-\alpha/2}(df_1, df_2) 或 F>Fα/2(df1,df2)F > F_{\alpha/2}(df_1, df_2)。
由於 F 分佈不對稱,我們需要查找 F0.01(24,29)F_{0.01}(24, 29) 和 F0.99(29,24)F_{0.99}(29, 24)。
但題目僅提供右尾臨界值。在實際應用中,若 sx2>sy2s_x^2 > s_y^2,則用 sx2/sy2s_x^2/s_y^2 對 Fα/2(n−1,m−1)F_{\alpha/2}(n-1, m-1) 檢定;若 sx2<sy2s_x^2 < s_y^2,則用 sy2/sx2s_y^2/s_x^2 對 Fα/2(m−1,n−1)F_{\alpha/2}(m-1, n-1) 檢定。
在此情況下,sx2<sy2s_x^2 < s_y^2,我們應該計算 F=sy2/sx2F = s_y^2/s_x^2 並與 F0.01(29,24)F_{0.01}(29, 24) 比較。
F=33.756123.8144≈1.4175F = \frac{33.7561}{23.8144} \approx 1.4175
臨界值 F0.01(29,24)=2.589F_{0.01}(29, 24) = 2.589。

決策:
由於 1.4175<2.5891.4175 < 2.589,統計量落在接受域。
因此,我們不拒絕虛無假說 H0H_0。

【答案】不拒絕 H0H_0。

🔒

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

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

免費註冊

第 3 題

Let X1, X2, ..., and Xn be a random sample from distributions with the following probability density functions. In each case find the maximum likelihood estimator θ^\hat{\theta}.
(a) (5%) f(x;θ)=θxθ−1,0<x<1,0<θ<∞f(x; \theta) = \theta x^{\theta-1}, 0 < x < 1, 0 < \theta < \infty
(b) (5%) f(x;θ)=1/θ,0<x<θ<∞f(x; \theta) = 1/\theta, 0 < x < \theta < \infty

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

這一題的完整詳解

本題考驗 Maximum Likelihood Estimator (MLE) 的求法。MLE 的基本步驟是寫出概似函數 (Likelihood Function),然後取對數得到對數概似函數 (Log-Likelihood Function),最後對參數求偏微分並令其為零,解出參數估計值。

(a) 給定機率密度函數 f(x;θ)=θxθ−1,0<x<1,0<θ<∞f(x; \theta) = \theta x^{\theta-1}, 0 < x < 1, 0 < \theta < \infty。
設 X1,X2,…,XnX_1, X_2, \dots, X_n 為來自此分佈的隨機樣本。
概似函數 L(θ)L(\theta) 為:
L(θ)=∏i=1nf(xi;θ)=∏i=1n(θxiθ−1)L(\theta) = \prod_{i=1}^{n} f(x_i; \theta) = \prod_{i=1}^{n} (\theta x_i^{\theta-1})
L(θ)=θn∏i=1nxiθ−1L(\theta) = \theta^n \prod_{i=1}^{n} x_i^{\theta-1}
L(θ)=θn(∏i=1nxi)θ−1L(\theta) = \theta^n (\prod_{i=1}^{n} x_i)^{\theta-1}

對數概似函數 ln⁡L(θ)\ln L(\theta) 為:
ln⁡L(θ)=nln⁡θ+(θ−1)∑i=1nln⁡xi\ln L(\theta) = n \ln \theta + (\theta-1) \sum_{i=1}^{n} \ln x_i

對 θ\theta 求偏微分並令其為零:
∂ln⁡L(θ)∂θ=nθ+∑i=1nln⁡xi\frac{\partial \ln L(\theta)}{\partial \theta} = \frac{n}{\theta} + \sum_{i=1}^{n} \ln x_i

令 ∂ln⁡L(θ)∂θ=0\frac{\partial \ln L(\theta)}{\partial \theta} = 0:
nθ+∑i=1nln⁡xi=0\frac{n}{\theta} + \sum_{i=1}^{n} \ln x_i = 0
nθ=−∑i=1nln⁡xi\frac{n}{\theta} = - \sum_{i=1}^{n} \ln x_i
nθ=∑i=1n(−ln⁡xi)\frac{n}{\theta} = \sum_{i=1}^{n} (-\ln x_i)
nθ=∑i=1nln⁡(1xi)\frac{n}{\theta} = \sum_{i=1}^{n} \ln(\frac{1}{x_i})

此時,我們需要注意定義域 0<x<10 < x < 1。因此 ln⁡xi<0\ln x_i < 0,且 −ln⁡xi>0-\ln x_i > 0。
θ=n∑i=1n(−ln⁡xi)\theta = \frac{n}{\sum_{i=1}^{n} (-\ln x_i)}
θ=n−∑i=1nln⁡xi\theta = \frac{n}{- \sum_{i=1}^{n} \ln x_i}

我們知道樣本平均數 xˉ=1n∑xi\bar{x} = \frac{1}{n} \sum x_i。
這個形式的 MLE 通常與期望值有關。
考慮 E[−ln⁡X]E[-\ln X]:
E[−ln⁡X]=−∫01(ln⁡x)θxθ−1dxE[-\ln X] = - \int_{0}^{1} (\ln x) \theta x^{\theta-1} dx
令 u=xθu = x^\theta, du=θxθ−1dxdu = \theta x^{\theta-1} dx。當 x=0,u=0x=0, u=0; 當 x=1,u=1x=1, u=1。
x=u1/θx = u^{1/\theta}
ln⁡x=1θln⁡u\ln x = \frac{1}{\theta} \ln u

🔒

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

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

免費註冊

第 4 題

(10%) Assume that a stock is picked from a population of stocks at random. The average return of the population of stocks is 20%, and the standard deviation of the population of stocks is 2%. To calculate the maximum of the probability that a stock picked at random from this population, which has a return less than 16% or greater than 24%.

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

這一題的完整詳解

本題考驗標準常態分配的應用,特別是計算機率的區間。題目假設股票報酬率服從常態分配。

設股票的報酬率為 RR。
根據題目,報酬率的母體平均數 μ=20%\mu = 20\%,母體標準差 σ=2%\sigma = 2\%。
我們假設報酬率 RR 服從常態分配 N(μ,σ2)=N(20,22)N(\mu, \sigma^2) = N(20, 2^2)。

題目要求計算股票報酬率小於 16% 或大於 24% 的機率,即 P(R<16 or R>24)P(R < 16 \text{ or } R > 24)。
由於事件 R<16R < 16 和 R>24R > 24 是互斥的,因此:
P(R<16 or R>24)=P(R<16)+P(R>24)P(R < 16 \text{ or } R > 24) = P(R < 16) + P(R > 24)

我們需要將這些值標準化,轉換為標準常態分配 Z∼N(0,1)Z \sim N(0, 1)。
標準化公式為 Z=R−μσZ = \frac{R - \mu}{\sigma}。

🔒

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

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

免費註冊

第 5 題

In a presidential election campaign, two potential candidates argue who has higher supporting ratio. They tend to incorporate into a candidate group, however, they have inconsistent ideas on who should be the vice-president candidate. Candidate A suggests if the poll demonstrates the difference of supporting rate between two candidate groups is not significant, he will support B to be the presidential candidate; otherwise, A should be the presidential candidate and B the vice.
(a) (7%) If the poll surveys at 95% confidence level and the sampling error is approximately ±3%, how large of the sample size should be interviewed at least? 【Z0.975=1.96Z_{0.975} = 1.96】
(b) (7%) The results of the poll:. Group (A,B) represents A the presidential candidate and B the vice; Group (B,A) vice versa.

Group (A,B)Support rate (p)Sample size (N)
Group (B,A)48.3%2,046
46.1%2,046
How do they make the decision? (at 95% confidence level)

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

這一題的完整詳解

本題考驗樣本數的決定以及兩個比例的假設檢定。

(a) 求樣本數的決定。
題目要求在 95% 信賴水準下,抽樣誤差約為 ±3%,求至少需要訪查的樣本數。
我們知道抽樣誤差 (Margin of Error, MOE) 的公式為:
MOE=Zα/2p^(1−p^)nMOE = Z_{\alpha/2} \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}
其中 Zα/2Z_{\alpha/2} 是信賴水準對應的 Z 值,p^\hat{p} 是樣本比例,n 是樣本數。

在題目中:
信賴水準 = 95%,所以 α=1−0.95=0.05\alpha = 1 - 0.95 = 0.05。
Zα/2=Z0.025=1.96Z_{\alpha/2} = Z_{0.025} = 1.96 (題目已給定 Z0.975=1.96Z_{0.975} = 1.96,這表示信賴區間的上界,對應的 α/2\alpha/2 是 0.025)。
抽樣誤差 MOE=0.03MOE = 0.03 (3%)。

為了估計樣本數,我們通常會使用最保守的 p^=0.5\hat{p} = 0.5,因為這會使得 p^(1−p^)\hat{p}(1-\hat{p}) 最大,從而得到最大的樣本數。
0.03=1.960.5(1−0.5)n0.03 = 1.96 \sqrt{\frac{0.5(1-0.5)}{n}}
0.03=1.960.25n0.03 = 1.96 \sqrt{\frac{0.25}{n}}
0.03=1.96×0.5n0.03 = 1.96 \times \frac{0.5}{\sqrt{n}}
0.03=0.98n0.03 = \frac{0.98}{\sqrt{n}}
n=0.980.03≈32.67\sqrt{n} = \frac{0.98}{0.03} \approx 32.67
n=(32.67)2≈1067.3n = (32.67)^2 \approx 1067.3

由於樣本數必須是整數,且我們需要至少多少樣本,所以要向上取整。
n≥1068n \ge 1068。

如果題目提供的 3%3\% 是指兩個比例的差異的抽樣誤差,則情況會更複雜。但通常 MOE 指的是單一比例的抽樣誤差。
題目也給了實際的樣本數 2046,這比我們計算出的 1068 大很多。這可能是因為實際調查者預期比例離 0.5 較遠,或者有其他考量。但根據題意,我們直接使用公式求解。

【答案】至少需要訪查 1068 個樣本。

(b) 根據民意調查結果做出決策。
題目給出兩個候選人組合的民意調查結果:
組合 (A,B) (A 為總統候選人, B 為副手): 支持率 p1=48.3%=0.483p_1 = 48.3\% = 0.483, 樣本數 n1=2046n_1 = 2046。
組合 (B,A) (B 為總統候選人, A 為副手): 支持率 p2=46.1%=0.461p_2 = 46.1\% = 0.461, 樣本數 n2=2046n_2 = 2046。

🔒

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

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

免費註冊

第 6 題

A bank constructs a computer system for reviewing small-size loans. The following data discloses the cases reviewed by the system:
Total loan cases: 54,231
Passed cases by computer review: 49,082
Non-default cases after computer review: 46,880
Default cases after computer review: 2,202
Cases rejected by computer system: 5,149. Then the cases are sent to be reviewed by manually. Non-default cases after manual review: 4,585; default cases after manual review: 564.
(a) (8%) By the perspective of the computer system, fill up the following confusion matrix with number of cases.
Computer reviewing cases | Non-default | Default
Predicted | |
| Actual | Non-default | Default
(b) (4%) What are the ratios of type I error and type II error ?
(c) (14%) Calculate "Accuracy ratio", "Precision ratio", "Recall ratio", "False positive ratio", "False negative ratio", "F1-score".

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

這一題的完整詳解

核心觀念
本題屬於二元分類的 混淆矩陣 (confusion matrix) 應用。

  • 實際 (Actual):案件真正的還款狀況。
  • 預測 (Predicted):電腦系統的審核結論(通過=預測 非違約,拒絕=預測 違約)。
  • TP、TN、FP、FN 的定義
預測 Non‑default (通過)預測 Default (拒絕)
Actual Non‑defaultTNFP
Actual DefaultFNTP
  • Type I error =  FP / (FP + TN)(把真實非違約誤判為違約)
  • Type II error =  FN / (FN + TP)(把真實違約誤判為非違約)
  • 其他指標:Accuracy、Precision、Recall、FPR、FNR、F1‑score,均直接由四格數值衍生。

(a) 混淆矩陣填寫

根據題目敘述:

預測 Non‑default (通過)預測 Default (拒絕)
Actual Non‑default (46,880 件)TN = 46,880FP = 4,585
Actual Default (2,202 + 564 = 2,766)FN = 2,202TP = 564
  • 電腦系統通過 49,082 件,其中 46,880 為真實非違約,2,202 為真實違約。
  • 電腦系統拒絕 5,149 件,經人工審核後得:4,585 為真實非違約,564 為真實違約。

(b) Type I 與 Type II 錯誤率

🔒

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

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

免費註冊

第 7 題

(10%) Please derive when n→∞ and small p, binomial distribution will approach to Poisson distribution.

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

這一題的完整詳解

本題考驗二項分佈 (Binomial Distribution) 如何在特定條件下逼近蒲松分佈 (Poisson Distribution)。

二項分佈 B(n,p)B(n, p) 的機率質量函數 (PMF) 為:
P(X=k)=(nk)pk(1−p)n−kP(X=k) = \binom{n}{k} p^k (1-p)^{n-k}, 其中 k=0,1,2,…,nk = 0, 1, 2, \dots, n。

蒲松分佈 Pois(λ)Pois(\lambda) 的機率質量函數 (PMF) 為:
P(Y=k)=e−λλkk!P(Y=k) = \frac{e^{-\lambda} \lambda^k}{k!}, 其中 k=0,1,2,…k = 0, 1, 2, \dots。

我們需要證明當 n→∞n \to \infty 且 p→0p \to 0 時,二項分佈逼近蒲松分佈,且其參數 λ\lambda 應為 npnp。
也就是說,我們要證明:
lim⁡n→∞,p→0,np=λ(nk)pk(1−p)n−k=e−λλkk!\lim_{n \to \infty, p \to 0, np=\lambda} \binom{n}{k} p^k (1-p)^{n-k} = \frac{e^{-\lambda} \lambda^k}{k!}

我們逐一分析二項分佈 PMF 的各項在極限下的行為:

  1. (nk)=n!k!(n−k)!=n(n−1)…(n−k+1)k!\binom{n}{k} = \frac{n!}{k!(n-k)!} = \frac{n(n-1)\dots(n-k+1)}{k!}
    當 n→∞n \to \infty 且 kk 是固定的(通常是相對於 nn 較小的值),則:
    n(n−1)…(n−k+1)≈nkn(n-1)\dots(n-k+1) \approx n^k
    所以,(nk)≈nkk!\binom{n}{k} \approx \frac{n^k}{k!}

  2. pkp^k
    由於 np=λnp = \lambda,所以 p=λ/np = \lambda/n。
    則 pk=(λn)k=λknkp^k = (\frac{\lambda}{n})^k = \frac{\lambda^k}{n^k}

  3. (1−p)n−k(1-p)^{n-k}
    當 n→∞n \to \infty 且 p→0p \to 0,我們有 n−k≈nn-k \approx n。
    所以 (1−p)n−k≈(1−p)n(1-p)^{n-k} \approx (1-p)^n。
    我們知道一個重要的極限:lim⁡n→∞(1+xn)n=ex\lim_{n \to \infty} (1 + \frac{x}{n})^n = e^x。
    令 x=−λx = -\lambda:lim⁡n→∞(1−λn)n=e−λ\lim_{n \to \infty} (1 - \frac{\lambda}{n})^n = e^{-\lambda}。
    因此,(1−p)n−k≈(1−λn)n→e−λ(1-p)^{n-k} \approx (1 - \frac{\lambda}{n})^n \to e^{-\lambda}。

現在,將這三部分組合起來:
(nk)pk(1−p)n−k≈nkk!×λknk×e−λ\binom{n}{k} p^k (1-p)^{n-k} \approx \frac{n^k}{k!} \times \frac{\lambda^k}{n^k} \times e^{-\lambda}
=λkk!e−λ= \frac{\lambda^k}{k!} e^{-\lambda}

🔒

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

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

免費註冊

其他考古題