114 年 國立政治大學財務管理學系碩士班《統計學》
第 1 題83 分
- To investigate the relationship between the number of years of experience (x) and the annual sales of a salesperson (Y), a sales manager randomly selected 10 salespersons to collect data. The 10 observations of (x, y) are denoted by (, ), . The data are given in the following table. Consider a simple linear regression model
| id | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| x | 2 | 5 | 5 | 4 | 7 | 9 | 14 | 11 | 11 | 12 |
| Y | 83 | 95 | 105 | 100 | 106 | 114 | 139 | 122 | 126 | 120 |
Note: It is known that , , , , and .
(a) (5%, 簡答題) Why do we have to incorporate the error term, , in the model?
(b) (5%) Find the least squares estimates of and .
(c) (5%) Given that the residuals are -6, -5, -4, -3, 1, 1, 1, 4, 4, 7 (not ordered in their id), calculate the sum of squares due to error.
(d) (5%, 簡答題) Compute the coefficient of determination. Comment on the goodness of fit.
登入後即可作答並保存紀錄。
這題是關於簡單線性迴歸模型。考驗我們對迴歸模型基本假設、參數估計、殘差平方和以及判定係數的理解。
(a) 迴歸模型中的誤差項 代表了未被自變數 所解釋的變異。在實際的統計模型中,我們無法窮盡所有影響依變數 的因素。這些未能納入模型中的其他隨機因素、測量誤差、或潛在的非線性關係,都會被歸納到誤差項中。因此,誤差項是確保模型能夠合理描述變數間關係的必要組成部分,它允許我們在自變數不能完全決定依變數的情況下,仍能進行統計推論。
(b) 根據最小平方法,迴歸參數 和 的估計值 和 可以由以下公式計算:
其中 是樣本數。
我們已知:
首先計算 :
接下來計算樣本均值 和 :
然後計算 :
所以,最小平方法估計的迴歸直線為 。
【答案】,
(c) 殘差平方和 (Sum of Squares due to Error, SSE) 是由實際觀測值 與迴歸直線預測值 之差的平方和。
第 2 題20 分
- The LifeCycle Savings dataset from Belsley, Kuh, and Welsch (1980) is adopted to investigate how the savings
ratio is explained some independent variables, including the percentage of population less than 15 years old
(pop15; ), the percentage of the population over 75 years old (pop75; ), per-capita disposable income
(dpi; ), and the percentage rate of change in per-capita disposable income (ddpi; ). There are 50
observations in the dataset. The regression model is
Partial of the outputs are given on Page 2.
(a) (5%) Find the (D1) and (D2) in the ANOVA table.
(b) (5%) Find the (D4) in the ANOVA table.
(c) (5%) What is the interpretation of ?
ANOVA Table from Page 2:
| Source of Variation | Sum of Squares | Degree of Freedom | Mean Square | F |
|---|---|---|---|---|
| Regression | (D1) | (D2) | (D3) | (D4) |
| Error | 650.71 | (D5) | (D6) | |
| Total | 983.63 | (D7) |
Coefficients Table from Page 2:
| Predictor | Coef | SE Coef |
|---|---|---|
| Constant | 28.57 | 7.35 |
| pop15 () | -0.46 | 0.14 |
| pop75 () | -1.69 | 1.08 |
| dpi () | -0.0003 | 0.0009 |
| ddpi () | 0.41 | 0.20 |
登入後即可作答並保存紀錄。
這題是關於多元迴歸分析的 ANOVA 表格與迴歸係數的解釋。考驗我們對 ANOVA 表格各項目的計算、關聯性以及迴歸係數的解釋能力。
(a) ANOVA 表格中的各項目的關係如下:
Sum of Squares (SS): Regression SS (D1) + Error SS = Total SS (D7)
Degree of Freedom (DF): Regression DF (D2) + Error DF (D5) = Total DF (D7)
Mean Square (MS): MS = SS / DF
F-statistic: F = MS (Regression) / MS (Error)
我們已知:
Error SS = 650.71
Total SS = 983.63
樣本數 。
迴歸模型中有 4 個自變數 ()。
首先計算 D1 (Regression SS):
接著計算自由度:
Error DF (D5) = (加上常數項) =
Regression DF (D2) = number of predictors = 4
Total DF (D7) =
第 3 題5 分
- (5%) Consider the hypothesis test: vs. , where is the population mean. A sample of 100 individuals is drawn and surveyed. The population standard deviation is known to be 5. Using a 0.02 level of significance, what is the power when the actual population mean is 102?
登入後即可作答並保存紀錄。
這題考驗對假設檢定中「檢定力 (Power)」的理解與計算。檢定力是指當對立假設為真時,正確拒絕虛無假設的機率。
檢定設定:
虛無假設
對立假設
樣本數
母體標準差
顯著水準
實際母體均值
首先,我們需要根據顯著水準 和檢定方向 (右尾檢定) 找到拒絕域。由於母體標準差已知,我們使用 Z 檢定。
拒絕域為 。
在 的情況下,查標準常態分配表,右尾機率為 0.02 的 值為 。
所以,當 時,我們拒絕 。
第 4 題10 分
- A survey in 2024 showed that 70% of all individuals ages 66 to 75 are well prepared financially for retirement. Many financial planners express their concern that a smaller percentage of individuals in the 56 to 65 age group are well prepared. Denote be the population percentage of individuals in the 56 to 65 age group being well prepared financially for retirement. Conduct a hypothesis testing vs. , and is set to be 0.01.
(a) (5%) In a random sample of 200 individuals from the 56 to 65 age group, 65 were not well prepared financially for retirement. Compute the smallest level of significance for which we could reject the null hypothesis.
(b) (5%, 簡答題) Explain why should we compute the quantity in (a) when we mention "smallest level of significance for which we could reject the null hypothesis."
登入後即可作答並保存紀錄。
這題是關於比例的假設檢定,特別是計算 p-value 以及解釋其意義。
(a) 我們進行關於比例 的假設檢定:
樣本數 。
在樣本中,有 65 人「未」well prepared,這表示有 人是 well prepared。
樣本比例 。
我們需要計算拒絕虛無假設的最小顯著水準 。這個值實際上就是 p-value。
由於 夠大 ( 且 ),我們可以近似使用 Z 檢定。
檢定統計量為:
其中 是虛無假設下的比例。
計算 Z 統計量:
第 5 題10 分
- The website for a certain hotel in Taipei gets, on average, six visitors per hour. Suppose the number of website
visitors per minute follows a Poisson probability distribution.
(a) (5%) What is the probability that no one will access the website in a 12-minute period?
(b) (5%) What is the probability that the time between website visitors will be between 6 minutes and 12 minutes?
登入後即可作答並保存紀錄。
這題考驗對 Poisson 分布及其相關概念的理解,特別是關於發生次數的機率計算,以及其對應的指數分布 (時間間隔)。
首先,題目提到「平均六位訪客每小時」,但接著說「每分鐘」的訪客數遵循 Poisson 分布。這表示我們需要將率轉換為每分鐘的平均發生率。
每小時 6 位訪客,則每分鐘的平均訪客數 位訪客/分鐘。
(a) 我們要計算在 12 分鐘內,沒有人會造訪網站的機率。
Poisson 分布用於計算在固定時間間隔內發生某事件的次數。
對於一個時間間隔為 的 Poisson 分布,其平均發生次數為 。
在本題中,時間間隔是 12 分鐘,所以 。
設 為在 12 分鐘內造訪網站的人數,則 。
Poisson 分布的機率質量函數為:
我們要求 :
使用計算器或查表計算 。
【答案】0.30119
第 6 題23 分
- There are three main supermarket chains (supermarket A, B, C) in the Denver area, and each of them claims
that their chain has the lowest overall grocery prices. Students taking the statistics course try to conduct a
survey to determine whether the mean price of groceries are the same across the three supermarket chains.
Students randomly selected six grocery items. They visited the three supermarkets on the same day, and each
of the six items was purchased once in each of the three supermarkets. The data were recorded in the
following table.
Assume that the error term of one treatment follows a Normal distribution, and these Normal distributions
have the same variance. Assume further that responses are independent. Use a 0.05 level of significance.
| Item | supermarket A | supermarket B | supermarket C |
|---|---|---|---|
| 1 | 11 | 10 | 12 |
| 2 | 16 | 19 | 22 |
| 3 | 22 | 20 | 24 |
| 4 | 39 | 44 | 43 |
| 5 | 36 | 32 | 37 |
| 6 | 56 | 55 | 60 |
| sample mean | 30 | 30 | 33 |
| sample variance | 282.8 | 289.2 | 297.6 |
(a) (7%) Compute the Sum of Squares for Treatment.
(b) (8%) What is the value of the test statistics for testing whether the mean price of products are the same
across the three supermarket chains?
(c) (8%, 簡答題) Suppose that we further find out the critical value of this testing, and the result is to reject
the null hypothesis. What is your interpretation about this result? What is your plan for the next step
of analysis (what is the tool or method you are going to use)?
登入後即可作答並保存紀錄。
這題是關於單因子變異數分析 (One-Way ANOVA),用於比較三個或更多組別的平均數是否相等。
數據摘要:
組別數 (超市數量) (A, B, C)
每組樣本數 (商品數量) (對於每一家超市,有 6 種商品)
總樣本數
各組樣本均值:
各組樣本變異數:
顯著水準
假設檢定:
(所有超市的平均商品價格相同)
(a) 計算組間平方和 (Sum of Squares for Treatment, 或 ):
衡量各組樣本均值與總樣本均值之間的變異。
首先,計算總樣本均值 。由於每組樣本數相同 (),總均值是各組均值的平均:
現在計算 :
【答案】
(b) 計算檢定統計量 F:
ANOVA 的檢定統計量是 F 統計量,其公式為:
其中 是組間均方 (Mean Square for Treatment), 是組內均方 (Mean Square for Error)。
計算 :
組間自由度 。
計算 :
通常是合併各組樣本變異數的加權平均。由於每組樣本數相同,它就是各組樣本變異數的平均值:
第 7 題7 分
- Let denote the population mean. To make inference about , we generally use the sample mean to estimate . Based on observations , we are able to compute sample mean .
(a) (2%) Explain why it is impossible to compute the difference between the sample mean and the population mean, that is, .
(b) (5%) Provide an alternative of (a) to quantify the "difference" between and point estimation, and this alternative is computable. Specify every components in your equation, and explain why this alternative is computable.
登入後即可作答並保存紀錄。
這題主要探討統計推論中的點估計與區間估計的概念,以及它們與母體參數之間的關係。
(a) 為什麼無法計算 ?
在統計推論中,我們通常只有樣本數據,並利用樣本統計量(如樣本均值 )來估計母體參數(如母體均值 )。母體均值 是我們想要了解的真實值,但它通常是未知的。
如果 是未知的,我們就無法直接計算 這個差值。即使我們計算出樣本均值 ,也無法知道它與真實母體均值 之間的確切差距。
簡單來說,我們無法計算 ,是因為 是我們試圖估計的未知參數。
(b) 提供一個可計算的替代方法來量化 與點估計之間的「差異」。
我們無法直接計算 ,但我們可以量化這個「差異」的不確定性或變異性。這個替代方法就是使用「標準誤」(Standard Error)。
標準誤是樣本統計量(如樣本均值 )的標準差,它衡量了樣本統計量變異的程度,以及它與母體參數之間預期有多大的偏差。
對於樣本均值 ,其標準誤 (SE) 的計算公式為:
其中:
- 是母體標準差 (population standard deviation)。
- 是樣本大小 (sample size)。
解釋與計算可行性:
- (母體標準差): 在某些情況下,母體標準差 是已知的(例如題目 8 就假設 已知)。
第 8 題10 分
- Suppose that the population standard deviation is known. To make inference about the population mean , a simple random sample of 100 individuals is surveyed, and the resulting 99% interval estimate for is [127.94, 132.06].
Note: .
(a) (5%) Please compute the 95% confidence interval of based on the same data.
(b) (5%) Give your interpretation for the numerical interval [127.94, 132.06].
登入後即可作答並保存紀錄。
這題考驗對信賴區間的計算與解釋,特別是不同信賴水準下的區間計算。
已知資訊:
樣本數
母體標準差 是已知的。
99% 信賴區間為 。
(這對應於 99% 信賴水準的臨界 Z 值,因為 ,分到兩尾就是 )。
信賴區間的一般形式為:
其中 是樣本均值, 是對應於信賴水準 的臨界 Z 值, 是標準誤。
(a) 計算 95% 信賴區間。
首先,我們需要從已知的 99% 信賴區間推算出樣本均值 和標準誤 。
99% 信賴區間的寬度是 。
這個寬度等於 。
所以,標準誤 。
樣本均值 是區間的中心點: