112 年 國立政治大學經濟學系碩士班《統計學》

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

第 1 題25 分

There are four restaurants in the Northtown area. The numbers of burgers sold at the respective restaurants for each of the last 6 weeks are shown below. At the .05 significance level, what is the value of the test statistic and is there a difference in the mean number sold among the four restaurants when the factor of week is considered?

Restaurant

WeekMetroInterstateUniversityRiver
1124160320190
2234220340230
3430290290240
4105245310170
5240205280180
6310260270205
🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 1 頁

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

這一題的完整詳解

核心觀念

本題探討在考慮「週次(Week)」作為區集因子(Blocking factor)的情境下,檢定「餐廳(Restaurant)」之間的平均漢堡銷售量是否有顯著差異。此架構屬於隨機完全區集設計(Randomized Complete Block Design, RCBD),亦即無重複試驗的二因子變異數分析(Two-Way ANOVA without Replication)。

1. 統計模型

設 yijy_{ij} 為第 jj 間餐廳在第 ii 週的漢堡銷售量,模型表示為:

yij=μ+βi+τj+εijy_{ij} = \mu + \beta_i + \tau_j + \varepsilon_{ij}

其中:

  • μ\mu 為總體平均數。
  • βi\beta_i 為區集效應(週次效應),i=1,2,…,bi = 1, 2, \dots, b(區集數 b=6b = 6 週)。
  • τj\tau_j 為處理效應(餐廳效應),j=1,2,…,kj = 1, 2, \dots, k(處理數 k=4k = 4 間餐廳)。
  • εij∼iidN(0,σ2)\varepsilon_{ij} \overset{iid}{\sim} N(0, \sigma^2) 為獨立隨機誤差項。

2. 假設檢定

針對主要研究目的「餐廳平均銷量是否不同」,設定虛無假設與對立假設:

  • 虛無假設 H0:τ1=τ2=τ3=τ4=0H_0: \tau_1 = \tau_2 = \tau_3 = \tau_4 = 0(四間餐廳的平均漢堡銷量無差異,即 μ1=μ2=μ3=μ4\mu_1 = \mu_2 = \mu_3 = \mu_4)
  • 對立假設 H1:H_1: τj\tau_j 不全為 0(至少有兩間餐廳的平均銷量存在差異)

3. 檢定統計量與拒絕域

將總變異平方和分解為:SST=SSTR+SSB+SSESST = SSTR + SSB + SSE。
檢定餐廳處理效應之檢定統計量為:

F=MSTRMSE=SSTR/(k−1)SSE/[(k−1)(b−1)]F = \frac{MSTR}{MSE} = \frac{SSTR / (k - 1)}{SSE / \left[(k - 1)(b - 1)\right]}

在 H0H_0 成立下,F∼F(k−1,(k−1)(b−1))=F(3,15)F \sim F(k - 1, (k - 1)(b - 1)) = F(3, 15)。
在顯著水準 α=0.05\alpha = 0.05 下,若 F>F0.05(3,15)F > F_{0.05}(3, 15),則拒絕 H0H_0。


解題方法

由原卷第 1 頁圖形表格可讀出:資料為 4 間餐廳(Metro、Interstate、University、River)在連續 6 週(Week 1 至 Week 6)之每週漢堡銷售量,處理數 k=4k = 4、區集數 b=6b = 6,總觀測值個數 N=b×k=24N = b \times k = 24。

步驟一:計算各處理總和、各區集總和與總和

各餐廳欄總和(TjT_j):

  • Metro (j=1j=1):T1=124+234+430+105+240+310=1443T_1 = 124 + 234 + 430 + 105 + 240 + 310 = 1443
  • Interstate (j=2j=2):T2=160+220+290+245+205+260=1380T_2 = 160 + 220 + 290 + 245 + 205 + 260 = 1380
  • University (j=3j=3):T3=320+340+290+310+280+270=1810T_3 = 320 + 340 + 290 + 310 + 280 + 270 = 1810
  • River (j=4j=4):T4=190+230+240+170+180+205=1215T_4 = 190 + 230 + 240 + 170 + 180 + 205 = 1215

