108 年 國立臺北大學國際企業研究所《統計學》
第 1.1 題10 分
Let the random variable X have the pmf , .
(a) (5%) Find .
(b) (5%) Find .
登入後即可作答並保存紀錄。
本題考驗離散型隨機變數的機率質量函數 (pmf) 與期望值 (Expected Value) 的計算。
首先,我們需要根據給定的 pmf 計算出 各自的機率值。
當 時,。
當 時,。
當 時,。
檢查總機率是否為 1:。
這表示題目給定的 pmf 有誤,或者題目意圖是給定一個與此形式類似的函數,但需要自行調整常數以滿足機率總和為 1 的條件。
假設題目是想給定一個形式為 ,其中 是一個常數,使得總機率為 1。
總機率為 ,所以 。
那麼實際的 pmf 應該是 ,對應的機率為 , , 。
然而,如果我們嚴格按照題目給定的 來計算,並假設這是一個不完整的 pmf,但我們仍需基於此計算,這在學術考試中較少見。
由於題目明確給出 且 ,我們必須先確認這是否為一個有效的 PMF。
總機率為 。
這不是一個有效的機率質量函數,因為總機率不為 1。
在考試中遇到此類情況,有幾種可能的處理方式:
- 假設題目有印刷錯誤,並嘗試修正。
- 假設題目意圖給定一個相對頻率分佈,並基於此進行計算。
- 直接使用題目給定的函數進行計算,即使它不是一個嚴格意義上的 pmf。
為了完成解答,我們將假設題目意圖提供一個有效的 PMF,並且該 PMF 與給定的形式成比例,且值域為 {-1, 0, 1}。
令 。
總機率為 。
因此,。
修正後的機率為:
第 1.2 題10 分
It is claimed that 15% of the ducks in a particular region have patent schistosome infection. Suppose that seven ducks are selected at random. Let X equal the number of ducks that are infected.
(a) (5%) Find .
(b) (5%) Find .
登入後即可作答並保存紀錄。
本題考驗二項分佈 (Binomial Distribution) 的應用。
題目描述了一個典型的二項分佈場景:
- 有固定數目的試驗次數 (n=7, 選擇七隻鴨子)。
- 每次試驗只有兩種可能結果 (感染或未感染)。
- 每次試驗成功的機率是固定的 (p=0.15, 鴨子感染的機率)。
- 各次試驗是獨立的。
隨機變數 X 代表七隻鴨子中被感染的數量。因此,X 服從二項分佈 。
二項分佈的機率質量函數 (pmf) 為:
其中 , , 。
(a) Find .
我們需要計算當 k=1 時的機率。
計算 :
第 1.3 題10 分
If X is normally distributed with a mean of 77 and a variance of 25. Let be the mean of a random sample of size 16 from this distribution.
(a) (5%) Find .
(b) (5%) Find .
登入後即可作答並保存紀錄。
本題考驗中央極限定理 (Central Limit Theorem) 以及常態分佈 (Normal Distribution) 的應用。
題目給定母體 X 服從常態分佈,其平均數 ,變異數 。
從此母體抽取樣本大小為 的隨機樣本,並令 為樣本平均數。
根據中央極限定理,即使母體本身不是常態分佈,當樣本大小足夠大時 (通常 即可),樣本平均數 的抽樣分佈會近似於常態分佈。
然而,在本題中,母體 X 本身就是常態分佈,因此,不論樣本大小 如何,樣本平均數 的抽樣分佈都會是精確的常態分佈。
樣本平均數 的抽樣分佈具有以下性質:
平均數:
變異數:
標準差:
所以,,即 。
第 1.4 題10 分
Suppose the population is normally distributed with unknown standard deviation . Consider the following random sample of 4 observations: 25, 47, 32, 56.
(a) (5%) Find a point estimate of .
(b) (5%) Find a 95% confidence interval for .
登入後即可作答並保存紀錄。
本題考驗樣本統計量估計母體參數,特別是樣本標準差估計母體標準差,以及母體平均數的信賴區間 (Confidence Interval) 計算。由於母體標準差 未知,我們需要使用 t 分佈來建構信賴區間。
首先,我們需要計算樣本的平均數 和樣本標準差 。
樣本數據:25, 47, 32, 56。樣本大小 。
計算樣本平均數 :
。
計算樣本變異數 (使用 作為分母):
首先計算平方和 :
。
樣本變異數 。
(a) Find a point estimate of .
母體標準差 的點估計量是樣本標準差 。
。
。
計算近似值:。
。
第 1.5 題10 分
Let X and Y denote the tarsus lengths of male and female grackles, and and are the male and female mean tarsus lengths, respectively. Two samples of size 25 are taken from each populations assumed to be normally with equal variances. The male sample has a mean of 35.5 and standard deviation 3.0 while the female sample has a mean of 33.0 and standard deviation 4.0. We want to test the hypothesis that the mean tarsus lengths are equal against the hypothesis that male has longer tarsus lengths.
(a) (2%) Write the null and alternative hypotheses with symbols.
(b) (6%) Compute the test statistics.
(c) (2%) Use 0.05 as significance level and draw a conclusion.
登入後即可作答並保存紀錄。
本題考驗兩獨立樣本平均數的假設檢定 (Hypothesis Testing for the Difference Between Two Independent Means)。由於假設兩母體變異數相等 (equal variances),我們將使用合併變異數 (pooled variance) 的 t 檢定。
已知資訊:
男性組 (X):樣本大小 ,樣本平均數 ,樣本標準差 。
女性組 (Y):樣本大小 ,樣本平均數 ,樣本標準差 。
母體假設:兩母體服從常態分佈,且母體變異數相等 ()。
檢定水準:。
(a) Write the null and alternative hypotheses with symbols.
檢定的目的是測試男女平均跗骨長是否相等,以及男性是否比女性長。
虛無假設 () 是兩種平均跗骨長相等。
對立假設 () 是男性的平均跗骨長大於女性的平均跗骨長。
(或 )
(或 )
這是一個單尾檢定 (right-tailed test)。
(b) Compute the test statistics.
由於假設母體變異數相等,我們需要計算合併變異數 (pooled variance, )。
合併標準差 。
t 檢定的統計量公式為:
第 2.1 題20 分
2.1 (20%) 選擇題(單選題,共10題,每題2分)
-
In order not to violate the requirements necessary to use the chi-square distribution, each expected frequency in a goodness of fit
test must be
a. at least 5
b. at least 10
c. no more than 5
d. less than 2 -
The sampling distribution for a goodness of fit test is the
a. Poisson distribution
b. t distribution
c. normal distribution
d. chi-square distribution -
An ANOVA procedure is applied to data obtained from 6 independent samples where each sample contains 20 observations. The
degrees of freedom for the critical value of F are
a. 6 numerator and 20 denominator degrees of freedom
b. 5 numerator and 20 denominator degrees of freedom
c. 5 numerator and 114 denominator degrees of freedom
d. 6 numerator and 20 denominator degrees of freedom -
In an analysis of variance problem involving 3 treatments and 10 observations per treatment, SSE = 399.6. The MSE for this
situation is
a. 133.2
b. 13.32
c. 14.8
d. 30.0 -
In regression analysis, the unbiased estimate of the variance is
a. coefficient of correlation
b. coefficient of determination
c. mean square error
d. slope of the regression equation -
In simple linear regression analysis, which of the following is not true?
a. The F test and the t test yield the same conclusion.
b. The F test and the t test may or may not yield the same conclusion.
c. The relationship between X and Y is represented by means of a straight line.
d. The value of F = t^2.
登入後即可作答並保存紀錄。
本部分為選擇題,主要測試課堂基礎觀念。
-
Goodness of fit test (卡方適配度檢定)
卡方適配度檢定用於檢驗觀察到的頻率分佈是否與理論上的預期頻率分佈一致。為了確保卡方檢定的近似性有效,要求每個預期頻率 (expected frequency) 必須滿足一定的條件。
常見的規則是,每個預期頻率應至少為 5。有些教科書或軟體可能會稍微放寬,例如允許一些預期頻率低於 5,但不能太少,也不能有預期頻率為 0。
選項 (a) "at least 5" 是最常見且嚴謹的要求。
【答案】(a) at least 5 -
Goodness of fit test (卡方適配度檢定) 的抽樣分佈
卡方適配度檢定是基於卡方統計量 ( statistic) 的。在虛無假設為真時,該統計量服從卡方分佈。
其中 是觀察頻率, 是預期頻率。
【答案】(d) chi-square distribution -
ANOVA (變異數分析) 的自由度
ANOVA 用於比較多個組別的平均數。在此題中,有 6 個獨立樣本 (組別),每個樣本有 20 個觀察值。
總觀察數 。
組間自由度 (numerator degrees of freedom, df1) 等於組別數量減 1:。
組內自由度 (denominator degrees of freedom, df2) 等於總觀察數減組別數量:。
或者,每個組別的組內自由度是 ,總組內自由度是 。
F 檢定的自由度是 (組間自由度, 組內自由度)。
【答案】(c) 5 numerator and 114 denominator degrees of freedom -
ANOVA (變異數分析) 中的 MSE
MSE (Mean Square Error) 是組內變異數的估計量,也稱為殘差均方 (Mean Squared Residual)。
MSE 的計算公式是 SSE (Sum of Squared Errors) 除以其對應的自由度 (dfE)。
SSE 是總平方和 (SST) 減去 SSR (Sum of Squares Regression)。在 ANOVA 中,SSE 也常稱為 SSW (Sum of Squares Within) 或 SSB (Sum of Squares Between Treatments)。
這裡的 SSE 代表組內誤差平方和。
題目給定 3 個處理 (treatments),每個處理有 10 個觀察值。
總觀察數 。
組間自由度 (Treatments) 。
第 2.1 (續) 題20 分
(續)
7. In a regression and correlation analysis if , then
a. SSE = SST
b. SSE = 1
c. SSR = SSE
d. SSR = SST
-
In order to determine whether or not the means of two populations are equal,
a. a t test must be performed.
b. an analysis of variance must be performed.
c. either a t test or an analysis of variance can be performed.
d. a chi-square test can be performed. -
In a regression model involving more than one independent variable, which of the following tests must be used in order to
determine if the relationship between the dependent variable and the set of independent variables is significant?
a. t test
b. F test
c. Either a t test or a chi-square test can be used.
d. chi-square test -
In regression analysis, which of the following is not a required assumption about the error term?
a. The expected value of the error term is one.
b. The variance of the error term is the same for all values of X.
c. The values of the error term are independent.
d. The error term is normally distributed.
登入後即可作答並保存紀錄。
本部分為選擇題的續篇。
-
Regression and correlation analysis ()
在迴歸分析中,決定係數 (或 在簡單線性迴歸中) 表示因變數總變異量 (SST) 中,有多少比例可以被自變數解釋。
,其中 SSR 是迴歸平方和 (Sum of Squares Regression),SST 是總平方和 (Total Sum of Squares)。
SSE (Sum of Squares Error) 是殘差平方和,與 SST 和 SSR 的關係是:。
如果 ,表示所有的變異量都可以被迴歸模型解釋,即 。
這意味著殘差平方和 SSE 必須為 0。
選項分析:
a. :若 SSE=SST,則 SSR=0,表示迴歸線是水平的,這與 相矛盾。
b. :沒有理由 SSE 會等於 1。
c. :若 SSR=SSE,則 。,這與 相矛盾。
d. :當 時,代表模型完美解釋了所有變異,所以迴歸平方和等於總平方和。這也意味著 SSE = 0。
【答案】(d) SSR = SST -
Comparing means of two populations
比較兩個母體的平均數是否相等:
a. t test:用於比較兩個母體平均數。
b. Analysis of variance (ANOVA):用於比較三個或更多母體的平均數。雖然也可以用於兩個母體,但 t 檢定更直接。
c. Either a t test or an analysis of variance can be performed:對於比較兩個母體,t 檢定是最標準的方法。ANOVA 也可以,但它是 t 檢定的推廣。
第 2.1 (續) 題20 分
(續)
2.2 (10%) Among 100 managers with degrees in business administration, the following data have been accumulated as to their fields
of concentration.
Position
Top Management
Middle Management
Major
TOTAL
Management
28
22
50
Marketing
12
8
20
Accounting
10
20
30
TOTAL
50
50
100
To test if the position in management is independent of field (major) of concentration,
(a) (5%) State the null and alternative hypotheses.
(b) (5%) At 95% confidence using the p-value approach, test the hypotheses. What is your conclusion? (For the test, give the null
and alternative hypotheses, test statistic, and conclusion.)
登入後即可作答並保存紀錄。
本題考驗獨立性檢定 (Test of Independence),屬於卡方檢定的一種應用。我們需要檢定管理職位 (Position) 是否與專業領域 (Major) 獨立。
給定的數據是一個列聯表 (contingency table):
| Major | Top Management | Middle Management | TOTAL |
|---|---|---|---|
| Management | 28 | 22 | 50 |
| Marketing | 12 | 8 | 20 |
| Accounting | 10 | 20 | 30 |
| TOTAL | 50 | 50 | 100 |
(a) State the null and alternative hypotheses.
虛無假設 () 是兩個變數是獨立的。
對立假設 () 是兩個變數不是獨立的 (即存在關聯性)。
: 管理職位 (Position) 與專業領域 (Major) 是獨立的。
: 管理職位 (Position) 與專業領域 (Major) 不是獨立的。
(b) At 95% confidence using the p-value approach, test the hypotheses. What is your conclusion?
檢定步驟:
-
計算預期頻率 (Expected Frequencies)
在虛無假設 (獨立性) 為真的情況下,預期頻率 的計算公式為:
我們需要計算每個單元格的預期頻率。預期頻率表:
Major Top Management Middle Management Management 25 25 Marketing 10 10 Accounting 15 15 -
計算卡方檢定統計量 ( statistic)
檢定統計量的公式為:
其中 是觀察到的頻率, 是預期頻率。
第 2.3 題10 分
2.3 (10%) Employees of AAA Corporation are about to undergo a retraining program. Management is trying to determine which of
three programs is the best. They believe that the effectiveness of the programs may be influenced by sex. A factorial experiment
was designed. You are given the following information of score.
Factor A (Program)
Factor B (Sex)
1
2
A
26 19 20 21
24 21 20 23
B
30 24 25 29
33 27 31 29
C
26 22 27 17
31 23 24 26
Given SSA=184.33, SSB=28.17, SSAB=8.33, SST=405.83
(a) (5%) Set up the ANOVA table.
(b) (5%) What advice would you give AAA Corporation? Use a .05 level of significance. (Hint: Test for any significant differences
due to programs, sex, and interaction. For each test, give the null and alternative hypotheses, test statistics, and conclusion.)
登入後即可作答並保存紀錄。
本題考驗雙因子變異數分析 (Two-Way ANOVA) 的應用。實驗目的是比較三種訓練計畫 (Factor A: Program) 的效果,並考慮性別 (Factor B: Sex) 是否會影響效果。這是一個包含交互作用 (Interaction) 的因子實驗設計。
數據整理:
Factor A (Program): A, B, C (3 levels)
Factor B (Sex): 1, 2 (2 levels)
每個組合 (cell) 有 4 個觀察值。
總觀察數 。
給定的平方和:
SSA (Sum of Squares for Factor A, Program) = 184.33
SSB (Sum of Squares for Factor B, Sex) = 28.17
SSAB (Sum of Squares for Interaction A*B) = 8.33
SST (Total Sum of Squares) = 405.83
(a) Set up the ANOVA table.
ANOVA 表需要計算各項的自由度 (df) 和均方 (MS),以及 F 統計量。
首先計算各項的自由度:
- dfA (Program) = (A 的層數) - 1 = 3 - 1 = 2
- dfB (Sex) = (B 的層數) - 1 = 2 - 1 = 1
- dfAB (Interaction A*B) = dfA * dfB = 2 * 1 = 2
- dfE (Error) = N - (A 的層數) * (B 的層數) = 24 - (3 * 2) = 24 - 6 = 18
或者,dfE = N - 1 - dfA - dfB - dfAB = 24 - 1 - 2 - 1 - 2 = 18。 - dfT (Total) = N - 1 = 24 - 1 = 23。檢查:dfA + dfB + dfAB + dfE = 2 + 1 + 2 + 18 = 23 = dfT。
接下來計算平方和 (SS) 和均方 (MS):
- SSA = 184.33
- SSB = 28.17
- SSAB = 8.33
- SSE (Error SS) = SST - SSA - SSB - SSAB
SSE = 405.83 - 184.33 - 28.17 - 8.33 = 184.90
計算均方 (MS = SS / df):
- MSA = SSA / dfA = 184.33 / 2 = 92.165
- MSB = SSB / dfB = 28.17 / 1 = 28.17
- MSAB = SSAB / dfAB = 8.33 / 2 = 4.165
- MSE = SSE / dfE = 184.90 / 18 10.2722
最後計算 F 統計量 (F = MS / MSE):
- F_A = MSA / MSE = 92.165 / 10.2722 8.9725
- F_B = MSB / MSE = 28.17 / 10.2722 2.7425
- F_AB = MSAB / MSE = 4.165 / 10.2722 0.4054
ANOVA Table:
| Source of Variation | SS | df | MS | F |
|---|---|---|---|---|
| Program (A) | 184.33 | 2 | 92.165 | 8.9725 |
| Sex (B) | 28.17 | 1 | 28.17 | 2.7425 |
| Interaction (A*B) | 8.33 | 2 | 4.165 | 0.4054 |
| Error (E) | 184.90 | 18 | 10.2722 | |
| Total | 405.83 | 23 |
(b) What advice would you give AAA Corporation? (Hint: Test for any significant differences due to programs, sex, and interactio
第 2.4 題10 分
2.4 (10%) Multiple regression analysis was used to study how an individual's income (Y in thousands of dollars) is influenced by age
(X1 in years), level of education (X2 ranging from 1 to 5), and the person's gender (X3 where 0=female and 1=male). The following
is a partial result of computer output that was used on a sample of 20 individuals.
ANOVA
Predictor
Constant
X1
X2
X3
SS
df
MS
F
84
112
Standard Error
of Coefficient
Coefficients
21.00
0.70
0.62
0.10
0.92
0.19
-0.51
0.92
(a) (2%) Present the estimated regression equation and compute the coefficient of determination. Explain it.
(b) (2%) Use the t test to determine the significance of each independent variable. Let . (For each test, give the null and
alternative hypotheses, test statistic, and conclusion.)
(c) (2%) Use the F test to determine the whether or not the regression model is significant. Let . (For the test, give the null
and alternative hypotheses, test statistic, and conclusion.)
(d) (2%) Does the estimated regression equation provide a good fit for the observed data? Explain it based upon the results from
part (a), (b), and (c).)
(e) (2%) Suppose a new person with , , . Use the estimated regression equation from part (a) to estimate the new
person's income.
登入後即可作答並保存紀錄。
本題考驗複迴歸分析 (Multiple Regression Analysis) 的相關概念與應用,包括迴歸方程式、決定係數、個別自變數的顯著性檢定、整體迴歸模型的顯著性檢定,以及預測。
給定的資訊:
樣本大小 。
自變數: (年齡), (教育程度), (性別)。
應變數:Y (收入,千美元)。
ANOVA 表部分資訊:
Regression SS = 84
Residual SS (SSE) = 112
迴歸係數 (Coefficients) 和標準誤 (Standard Error of Coefficient):
Constant () = 21.00, SE() = 0.70
(for ) = 0.62, SE() = 0.10
(for ) = 0.92, SE() = 0.19
(for ) = -0.51, SE() = 0.92
(a) Present the estimated regression equation and compute the coefficient of determination. Explain it.
Estimated Regression Equation:
根據給定的係數,估計的迴歸方程式為:
Coefficient of Determination ():
首先計算 Total SS:
Total SS = Regression SS + Residual SS (SSE)
Total SS = 84 + 112 = 196
Explanation of :
表示模型中包含的自變數 () 總共解釋了因變數 Y (收入) 總變異的約 42.86%。換句話說,有約 57.14% 的收入變異無法被這個模型解釋。
(b) Use the t test to determine the significance of each independent variable. Let . (For each test, give the null and alternative hypotheses, test statistic, and conclusion.)
對每個自變數,我們進行 t 檢定來判斷其迴歸係數是否顯著不為零。
檢定統計量 。
自由度 。
臨界值 。查表約為 2.120。
-
For (Age):
- Test Statistic:
- Conclusion: Since , we reject . is a significant predictor of income at .
-
For (Education Level):
- Test Statistic:
- Conclusion: Since , we reject . is a significant predictor of income at .
-
For (Gender):
- Test Statistic: