114 年 國立臺灣大學土木系碩士班交通組《工程統計》

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

第 1 題15 分

A student study club has members 2 from Taipei, 3 from Taichung, 5 from Tainan, and 2 from Kaohsiung. If a committee of 4 is selected at random, find the probability that
(a) all cities are represented;
(b) all cities except Taipei are represented.

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

這一題的完整詳解

核心觀念

總共有

2+3+5+2=122+3+5+2=12

名社員,從中隨機選出 44 人。每一個 44 人委員會被選出的機率相同,因此樣本總數為組合數

(124)=495.\binom{12}{4}=495.

本題主要考查:

  • 組合計數:(nr)\binom{n}{r}。
  • 乘法原理:各城市分別選人時,將各種選法相乘。
  • 互斥事件分類:依台北代表人數分情況計算。

解題方法

設四個城市的人數如下:

城市人數
台北2
台中3
台南5
高雄2

(a) 四個城市皆有代表

委員會共有 44 人,且四個城市都必須被代表,因此每個城市恰好選出 11 人。

有利選法為

(21)(31)(51)(21)=2⋅3⋅5⋅2=60.\binom{2}{1} \binom{3}{1} \binom{5}{1} \binom{2}{1} =2\cdot3\cdot5\cdot2 =60.

所以所求機率為

P(四個城市皆有代表)=60(124)=60495=433.P(\text{四個城市皆有代表}) = \frac{60}{\binom{12}{4}} = \frac{60}{495} = \boxed{\frac{4}{33}}.

(b) 除台北外,其餘城市皆有代表

要求台中、台南、高雄三個城市都至少有一位代表;台北是否有代表則不受限制。

依台北入選人數分類。

情況一:台北選出 0 人

此時須從台中、台南、高雄共 1010 人中選出 44 人,且三個城市都要有代表。

先從 1010 人中任選 44 人,再扣除缺少某一城市代表的情形:

(104)−(74)−(54)−(84)+(54).\binom{10}{4} -\binom{7}{4} -\binom{5}{4} -\binom{8}{4} +\binom{5}{4}.

其中:

🔒

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

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

免費註冊

第 2 題15 分

The average life of a type of bicycle is 10 years with a standard deviation of 2 years. The manufacturer gives a free bike if a bike is broken while under guarantee. If the manufacturer wishes to replace only 3% of the bikes that breaks, how long a guarantee should be offered? Assume that the lifetime of a bike follows a normal distribution.

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

這一題的完整詳解

本題考驗常態分布的機率計算與反向應用,目的是找出在給定損壞率下的保固期限。

核心觀念:常態分布、Z 分數、反標準常態分布查詢。

解題步驟:

設自行車的壽命 XX 服從常態分布,其平均值 μ=10\mu = 10 年,標準差 σ=2\sigma = 2 年。
即 X∼N(μ=10,σ2=22)X \sim N(\mu=10, \sigma^2=2^2)。

製造商希望更換的自行車比例(即在保固期內損壞的比例)為 3%。
設保固期為 gg 年。
則我們希望 P(X<g)=0.03P(X < g) = 0.03。

為了計算這個機率,我們需要將 XX 標準化為 Z 分數:
Z=X−μσ=X−102Z = \frac{X - \mu}{\sigma} = \frac{X - 10}{2}
當 X=gX = g 時,對應的 Z 分數為 z=g−102z = \frac{g - 10}{2}。
因此,原機率式可轉換為:
P(Z<g−102)=0.03P\left(Z < \frac{g - 10}{2}\right) = 0.03

🔒

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

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

免費註冊

第 3 題25 分

A random sample of 100 automobile owners shows that an automobile is driven on average 23,500 kilometers per year with a standard deviation of 3900 kilometers. Assume the distribution of measurements to be approximately normal.
(a) Construct a 99% confidence interval for the average number of kilometers an automobile is driven per year.
(b) With 99% confidence, what can we say about the possible size of error if we estimate the average number of kilometers driven by car owners to be 23,500 kilometers per year?

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

這一題的完整詳解

本題考驗點估計、信賴區間的建構以及誤差範圍的解釋,是統計推論的標準題型。