各週列總和(BiB_i):

  • Week 1 (i=1i=1):B1=124+160+320+190=794B_1 = 124 + 160 + 320 + 190 = 794
  • Week 2 (i=2i=2):B2=234+220+340+230=1024B_2 = 234 + 220 + 340 + 230 = 1024
  • Week 3 (i=3i=3):B3=430+290+290+240=1250B_3 = 430 + 290 + 290 + 240 = 1250
  • Week 4 (i=4i=4):B4=105+245+310+170=830B_4 = 105 + 245 + 310 + 170 = 830
  • Week 5 (i=5i=5):B5=240+205+280+180=905B_5 = 240 + 205 + 280 + 180 = 905
  • Week 6 (i=6i=6):B6=310+260+270+205=1045B_6 = 310 + 260 + 270 + 205 = 1045

全體總和(Grand Total, GG):

G=∑j=14Tj=∑i=16Bi=5848G = \sum_{j=1}^4 T_j = \sum_{i=1}^6 B_i = 5848

校正項(Correction Factor, CFCF):

CF=G2N=5848224=3419910424=42748883≈1424962.67CF = \frac{G^2}{N} = \frac{5848^2}{24} = \frac{34199104}{24} = \frac{4274888}{3} \approx 1424962.67

步驟二:計算各項平方和(Sum of Squares)

  1. 原始資料平方和:
∑i=16∑j=14yij2=1242+1602+3202+⋯+2052=1546932\sum_{i=1}^6 \sum_{j=1}^4 y_{ij}^2 = 124^2 + 160^2 + 320^2 + \dots + 205^2 = 1546932

總平方和(SSTSST):

SST=∑i=16∑j=14yij2−CF=1546932−42748883=3659083≈121969.33SST = \sum_{i=1}^6 \sum_{j=1}^4 y_{ij}^2 - CF = 1546932 - \frac{4274888}{3} = \frac{365908}{3} \approx 121969.33

自由度 dfT=N−1=24−1=23df_T = N - 1 = 24 - 1 = 23。

  1. 餐廳處理平方和(SSTRSSTR):
∑j=14Tj2=14432+13802+18102+12152=2082249+1904400+3276100+1476225=8738974\sum_{j=1}^4 T_j^2 = 1443^2 + 1380^2 + 1810^2 + 1215^2 = 2082249 + 1904400 + 3276100 + 1476225 = 8738974 SSTR=∑j=14Tj2b−CF=87389746−42748883=945993=31533SSTR = \frac{\sum_{j=1}^4 T_j^2}{b} - CF = \frac{8738974}{6} - \frac{4274888}{3} = \frac{94599}{3} = 31533

自由度 dfTR=k−1=4−1=3df_{\text{TR}} = k - 1 = 4 - 1 = 3。

  1. 週次區集平方和(SSBSSB):
∑i=16Bi2=7942+10242+12502+8302+9052+10452=5841462\sum_{i=1}^6 B_i^2 = 794^2 + 1024^2 + 1250^2 + 830^2 + 905^2 + 1045^2 = 5841462 SSB=∑i=16Bi2k−CF=58414624−42748883=1460365.5−1424962.67=35402.83SSB = \frac{\sum_{i=1}^6 B_i^2}{k} - CF = \frac{5841462}{4} - \frac{4274888}{3} = 1460365.5 - 1424962.67 = 35402.83

自由度 dfB=b−1=6−1=5df_B = b - 1 = 6 - 1 = 5。

  1. 隨機誤差平方和(SSESSE):
SSE=SST−SSTR−SSB=121969.33−31533−35402.83=55033.50SSE = SST - SSTR - SSB = 121969.33 - 31533 - 35402.83 = 55033.50

自由度 dfE=(k−1)(b−1)=3×5=15df_E = (k - 1)(b - 1) = 3 \times 5 = 15。

步驟三:計算均方(Mean Square)與檢定統計量

  • 處理均方(MSTRMSTR):
MSTR=SSTRk−1=315333=10511MSTR = \frac{SSTR}{k - 1} = \frac{31533}{3} = 10511
  • 誤差均方(MSEMSE):
MSE=SSE(k−1)(b−1)=55033.5015=3668.90MSE = \frac{SSE}{(k - 1)(b - 1)} = \frac{55033.50}{15} = 3668.90
  • 檢定統計量 FF:
