108 年 國立中山大學企業管理學系碩士甲班甲組《商用統計學》
第 1 題
A researcher has collected the following sample data.
5
6
12
7
6
8
5
12
5
4
The 75th percentile is
A. 7
B. 7.5
C. 8
D. 9
登入後即可作答並保存紀錄。
本題考查的是百分位數的計算。百分位數是指將一組數據由小到大排列後,某個百分點所對應的數值。第 百分位數 的定義是,有 的數據小於或等於 。
首先,將樣本數據由小到大排列:
4, 5, 5, 5, 6, 6, 7, 8, 12, 12
樣本數 。
我們要求第 75 百分位數 (),也就是有 75% 的數據小於或等於 。
計算位置 。
因為 不是整數,我們將位置向上取整,得到第 8 個數據。
第 8 個數據是 8。
另一種常用的計算方法是:
計算 。
第 2 題
The table below shows the population growth rate of a city for the years 2008 through 2012.
| Year | Population | Growth Factor |
|---|---|---|
| 2008 | 0.8923 | |
| 2009 | 1.0587 | |
| 2010 | 1.1934 | |
| 2011 | 1.2345 | |
| 2012 | 1.0995 | |
| What has been the average growth rate of the city form year 2008 to 2012? | ||
| A. 8.88% | ||
| B. 13.54% | ||
| C. 12.34% | ||
| D. 1.088% |
登入後即可作答並保存紀錄。
核心觀念
人口成長是逐年累乘的過程,因此,求能反映整段期間累積變化的平均年成長率,應使用成長因子的幾何平均數。
若第 年的成長率為 ,其成長因子為:
例如,成長因子 表示人口減少 ;成長因子 表示人口增加 。
若共有 個年度成長因子,平均年成長率 滿足:
因此:
解題方法
本題列出五個年度成長因子,以這五個因子代表五次年度人口變化,故取五次方根。
第一步:計算累積成長因子。
這表示經過五次年度變化後,人口為期初的約 倍,累積增加約 。
第二步:求等效的平均年成長率。
令每年的固定成長率為 ,使五年後得到相同人口:
所以:
選項分析
- A. :正確。 五個成長因子的幾何平均數減去 ,得到約 ,四捨五入至小數點後兩位即為 。
- **B. :錯誤。
第 3 題
The random variable X is the number of occurrences of an event over an interval of ten minutes. It can be assumed that the probability of an occurrence is the same in any two time periods of an equal length. It is known that the mean number of occurrences in ten minutes is 4. The probability that there are 3 occurrences in five minutes is
A. 0.1804
B. 0.1721
C. 0.1126
D. 0.9107
登入後即可作答並保存紀錄。
本題考查的是卜瓦松分布 (Poisson Distribution) 的應用。
題目描述的隨機變數 X 是指在一個固定時間間隔內事件發生的次數,並且假設事件發生的機率在相同長度的時間內是相同的,這符合卜瓦松分布的條件。
已知在「十分鐘」內的平均發生次數是 4。
卜瓦松分布的參數 代表在一個給定時間或空間單位內的平均發生次數。
所以,對於「十分鐘」這個時間單位,。
我們需要計算在「五分鐘」內有 3 次發生的機率。
首先,我們需要計算在「五分鐘」這個時間單位下的平均發生次數 。
由於時間間隔是成比例的,所以:
。
現在我們有了五分鐘時間內的平均發生次數 。
卜瓦松分布的機率質量函數 (Probability Mass Function, PMF) 為:
其中 是事件發生的次數。
第 4 題
(Continued with problem 3) What is the standard deviation of X?
A. 2.
B. 5
C. 3
D. 16
登入後即可作答並保存紀錄。
本題是接續上一題,考查卜瓦松分布的標準差。
對於卜瓦松分布,其平均數 (mean) 和變異數 (variance) 是相等的。
標準差 (standard deviation) 是變異數的平方根:
在上一題中,我們已經確定了題目所問的「五分鐘」時間間隔下的平均發生次數 。
所以,五分鐘時間內的變異數是 。
標準差是 。
計算 :。
然而,選項中並沒有 1.414。我們需要回頭檢查題目。
題目說「The random variable X is the number of occurrences of an event over an interval of ten minutes. It can be assumed that the probability of an occurrence is the same in any two time periods of an equal length. It is known that the mean number of occurrences in ten minutes is 4.」
第 5 題
The following table shows part of the probability distribution for the number of boats sold daily at Boats Unlimited. It is known that the average number of boats sold daily is 1.57.
| X | f(x) |
|---|---|
| 0 | 0.20 |
| 1 | 0.30 |
| 2 | 0.32 |
| 3 | ??? |
| 4 | 0.05 |
| 5 | 0.02 |
| Which of the following is the correct variance? | |
| A. variance = 1.5092 | |
| B. variance = 1.8903 | |
| C. variance = 1.4051 | |
| D. variance = 1.6881 |
登入後即可作答並保存紀錄。
本題考查離散隨機變數的變異數計算。
首先,我們需要補齊機率分佈表中遺漏的 值。
離散機率分佈的總機率必須為 1:
所以,
現在我們有了完整的機率分佈表:
| X | f(x) |
|---|---|
| 0 | 0.20 |
| 1 | 0.30 |
| 2 | 0.32 |
| 3 | 0.11 |
| 4 | 0.05 |
| 5 | 0.02 |
題目已知平均數 。
我們知道變異數的計算公式為:
其中 。
我們需要計算 :
第 6 題
The average life expectancy of dishwashers produced by a company is 6 years with a standard deviation of 8 months. Assume that the lives of dishwashers are normally distributed. If 155 of this year's dishwasher production fail operating in less than 4 years and 4 months, then how many dishwashers were produced this year? (Z_{0.0064}=2.49, Z_{0.0084}=2.39, Z_{0.0048}=2.59)
A. 24200
B. 34000
C. 29000
D. 40400
登入後即可作答並保存紀錄。
核心觀念
本題評量考生對常態分配標準化(Standardization)與母體比例(Population Proportion)推算總數的掌握度。
-
常態分配標準化:
若隨機變數 ,則經由標準化轉換:其中 為母體平均數, 為母體標準差。
-
臨界值與機率定義:
題目給定之符號記號 代表右尾臨界值,即滿足 。由標準常態分配之對稱性可知: -
總產量(母體總數)之估算:
設該年洗碗機總產量為 ,壽命小於特定門檻的機率(不良率或提早失效比率)為 。在已知失效台數為 的條件下,理論上有:
解題方法
步驟一:統一計量單位
為避免計算混淆,將時間單位統一換算為「月」:
- 平均壽命:
- 標準差:
- 目標失效壽命門檻:
步驟二:計算標準化值( 分數)
將 轉換為標準常態變數 :
步驟三:查表求出失效機率
由題目給定之已知條件:
計算出的 最接近臨界值 (僅差距 ),因此取:
步驟四:推算今年總產量
已知今年壽命小於 4 年 4 個月之洗碗機數量為 台:
對應選項中最接近且設計之整數值為 24,200 台(若直接以 進行反推,商數四捨五入至百位數即為 24,200)。
選項分析
- A. 24200(正確):
以標準常態分配估計失效比例 ,總產量 ,符合此選項數值。 - B. 34000(錯誤):
第 7 題
From a population that is not normally distributed and whose standard deviation is not known, a sample of 6 items is selected to develop an interval estimate for the mean of the population (μ). Then, which of the following is correct?
A. The normal distribution can be used.
B. The t distribution with 5 degrees of freedom must be used.
C. The t distribution with 6 degrees of freedom must be used.
D. The sample size must be increased.
登入後即可作答並保存紀錄。
核心觀念
區間估計用哪個分配,取決於:母體是否常態、 是否已知、樣本大小。
- 母體常態、 未知:用 分配,自由度 (小樣本也成立)。
- 母體非常態:只有在樣本夠大(一般 )時,靠中央極限定理才能近似使用 或 。小樣本時, 分配的理論基礎(母體常態)不成立。
本題判斷
題目條件:母體不是常態、 未知、(很小)。
- 母體非常態且樣本小,中央極限定理無法保證 近似常態,無法用常態分配,也不能保證 分配適用。
- 要建立可靠的區間估計,需要增加樣本數(足夠大),或另外取得母體常態的證據。
選項分析
第 8 題
A machine that produces a major part for an airplane engine is monitored closely. In the past, 10% of the parts produced would be defective. With a .95 probability, the sample size that needs to be taken if the desired margin of error is .04 or less is (Z_{0.025}=1.96)
A. 110
B. 111
C. 216
D. 217
登入後即可作答並保存紀錄。
核心觀念
本題考查母體比例的樣本數估計。當信賴水準為 、預期比例為 ,且容許誤差為 時,樣本比例的誤差上限為
將此式整理,可得所需樣本數:
題目給定過去不良率為 ,因此 、; 信賴水準對應 ,容許誤差為 。
解題方法
將題目數值代入樣本數公式:
樣本數必須是整數,且要確保誤差不超過 ,因此必須向上取整:
若取 件,實際誤差上限仍略大於 ;取 件才能達到題目要求。
選項分析
第 9 題
Two thousand numbers are selected randomly; 960 are even numbers. At the .10 level of significance using the p-value approach, test the hypotheses H₀: p = 0.5 vs. H₁: p ≠ 0.5. What is the range of p-value? (Z_{0.05}=1.645, Z_{0.025}=1.96)
A. p-value > 0.10
B. 0.025 < p-value < 0.05
C. 0.01 < p-value < 0.025
D. 0.05 < p-value < 0.1
登入後即可作答並保存紀錄。
本題考查對比例的假設檢定 (Hypothesis Test for Proportion) 及 p-value 的判斷。
檢定假設:
(母體中偶數的比例為 0.5)
(母體中偶數的比例不為 0.5)
這是雙尾檢定 (two-tailed test)。
樣本資訊:
總樣本數 。
樣本中偶數的個數為 960。
樣本比例 。
檢定統計量:
當 足夠大時 (例如 且 ),我們可以使用 Z 檢定。
條件滿足。
Z 檢定統計量為:
其中 是虛無假設中的比例值。
代入數值:
現在我們需要找到這個 Z 值對應的 p-value。
由於是雙尾檢定,p-value 。
p-value 。
由於常態分布對稱,p-value 。
我們需要查找 Z 值約為 -1.79 的機率。
題目給了 和 。
這表示:
第 10 題
H₀: μ = 120 vs. H₁: μ ≠ 120 are used to test whether a bath soap production process is meeting the standard output of 120 bars per batch. Use a 0.05 level of significance for the test and a planning value of 5 for the standard deviation. If the mean output drops to 117 bars per batch, the firm wants to have a 98% chance of concluding that the standard production output is not being met. How large a sample should be selected? (Z_{0.02}=2.05)
A. 44
B. 45
C. 46
D. 47
登入後即可作答並保存紀錄。
核心觀念
雙尾檢定若要在真實平均為 時達到指定的檢定力(),所需樣本數為
已知
- (雙尾)
- 檢定力 (題目給定)
- ,
計算
第 11 題
In national public opinion polls for interval estimation conducted by large professional organizations, what is the margin of error most commonly adopted?
A. 0.010.020.03
B. 0.02
C. 0.030.040.05
D. 0.04
登入後即可作答並保存紀錄。
核心觀念
比例估計在 信賴水準下的誤差界限(margin of error):
無先驗資訊時取 (變異最大、最保守)。大型民意調查機構通常用 95% 信賴水準,。誤差界限越小,所需樣本數越大,成本越高,所以實務上會在精確度與成本之間取折衷。
解題方法
由 反推所需樣本數(95% 信賴、):
- :
- :
- :
- :
全國性民調常見樣本數約 600 至 1,100 人,對應的誤差界限約為 (例如 時 )。要壓到 0.02 以下,樣本數需要 2,400 人以上,成本大幅上升;
第 12 題
The table below gives beverage preferences for random samples of teens and adults.
| Teens | Adults | Total | |
|---|---|---|---|
| Coffee | 10 | 40 | 50 |
| Soft Drinks | 30 | 20 | 50 |
| Total | 40 | 60 | 100 |
| We are asked to test for independence between age (i.e., adult and teen) and drink preferences. What is the value for the test statistic? | |||
| A. 5.991 | |||
| B. 7.815 | |||
| C. 14.067 | |||
| D. 16.67 |
登入後即可作答並保存紀錄。
本題考查獨立性檢定 (Test of Independence),使用卡方檢定 (Chi-squared Test)。
檢定假設:
: 年齡 (青少年/成人) 與飲料偏好 (咖啡/軟性飲料) 是獨立的。
: 年齡與飲料偏好之間存在關聯 (不獨立)。
檢定統計量:卡方統計量 的計算公式為:
其中:
- 是實際觀察到的次數 (Observed frequency) 在第 列 (飲料) 和第 行 (年齡) 的組合。
- 是在虛無假設成立下,預期的次數 (Expected frequency) 在第 列和第 行的組合。
計算預期次數 :
預期次數的計算公式為:
我們有以下觀察次數表:
| Teens (j=1) | Adults (j=2) | Row Total | |
|---|---|---|---|
| Coffee (i=1) | 10 | 40 | 50 |
| Soft Drinks (i=2) | 30 | 20 | 50 |
| Column Total | 40 | 60 | 100 |
計算預期次數 :
(咖啡, 青少年)
(咖啡, 成人)
(軟飲, 青少年)
(軟飲, 成人)
現在計算卡方統計量 :
第 13 題
Consider the following information.
SSTR = 6750
SSE = 8000
H₀: μ₁ = μ₂ = μ₃ = μ₄
Hₐ: At least one mean is different
n=5 is selected from each population and the null hypothesis is to be tested at the 5% level of significance (table value F_{3,16; 0.05} = 3.24). The null hypothesis
A. should be rejected
B. should not be rejected
C. was designed incorrectly
D. cannot be tested
登入後即可作答並保存紀錄。
本題考查變異數分析 (Analysis of Variance, ANOVA) 的結果判讀,特別是 F 檢定的決策。
已知資訊:
- SSTR (Sum of Squares Treatment or Between Groups) = 6750
- SSE (Sum of Squares Error or Within Groups) = 8000
- 虛無假設 (所有母體平均數相等)
- 對立假設 : 至少有一個母體平均數不同
- 樣本數 (每個母體抽取 5 個樣本)
- 顯著水準
- F 分布的臨界值
計算 F 統計量:
ANOVA 的 F 統計量是組間均方 (Mean Square Treatment, MSTR) 與組內均方 (Mean Square Error, MSE) 的比值。
首先,計算 MSTR 和 MSE。
MSTR
MSE
計算自由度:
- 組間自由度 ,其中 是組數 (母體數)。這裡 (μ₁, μ₂, μ₃, μ₄)。
。 - 組內自由度 ,其中 是總樣本數。總樣本數 。
。
注意,題目給的臨界值 與我們計算的自由度 (3 和 16) 相符。
第 14 題
Regression analysis was applied between sales data (y in 100s) and the following information was obtained.
ŷ = 12 + 1.8x
n = 17
SSR = 225
SSE = 75
Sb₁ = .2683
The F test statistic computed from the above data is
A. 43
B. 45
C. 48
D. 50
登入後即可作答並保存紀錄。
本題考查迴歸分析 (Regression Analysis) 中的 F 檢定統計量計算。F 檢定用於檢定整個迴歸模型的顯著性,即檢定至少有一個自變數的迴歸係數不為零。
已知資訊:
- 迴歸線方程式: (雖然方程式本身不直接用於計算 F 統計量,但斜率 是重要的)
- 樣本數
- SSR (Sum of Squares due to Regression) = 225
- SSE (Sum of Squares Error) = 75
- (標準誤 of the slope coefficient) = 0.2683
計算 F 統計量:
F 統計量的計算公式為:
其中:
- MSR (Mean Square due to Regression)
- MSE (Mean Square Error)
計算自由度:
- 迴歸自由度 ,其中 是自變數的個數。在此簡單線性迴歸中,。
。 - 誤差自由度 。對於簡單線性迴歸, 。
。
計算 MSR 和 MSE:
MSR
第 15 題
Given the data for two variables, X and Y.
Xi | 6 | 11 | 15 | 18 | 20
Yi | 6 | 8 | 12 | 20 | 30
Which of the following is correct?
A. b₁ = 1.5873
B. E(y) = -6.045 + 1.32x
C. b₀ = -6.022
D. none is correct
登入後即可作答並保存紀錄。
核心觀念
簡單線性迴歸(以 預測 )的最小平方估計:
計算
,
| 乘積 | |||||
|---|---|---|---|---|---|
| 6 | 6 | -8 | -9.2 | 73.6 | 64 |
| 11 | 8 | -3 | -7.2 | 21.6 | 9 |
| 15 | 12 | 1 | -3.2 | -3.2 | 1 |
| 18 | 20 | 4 | 4.8 | 19.2 | 16 |
| 20 | 30 | 6 | 14.8 | 88.8 | 36 |
第 16 題
The following information regarding a dependent variable (v) and an independent variable (x) is provided as follow.
| Y | X |
|---|---|
| 4 | 2 |
| 3 | 1 |
| 4 | 4 |
| 6 | 3 |
| 8 | 5 |
| It is known that SSE = 6, SST = 16. Then, the least squares estimate of the y-intercept is | |
| A. 1 | |
| B. 2 | |
| C. 3 | |
| D. 4 |
登入後即可作答並保存紀錄。
本題考查最小平方法 (Least Squares Method) 估計迴歸直線的截距 (y-intercept)。
首先,我們需要根據給定的數據計算迴歸直線。
數據點:(x, y)
(2, 4), (1, 3), (4, 4), (3, 6), (5, 8)
這裡的變數名稱是 v 和 x,我們將其視為 Y 和 X。
計算基本統計量:
n = 5
計算 , , :
計算迴歸係數 (斜率) 和 (截距):
第 17 題
(Continued with problem 16) What is the value of the F test statistic?
A. 2
B. 3
C. 4
D. 5
登入後即可作答並保存紀錄。
本題是接續上一題,要求計算 F 檢定統計量。
我們從上一題獲得的資訊:
- (簡單線性迴歸)
計算 F 統計量:
MSR
MSE
驗證方法:
對於簡單線性迴歸,F 統計量等於斜率係數 的 t 統計量的平方。
從上一題,我們計算得到 。
第 18 題
In a regression analysis, the regression equation is given by y = 12 - 6x. If SSE = 510 and SST = 1000, then the coefficient of correlation is
A. -0.7
B. +0.7
C. 0.49
D. -0.49
登入後即可作答並保存紀錄。
本題考查迴歸分析中的相關係數 (Coefficient of Correlation) 計算,以及其與 SSE 和 SST 的關係。
已知資訊:
- 迴歸方程式:。這表示斜率 。
- SSE (Sum of Squares Error) = 510
- SST (Total Sum of Squares) = 1000
計算決定係數 ():
決定係數 是 SSR (Sum of Squares Regression) 與 SST 的比值。
我們知道 。
所以,。
。
第 19 題
Regression analysis was applied between sales data (y in 100s) and the following information was obtained.
ŷ = 12 + 1.8x
n = 17
SSR = 225
SSE = 75
sb₁ = .2683
Then, the t statistic for testing the significance of the slope is
A. 1.80
B. 1.96
C. 6.71
D. 0.56
登入後即可作答並保存紀錄。
核心觀念
-
簡單線性迴歸模型(Simple Linear Regression, SLR):
母體迴歸模型為 ,樣本估計式為:
其中 為截距項估計值, 為斜率估計值。 -
斜率顯著性檢定(Test of Significance for Slope):
檢定自變數 對因變數 是否具有顯著的線性影響力:
檢定統計量( 統計量)為:
其中 為斜率估計值 的樣本標準誤(Standard Error of )。在 為真的條件下,該統計量服從自由度為 的 分配,即 。 -
檢定與變異數分析(ANOVA)之對應關係:
在簡單線性迴歸中,對斜率進行的雙尾 檢定與整體模式之 檢定完全等價,滿足:
解題方法
-
提取已知條件:
- 估計迴歸方程式:
- 樣本數:
- 迴歸平方和:
- 殘差平方和:
- 斜率標準誤:
-
計算 統計量:
將樣本斜率 及標準誤 直接代入檢定公式:
選項分析
- A. 1.80:錯誤。此數值為樣本斜率 本身,未除以標準誤 ,非檢定統計量。
- B. 1.96:錯誤。此為標準常態分配在顯著水準 雙尾檢定下的臨界值(Critical Value ),並非本題由樣本資料算出的檢定統計量數值。
- C. 6.71:正確。由公式 計算求得。
- D. 0.56:錯誤。
第 20 題
A measure of identifying the effect of an unusual x value on the regression results is called
A. Cook's D
B. leverage
C. odd ratio
D. unusual regression
登入後即可作答並保存紀錄。
核心觀念
本題考的是迴歸分析中的「高槓桿值」(high leverage)。當某筆資料的自變數 遠離其他觀測值的 分布中心時,該觀測值會對迴歸線的位置與斜率產生較大的潛在影響,此種衡量 值是否異常的指標稱為 leverage。
在簡單線性迴歸中,第 筆觀測值的槓桿值為:
其中:
- 為樣本數;
- 與 的距離越大, 越大;
- 大表示該筆資料在自變數方向具有較大的影響潛力。
因此,題目所說的「unusual value」正是判斷 leverage 的關鍵線索。
解題方法
題目問的是:辨識「異常的 值」對迴歸結果影響程度的衡量方式。
判斷重點如下:
- 只關注自變數 是否遠離其他 值,使用 leverage。
- 若同時考慮觀測值刪除後對迴歸係數、預測值的整體影響,才使用 Cook's D。
- 因此,本題應選擇專門衡量異常 位置的指標。
選項分析
-
A. Cook's D:錯誤。
Cook's D 衡量刪除第 筆觀測值後,整體迴歸結果改變的程度,綜合考慮該點的殘差大小與槓桿值。它判斷的是觀測值的整體影響力(influence),不只是異常 值。 -
B. leverage:正確。
Leverage 衡量某筆觀測值的自變數 是否遠離其他自變數值。
第 21 題
In order to test for the significance of a regression model involving 3 independent variables and 47 observations, the numerator and denominator degrees of freedom (respectively) for the critical value of F are
A. 47 and 3
B. 3 and 47
C. 2 and 43
D. 3 and 43
登入後即可作答並保存紀錄。
本題考查複迴歸分析 (Multiple Regression Analysis) 中,F 檢定統計量的自由度。F 檢定用於評估整個迴歸模型是否顯著。
已知資訊:
- 自變數個數 。
- 總觀測數 。
F 檢定的自由度由兩部分組成:分子自由度 (numerator degrees of freedom) 和分母自由度 (denominator degrees of freedom)。
-
分子自由度 ():
分子自由度等於迴歸模型的自變數個數。
。 -
分母自由度 ():
分母自由度等於誤差自由度 (error degrees of freedom)。
(對於包含截距項的模型)。
第 22 題
The following estimated regression equation was developed relating yearly income (y in $1000s) of 30 individuals with their age (x₁) and their gender (x₂) (0 if male and 1 if female).
ŷ = 30 + .7x₁ + 3x₂
Also provided are SST = 1200 and SSE = 384. At the 5% level the F table value is F_{2,27; 0.05}=3.35, then, the model
A. is significant
B. is not significant
C. would be significant if the sample size was larger than 30
D. has significant individual parameters.
登入後即可作答並保存紀錄。
本題考查複迴歸分析中,F 檢定的決策以及模型顯著性的判斷。
已知資訊:
- 迴歸模型:
- 自變數個數 (年齡 和性別 )
- 總觀測數
- SST (Total Sum of Squares) = 1200
- SSE (Sum of Squares Error) = 384
- 顯著水準
- 臨界 F 值
計算 F 統計量:
F 統計量用於檢定整個迴歸模型的顯著性。
MSR
MSE
首先,計算自由度:
(注意:題目給的臨界值 與我們計算的自由度 相符。)
計算 SSR:
計算 MSR 和 MSE:
MSR
MSE
計算 F 統計量:
進行決策:
將計算出的 F 統計量 (約 28.687) 與臨界值 (3.35) 進行比較。
由於 ,我們拒絕虛無假設 。
第 23 題
Use the computer output shown below to choose the correct answer, at a .05 level of significance.
ANOVA
| df | SS | MS | F | Significance F |
|---|---|---|---|---|
| Regression | 2 | 118.8474 | 59.4237 | 40.9216 |
| Residual | 9 | 13.0692 | 1.4521 | |
| Total | 11 | 131.9167 |
Standard
| Coefficients | Error | t Stat | P-value |
|---|---|---|---|
| Intercept | 118.5059 | 33.5753 | 3.5296 |
| (x₁) | -0.0163 | 0.0315 | -0.5171 |
| (x₂) | -1.5726 | 0.3590 | -4.3807 |
| A. the model is not significant | |||
| B. x₁ is significant and no evidence that x₂ is significant | |||
| C. no evidence that x₁ is significant while x₂ is significant | |||
| D. n=11 |
登入後即可作答並保存紀錄。
本題要求根據提供的迴歸分析輸出結果,判斷關於模型和變數顯著性的正確敘述。
首先,分析 ANOVA 表和係數表。
ANOVA 表:
- Regression df = 2:表示有 2 個自變數 ()。
- Residual df = 9:表示誤差自由度 。
- Total df = 11:表示總自由度 。
從 Total df = 11,我們可以推斷樣本數 。
從 Residual df = 9,且 ,則 ,這與 Residual df 相符。
所以,樣本數 。 - Significance F = 0.0000:這是迴歸模型的 P 值。由於 P 值 (0.0000) 非常小,遠小於顯著水準 ,因此迴歸模型是顯著的。
係數表:
- Intercept:
- Coefficients = 118.5059
- P-value = 0.0064。由於 0.0064 < 0.05,截距項顯著。
- x₁:
- Coefficients = -0.0163
- P-value = 0.6176。由於 0.6176 > 0.05,自變數 不顯著。
- x₂:
- Coefficients = -1.5726
- P-value = 0.0018。由於 0.0018 < 0.05,自變數 顯著。
現在,逐一分析選項:
A. the model is not significant
ANOVA 表中的 Significance F = 0.0000 < 0.05。因此,模型是顯著的。此選項錯誤。
第 24 題
(Continued with problem 23) What is the value of the coefficient of determination?
A. 0.8
B. 0.7
C. 0.1
D. 0.9
登入後即可作答並保存紀錄。
本題要求計算決定係數 ()。決定係數衡量了自變數能夠解釋應變數變異的比例。
從上一題的 ANOVA 表中,我們獲得了以下資訊:
- SSR (Sum of Squares due to Regression) = 118.8474
- SST (Total Sum of Squares) = 131.9167
- SSE (Sum of Squares Error) = 13.0692
決定係數 () 的計算公式為:
或者
使用第一種方法:
第 25 題
In a regression analysis involving 20 observations and five independent variables, the following information in the ANOVA table was obtained. Which of the following answers is correct?
ANOVA
| df | SS | MS | F | |
|---|---|---|---|---|
| Regression | ? | ? | ? | ? |
| Error (Residual) | ? | ? | 30 | |
| Total | 990 | |||
| A. F = 3.6 | ||||
| B. F = 3.8 | ||||
| C. SSR = 420 | ||||
| D. MSE = 114 |
登入後即可作答並保存紀錄。
核心觀念
ANOVA 表各欄關係( 為觀察值數、 為自變數數):
計算(,,,)
- ,
第 26 題
Provided with the standardized residuals plot as follow, please choose the correct answer.
🖼️【此處有附圖,請對照原卷】
A. the standardized residual plot supports all the four assumptions about ɛ
B. the plot does not seem to indicate existence of outliers
C. the variance of the residuals appear to increase for larger fitted values
D. the plot seems to violate the assumption that E(ɛ) = 0
登入後即可作答並保存紀錄。
核心觀念
殘差對配適值圖(standardized residuals vs. fitted values)主要用來檢查殘差是否大致以 為中心、散布幅度是否固定,以及是否出現離群點或系統性型態。若配適值增加時,殘差的上下散布範圍也變大,表示可能有異質變異。
標準化殘差可用來辨認離群點;絕對值超過約 ,通常視為離群警訊。
解題方法
觀察圖中橫軸配適值由約 增至 時,殘差的垂直散布範圍也大致擴大:較低配適值附近的殘差多集中在 周圍,較高配適值附近則出現更大的正、負殘差。因此圖形呈現殘差變異隨配適值增加而擴大的跡象,符合選項 C 的描述。
圖中另有標準化殘差約為 及低於 的點,顯示存在離群警訊;殘差整體仍大致圍繞 ,沒有明顯顯示平均數假設違反。
選項分析
- A 錯誤:此圖無法支持誤差項的所有假設。殘差對配適值圖可用來觀察變異是否固定、是否有系統性型態及離群點,但無法單靠此圖確認誤差獨立性與常態性;圖中也有離群警訊。
- B 錯誤:圖上有標準化殘差約為 、以及低於 的觀測值,已顯示離群警訊。
第 27 題
In Durbin-Watson test the null hypothesis H₀ is
A. H₀: p ≥ 0
B. H₀: p ≤ 0
C. H₀: p = 1
D. H₀: p = 0
登入後即可作答並保存紀錄。
本題考查 Durbin-Watson (DW) 檢定的虛無假設。
Durbin-Watson 檢定主要用於檢測時間序列資料或迴歸模型中的殘差自相關 (autocorrelation),特別是一階正相關 (positive autocorrelation)。
DW 檢定的檢定統計量 的計算公式為:
其中 是第 期(或第 個觀測值)的殘差。
DW 檢定的目的是檢定殘差之間是否存在一階自相關。
虛無假設 是殘差之間沒有一階自相關(或自相關係數為零)。
對立假設 是殘差之間存在一階自相關。
在 Durbin-Watson 檢定中,我們通常檢定的是殘差的自相關係數 。
- (沒有一階自相關)
- (存在一階正相關,雙尾檢定時為 )
檢定統計量 的值介於 0 和 4 之間。
- 若 接近 2,表示沒有自相關。
- 若 接近 0,表示存在一階正相關。
- 若 接近 4,表示存在一階負相關。
第 28 題
In the test of autocorrelation which of the following is correct?
A. the error terms are modelled as ε = ρε t-1
B. autocorrelation means successive error terms are automatically correlated
C. the error terms are modelled as ε = ρεt-1 + Zt
D. none of the above is correct
登入後即可作答並保存紀錄。
核心觀念
自我相關(autocorrelation)是指迴歸模型的誤差項在不同時間點之間具有相關性,亦即:
其中 表示落後期數。最常見的一階自我相關模型為 AR(1):
其中:
- 為一階自我相關係數,通常要求 ;
- 為白噪音,滿足 、,且不同期間彼此不相關;
- 時,當期誤差 會與前一期誤差 相關。
因此,本題是在辨認一階自我相關誤差項的正確模型表示法。
解題方法
直接比對各選項與 AR(1) 誤差模型:
正確模型必須同時包含:
- 前一期誤差項 ;
- 自我相關係數 ;
- 當期新的隨機擾動 。
缺少 時,模型無法表達每一期新加入的隨機誤差,因此不是完整的誤差生成模型。
選項分析
A. the error terms are modelled as
此式不正確。
完整的一階自我相關模型應為:
A 選項缺少白噪音項 ,表示當期誤差完全由前一期誤差決定,沒有新的隨機擾動。這不是標準的 AR(1) 誤差模型。
此外,符號也應寫成當期誤差 ,而非未標示時間下標的 。
B. autocorrelation means successive error terms are automatically correlated
此敘述不正確。
自我相關是指不同期間的誤差項彼此相關,常見形式為:
「successive error terms」只涵蓋相鄰期間,亦即一階落後;自我相關並不限於相鄰誤差,也可能是二階、三階或更高階落後的相關。
「automatically correlated」也不精確。只有在自我相關係數不為零時,誤差項才具有相關性;若 ,則:
此時誤差項沒有一階自我相關。
第 29 題
A variable such as z, whose value is z = x₁x₂, is added to a general linear model in order to account for potential effects of two variables x₁ and x₂ acting together. This type of effect is
A. called multiplicative effect
B. called interaction effect
C. called dual choice effect
D. called binary choice effects
登入後即可作答並保存紀錄。
本題考查在一般線性模型 (General Linear Model) 中加入變數 的目的,以及這種效應的名稱。
當我們在迴歸模型中加入兩個自變數乘積的項 () 時,其目的是捕捉這兩個變數「共同作用」或「交互作用」的效果。
分析選項:
A. multiplicative effect (乘法效應):
本身就是一個乘法關係。當我們將這個乘積項加入模型時,它確實體現了 和 之間的乘法關係。
B. interaction effect (交互作用效應):
在迴歸分析中,當一個自變數的效應(斜率)取決於另一個自變數的值時,就稱之為交互作用。例如,在模型 中, 項捕捉了 和 之間的交互作用。它表示 對 的影響程度取決於 的值(反之亦然)。加入 項正是為了檢驗和量化這種交互作用。
C. dual choice effect (雙重選擇效應):
這個術語通常不直接用於描述迴歸模型中的交互作用。它可能與選擇理論或離散選擇模型有關。
D. binary choice effects (二元選擇效應):
這通常與二元應變數(例如,邏輯迴歸中的應變數)有關,表示某個變數對二元結果的影響。它與這裡加入乘積項以捕捉兩個自變數共同作用的意義不同。
比較 A 和 B:
選項 A (multiplicative effect) 描述了 和 之間的數學關係。
第 30 題
When dealing with the problem of non-constant variance, the reciprocal transformation means using
A. 1/x as the independent variable instead of x
B. 1/x² as the independent variable instead of x
C. 1/y² as the dependent variable instead of y
D. 1/y as the dependent variable instead of y
登入後即可作答並保存紀錄。
本題考查在處理變異數非恆定 (non-constant variance) 問題時,所使用的變數轉換 (transformation) 方法,特別是「reciprocal transformation」。
非恆定變異數(異質性,Heteroscedasticity)是迴歸分析中的一個常見問題,它違反了殘差變異數恆定的假設。常見的處理方法包括:
- 變數轉換 (Variable Transformation):對應變數 或自變數 進行轉換,使其滿足變異數恆定的假設。
- 加權最小平方法 (Weighted Least Squares, WLS):如果變異數的模式已知,可以對觀測值進行加權。
題目問的是「reciprocal transformation」。Reciprocal 的意思是「倒數」。
- 倒數轉換通常是指對變數取倒數。
- 在處理非恆定變異數問題時,常見的轉換包括:
- 對應變數 取對數:
- 對應變數 取平方根:
- 對應變數 取倒數:
- 對應變數 取倒數的平方:
題目問的是「reciprocal transformation」意味著什麼。
「Reciprocal」指的就是倒數。
所以,這個轉換應該是對某個變數取倒數。
選項分析:
A. 1/x as the independent variable instead of x:將自變數 轉換為 。這是一種倒數轉換,但通常是針對應變數 進行轉換來處理異質性。然而,有時對自變數進行轉換也能改善模型。
B. 1/x² as the independent variable instead of x:將自變數 轉換為 。這也是一種轉換,但不是單純的「reciprocal」。
C. 1/y² as the dependent variable instead of y:將應變數 轉換為 。這是對應變數進行倒數的平方轉換。
第 31 題
A data set consisting of 7 observations of a dependent variable y and two independent variables x₁ and x₂ was used in a regression analysis. Using x₁ as the only independent variable, the following function is provided.
ŷ = .408 + 1.338x₁
The SSE for the above model is 39.535.
Using both x₁ and x₂ as independent variables yields the following function.
ŷ = .805 + .498x₁ - .477x₂
The SSE for this function is 1.015.
Then, the F test statistic equals
A. 151.8
B. 39.535
C. 1.015
D. 38.52
登入後即可作答並保存紀錄。
本題考查複迴歸分析中,F 檢定統計量的計算,用於比較兩個模型的顯著性,即檢定新增的自變數是否顯著提升模型的解釋力。
已知資訊:
- 總觀測數 。
- 模型 1 (簡單迴歸):。
- SSE₁ (SSE for Model 1) = 39.535。
- 自變數個數 。
- 。
- 模型 2 (複迴歸):。
- SSE₂ (SSE for Model 2) = 1.015。
- 自變數個數 。
- 。
我們要計算的是 F 檢定統計量,用於檢定模型 2 相對於模型 1 是否有顯著的改進。這通常稱為聯合顯著性檢定 (Joint Significance Test) 或增量 F 檢定 (Extra F-test)。
F 統計量的計算公式為:
或者可以寫成:
其中:
- 是較簡單模型的 SSE。
- 是較複雜模型的 SSE。
- 是較簡單模型的誤差自由度。
- 是較複雜模型的誤差自由度。
- 是新增自變數的個數。
第 32 題
Given an actual demand of 61, its forecast of 58, and an α of 0.3, what would be the forecast for the next period using exponential smoothing?
A. 57.1
B. 58.9
C. 61.0
D. 65.5
登入後即可作答並保存紀錄。
本題考查指數平滑法 (Exponential Smoothing) 的預測計算。
指數平滑法的預測公式為:
其中:
- 是下一期 (t+1) 的預測值。
- 是當期 (t) 的實際值。
- 是當期 (t) 的預測值。
- 是平滑常數 (smoothing constant),。
題目給定的資訊:
- 實際值 (這是當期 t 的實際需求)。
- 當期預測值 (這是當期 t 的預測值)。
- 平滑常數 。
我們需要計算下一期 () 的預測值 。
第 33 題
Which of the following smoothing constants would make an exponential smoothing forecast equivalent to a naive forecast?
A. 0.0
B. 0.1
C. 0.5
D. 1.0
登入後即可作答並保存紀錄。
本題考查指數平滑法 (Exponential Smoothing) 與樸素預測法 (Naive Forecast) 的關係,以及平滑常數 的選擇。
樸素預測法 (Naive Forecast) 的預測公式為:
也就是說,下一期的預測值等於當期的實際值。
指數平滑法的預測公式為:
我們要找到哪個 值能使指數平滑法等於樸素預測法。
也就是說,我們希望:
這個等式需要對所有可能的 都成立。
讓我們嘗試簡化這個等式。
如果我們希望 總是等於 ,那麼在指數平滑公式中,預測值 的作用應該被最小化,而實際值 的權重應該最大化。
考慮極端情況下的 值:
- 當 :
。
第 34 題
In stepwise regression procedure, how would you decide which variable to enter or leave the model?
A. a variable which is outside the model but with the largest p-value is to enter the model
B. a variable which is inside the model but with the largest p-value is to leave the model
C. a variable which is inside the model but with the smallest p-value is to leave the model
D. none of the above statements is correct
登入後即可作答並保存紀錄。
核心觀念
本題考查多元迴歸模型中的變數選取程序(Variable Selection Procedures),特別是逐步迴歸法(Stepwise Regression)的納入(Enter)與剔除(Remove/Leave)準則。
- 基本原理:
逐步迴歸結合了「向前選取法(Forward Selection)」與「向後剔除法(Backward Elimination)」。每一步驟在考慮加入新變數的同時,也會重新檢驗已存在於模型中的變數是否仍具統計顯著性。 - 檢定依據:
- 評估單一變數對模型的邊際貢獻,通常使用部分 檢定(Partial -test)或等價的 檢定。
- 檢定統計量所對應的 值()越小,代表該變數對解釋應變數 的額外貢獻越顯著; 值越大,代表該變數越不顯著。
- 決策準則:
- 進入模型(Enter):在模型外的所有候選變數中,挑選邊際貢獻最大、最顯著的變數進入,即選取 值最小(或 Partial 最大)且小於門檻值()者。
- 移出模型(Leave/Remove):在模型內的所有現存變數中,檢驗邊際貢獻最小、最不顯著的變數是否應剔除,即選取 值最大(或 Partial 最小)且大於門檻值()者。
解題方法
判斷逐步迴歸中變數「進」與「出」的切入點:
- 進入原則(Forward step):
目的是引進「最有解釋力」的新變數。統計上即比較模型外各變數加入時的顯著性,尋找最小的 值(對應最大的 統計量)。 - 剔除原則(Backward step):
目的是移除「最沒有解釋力(或因其他變數加入後共線性增加而失去顯著性)」的變數。統計上即比較模型內各變數被移除時的顯著性,尋找最大的 值(對應最小的 統計量)。
對照題目選項,B 選項正確描述了模型內變數被剔除(leave)的候選條件。
選項分析
-
A. a variable which is outside the model but with the largest p-value is to enter the model
錯誤。若要讓模型外的變數進入模型,應該挑選邊際貢獻最顯著的變數,也就是挑選具有最小的 值(smallest ,且小於預設門檻 )的變數,而非最大者。 -
B. a variable which is inside the model but with the largest p-value is to leave the model
第 35 題
If the estimate of the trend component is 158.2, the estimate of the seasonal component is 94%, the estimate of the cyclical component is 105%, and the estimate of the irregular component is 98%, then the multiplicative model will produce a forecast of
A. 1.53
B. 1.53%
C. 153.02
D. 153,020,532
登入後即可作答並保存紀錄。
本題考查時間序列分析 (Time Series Analysis) 中,乘法模型 (Multiplicative Model) 的預測。
在乘法模型中,時間序列的原始值 可以分解為:
題目給定的是各個成分的「估計值」,並且這些值通常是:
- Trend (趨勢): 通常是一個數值,代表長期趨勢。這裡 。
- Seasonal (季節): 通常是一個指數或因子,表示季節性變動的幅度。這裡 。
- Cyclical (週期): 通常是一個指數或因子,表示週期性變動的幅度。這裡 。
- Irregular (不規則): 通常是一個指數或因子,表示隨機波動。這裡 。
注意:季節、週期和不規則成分通常表示為相對於趨勢的百分比或因子。如果它們是因子,則乘以 1 意味著沒有季節性/週期性/不規則性。大於 1 表示高於平均水平,小於 1 表示低於平均水平。
預測值 (Forecast) 通常是基於趨勢和季節/週期/不規則成分的預期值。
在乘法模型下,預測值可以表示為:
Forecast
第 36 題
Below you are given the first five values of a quarterly time series. The multiplicative model is appropriate and a four-quarter moving average will be used.
| Year | Quarter | Time Series Value Yₜ |
|---|---|---|
| 1 | 1 | 36 |
| 1 | 2 | 24 |
| 1 | 3 | 16 |
| 1 | 4 | 20 |
| 2 | 1 | 44 |
| An estimate of the seasonal-irregular component for Quarter 3 of Year 1 is | ||
| A. 0.64 | ||
| B. 1.5625 | ||
| C. 5.333 | ||
| D. 0.3 |
登入後即可作答並保存紀錄。
核心觀念
乘法模型 。用四季移動平均(再中心化)估計趨勢-循環 ,則
就是「季節-不規則成分」的估計值。
計算
第 1 年 Q3()的 4 期平均需用 與 :
選項分析
第 37 題
The quality control manager requested a producer's risk of 0.1 when p₀ was 0.03 and a consumer's risk of 0.2 when p₁ was 0.15. Consider the acceptance sampling plan based on a sample size of 20 and an acceptance number of 1. Let X be the number of defective items selected in the sample, then which of the following answers is correct?
A. the producer's risk = P(X≥2 | n=20, p=0.03)
B. the producer's risk = P(X≤1 | n=20, p=0.15)
C. the producer's risk = P(X≥2 | n=20, p=0.15)
D. the producer's risk = P(X≤1 | n=20, p=0.03)
登入後即可作答並保存紀錄。
本題考查接受抽樣計畫 (Acceptance Sampling Plan) 中的製程風險 (Producer's Risk) 和消費者風險 (Consumer's Risk) 的定義及計算。
基本概念:
- 接受抽樣計畫 (Acceptance Sampling Plan):一種品質管制方法,在生產過程中抽取樣本進行檢驗,根據樣本的品質來決定是否接受或拒絕整批產品。
- 樣本大小 (Sample Size, n):每次抽樣檢查的樣本數量。
- 驗收數 (Acceptance Number, c):如果樣本中不合格品 (defective items) 的數量小於或等於驗收數,則接受該批產品;否則拒絕。
- 製程風險 (Producer's Risk, ):指當批產品的實際不合格率 很低(例如 ),但由於抽樣的隨機性,導致抽樣結果顯示不合格品數量超過驗收數 ,從而使得好的批次被拒絕的機率。
製程風險通常定義為:。
在接受抽樣計畫中,"Reject batch" 發生在樣本中的不合格品數 。
所以,製程風險 。 - 消費者風險 (Consumer's Risk, ):指當批產品的實際不合格率 很高(例如 ),但由於抽樣的隨機性,導致抽樣結果顯示不合格品數量小於或等於驗收數 ,從而使得壞的批次被接受的機率。
消費者風險通常定義為:。
在接受抽樣計畫中,"Accept batch" 發生在樣本中的不合格品數 。
所以,消費者風險 。
題目資訊:
- 樣本大小 。
- 驗收數 。
- 製程風險 (Producer's Risk) 當 。
- 消費者風險 (Consumer's Risk) 當 。
- 是樣本中不合格品的數量。
分析製程風險 (Producer's Risk):
製程風險
拒絕批次發生於 。
所以,製程風險 。
代入數值:, 。
製程風險 。
等於 。
所以,製程風險 。
第 38 題
(Continued with problem 37) Which of the following is correct?
A. the consumer's risk = P(X≥2 | n=20, p=0.15)
B. the consumer's risk = P(X≥2 | n=20, p=0.03)
C. the consumer's risk = P(X≤1 | n=20, p=0.15)
D. the consumer's risk = P(X≤1 | n=20, p=0.03)
登入後即可作答並保存紀錄。
本題是接續上一題,要求判斷消費者風險 (Consumer's Risk) 的正確表達式。
根據上一題的定義和分析:
- 消費者風險 (Consumer's Risk, ):指當批產品的實際不合格率 很高(例如 ),但由於抽樣的隨機性,導致抽樣結果顯示不合格品數量小於或等於驗收數 ,從而使得壞的批次被接受的機率。
消費者風險 。
在接受抽樣計畫中,"Accept batch" 發生在樣本中的不合格品數 。
所以,消費者風險 。
題目資訊:
- 樣本大小 。
- 驗收數 。
- (對應消費者風險)。
- 是樣本中不合格品的數量。
代入數值:
消費者風險 。
現在,分析選項:
A. the consumer's risk = P(X≥2 | n=20, p=0.15)
這裡 是拒絕批次的機率,不是消費者風險。此選項錯誤。
第 39 題
A nonparametric version of the parametric analysis of variance test is the
A. Kruskal-Wallis test
B. Mann-Whitney-Wilcoxon test
C. sign test
D. Wilcoxon signed-rank test
登入後即可作答並保存紀錄。
核心觀念
本題測驗「無母數統計方法(Nonparametric Methods)與傳統母數統計方法(Parametric Methods)的對應關係」。
母數統計中的單因子變異數分析(One-Way Analysis of Variance, ANOVA),主要用於檢定 個獨立母體平均數是否相等()。ANOVA 的基本假設包含各組獨立隨機抽樣、常態性(Normality)以及變異數同質性(Homoscedasticity)。
當樣本資料無法滿足常態性假設(例如嚴重偏態或存在極端值),或測量尺度僅為順序尺度(Ordinal scale)時,必須改用無母數方法。對應單因子獨立樣本變異數分析的無母數檢定即為 Kruskal-Wallis 檢定(又稱 Kruskal-Wallis test)。
解題方法
判定無母數檢定方法的標準,主要是根據「樣本組數(1組、2組或 組)」以及「樣本設計(獨立樣本或配對/相依樣本)」來切入:
- 題目情境:
題目欲尋找「母數統計中變異數分析(Analysis of Variance, ANOVA)的無母數版本(nonparametric version)」。 - 對應分析:
- 典型母數 ANOVA 適用於: 個獨立樣本(Independent samples)的平均數比較。
- 尋找無母數對應:比較 個獨立母體的中央趨勢(中位數),將全體資料混合排序後轉為等級(Ranks),計算各組的等級和,此方法即為 Kruskal-Wallis test。
選項分析
-
A. Kruskal-Wallis test(正確):
Kruskal-Wallis 檢定又稱「單因子等級變異數分析(One-Way ANOVA by Ranks)」,是母數統計中單因子獨立樣本變異數分析(One-Way ANOVA)的無母數對應方法,用於檢定 個獨立母體之中位數是否顯著相同。 -
B. Mann-Whitney-Wilcoxon test(錯誤):
曼-惠特尼-威克生檢定(Mann-Whitney test 或 Wilcoxon rank-sum test)適用於兩個獨立樣本(Two independent samples)的中位數差異檢定,對應的是母數統計中的兩獨立樣本 檢定(Two-sample independent -test),而非變異數分析。 -
C. sign test(錯誤):
符號檢定(Sign test)是以正負號為基礎的最基礎無母數檢定,主要用於單一母體中位數檢定或兩配對樣本(Paired samples)的中位數差異檢定,對應母數統計的單樣本 檢定或成對樣本 檢定,無法用於多組比較的變異數分析。 -
D. Wilcoxon signed-rank test(錯誤):
威克生符號等級檢定(Wilcoxon signed-rank test)用於成對樣本(Paired/Dependent samples)或單一母體的中位數檢定(考慮了差異的符號與數值大小等級),對應母數統計中的**成對樣本
第 40 題
Fifteen people were given two types of cereal, Brand X and Brand Y. Two people preferred Brand X and thirteen people preferred Brand Y. We want to determine whether or not customers prefer one brand over the other. The p-value for this test is (Hint: 0.515=0.000030517)
A. 0.0005
B. 0.001
C. 0.0037
D. 0.0074
登入後即可作答並保存紀錄。
本題考查對對稱性檢定 (Test of Symmetry) 或相關樣本比例檢定 (Test for Proportions in Paired Samples) 的應用,特別是 P 值 (p-value) 的計算。
問題描述:
- 總人數 。
- 兩種穀物:Brand X 和 Brand Y。
- 偏好 Brand X 的人數 = 2。
- 偏好 Brand Y 的人數 = 13。
- 檢定目的:判斷顧客是否偏好其中一個品牌。
這是一個配對樣本問題,因為每個人都對兩個品牌進行了評價或選擇。我們可以將此視為檢定偏好 Brand Y 的比例是否顯著高於 0.5。
讓我們定義:
- = 偏好 Brand Y 的人數 = 13
- = 總人數 = 15
我們進行一個關於比例的檢定。虛無假設 是兩種品牌沒有偏好差異,即偏好 Brand Y 的比例 。對立假設 是存在偏好差異,即 。或者,我們也可以檢定 。
由於人數較少 (n=15),我們可以使用二項分布 (Binomial Distribution) 來進行檢定。
在 下,我們假設偏好 Brand Y 的機率是 。
我們觀察到 13 人偏好 Brand Y。
我們需要計算 P 值。由於題目問的是「whether or not customers prefer one brand over the other」,這通常意味著雙尾檢定。
P 值是觀察到極端結果(或比觀察結果更極端)的機率。
觀察結果是 13 人偏好 Brand Y。
在雙尾檢定下,P 值 。
因為二項分布是對稱的 (當 p=0.5 時),所以 。
P 值 。
我們需要計算 ,其中 。
。
二項機率公式:。
在這裡,, , 。
。
第 三、1.(a) 題
Consider the following time series data. Please answer the following questions.
| Week | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Value | 24 | 13 | 20 | 12 | 19 | 23 | 15 |
| (a) Develop the 3-week moving average forecasts for this time series. Compute MSE and a forecast for week 8. |
登入後即可作答並保存紀錄。
本題要求計算三週移動平均法的預測值、均方誤差 (MSE) 和未來一週 (Week 8) 的預測值。
步驟 1:計算三週移動平均預測值
三週移動平均法的預測公式為:
其中 是第 期(從可以預測的第一期開始)的預測值。
給定數據:
| Week | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Value (Yₜ) | 24 | 13 | 20 | 12 | 19 | 23 | 15 |
最早可以預測的是 Week 4,因為它需要 Week 1, 2, 3 的數據。
步驟 2:計算均方誤差 (Mean Squared Error, MSE)
MSE 是預測誤差平方的平均值。誤差 (Error) 。
我們有預測值 和對應的實際值 。
預測誤差:
第 三、1.(b) 題
Consider the following time series data. Please answer the following questions.
| Week | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Value | 24 | 13 | 20 | 12 | 19 | 23 | 15 |
| (b) Use α=0.2 to compute the exponential smoothing forecasts for the time series. Compute MSE and a forecast for week 8. |
登入後即可作答並保存紀錄。
本題要求使用指數平滑法 (Exponential Smoothing) 計算預測值、均方誤差 (MSE) 和未來一週 (Week 8) 的預測值。
步驟 1:計算指數平滑預測值
指數平滑法的預測公式為:
其中 是第 期(從可以預測的第一期開始)的預測值, 是前一期的實際值, 是前一期的預測值, 是平滑常數。
我們需要一個初始預測值 。通常,可以將第一期的實際值 作為初始預測值 。
給定 。
-
Week 2 的預測值 :
(當 時,) -
Week 3 的預測值 :
-
Week 4 的預測值 :
-
Week 5 的預測值 :
-
Week 6 的預測值 :
-
Week 7 的預測值 :
步驟 2:計算均方誤差 (MSE)
MSE 是預測誤差平方的平均值。誤差 (Error) 。
我們有預測值 和對應的實際值 。
注意:我們從 Week 2 開始計算預測值,所以我們有 6 個預測值用於計算 MSE。
第 三、1.(c) 題
Consider the following time series data. Please answer the following questions.
| Week | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Value | 24 | 13 | 20 | 12 | 19 | 23 | 15 |
| (c) Compare the 3-week moving average approach with the exponential smoothing approach using α=0.2. Which appears to provide more accurate forecasts based on MSE? |
登入後即可作答並保存紀錄。
本題要求比較三週移動平均法和指數平滑法()的準確性,並根據均方誤差 (MSE) 進行判斷。
我們需要比較兩種方法計算出的 MSE 值。
1. 三週移動平均法 (3-week Moving Average)
從第 (a) 部分的計算結果:
- 預測值:。
- MSE 。
2. 指數平滑法 ()
從第 (b) 部分的計算結果:
- 預測值:。
- MSE 。