113 年 國立中正大學企業管理學系碩士班丙組《統計學》
第 1 題10 分
First, throw a fair die and let denote the outcome of throwing. Then, fair coins are tossed and let denote the number of heads appeared.
a. What is the probability ? (5%)
b. What is the expected value ? (5%)
登入後即可作答並保存紀錄。
這題主要考驗對二項分佈的機率計算與期望值公式的理解。
核心觀念:
- 二項分佈 (Binomial Distribution): 當獨立的試驗重複進行固定次數,且每次試驗只有兩種結果(成功或失敗),則成功次數服從二項分佈。
- 二項分佈的期望值: 對於一個服從二項分佈 的隨機變數,其期望值為 。
解題過程:
題目描述中,首先擲一個公平骰子,其結果用 表示,集合為 。
接著,將 個公平的硬幣拋擲,並記錄出現的正面次數,這個次數用 表示,集合為 。
這裡的關鍵在於理解「 個公平的硬幣拋擲」這個動作。這表示硬幣拋擲的次數 是由骰子點數 決定的,而 本身是一個隨機變數。
a. What is the probability ?
我們需要計算 。
由於硬幣拋擲的次數 是隨機的,我們需要考慮所有可能的 值。
令 表示在拋擲 個硬幣時出現的正面次數。這服從一個二項分佈 ,因為硬幣是公平的,所以成功(正面)的機率 。
因此,。
我們可以透過全機率公式來計算 :
由於骰子是公平的,所以 對於 。
我們分別計算 和 :
- : 在拋擲 個硬幣時,出現 0 個正面的機率。
。 - : 在拋擲 個硬幣時,出現 1 個正面的機率。
。
現在,我們計算 。
第 2 題10 分
Explain briefly the following theorems (examples may be used for explanation):
a. The law of large numbers. (5%)
b. The central limit theorem. (5%)
登入後即可作答並保存紀錄。
這題旨在測驗考生對機率論中兩個重要定理的理解與解釋能力。
核心觀念:
- 大數法則 (Law of Large Numbers): 描述當進行大量獨立同分佈的隨機試驗時,樣本平均值會趨近於其理論期望值。
- 中央極限定理 (Central Limit Theorem): 描述當從任何分佈中抽取足夠大的隨機樣本時,樣本平均值(或樣本總和)的分佈會近似於常態分佈,與原始總體的實際分佈無關。
解題過程:
a. The law of large numbers.
解釋:
大數法則指出,如果我們重複進行一個隨機實驗很多次,並且每次實驗的結果都是獨立且具有相同的機率分佈(即獨立同分佈,i.i.d.),那麼這些實驗結果的算術平均值將會越來越接近該隨機變數的理論期望值。換句話說,隨著樣本數量的增加,樣本平均值與真實期望值之間的差異會趨近於零。
舉例說明:
想像你正在擲一枚公平的硬幣。每次擲硬幣,出現正面的機率是 。
- 如果你只擲 10 次,你可能會得到 3 次正面(機率 )或 7 次正面(機率 )。此時的樣本比例 或 可能會遠離理論值 。
- 但是,如果你擲 1000 次,你很可能會得到接近 500 次正面(機率 )。即使不是正好 500 次,例如 490 次或 510 次,樣本比例( 或 )也會非常接近理論值 。
- 如果你擲 1,000,000 次,樣本平均值(正面比例)將會非常非常接近 。
第 3 題15 分
CCU Drugs wants to know if the two new treatments A and B have the same effects. Two random samples each of size 60 are taken from both treatments with , , and . Both treatments are assumed to be normally distributed with the equal variances.
a. Establish the null and alternative hypotheses. (5%)
b. Compute the test statistic for the hypothesis testing in (1). (5%)
c. What conclusion could CCU Drugs make at ? (5%)
登入後即可作答並保存紀錄。
這題考驗獨立樣本 t 檢定(兩母體平均數比較),且假設母體變異數相等。
核心觀念:
- 獨立雙樣本 t 檢定 (Independent Two-Sample t-test): 用於比較兩個獨立樣本的平均數是否存在顯著差異。
- 假設變異數相等 (Pooled Variance): 當假設兩個母體的變異數相等時,我們需要計算一個合併變異數 (pooled variance) 來估計共同的母體變異數。
- 假設檢定步驟: 建立虛無與對立假設 → 計算檢定統計量 → 決定臨界值或計算 p-value → 做出結論。
解題過程:
題目給定:
- 樣本 A:, ,
- 樣本 B:, ,
- 假設母體服從常態分佈,且母體變異數相等 ()。
- 檢定水準 。
a. Establish the null and alternative hypotheses.
我們要檢定兩種治療方法 A 和 B 的效果是否相同。效果通常用平均值來衡量。
- 虛無假設 ():兩種治療方法的平均效果相同。
- 對立假設 ():兩種治療方法的平均效果不同。
數學表達式:
(或 )
(或 )
這是一個雙尾檢定 (two-tailed test)。
【答案】
b. Compute the test statistic for the hypothesis testing in (1).
由於假設母體變異數相等,我們首先計算合併變異數 (pooled variance, ):
第 4 題15 分
Process manager designs a new method to improve the throughput of a process. The hourly output of the original process is approximately normally distributed with mean of 50 pieces and standard deviation of 10. A random sample of 25 hourly outputs is drawn from the improved process for which the average hourly output is 54.
a. Establish the null and alternative hypotheses. (5%)
b. Can manager claim that the new method does effectively improve the process at ? (5%)
c. What is the type II error if the improved process has a mean hourly output of 56? (5%)
登入後即可作答並保存紀錄。
這題考驗單一樣本 t 檢定(檢定母體平均數是否大於某值)以及第二類錯誤 (Type II error) 的計算。
核心觀念:
- 單一樣本 t 檢定 (One-Sample t-test): 用於檢定單一樣本的平均數與一個已知的母體平均數或特定值之間是否存在顯著差異。
- 檢定方向: 題目詢問「改善」效果,表示我們關心的是平均產量是否「增加」,因此是單尾檢定。
- 第二類錯誤 (Type II Error): 當虛無假設 為假,但我們卻未能拒絕 時,所犯的錯誤。其機率以 表示。
解題過程:
已知資訊:
- 原製程平均產量: (來自歷史數據)
- 原製程標準差: (注意:這裡給的是原製程的標準差,用於建立檢定基準。對於新製程的樣本,我們將使用樣本標準差來估計新製程的標準差,但問題中並未給出新製程的樣本標準差,這是一個潛在的問題,我們稍後處理。)
- 新製程樣本:,
- 檢定水準
重要說明: 題目提到「原製程...標準差為 10」,但對於新製程的分析,我們只有樣本平均數 54,而沒有樣本標準差。若要進行 t 檢定,我們需要樣本標準差。然而,如果題目意圖是假設新製程的標準差也與原製程相同,即 ,那麼我們可以使用 z 檢定。但通常情況下,若未明確說明,我們應假設新製程的標準差未知,並應使用樣本標準差。
在沒有樣本標準差的情況下,常見的處理方式有兩種:
- 假設新製程的標準差與舊製程相同 (),則使用 z-test。
- 題目可能漏給了新製程的樣本標準差,或者期望我們從其他資訊推導。
假設我們採用 z-test,並假設新製程的標準差 (與原製程相同)。
a. Establish the null and alternative hypotheses.
管理者想知道新方法是否「有效改善」製程,這表示平均產量是否大於原來的 50 件。
- 虛無假設 ():新製程的平均產量不超過原製程的平均產量。
- 對立假設 ():新製程的平均產量顯著高於原製程的平均產量。
數學表達式:
(或 ,因為檢定時通常以邊界值 為基礎)
這是一個右尾檢定 (right-tailed test)。
【答案】
b. Can manager claim that the new method does effectively improve the process at ?
使用 z-test,因為我們假設 。
檢定統計量:
檢定水準 ,右尾檢定。
從標準常態分佈表查找,對應 的臨界值 。
比較 z 值與臨界值:
臨界值 。
因為 ,所以我們拒絕虛無假設 。
結論:
在 5% 的顯著水準下,管理者可以聲稱新方法確實有效地改善了製程,因為新製程的平均產量 (54) 顯著高於原製程的平均產量 (50)。
【答案】 是的,管理者可以聲稱新方法有效地改善了製程。
第 5 題20 分
The management of Compute-All know that in the past, 40% of their sales were from people under 30 years old, 45% of their sales were from people who are between 30 and 50 years old, and 15% of their sales were from people who are over 50 years old. A sample of 300 customers was taken to see if these market shares had changed. In the sample, 100 people were under 30 years old, 150 people were between 30 and 50 years old, and 50 people were over 50 years old.
a. State the null and alternative hypotheses to be tested. (5%)
b. Compute the test statistic. (5%)
c. Null hypothesis is to be tested at the 1% level of significance. Determine the critical value. (5%)
d. What do you conclude? (5%)
登入後即可作答並保存紀錄。
這題考驗適合度檢定 (Goodness-of-Fit Test),特別是卡方檢定 (Chi-square test),用來檢定觀察到的樣本頻率是否與預期的比例相符。
核心觀念:
- 適合度檢定 (Goodness-of-Fit Test): 檢定一個樣本的觀察分佈是否來自一個特定的理論分佈(或比例)。
- 卡方適合度檢定: 當研究類別變數的觀察次數與預期次數之間的差異時,使用卡方統計量。
- 卡方統計量公式: ,其中 是觀察次數, 是預期次數, 是類別的數量。
- 自由度: 對於適合度檢定,自由度為 ,其中 是類別數, 是在計算預期次數時估計的參數數量(在此題中,預期比例是給定的,所以 )。
解題過程:
已知資訊:
- 總樣本大小:
- 過去的銷售比例:
- 30 歲以下:
- 30-50 歲:
- 50 歲以上:
(注意:)
- 樣本觀察次數:
- 30 歲以下:
- 30-50 歲:
- 50 歲以上:
(注意:)
- 檢定水準 。
- 類別數量 。
a. State the null and alternative hypotheses to be tested.
我們要檢定的是,當前的市場結構(銷售比例)是否與過去的市場結構相同。
- 虛無假設 ():當前銷售的年齡結構比例與過去相同。
即,。 - 對立假設 ():當前銷售的年齡結構比例與過去不同。
即,至少有一個比例 與過去的比例不同。
【答案】
至少一個 不等於其對應的假設值。
b. Compute the test statistic.
第 6 題15 分
A regression analysis involving 45 observations relating a dependent variable and two independent variables resulted in the following information.
The SSE for the above model is 49. When two other independent variables were added to the model, the following information was provided.
This model's SSE is 40.
At the 5% level of significance, test to determine if the two added independent variables contribute significantly to the model.
a. State the null and alternative hypotheses. (5%)
b. Compute the test statistic. (5%)
c. Using the p-value approach, test the null hypothesis. What is your conclusion? (5%)
登入後即可作答並保存紀錄。
這題考驗的是 F 檢定,用於比較兩個嵌套模型 (nested models) 的擬合優度,判斷新增的變數是否顯著提升模型的解釋力。
核心觀念:
- 嵌套模型 (Nested Models): 一個模型是另一個模型的子集,即大模型包含小模型的所有變數,再加上額外的變數。
- F 檢定 (F-test for comparing nested models): 用於檢定新增變數所解釋的變異量是否顯著。
- F 統計量公式:
其中 是殘差平方和 (Sum of Squared Errors), 是自由度。
(這裡 是小模型中自變數的個數)
(這裡 是大模型中自變數的個數)
是新增變數的個數。 - p-value 方法: 透過計算統計量對應的 p-value,並與顯著水準 比較。若 ,則拒絕虛無假設。
解題過程:
已知資訊:
- 樣本大小 。
- 模型 1 (小模型):包含 2 個自變數 ()。
自變數個數 。
小模型的自由度 。 - 模型 2 (大模型):包含 4 個自變數 ()。
自變數個數 。
大模型的自由度 。 - 新增變數個數:。
- 顯著水準 。
a. State the null and alternative hypotheses.
我們要檢定的是,額外加入的兩個自變數 () 是否顯著地提高了模型的解釋力。
- 虛無假設 ():額外加入的兩個自變數 () 對模型的貢獻不顯著。也就是說,牠們的迴歸係數同時為零。
第 7 題15 分
The following data show the quarterly sales of Amazing Graphics, Inc. for the years 6 through 8.
| Year | Quarter | Sales (in $ millions) |
|---|---|---|
| 6 | 1 | 2.5 |
| 2 | 1.5 | |
| 3 | 2.4 | |
| 4 | 1.6 | |
| 7 | 1 | 2.0 |
| 2 | 1.4 | |
| 3 | 1.7 | |
| 4 | 1.9 | |
| 8 | 1 | 2.5 |
| 2 | 2.0 | |
| 3 | 2.4 | |
| 4 | 2.1 |
a. Compute the four-quarter centered moving average values for the above time series. (5%)
b. Compute the seasonal indexes for the four quarters. (5%)
c. Use the seasonal indexes developed in Part b to remove the effect of season from the sales for year 6. (5%)
登入後即可作答並保存紀錄。
這題考驗時間序列分析中的移動平均法 (Moving Average) 和季節性指數計算 (Seasonal Index)。
核心觀念:
- 移動平均法 (Moving Average): 用於平滑時間序列數據,去除短期波動(如季節性或隨機波動),以顯示長期趨勢。
- 中央移動平均 (Centered Moving Average, CMA): 當計算偶數期數的移動平均時,需要進行二次平均以使其「居中」。例如,計算 4 週期數的移動平均,需要將前後兩個 4 週期數移動平均值取平均。
- 季節性指數 (Seasonal Index): 表示某個季節的數值相較於全年平均值的倍數。
- 季節調整 (Seasonal Adjustment): 將原始時間序列數據除以其季節性指數,以去除季節性成分。
解題過程:
**原始數據 (Sales in