F=MSTRMSE=105113668.90≈2.865F = \frac{MSTR}{MSE} = \frac{10511}{3668.90} \approx 2.865

步驟四:編製變異數分析表(ANOVA Table)

變異來源 (Source)平方和 (SS)自由度 (df)均方 (MS)檢定統計量 FF
🔒

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

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

免費註冊

第 2 題25 分

For many years, TV executives used the guideline that 30% of the audience were watching each of the traditional big three prime-time networks and 10% were watching cable stations on a weekday night. A random sample of 500 viewers in the Tampa-St. Petersburg, Florida, area last Monday night showed that 165 homes were tuned in to the ABC affiliate, 140 to the CBS affiliate, and 125 to the NBC affiliate, with the remainder viewing a cable station. What is the value of the test statistic? At the .05 significance level, can we conclude that the guideline is still reasonable? What is the value of the test statistic?

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

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

這一題的完整詳解

核心觀念

本題考察「卡方適合度檢定(chi-square goodness-of-fit test)」,用來判斷樣本觀察到的各類別比例,是否符合既定的母體比例。

假設:

  • H0H_0:觀眾收視比例仍為 ABC、CBS、NBC 各 30%30\%,有線電視 10%10\%。
  • H1H_1:實際收視比例不符合上述指導比例。

卡方檢定統計量為

χ2=∑(O−E)2E\chi^2=\sum\frac{(O-E)^2}{E}

其中 OO 為觀察次數,EE 為在 H0H_0 成立下的期望次數。

解題方法

樣本數為 n=500n=500。依據既定比例,各類別的期望次數為:

頻道類別觀察次數 OO比例期望次數 EE
ABC16530%30\%500(0.30)=150500(0.30)=150
CBS14030%30\%500(0.30)=150500(0.30)=150
NBC12530%30\%500(0.30)=150500(0.30)=150
有線電視500−165−140−125=70500-165-140-125=7010%10\%500(0.10)=50500(0.10)=50

因此,

χ2=(165−150)2150+(140−150)2150+(125−150)2150+(70−50)250=225150+100150+625150+40050=1.5+0.6667+4.1667+8=14.3334\begin{aligned} \chi^2 &=\frac{(165-150)^2}{150} +\frac{(140-150)^2}{150} +\frac{(125-150)^2}{150} +\frac{(70-50)^2}{50}\\ &=\frac{225}{150} +\frac{100}{150} +\frac{625}{150} +\frac{400}{50}\\ &=1.5+0.6667+4.1667+8\\ &=14.3334 \end{aligned}

故檢定統計量為

χ2=14.33\boxed{\chi^2=14.33}

類別數為 k=4k=4,且沒有從資料估計參數,因此自由度為

df=k−1=4−1=3df=k-1=4-1=3
🔒

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

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

免費註冊

第 3 題20 分

An investigation of the effectiveness of a training program to improve customer relationships included a pre-training and a post-training customer survey. To compare the differences, they computed (post-training survey score - pre-training survey score). Seven customers were randomly selected and completed both surveys. The results are shown below. For a 0.05 significance level, what is the value of the test statistic and the decision regarding the hypothesis that the training was effective in improving customer relationships?

The information of question 3.

CustomerPre-training SurveyPost-training Survey
A68
B55
C1010
D710
E68
F56
G28
🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 1 頁原卷第 2 頁

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

這一題的完整詳解

核心觀念

本題評量成對樣本 tt 檢定(Paired tt-test / Dependent Samples tt-test)​之應用。

  1. 成對資料結構:針對同一組受試者(7 位顧客)在訓練前後進行重複量測,兩組分數非互相獨立,應將各成對觀測值轉化為單一差值變數: di=Xi,post−Xi,pre(i=1,2,…,n)d_i = X_{i, \text{post}} - X_{i, \text{pre}} \quad (i = 1, 2, \dots, n)
  2. 常態母體假設:假設差值母體服從常態分配 di∼i.i.d.N(μd,σd2)d_i \overset{i.i.d.}{\sim} N(\mu_d, \sigma_d^2),且母體變異數 σd2\sigma_d^2 未知。
  3. 檢定統計量(Test Statistic):
    以樣本差值平均數 dˉ\bar{d} 與樣本差值標準差 sds_d 建構 tt 統計量: t=dˉ−μd,0sdn∼t(n−1)t = \frac{\bar{d} - \mu_{d,0}}{\frac{s_d}{\sqrt{n}}} \sim t(n - 1) 其中自由度為 df=n−1df = n - 1。