核心觀念:樣本統計量、中央極限定理(雖然題目已假設常態分布,但樣本數夠大時,樣本平均數的分布接近常態)、信賴區間、誤差範圍 (Margin of Error)。

解題步驟:

題目給定:
樣本數 n=100n = 100
樣本平均數 xˉ=23,500\bar{x} = 23,500 公里
樣本標準差 s=3,900s = 3,900 公里
(由於樣本數 n=100n=100 很大,我們可以用樣本標準差 ss 來估計母體標準差 σ\sigma。)
信賴水準為 99%,即 1−α=0.991 - \alpha = 0.99,所以 α=0.01\alpha = 0.01。

(a) 建構 99% 信賴區間

由於樣本數 n=100n=100 很大,我們可以應用 Z 分配來建構信賴區間。
信賴區間的公式為:
xˉ±Zα/2×sn\bar{x} \pm Z_{\alpha/2} \times \frac{s}{\sqrt{n}}
其中,Zα/2Z_{\alpha/2} 是標準常態分布中,尾部機率為 α/2\alpha/2 的 Z 值。
對於 99% 的信賴水準,α=0.01\alpha = 0.01,所以 α/2=0.005\alpha/2 = 0.005。
我們需要查找 Z0.005Z_{0.005},這個值是使得標準常態分布累積機率為 1−0.005=0.9951 - 0.005 = 0.995 的 Z 值。
查閱標準常態分布表,我們找到 Z0.005≈2.576Z_{0.005} \approx 2.576。

現在將數值代入信賴區間公式:
23,500±2.576×3,90010023,500 \pm 2.576 \times \frac{3,900}{\sqrt{100}}
23,500±2.576×3,9001023,500 \pm 2.576 \times \frac{3,900}{10}
23,500±2.576×39023,500 \pm 2.576 \times 390

🔒

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

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

免費註冊

第 4 題25 分

Let us suppose that 12 Type A cars and 10 Type B cars. If the 12 Type A cars averaged 16 kilometers per liter with a standard deviation of 1.0 kilometer per liter and the 10 Type B cars averaged 11 kilometers per liter with a standard deviation of 0.8 kilometer per liter. Assume that the distances per liter for the car models are approximately normally distributed with equal variances.
Test the hypothesis that the fuel economy of Type A cars, on average, exceeds that of similarly equipped Type B cars by 4 kilometers per liter. Use a 0.10 level of significance. Clearly state the null and alternative hypothesis before you start.

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

這一題的完整詳解

本題考驗獨立樣本 t 檢定,用於比較兩組獨立樣本的平均數是否有顯著差異。題目特別要求檢定兩組平均數的差是否大於特定值。

核心觀念:獨立樣本 t 檢定、變異數同質性假設(題目已給定)、雙樣本比例檢定(雖然題目問的是差值,但本質上是比較兩個平均數)。

解題步驟:

首先,定義兩組樣本的統計量:
Type A 汽車:
樣本數 nA=12n_A = 12
樣本平均數 xˉA=16\bar{x}_A = 16 km/L
樣本標準差 sA=1.0s_A = 1.0 km/L

Type B 汽車:
樣本數 nB=10n_B = 10
樣本平均數 xˉB=11\bar{x}_B = 11 km/L
樣本標準差 sB=0.8s_B = 0.8 km/L

顯著水準 α=0.10\alpha = 0.10。
題目假設兩組數據近似常態分布且變異數相等(equal variances)。

1. 設定虛無假設 (H0H_0) 與對立假設 (H1H_1)

我們需要檢定 Type A 汽車的平均油耗是否「超過」Type B 汽車的平均油耗「4 公里/公升」。
設 μA\mu_A 為 Type A 汽車的母體平均油耗,μB\mu_B 為 Type B 汽車的母體平均油耗。
題目要求檢定的差異是 μA−μB\mu_A - \mu_B。
我們檢定的目標是 μA\mu_A 是否「超過」μB\mu_B 的 4 公里/公升,這意味著 μA−μB>4\mu_A - \mu_B > 4。

