109 年 國立政治大學財務管理學系碩士班《統計學》
第 1 題3 分
- (3pt) If a test of hypothesis has a Type I error probability of 0.05, this means that:
(A) if the null hypothesis is true, we don't reject if 5% of the time
(B) if the null hypothesis is true, we reject it 5% of the time
(C) if the null hypothesis is false, we don't reject it 5% of the time
(D) if the null hypothesis is false, we reject it 5% of the time
登入後即可作答並保存紀錄。
此題考驗對 Type I 錯誤定義的理解。
Type I 錯誤是指當虛無假說 (null hypothesis, ) 為真時,我們卻拒絕了它。其發生的機率定義為 。
題目中提到 Type I 錯誤的機率是 0.05,這表示當 為真時,我們有 5% 的機率會做出錯誤的決定,也就是拒絕 。
第 2 題3 分
- (3pt) Suppose we wish to test Ho: vs. . Which of the following possible sample results gives the most evidence to support ?
(A) sample mean is 19 and standard error is 5
(B) sample mean is 20 and standard error is 8
(C) sample mean is 21 and standard error is 6
(D) sample mean is 19 and standard error is 11
登入後即可作答並保存紀錄。
此題在於判斷哪個樣本結果最能支持對右尾檢定 (one-sided test) 的對立假說 ()。
我們想要檢定 對 。
支持 的證據來自於樣本平均數 () 相對於虛無假說中的母體平均數 () 越小越好。
統計檢定的檢定統計量 (test statistic) 通常是標準化的分數,例如 Z 統計量或 t 統計量。對於平均數的檢定,常見的檢定統計量形式為:
其中 是樣本平均數的標準誤 (standard error)。
為了支持 ,我們希望計算出來的檢定統計量越小(越負)越好,因為這表示樣本平均數離 23 越遠,且方向是朝向小於 23。
我們來計算各個選項的檢定統計量:
第 3 題3 分
- (3pt) If a random sample of size n=100 fine-dining restaurants is selected and it is found that 45 restrict the use of the cell phones, give a 99% confidence interval for the true proportion of fine-dining restaurants that restrict the use of cell phone.
(A) (0.3219, 0.5781)
(B) (0.3525, 0.5475)
(C) (0.2378, 0.4222)
(D) (0.2526, 0.4073)
登入後即可作答並保存紀錄。
此題考驗對比例 (proportion) 的信賴區間 (confidence interval) 計算。
我們有一個隨機樣本,樣本大小 。
樣本中,有 45 間餐廳限制使用手機,因此樣本比例 。
我們要計算 99% 的信賴區間。
信賴區間的公式為:
對於 99% 的信賴水準,。
因此,。
我們需要在標準常態分配表中找到 。查表可知,。
接下來計算標準誤 (standard error) 的部分:
第 4 題3 分
- (3pt) Which of the following does the Central Limit Theorem allow us to disregard when working with the sampling distribution of the sample mean?
(A) the standard deviation of the population distribution
(B) the shape of the population distribution
(C) the mean of the population distribution
(D) all of the above can be disregarded when the Central Limit Theorem is used
登入後即可作答並保存紀錄。
核心觀念
本題評量**中央極限定理(Central Limit Theorem, CLT)**的核心精神與樣本平均數抽樣分配(Sampling Distribution of the Sample Mean)的性質。
中央極限定理指出:
設隨機變數 為一組來自任意分配(具有有限母體平均數 與有限母體變異數 )之獨立且同分配(i.i.d.)的隨機樣本。當樣本數 充分大時(實務上通常以 為經驗法則),樣本平均數 的抽樣分配會漸近逼近常態分配,即:
或以標準化形式表示為:
CLT 的最大威力在於:不論母體的分配形狀(Shape)為何(例如均勻分配、指數分配、甚至高度偏態的分配),只要樣本數夠大, 的分配都會趨近於鐘形對稱的常態分配。因此,在推導或使用 的抽樣分配時,研究者可以忽略母體的分配形狀。
解題方法
由中央極限定理的結論:
可知:
- 抽樣分配的形狀:由 CLT 保證為常態分配,因此母體的形狀(Shape)已被「常態化」所取代,在分析時可以忽略(disregard)。
- 抽樣分配的中心與離散程度:
- 抽樣分配的期望值仍為母體平均數 。
- 抽樣分配的標準誤仍為 ,仰賴母體標準差 。
因此,進行統計推論(如計算機率值、建構信賴區間、假設檢定)時, 與 依然不可或缺,唯獨母體的**原始形狀(Shape of the population distribution)**可以被忽略。
選項分析
第 5 題3 分
- (3pt) A man with 10 keys wants to open his door and tries the keys at random. Suppose there is exactly one key will open the door. If unsuccessful keys are eliminated from further selections. Let X be the number of trials to find the right key. What is the distribution of X?
(A) Uniform distribution
(B) Geometric distribution
(C) Binomial distribution
(D) Negative binomial distribution
登入後即可作答並保存紀錄。
核心觀念
本題考查「不放回抽樣」下,成功事件第一次出現的位置分布。
共有 把鑰匙,其中恰有 把正確。每次隨機選取一把,錯誤鑰匙一經試過便不再放回,因此每把鑰匙在排列中的位置都等可能出現在第 至第 次。
令 表示找到正確鑰匙所需的試次,則
且正確鑰匙出現在每一個位置的機率相同,因此
所以 服從有限母體上的均勻分布:
解題方法
直接計算正確鑰匙在第 次被試出的機率。
要使 ,必須滿足:
- 前 次試到的都是錯誤鑰匙;
- 第 次試到唯一的正確鑰匙。
因此
連乘後全部約分,得到
例如:
每一個可能試次的機率都相同,所以是均勻分布。
第 6 題3 分
- (3pt) The seasonal output of a new experimental strain of pepper plants was carefully weighed. The mean weight per plant is 15.0 pounds, and the standard deviation of the normally distributed weights is 1.75 pounds. Of the 200 plants in the experiment, how many produced peppers weighing between 13 and 16 pounds?
(A) 100
(B) 118
(C) 197
(D) 53
登入後即可作答並保存紀錄。
此題考驗常態分配的應用,特別是計算機率與人數。
已知母體平均數 磅。
母體標準差 磅。
分配為常態分配。
總樣本數 株。
我們需要計算重量介於 13 磅和 16 磅之間的植物數量。這相當於計算在常態分配中,隨機變數落在區間 (13, 16) 的機率,然後乘以總數 200。
首先,我們需要將 13 和 16 這兩個值標準化 (z-score):
對於 :
對於 :
現在我們需要查找標準常態分配表中 。
查表或使用軟體:
第 7 題3 分
- (3pt) Which of the following tests is appropriate for data if the problem objective is to compare two populations and there are exactly 2 categories?
(A) The z-test for the difference of two proportions
(B) The chi-squared test of a contingency table
(C) Both A and B
(D) None of these choices
登入後即可作答並保存紀錄。
核心觀念
本題考查「比較兩個母體在類別變數上的分布」時,應選用何種假設檢定。
題目條件為:
- 比較兩個母體;
- 變數恰有兩個類別;
- 因此資料可整理成一個 列聯表。
例如,兩個母體分別為母體 1、母體 2,觀察結果分為「成功」與「失敗」:
| 成功 | 失敗 | 合計 | |
|---|---|---|---|
| 母體 1 | |||
| 母體 2 |
令兩母體的成功比例分別為 與 ,常見的檢定問題為:
此問題可使用「兩母體比例差的 檢定」,也可使用「列聯表的卡方獨立性檢定」。在 列聯表中,兩種方法具有等價關係。
解題方法
方法一:兩母體比例差的 檢定
樣本比例為:
在虛無假設 下,使用合併樣本比例:
檢定統計量為:
當樣本數足夠大,使常態近似成立時,即可利用標準常態分布進行檢定。
此方法直接比較兩個母體的比例差異,特別適合「兩個母體、二元類別」的資料。
方法二:列聯表的卡方檢定
將資料整理成 列聯表後,可檢定:
這在本題中等價於:
卡方統計量為:
其中:
第 8 題3 分
- (3pt) In testing the hypothesis Ho: vs. H₁: , the p-value is found to be 0.074, and the sample mean is 105. Which of the following statements is true?
(A) The probability of observing a sample mean at least as large as 105 from a population whose mean is 100 is 0.074
(B) The probability of observing a sample mean smaller than 105 from a population whose mean is 100 is 0.074
(C) The probability that the population mean is larger than 100 is 0.074
(D) None of these choices
登入後即可作答並保存紀錄。
核心觀念
本題的核心觀念為假設檢定中 -值(,又稱顯著機率)的精確定義。
在古典(頻率學派)假設檢定架構下:
- -值定義:在虛無假設 為真的條件下,檢定統計量觀察到「現有樣本結果」或「比現有樣本結果更極端(偏向對立假設 )」的機率。
- 單尾檢定方向:
- 檢定問題為: vs. (右尾檢定)。
- 對立假設關注的是母體平均數「大於」100 的方向,因此「比觀察值更極端」代表樣本平均數「大於或等於」觀察值。
- 數學定義式表示為:
解題方法
- 辨識檢定型態與統計量方向:
本題對立假設為 ,為右尾檢定(Right-tailed test)。當樣本平均數 愈大(遠大於 100),愈有理由反對 。 - 帶入觀察值與 -值:
題目給定:- 虛無假設值:
- 樣本平均數觀察值:
- 對應機率陳述:
根據右尾檢定的定義,比 105 更極端的事件為 。因此: 此機率陳述即為「當母體平均數為 100 時,觀察到樣本平均數至少為 105 的機率為 0.074」。
選項分析
- (A) 正確:
原文為「The probability of observing a sample mean at least as large as 105 from
第 9 題3 分
- (3pt) The sample size needed to within 10 units of the population mean was found to be 68. If the population standard deviation was 50, then the confidence level used was
(A) 99%
(B) 95%
(C) 90%
(D) 98%
登入後即可作答並保存紀錄。
此題考驗樣本大小 (sample size) 的計算公式,以及如何從樣本大小反推出信賴水準 (confidence level)。
樣本大小的公式,用於估計母體平均數,使其落在誤差範圍 以內,是:
題目給定:
誤差範圍 (within 10 units of the population mean)
母體標準差
計算出的樣本大小
我們需要找出使用的信賴水準。信賴水準由 決定。
將已知數值代入公式:
現在我們需要根據 來判斷信賴水準。
我們來檢查各選項對應的 值:
第 10 題3 分
- (3pt) The SAT scores of entering freshmen at a certain university have mean 1215 and standard deviation 110. A random sample of 100 freshmen is taken and X is computed. The probability that X less than 1190 is
(A) 0.2272
(B) 0.1335
(C) 0.4090
(D) 0.0116
登入後即可作答並保存紀錄。
此題考驗中央極限定理 (CLT) 的應用,計算樣本平均數的機率。
已知母體平均數 。
母體標準差 。
樣本大小 。
我們需要計算樣本平均數 小於 1190 的機率,即 。
根據中央極限定理,當樣本數 夠大時 (這裡 ),樣本平均數 的抽樣分配近似於常態分配,其:
平均數
標準差 (標準誤) 。
所以,。
現在,我們將 轉換為標準常態變數 的範圍:
第 11 題15 分
- (15%) The weekly oil demand X (in tons) follows the pdf , . However, the company can produce at most only 4 tons of the oil per week. Let Y be the oil sold per week.
(a) (3%) Find the probability that the oil will be sold out per week
(b) (7%) Find the cumulative distribution function of Y
(c) (5%) Find E(Y)
登入後即可作答並保存紀錄。
核心觀念
本題考查:
- 指數分配的累積分配函數與尾端機率。
- 生產上限造成的截斷變數:
- 累積分配函數 。
- 非負隨機變數期望值的尾端積分公式:
由題意,需求量 的機率密度函數為
因此 服從平均數為 的指數分配,其累積分配函數為
由於公司每週最多只能生產 噸,實際售出量為
當 時,全部需求均可滿足,故 ;當 時,只能售出 噸,故 。
(a) 每週售罄的機率
售罄表示需求量至少達到生產上限 ,因此
利用指數分配的尾端機率:
數值約為
因此每週售罄的機率約為 。
(b) 的累積分配函數
欲求
需依照 的範圍分段討論。
情況一:
因為 不可能小於 ,所以
情況二:
在此範圍內, 等價於 。因為若需求量超過 ,實際售出量會固定為 ,不會小於 。
因此
情況三:
由於 的最大值就是 ,所以
故 的累積分配函數為
特別注意在 時,
第 12 題20 分
- (20%) Suppose that a random sample of 60 observations was drawn from a normal population. Suppose that we would like to infer whether or not the observations come from a zero mean and variance one. After drawing observations randomly, the number of observations in each of the intervals below was counted. Can we infer at the 5% significance level that the data were drawn from a hypothesized population? Ps. your answer should include: (i) the null/alternative hypothesis; (ii) the test statistic; (iii) the decision rule; (iv) the conclusion of the test
| intervals | Frequency |
|---|---|
| (-∞,-1] | 8 |
| (-1,0] | 30 |
| (0,1] | 17 |
| (1,∞) | 5 |
登入後即可作答並保存紀錄。
此題考驗卡方適合度檢定 (Chi-squared Goodness-of-Fit Test) 的應用。
我們要檢定從常態分配 (平均數為 0,變異數為 1)抽取的樣本是否與觀察到的資料相符。
觀察到的資料已經被分組,形成一個頻率分佈。
首先,我們要確定虛無假說 () 和對立假說 ()。
(i) Null/alternative hypothesis:
: 樣本資料來自平均數為 0 且變異數為 1 的常態分配 ()。
: 樣本資料不來自平均數為 0 且變異數為 1 的常態分配 ()。
接下來,我們需要計算在 為真的情況下,各區間的期望頻率 (expected frequency, )。
總樣本數 。
根據 分配,我們需要計算各區間的機率 。
區間 1: 。對應的機率 。
區間 2: 。對應的機率 。
區間 3: 。對應的機率 。
區間 4: 。對應的機率 。
查閱標準常態分配表:
期望頻率 :
注意:所有 的總和應等於 :。
觀察到的頻率 (observed frequency, ) 為:
(ii) Test statistic:
卡方適合度檢定的統計量為:
第 13 題15 分
- (15%) Three different models of automobiles (A, B, and C) were compared for gasoline consumption. For each model of car, 15 cars were randomly selected and subjected to standard driving procedures. The average miles/gallon obtained for each model of car and sample standard deviations are shown below. Suppose that the population variances () are equal.
| Average Mile/Gallon | Car A | Car B | Car C |
|---|
| 42 | 49 | 44
Sample Standard Deviation | 4 | 5 | 3
(a) (10%) Let , and see if the mean gasoline consumption for all three models of cars is the same
(b) (5%) Find a 95% confidence interval for (). Please use to denote the critical value. (you must specify the distribution Q and value of d.f.)
登入後即可作答並保存紀錄。
此題考驗單因子變異數分析 (One-Way ANOVA) 的假設檢定和成對樣本的信賴區間計算。
已知資訊:
總共有 3 個群體 (Car A, Car B, Car C)。
每個群體的樣本大小 。
樣本平均數:, , 。
樣本標準差:, , 。
假設各母體變異數相等 ()。
顯著水準 。
(a) (10%) Let , and see if the mean gasoline consumption for all three models of cars is the same
這是檢定三個母體平均數是否相等的單因子變異數分析 (One-Way ANOVA)。
(i) 虛無假說 () 與對立假說 ():
(所有車款的平均油耗相同)
: 至少有一個車款的平均油耗不同於其他車款。
(ii) 檢定統計量:F 統計量。
首先,我們需要計算組間變異數 (Between-group variance, ) 和組內變異數 (Within-group variance, )。
組內變異數 是所有樣本變異數的加權平均。由於題目假設母體變異數相等,我們可以估計一個共同的母體變異數 的最佳估計量 (pooled variance)。
這裡 (三個車款),。
。
。
。
接下來計算組間變異數 。
首先計算總平均數 :
。
組間平方和 (Sum of Squares Between, )
。
組間自由度 (Degrees of Freedom Between, ) 。
。
F 統計量 = 。
第 14 題20 分
- (20%) An insurance company is considering opening a new branch in Lansing. The company will choose the final location from two locations within the city. One of the factors in the decision is the annual family income (in thousands of dollars) from the potential locations.
Suppose that they randomly selected n families from each location (so the sample size is 2n). Let and be the sample mean and the sample standard deviation of location A, respectively. Similarly, and are the corresponding statistics from location B.
Use to answer the following questions. Please state your answer step-by- step, including: (i) the null/alternative hypothesis; (ii) the test statistic(use , , , to define your test statistic); (iii) the decision rule(including the distribution and critical value)
(a) (5%) Suppose that we have no idea whether the variances are equal or not. So how to use a statistical method to determine the variances are equal or not?
(b) (5%) Suppose that the variances are the same. Perform a hypothesis testing to determine whether the population means differ significantly.
(c) (10%) Let Z be 1 if it comes from location B and 0 otherwise. And Y be the income. We fit a simple linear regression model to this dataset {(Zi, Yi)}i=1,...2n and use the least squares method to get the estimated regression equation. Show that the least squares estimates of intercept and slope parameters are and , respectively.
登入後即可作答並保存紀錄。
此題考驗變異數相等與否的檢定、兩獨立樣本 t 檢定(變異數相等情況)以及簡單線性迴歸模型的參數估計。
已知資訊:
兩個地點 A 和 B。
從每個地點隨機抽取 n 個家庭,總樣本數 。
樣本統計量: (來自地點 A); (來自地點 B)。
顯著水準 。
(a) (5%) Suppose that we have no idea whether the variances are equal or not. So how to use a statistical method to determine the variances are equal or not?
這是考驗如何檢定兩個獨立母體變異數是否相等。最常用的方法是 F 檢定。
(i) 虛無假說 () 與對立假說 ():
(兩地點的家庭年收入變異數相等)
(兩地點的家庭年收入變異數不相等)
這是一個雙尾檢定。
(ii) 檢定統計量:F 統計量。
或 。為了使臨界值查找方便,通常將較大的樣本變異數放在分子。假設 ,則 。
此處題目並未給出具體數值,所以我們只能給出統計量的定義。
(iii) 決策規則:
顯著水準 。
由於是雙尾檢定,我們將 分配到兩個尾部,即 。
自由度:
分子自由度 。
分母自由度 。
臨界值是 和 。
或者,如果我們總是將較大的變異數放在分子,則只需要查找右尾臨界值 。
決策規則:如果 ,則拒絕 。
(iv) 結論:
根據計算出的 F 值和查表得到的臨界值來判斷是否拒絕 。
(b) (5%) Suppose that the variances are the same. Perform a hypothesis testing to determine whether the population means differ significantly.
這是考驗兩個獨立母體平均數是否相等的假設檢定,且已知母體變異數相等。
(i) 虛無假說 () 與對立假說 ():
(兩地點的平均家庭年收入相同)
(兩地點的平均家庭年收入不同)
這是一個雙尾檢定。
(ii) 檢定統計量:t 統計量。
由於假設變異數相等,我們使用池化變異數 。
。
檢定統計量為:
。
(iii) 決策規則:
顯著水準 。
自由度 。
由於是雙尾檢定,臨界值為 。
決策規則:如果 ,則拒絕 。
(iv) 結論:
根據計算出的 t 值和查表得到的臨界值來判斷是否拒絕 。
(c) (10%) Let Z be 1 if it comes from location B and 0 otherwise. And Y be the income. We fit a simple linear regression model to this dataset {(Zi, Yi)}i=1,...2n and use the least squares method to get the estimated regression equation. Show that the least squares estimates of intercept and slope parameters are and , respectively.
簡單線性迴歸模型為:。
其中 是指示變數 (dummy variable):
如果家庭來自地點 A。
如果家庭來自地點 B。
是家庭的年收入。
是截距項。
是斜率項。
是誤差項。
我們有 個觀測值,其中 個來自地點 A (),另外 個來自地點 B ()。
當 (地點 A):
。
因此,地點 A 的樣本平均數 是 的一個估計。
當 (地點 B):
。
因此,地點 B 的樣本平均數 是 的一個估計。
使用最小平方法 (Least Squares Method) 來估計 和 。
最小平方法要求最小化殘差平方和 (Sum of Squared Residuals, SSR):
第 14 題20 分
- (20%) An insurance company is considering opening a new branch in Lansing. The company will choose the final location from two locations within the city. One of the factors in the decision is the annual family income (in thousands of dollars) from the potential locations.
Suppose that they randomly selected n families from each location (so the sample size is 2n). Let and be the sample mean and the sample standard deviation of location A, respectively. Similarly, and are the corresponding statistics from location B.
Use to answer the following questions. Please state your answer step- by- step, including: (i) the null/alternative hypothesis; (ii) the test statistic(use , , , to define your test statistic); (iii) the decision rule(including the distribution and critical value)
(a) (5%) Suppose that we have no idea whether the variances are equal or not. So how to use a statistical method to determine the variances are equal or not?
(b) (5%) Suppose that the variances are the same. Perform a hypothesis testing to determine whether the population means differ significantly.
(c) (10%) Let Z be 1 if it comes from location B and 0 otherwise. And Y be the income. We fit a simple linear regression model to this dataset {(Zi, Yi)}i=1,...2n and use the least squares method to get the estimated regression equation. Show that the least squares estimates of intercept and slope parameters are and , respectively.
登入後即可作答並保存紀錄。
此題考驗變異數相等與否的檢定、兩獨立樣本 t 檢定(變異數相等情況)以及簡單線性迴歸模型的參數估計。
已知資訊:
兩個地點 A 和 B。
從每個地點隨機抽取 n 個家庭,總樣本數 。
樣本統計量: (來自地點 A); (來自地點 B)。
顯著水準 。
(a) (5%) Suppose that we have no idea whether the variances are equal or not. So how to use a statistical method to determine the variances are equal or not?
這是考驗如何檢定兩個獨立母體變異數是否相等。最常用的方法是 F 檢定。
(i) 虛無假說 () 與對立假說 ():
(兩地點的家庭年收入變異數相等)
(兩地點的家庭年收入變異數不相等)
這是一個雙尾檢定。
(ii) 檢定統計量:F 統計量。
或 。為了使臨界值查找方便,通常將較大的樣本變異數放在分子。假設 ,則 。
此處題目並未給出具體數值,所以我們只能給出統計量的定義。
(iii) 決策規則:
顯著水準 。
由於是雙尾檢定,我們將 分配到兩個尾部,即 。
自由度:
分子自由度 。
分母自由度 。
臨界值是 和 。
或者,如果我們總是將較大的變異數放在分子,則只需要查找右尾臨界值 。
決策規則:如果 ,則拒絕 。
(iv) 結論:
根據計算出的 F 值和查表得到的臨界值來判斷是否拒絕 。
(b) (5%) Suppose that the variances are the same. Perform a hypothesis testing to determine whether the population means differ significantly.
這是考驗兩個獨立母體平均數是否相等的假設檢定,且已知母體變異數相等。
(i) 虛無假說 () 與對立假說 ():
(兩地點的平均家庭年收入相同)
(兩地點的平均家庭年收入不同)
這是一個雙尾檢定。
(ii) 檢定統計量:t 統計量。
由於假設變異數相等,我們使用池化變異數 。
。
檢定統計量為:
。
(iii) 決策規則:
顯著水準 。
自由度 。
由於是雙尾檢定,臨界值為 。
決策規則:如果 ,則拒絕 。
(iv) 結論:
根據計算出的 t 值和查表得到的臨界值來判斷是否拒絕 。
(c) (10%) Let Z be 1 if it comes from location B and 0 otherwise. And Y be the income. We fit a simple linear regression model to this dataset {(Zi, Yi)}i=1,...2n and use the least squares method to get the estimated regression equation. Show that the least squares estimates of intercept and slope parameters are and , respectively.
簡單線性迴歸模型為:。
其中 是指示變數 (dummy variable):
如果家庭來自地點 A。
如果家庭來自地點 B。
是家庭的年收入。
是截距項。
是斜率項。
是誤差項。
我們有 個觀測值,其中 個來自地點 A (),另外 個來自地點 B ()。
當 (地點 A):
。
因此,地點 A 的樣本平均數 是 的一個估計。
當 (地點 B):
。
因此,地點 B 的樣本平均數 是 的一個估計。
使用最小平方法 (Least Squares Method) 來估計 和 。
最小平方法要求最小化殘差平方和 (Sum of Squared Residuals, SSR):