解題方法

依考卷第 1 頁與第 2 頁附圖資訊,本題調查 7 位隨機抽樣顧客(AA 至 GG)在訓練前後的滿意度問卷分數,定義差異值為 d=(Post-training score−Pre-training score)d = (\text{Post-training score} - \text{Pre-training score}),欲在顯著水準 α=0.05\alpha = 0.05 下檢定此訓練計畫是否顯著有效提升顧客關係。

步驟一:整理樣本數據並計算差值

根據題意與表格數值,逐一計算差值 did_i 與離差平方 (di−dˉ)2(d_i - \bar{d})^2:

顧客 (Customer)訓練前 (XpreX_{\text{pre}})訓練後 (XpostX_{\text{post}})差值 di=Xpost−Xpred_i = X_{\text{post}} - X_{\text{pre}}離差 (di−dˉ)(d_i - \bar{d})離差平方 (di−dˉ)2(d_i - \bar{d})^2
A688−6=28 - 6 = 22−2=02 - 2 = 002=00^2 = 0
B555−5=05 - 5 = 00−2=−20 - 2 = -2(−2)2=4(-2)^2 = 4
C101010−10=010 - 10 = 00−2=−20 - 2 = -2(−2)2=4(-2)^2 = 4
D71010−7=310 - 7 = 33−2=13 - 2 = 112=11^2 = 1
E688−6=28 - 6 = 22−2=02 - 2 = 002=00^2 = 0
F566−5=16 - 5 = 11−2=−11 - 2 = -1(−1)2=1(-1)^2 = 1
G288−2=68 - 2 = 66−2=46 - 2 = 442=164^2 = 16
合計∑di=14\sum d_i = 14∑(di−dˉ)=0\sum (d_i - \bar{d}) = 0∑(di−dˉ)2=26\sum (d_i - \bar{d})^2 = 26

樣本數為 n=7n = 7。

步驟二:計算樣本統計量

  1. 樣本差值平均數(Sample Mean of Differences): dˉ=∑i=1ndin=147=2\bar{d} = \frac{\sum_{i=1}^n d_i}{n} = \frac{14}{7} = 2
  2. 樣本差值變異數與標準差(Sample Standard Deviation of Differences): sd2=∑i=1n(di−dˉ)2n−1=267−1=266=133≈4.3333s_d^2 = \frac{\sum_{i=1}^n (d_i - \bar{d})^2}{n - 1} = \frac{26}{7 - 1} = \frac{26}{6} = \frac{13}{3} \approx 4.3333 sd=133≈2.0817s_d = \sqrt{\frac{13}{3}} \approx 2.0817
  3. 樣本平均差值的標準誤(Standard Error): SE(dˉ)=sdn=1337=1321≈0.7868SE(\bar{d}) = \frac{s_d}{\sqrt{n}} = \frac{\sqrt{\frac{13}{3}}}{\sqrt{7}} = \sqrt{\frac{13}{21}} \approx 0.7868

步驟三:設定虛無假說與對立假說

題目欲檢驗訓練是否有效「提升」顧客關係(effective in improving customer relationships),即訓練後分數期望值大於訓練前(μd>0\mu_d > 0),故設立右尾(單尾)檢定:

H0:μd≤0(訓練計畫未能有效提升顧客關係)H_0: \mu_d \le 0 \quad (\text{訓練計畫未能有效提升顧客關係}) H1:μd>0(訓練計畫有效提升顧客關係)H_1: \mu_d > 0 \quad (\text{訓練計畫有效提升顧客關係})

步驟四:計算檢定統計量(Test Statistic)

在虛無假說 H0:μd=0H_0: \mu_d = 0 成立的條件下,檢定統計量為:

t=dˉ−0sdn=21321=2×2113=8413≈2.542t = \frac{\bar{d} - 0}{\frac{s_d}{\sqrt{n}}} = \frac{2}{\sqrt{\frac{13}{21}}} = 2 \times \sqrt{\frac{21}{13}} = \sqrt{\frac{84}{13}} \approx 2.542
🔒

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

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

免費註冊