所以,
虛無假設 H0:μA−μB≤4H_0: \mu_A - \mu_B \le 4 (或寫成 μA−μB=4\mu_A - \mu_B = 4,因為檢定是基於等號進行的)
對立假設 H1:μA−μB>4H_1: \mu_A - \mu_B > 4

這是一個右尾檢定。

2. 計算合併標準差 (Pooled Standard Deviation)

由於題目假設變異數相等,我們需要計算合併變異數 sp2s_p^2。
sp2=(nA−1)sA2+(nB−1)sB2nA+nB−2s_p^2 = \frac{(n_A - 1)s_A^2 + (n_B - 1)s_B^2}{n_A + n_B - 2}
sp2=(12−1)(1.0)2+(10−1)(0.8)212+10−2s_p^2 = \frac{(12 - 1)(1.0)^2 + (10 - 1)(0.8)^2}{12 + 10 - 2}
sp2=11×1.00+9×0.6420s_p^2 = \frac{11 \times 1.00 + 9 \times 0.64}{20}
sp2=11+5.7620s_p^2 = \frac{11 + 5.76}{20}
sp2=16.7620=0.838s_p^2 = \frac{16.76}{20} = 0.838

合併標準差 sp=0.838≈0.9154s_p = \sqrt{0.838} \approx 0.9154。

3. 計算檢定統計量 (Test Statistic)

🔒

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

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

免費註冊

第 5 題20 分

You are given three points: A(1,2), B(2,3), C(3,5).
(a) Fit a regression line y = mx + b to these points.
(b) Calculate the R2 (coefficient of determination) for this regression line.
(c) Can you use hypothesis test on whether the regression line is better than a flat line?

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

這一題的完整詳解

本題考驗簡單線性迴歸的應用,包含迴歸線的擬合、決定係數的計算,以及對迴歸模型進行假設檢定。

核心觀念:最小平方法、迴歸係數、決定係數 (R2R^2)、迴歸模型的顯著性檢定 (F 檢定或 t 檢定)。

給定點:
A(1, 2), B(2, 3), C(3, 5)
樣本數 n=3n = 3

1. 擬合迴歸線 y=mx+by = mx + b

我們使用最小平方法來找到最佳擬合線。
首先計算一些基本統計量:
xx 值:1, 2, 3
yy 值:2, 3, 5

∑x=1+2+3=6\sum x = 1 + 2 + 3 = 6
∑y=2+3+5=10\sum y = 2 + 3 + 5 = 10
xˉ=∑xn=63=2\bar{x} = \frac{\sum x}{n} = \frac{6}{3} = 2
yˉ=∑yn=103≈3.333\bar{y} = \frac{\sum y}{n} = \frac{10}{3} \approx 3.333

∑x2=12+22+32=1+4+9=14\sum x^2 = 1^2 + 2^2 + 3^2 = 1 + 4 + 9 = 14
∑y2=22+32+52=4+9+25=38\sum y^2 = 2^2 + 3^2 + 5^2 = 4 + 9 + 25 = 38
∑xy=(1×2)+(2×3)+(3×5)=2+6+15=23\sum xy = (1 \times 2) + (2 \times 3) + (3 \times 5) = 2 + 6 + 15 = 23

迴歸線斜率 mm 的計算公式:
m=n(∑xy)−(∑x)(∑y)n(∑x2)−(∑x)2m = \frac{n(\sum xy) - (\sum x)(\sum y)}{n(\sum x^2) - (\sum x)^2}
m=3(23)−(6)(10)3(14)−(6)2m = \frac{3(23) - (6)(10)}{3(14) - (6)^2}
m=69−6042−36m = \frac{69 - 60}{42 - 36}
m=96=1.5m = \frac{9}{6} = 1.5

迴歸線截距 bb 的計算公式:
b=yˉ−mxˉb = \bar{y} - m\bar{x}
b=103−1.5×2b = \frac{10}{3} - 1.5 \times 2
b=103−3b = \frac{10}{3} - 3
b=10−93=13≈0.333b = \frac{10 - 9}{3} = \frac{1}{3} \approx 0.333

所以,擬合的迴歸線為:
y=1.5x+13y = 1.5x + \frac{1}{3}

