115 年 國立臺北大學國際企業研究所《統計學》
第 1 題
Session 1 (35%)
- Please explain the following terminologies:
(1) Type I error (in hypothesis testing)
(2) Spurious correlation
(3) R squared () (in regression analysis)
登入後即可作答並保存紀錄。
此題主要在測試對統計學基本名詞的理解。
(1) Type I error (在假設檢定中):
Type I error,又稱第一類錯誤或偽陽性 (false positive),發生在當虛無假說 為真時,我們卻拒絕了 的情況。檢定時,我們設定一個顯著水準 ,這個 值即代表 Type I error 發生的最大機率。
(2) Spurious correlation (偽相關):
偽相關是指兩個變數之間呈現相關性,但這種相關性並非由其中一個變數直接影響另一個變數所造成,而是因為它們同時受到第三個潛在因素 (lurking variable 或 confounding variable) 的影響。簡單來說,它們是「同時」受到某個隱藏變數的影響而呈現相關,而非因果關係。
(3) R squared () (在迴歸分析中):
,又稱決定係數 (coefficient of determination),是衡量迴歸模型對應變數變異數解釋能力的指標。
第 2 題
- Please give an example for the following terminologies respectively:
(1) Type I error
(2) Spurious correlation
登入後即可作答並保存紀錄。
此題要求舉例說明 Type I error 和 Spurious correlation。
(1) Type I error 舉例:
假設某藥廠聲稱其新藥能有效降低血壓。
虛無假說 : 新藥對降低血壓無效。
對立假說 : 新藥對降低血壓有效。
若進行臨床試驗,結果顯示新藥確實能降低血壓 (拒絕 ),但實際上新藥對降低血壓是無效的。這就是 Type I error。
更簡潔的例子:假設我們對一個硬幣進行檢定,想知道它是否公平。
: 硬幣是公平的 (出現正面和反面的機率各為 0.5)。
: 硬幣不是公平的。
我們進行 10 次拋擲,結果出現 9 次正面。根據預設的顯著水準,我們拒絕了 。但實際上,這枚硬幣可能是公平的,只是我們恰好在這次實驗中遇到了極端情況。
第 3 題
- For Type I error, please name the most important reason why it may occur.
登入後即可作答並保存紀錄。
Type I error 的發生,最主要的原因在於假設檢定本身的不確定性,以及我們對此不確定性所設定的容忍程度。
在假設檢定中,我們總是假設虛無假說 為真,然後觀察樣本資料。如果樣本資料與 的預期結果差異太大,我們就拒絕 。然而,即使 為真,樣本資料也可能因為抽樣變異 (sampling variation) 的關係,而呈現出與理論預期有較大差異的結果。
第 4 題
- For R squared, please interpret the figures of R squared.
登入後即可作答並保存紀錄。
(決定係數) 的解釋,是衡量迴歸模型對依變數變異的解釋程度。
的值介於 0 到 1 之間。
- 如果 ,表示自變數對依變數的變異沒有任何解釋能力,依變數的變異完全是由其他未納入模型因素或隨機誤差所造成。
- 如果 ,表示自變數對依變數的變異有 100% 的解釋能力,依變數的所有變異都可以由模型中的自變數完全解釋。
- 一般情況下, 的值介於 0 和 1 之間。例如,如果 ,則表示依變數的總變異中,有 75% 可以由模型中的自變數解釋,而剩下的 25% 則是由其他因素或隨機誤差所造成。
第 2 題
Session 2 (15%)
- Suppose we get these seasonal indexes for a restaurant based on 3 years' sales figures in the follow table.
Season
Seasonal Index
Spring
?
Summer
1.420
Autumn
0.920
Winter
0.820
(1) Please interpret the Summer and Winter indexes.
(2) Find seasonal index for Spring.
(3) Based on these indexes, what kind of advice you would give to the restaurant owner in terms of operational management?
登入後即可作答並保存紀錄。
此題主要在測試季節指數的計算與應用。季節指數是用來衡量某個季節的銷售額相較於全年平均銷售額的表現。
首先,我們需要知道季節指數的計算原則:
一個季節的季節指數 = (該季節的平均銷售額) / (全年平均銷售額)。
通常,所有季節的季節指數的平均值應該約等於 1。
(1) Interpretation of Summer and Winter indexes:
- Summer Seasonal Index = 1.420:這個指數大於 1,表示夏季的平均銷售額比全年平均銷售額高出 42%。換句話說,夏季是該餐廳的銷售旺季。
- Winter Seasonal Index = 0.820:這個指數小於 1,表示冬季的平均銷售額比全年平均銷售額低了 18% (1 - 0.820 = 0.18)。換句話說,冬季是該餐廳的銷售淡季。
(2) Find seasonal index for Spring:
我們知道季節指數的平均值應該接近 1。假設有四個季節:Spring, Summer, Autumn, Winter。
令 , , , 分別代表各季節的季節指數。
則有:
代入已知數值:
(3) Advice for the restaurant owner:
基於這些季節指數,我們可以給予以下營運管理上的建議:
第 3 題
Session 3 (50%)
- The economics score (X) and statistics score (Y) of a school's international business graduate school
enrollment are shown in the table below: Now it has been obtained: (10%)
X
Y
30
63
68
80
24
58
31
49
64
71
Now ΣΧ=202, ΣΥ=336, ΣΧ²=9,462, ΣΥ²=22,870, ΣΧΥ=14,185 have been obtained.
(1) Please calculate the correlation coefficient between economics scores and statistics scores.
(2) Now I want to use economics scores to estimate statistical scores. Please make a regression line based
on the above data.
登入後即可作答並保存紀錄。
此題為統計學的經典題型,包含相關係數的計算與簡單線性迴歸模型的建立。
首先,我們需要確認題目給予的數據和統計量:
樣本數 (因為有 5 組 X, Y 數據)
計算平均值:
(1) Calculate the correlation coefficient between economics scores and statistics scores.
相關係數 的計算公式為:
代入數值:
分子:
分母的平方根第一項:
分母的平方根第二項:
分母:
第 2 題
- The patrol police at the Shulin Station on the second highway want to know if the average speed of the truck is too high. Today, 81 trucks were randomly selected to measure their speed, and found that the average speed was 105 kilometers per hour and the standard deviation was 6 kilometers per hour, and it was assumed that the population obeyed the normal distribution. Please answer the following question: Does the average speed of a truck exceed 100 kilometers per hour under a significant level of 0.05? (Please write the null hypothesis and the opposing hypothesis, then calculate the statistic value and P value, respectively, and explain your statistical results). (15%)
登入後即可作答並保存紀錄。
此題為一獨立樣本的平均值檢定,屬於假設檢定的應用。我們需要檢定卡車的平均車速是否顯著高於 100 公里/小時。
已知資訊:
樣本數
樣本平均值 km/h
樣本標準差 km/h
檢定水準
假設母體服從常態分配。
步驟 1:建立虛無假說 () 與對立假說 ()
我們要檢定的是平均速度是否「超過」100 公里/小時。
虛無假說 : 卡車的平均速度 不超過 100 公里/小時 ()。
對立假說 : 卡車的平均速度 超過 100 公里/小時 ()。
這是一個右尾檢定 (right-tailed test)。
步驟 2:計算檢定統計量
由於母體標準差 未知,但樣本數 較大 (通常 可視為大樣本),我們可以使用 z 檢定。如果樣本數較小,則需使用 t 檢定。在此,我們使用 z 檢定。
檢定統計量 的計算公式為:
其中 是虛無假說下的母體平均值,即 100。
代入數值:
第 3 題
- A school secretariat wants to understand the influencing factors of the job satisfaction score (Y) of its
contracted employees. Consider four explanatory variables (X1, X2, X3, X4):
X1: Years of service (years).
X2: Salary level (thousand yuan).
X3: Whether you have a bachelor degree, X3=1 means you have a bachelor degree; X3=0
means no bachelor degree. (BA)
X4: Master's degree or above, X4=1 means master's degree or above; X4=0 means no
master's degree or above. (MA)
Now, the data of 30 contracted employees are obtained, and the dependent variable Y is
regression analysis for four independent variables (X1, X2, X3, X4), and the estimated
regression model in the following table is obtained.
Intercept
X1
X2
X3
X4
Estimated coefficients
13.24
8.69
1.35
4.92
5.89
Standard errors
7.29
2.56
0.38
2.10
4.10
Note: SST = 989.7; s = 4.8. SST represents total sum of square, and s represents the estimate deviation
of the standard error of regression. Please answer the following five questions. (25%)
(1) Please explain the significance of the estimated regression coefficients of X3 and X4, respectively.
(2) Please use a significance level of 0.05 to test the significance of the regression coefficients of X3 and
X4, respectively.
(3) Please present the ANOVA table and then test whether the F-value of this regression model is
significant.
(4) Please calculate the adjusted coefficient of determination of this regression model.
(5) Please calculate the mean squared error value of this model and explain its meaning.
登入後即可作答並保存紀錄。
此題為多元迴歸分析的應用,涵蓋了迴歸係數的解釋、顯著性檢定、ANOVA 表、決定係數及誤差估計等重要觀念。
已知資訊:
樣本數
依變數 Y:Job satisfaction score
自變數:
: Years of service
: Salary level (thousand yuan)
: Bachelor degree (1=Yes, 0=No)
: Master's degree or above (1=Yes, 0=No)
估計的迴歸模型:
估計係數 (Estimated coefficients):
(Intercept)
標準誤差 (Standard errors):
SST (Total Sum of Squares) = 989.7
s (Estimate of standard error of regression) = 4.8
重要關係式:
- ,所以 。
- ,其中 是自變數的數量。在此 ,所以 。
- 。
- 。
- 。
- 。
(1) Please explain the significance of the estimated regression coefficients of X3 and X4, respectively.
迴歸係數的意義取決於它是連續變數還是虛擬變數 (dummy variable)。 和 是連續變數, 和 是虛擬變數。
- (for - Bachelor degree):
在控制了 (Years of service) 和 (Salary level) 的影響後,擁有學士學位 (X3=1) 的員工,其工作滿意度分數 (Y) 平均而言比沒有學士學位 (X3=0) 的員工高出 4.92 分。 - (for - Master's degree or above):
在控制了 (Years of service) 和 (Salary level) 的影響後,擁有碩士或以上學位 (X4=1) 的員工,其工作滿意度分數 (Y) 平均而言比沒有碩士或以上學位 (X4=0) 的員工高出 5.89 分。
注意: 和 是互斥的虛擬變數,通常在模型中會只包含一個,或者需要考慮它們之間的交互作用。然而,題目將它們同時放入模型,這意味著:- 代表只有學士學位。
- 代表沒有學士學位 (最高學歷)。
- 代表有碩士或以上學位 (這個情況在變數定義上似乎有些問題,通常是 表示有碩士,而 則可能獨立表示學士。若題目定義成立,則 表示同時有學士也有碩士。但若 是「碩士或以上」,則 的人一定也有學士,這樣 和 就不是獨立的。我們假設題目設計是 只代表「擁有學士學位」,而 代表「擁有碩士或以上學位」,且兩者可同時存在於模型中,並假設 的情況也存在。最常見的設計是: (有學士), (有碩士), (有博士)。或者 , , 。在此,我們按照題目定義,解釋 和 的獨立影響,儘管這種變數定義方式可能不夠嚴謹。)
若按嚴謹定義,假設 代表「有學士但無碩士」, 代表「有碩士或以上」。則: - : 有學士學位 (但無碩士)。
- : 無學士學位。
- : 有碩士或以上學位 (此時通常意味著也擁有學士學位)。
若這樣定義,則 表示有學士學位 (無碩士) 相較於無學士學位的影響,而 表示有碩士學位相較於無碩士學位 (且無學士) 的影響。
這裡採取最直接的解釋: 的影響是 , 的影響是 ,在控制其他變數後。
(2) Please use a significance level of 0.05 to test the significance of the regression coefficients of X3 and X4, respectively.
我們需要對 和 進行個別顯著性檢定 (t-test)。
檢定統計量 。
自由度 。
在 下,雙尾檢定的臨界值 (critical value) 。查表可得約為 。