第 4 題30 分

Suppose that the sales manager of a large automotive parts distributor wants to estimate the total annual sales for each of the company's regions. Five factors appear to be related to regional sales: the number of retail outlets in the region, the number of automobiles in the region registered as of April 1, the total personal income recorded in the first quarter of the year, the average age of the automobiles (years), and the number of sales supervisors in the region. The data for each region were gathered for last year. For example, see the following table. In region 1 there were 1,739 retail outlets stocking the company's automotive parts, there were 9,270,000 registered automobiles in the region as of April 1, and so on. The region's sales for that year were $37,702,000.

(1) (10%) The output for all five variables is shown below. What percent of the variation is explained by the regression equations?

(2) (20%) Some result is shown below. Conduct a global test of hypothesis to determine whether any of the regression coefficients are not zero. State null and alternate hypotheses. Identify and compute the test statistic, and formulate a decision rule. Use the .05 significance level.

Annual Sales ($millions), yNumber of Retail Outlets, x₁Number of Automobiles Registered (millions), x₂Personal Income ($billions), x₃Average Age of Automobiles (years), x₄Number of Supervisors, x₅
37.7021,7399.2785.43.59.0
24.1961,2215.8660.75.05.0
32.0551,8468.8168.14.47.0
3.6111203.8120.24.05.0
17.6251,09610.3133.83.57.0
45.9192,29011.6295.14.113.0
29.6001,6878.9669.34.115.0
8.1142416.2816.35.911.0
20.1166497.7734.95.516.0
12.9941,42710.9215.14.110.0
PredictorCoefSE CoefTP
Constant-19.6725.422-3.630.022
Outlets-0.00006290.002638-0.240.823
Automobiles1.73990.555303.150.035
Income0.409940.043859.350.001
age2.03570.87792.320.081
bosses-0.03440.1880-0.180.864

Analysis of Variance

SourceDFSSMSFP
Regression1593.81
Error9.08
Total
🖼️ 本題含圖表,以下為原卷對應頁面:
原卷第 2 頁原卷第 3 頁原卷第 4 頁

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

這一題的完整詳解

核心觀念

本題考多元線性迴歸的整體配適度與整體顯著性檢定。

決定係數 R2R^2 表示應變數總變異中,能由迴歸模型解釋的比例:

R2=SSRSST=SSRSSR+SSER^2=\frac{SSR}{SST} =\frac{SSR}{SSR+SSE}

整體 FF 檢定則檢驗五個斜率係數是否同時為零。若拒絕虛無假設,代表至少有一個解釋變數與年銷售額有線性關係。

解題方法

(1)計算迴歸解釋的變異百分比

題目給出迴歸平方和 SSR=1593.81SSR=1593.81、誤差平方和 SSE=9.08SSE=9.08,所以總平方和為:

SST=SSR+SSE=1593.81+9.08=1602.89SST=SSR+SSE=1593.81+9.08=1602.89

因此:

R2=1593.811602.89≈0.9943R^2=\frac{1593.81}{1602.89}\approx 0.9943

換算成百分比:

0.9943×100%≈99.43%0.9943\times 100\%\approx 99.43\%

答:迴歸模型解釋了約 99.43%99.43\% 的年銷售額變異。

(2)進行整體 FF 檢定

令 β1,…,β5\beta_1,\ldots,\beta_5 為五個解釋變數的母體迴歸係數,檢定假設為:

H0:β1=β2=β3=β4=β5=0H_0:\beta_1=\beta_2=\beta_3=\beta_4=\beta_5=0 Ha:至少一個 βj≠0H_a:\text{至少一個 }\beta_j\ne 0

共有 n=10n=10 筆資料、k=5k=5 個解釋變數,因此自由度為:

  • 迴歸自由度:dfR=k=5df_R=k=5
  • 誤差自由度:dfE=n−k−1=10−5−1=4df_E=n-k-1=10-5-1=4
  • 總自由度:dfT=n−1=9df_T=n-1=9

補上題目未填的 ANOVA 欄位:

來源自由度平方和均方
迴歸51593.811593.81/5=318.7621593.81/5=318.762
誤差49.089.08/4=2.279.08/4=2.27
總計91602.89—

檢定統計量為:

🔒

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

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

免費註冊

其他考古題