(a) 擬合的迴歸線為 y=1.5x+13y = 1.5x + \frac{1}{3}

2. 計算決定係數 R2R^2

決定係數 R2R^2 表示自變數 xx 解釋了應變數 yy 變異的百分比。
計算 R2R^2 的方法有多種,這裡我們使用以下公式:
R2=SSxy2SSxx×SSyyR^2 = \frac{SS_{xy}^2}{SS_{xx} \times SS_{yy}}
其中:
SSxy=∑xy−(∑x)(∑y)n=23−6×103=23−20=3SS_{xy} = \sum xy - \frac{(\sum x)(\sum y)}{n} = 23 - \frac{6 \times 10}{3} = 23 - 20 = 3
SSxx=∑x2−(∑x)2n=14−623=14−12=2SS_{xx} = \sum x^2 - \frac{(\sum x)^2}{n} = 14 - \frac{6^2}{3} = 14 - 12 = 2
SSyy=∑y2−(∑y)2n=38−1023=38−1003=114−1003=143SS_{yy} = \sum y^2 - \frac{(\sum y)^2}{n} = 38 - \frac{10^2}{3} = 38 - \frac{100}{3} = \frac{114 - 100}{3} = \frac{14}{3}

代入 R2R^2 公式:
R2=(3)22×143=9283=9×328=2728R^2 = \frac{(3)^2}{2 \times \frac{14}{3}} = \frac{9}{\frac{28}{3}} = 9 \times \frac{3}{28} = \frac{27}{28}

將其轉換為小數或百分比:
R2=2728≈0.9643R^2 = \frac{27}{28} \approx 0.9643

另一種計算 R2R^2 的方法:
R2=1−SSESSTR^2 = 1 - \frac{SSE}{SST}
其中 SSE (Sum of Squared Errors) 是殘差平方和,SST (Total Sum of Squares) 是總平方和。

首先計算預測值 y^i\hat{y}_i:
點 A(1, 2): y^1=1.5(1)+13=1.5+0.333=1.833\hat{y}_1 = 1.5(1) + \frac{1}{3} = 1.5 + 0.333 = 1.833
點 B(2, 3): y^2=1.5(2)+13=3+0.333=3.333\hat{y}_2 = 1.5(2) + \frac{1}{3} = 3 + 0.333 = 3.333
點 C(3, 5): y^3=1.5(3)+13=4.5+0.333=4.833\hat{y}_3 = 1.5(3) + \frac{1}{3} = 4.5 + 0.333 = 4.833

計算殘差 ei=yi−y^ie_i = y_i - \hat{y}_i:
e1=2−1.833=0.167e_1 = 2 - 1.833 = 0.167
e2=3−3.333=−0.333e_2 = 3 - 3.333 = -0.333
e3=5−4.833=0.167e_3 = 5 - 4.833 = 0.167

SSE = ∑ei2=(0.167)2+(−0.333)2+(0.167)2≈0.02789+0.11089+0.02789≈0.1667\sum e_i^2 = (0.167)^2 + (-0.333)^2 + (0.167)^2 \approx 0.02789 + 0.11089 + 0.02789 \approx 0.1667
(使用分數計算更精確:e1=2−(3/2+1/3)=2−(9/6+2/6)=2−11/6=1/6e_1 = 2 - (3/2 + 1/3) = 2 - (9/6 + 2/6) = 2 - 11/6 = 1/6
e2=3−(3+1/3)=3−10/3=−1/3e_2 = 3 - (3 + 1/3) = 3 - 10/3 = -1/3
e3=5−(9/2+1/3)=5−(27/6+2/6)=5−29/6=1/6e_3 = 5 - (9/2 + 1/3) = 5 - (27/6 + 2/6) = 5 - 29/6 = 1/6
SSE = (1/6)2+(−1/3)2+(1/6)2=1/36+1/9+1/36=1/36+4/36+1/36=6/36=1/6(1/6)^2 + (-1/3)^2 + (1/6)^2 = 1/36 + 1/9 + 1/36 = 1/36 + 4/36 + 1/36 = 6/36 = 1/6)

🔒

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

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

免費註冊

其他考古題