109 年 國立臺北大學財政學系碩士班《統計學》
第 I. 題15 分
Suppose 9.5% of all undergraduate students in NTPU participated in the exchange student program and studied abroad in 2019. Assume that women make up 60% of the students who studied abroad in 2019, but women only make up 49% of the students who didn't participate in the program.
For the following questions, please round to the nearest ten thousandths (the 4th decimal) in your answers.
(a) What is the probability that a female student studied abroad in 2019?
(b) What were the percentage of male undergraduate students in 2019?
登入後即可作答並保存紀錄。
本題考驗聯合機率與條件機率的應用,以及基本機率的計算。
首先,我們定義以下事件:
: 學生參與交換計畫出國唸書
: 學生未參與交換計畫
: 學生為女性
: 學生為男性
根據題目給予的資訊,我們可以整理出以下機率:
(9.5% 的學生參與交換計畫)
(90.5% 的學生未參與交換計畫)
(出國唸書的學生中,60% 為女性)
(未出國唸書的學生中,49% 為女性)
(a) 求出國唸書的女性學生的機率,即 。
我們可以利用條件機率的定義來計算:
因此,
這裡題目問的是「female student studied abroad in 2019」,這句話可以解釋為「一位學生是女性,並且她出國唸書」的機率,也就是 。
第 II. 題20 分
Suppose that you want to develop a program to identify a presidential candidate based on the words they use in their speeches. You have collected a sample of transcripts from each presidential candidates' recent speeches, and candidate A's speeches make up 10% of the sample. Suppose the proportion of A's speeches that have the following five words are given below.
great 0.51
economy 0.45
stupid 0.34
fake 0.14
rich 0.14
Assume the proportions of other candidates' speeches that have the same words are:
great 0.015
economy 0.022
stupid 0.022
fake 0.041
rich 0.011
(a) If a transcript from the sample includes the word “great", what is the probability that this speech is given by candidate A? Should your program label this transcript as candidate A's speech?
(b) Which of the two words, "economy" or "stupid", is a stronger indicator that the speech is given by candidate A? Why?
登入後即可作答並保存紀錄。
本題考驗貝氏定理 (Bayes' Theorem) 的應用,以及如何判斷一個詞語是否為「強指標」。
首先,我們定義以下事件:
: 演講稿是候選人 A 所說的。
: 演講稿是其他候選人所說的。
: 演講稿中包含單詞 "great"。
: 演講稿中包含單詞 "economy"。
: 演講稿中包含單詞 "stupid"。
根據題目給予的資訊,我們可以整理出以下機率:
(候選人 A 的演講稿佔樣本的 10%)
(其他候選人的演講稿佔樣本的 90%)
對於單詞 "great":
(候選人 A 的演講稿中,包含 "great" 的比例)
(其他候選人的演講稿中,包含 "great" 的比例)
對於單詞 "economy":
(候選人 A 的演講稿中,包含 "economy" 的比例)
(其他候選人的演講稿中,包含 "economy" 的比例)
對於單詞 "stupid":
(候選人 A 的演講稿中,包含 "stupid" 的比例)
(其他候選人的演講稿中,包含 "stupid" 的比例)
(a) 求如果演講稿包含 "great",則該演講稿是候選人 A 所說的機率,即 。
我們使用貝氏定理:
其中, 是包含 "great" 的總體機率,可以透過全機率公式計算:
第 III. 題20 分
Let x denote the number of car accidents in a week and the random variable x have a Poisson distribution. We collect a simple random sample of 50 observations and use the sample mean to estimate the population mean of x. Suppose the population standard deviation of x is .
(a) Describe the sampling distribution of . Develop a 90% confidence interval for the average number of accidents.
(b) Is our estimator for the population mean unbiased? Briefly explain your answer.
(c) Is our estimator for the population mean consistent? Briefly explain your answer.
登入後即可作答並保存紀錄。
本題考驗對 Poisson 分布、抽樣分配、信賴區間的理解,以及估計量不偏性與一致性的判斷。
首先,我們知道隨機變數 服從 Poisson 分布,其參數為 (期望值和變異數皆為 )。
題目給予的資訊:
樣本數
樣本平均數
母體標準差 (注意:Poisson 分布的母體標準差是 ,此處給予 應是直接給定母體標準差,而非 。若 為母體平均數,則其標準差為 。但題目明確給出 ,且在 (a) 小題要求計算信賴區間,此時若未知 ,通常會使用樣本標準差。但題目又給了 ,這是一個小小的矛盾,我們假設 是母體標準差,且我們知道 Poisson 分布的母體標準差是 ,所以 。然而,樣本平均數 卻是用來估計母體平均數 ,這表示我們應該用 來估計 。
在統計推論中,當母體標準差 已知時,我們可以使用 Z 分配。若 未知,則使用 t 分配(若母體為常態)或近似方法。
由於 Poisson 分布的特性,當樣本量夠大時 (n=50 算夠大),中央極限定理 (CLT) 適用,樣本平均數 的抽樣分配近似於常態分配。
Poisson 分布的母體平均數為 ,母體變異數為 。因此,母體標準差為 。
題目給的 應該是指母體標準差。如果 ,則 且 ,所以 。
因此,。
這表示母體平均數 ,母體標準差 。
而題目給予的樣本平均數 。
(a) 描述 的抽樣分配,並計算 90% 信賴區間。
根據中央極限定理 (CLT),當樣本數 夠大時 (通常 ),樣本平均數 的抽樣分配會近似於常態分配,其平均值為母體平均數 (在此即 ),標準差為母體標準差 除以樣本數的平方根,即標準誤 (standard error) 。
所以, 的抽樣分配近似於 ,即 。
在此題中,我們已知母體平均數 (由 推得 ),母體標準差 ,樣本數 。
第 IV. 題20 分
A job seeker suspects that the salaries in his current city (A) is lower than the salaries in the neighboring city (B). The newspaper reported a recent survey on the salaries in these two cities with the following information:
| City A | City B | |
|---|---|---|
| Sample size | 40 | 50 |
| Sample average | $56,100 | $59,400 |
| Sample standard deviation | $6,000 | $7,000 |
Based on the information, can the job seeker conclude that the average salary in city A are lower than those in city B? Conduct a hypothesis testing with confidence level so that a rejection of the null hypothesis can provide us answer to the job seeker's question.
登入後即可作答並保存紀錄。
本題考驗獨立兩樣本的平均數比較,以及假設檢定的應用。此題要求進行一個單尾檢定,以判斷 city A 的平均薪資是否顯著低於 city B。
我們設定以下參數:
City A: , ,
City B: , ,
顯著水準
由於我們比較兩個獨立樣本的平均數,且樣本數足夠大 ( 均大於 30),我們可以使用 Z 檢定。
由於題目給的是樣本標準差,並且我們不確定母體變異數是否相等,我們應該使用聯合變異數的公式來計算標準誤,或者直接使用 Z 檢定(當樣本夠大時,樣本標準差可近似母體標準差)。
更嚴謹的做法是進行 t 檢定,但由於樣本數大,Z 檢定是可接受的近似。
我們將採用 Z 檢定,並假設母體變異數未知但獨立。
1. 設定假設檢定 (Hypotheses)
求職者希望證明 city A 的平均薪資低於 city B。因此,我們要檢定的是:
虛無假設 : City A 的平均薪資 大於或等於 City B 的平均薪資 。 ( 或 )
對立假設 : City A 的平均薪資 低於 City B 的平均薪資 。 ( 或 )
這是一個左尾檢定。
2. 計算檢定統計量 (Test Statistic)
檢定統計量為:
第 V. 題25 分
An investor is interested in the relationship between the performances of two companies. Let A denote the stock prices of company A, and B denote the stock prices of company B. Suppose the investor believes that stock A's prices can help predict stock B's prices. He recorded several data points and use the sample to run a simple linear regression. The results are shown below:
| Predictor | Coefficient | SE of Coef. |
|---|---|---|
| Constant | 0.2747 | 0.9004 |
| Independent Variable | 0.9498 | 0.3569 |
| Source | DF | Sum of Squares |
|---|---|---|
| Regression | 1 | 50.255 |
| Residual Error | 8 | 56.781 |
| Total | 9 | 107.036 |
(a) What is the least squares regression model estimated by the researcher? What is the sample size?
(b) Is there a significant relationship between the two variables at the level of significance ?
(c) Does the estimated regression provide a good fit? Explain your answer.
登入後即可作答並保存紀錄。
本題考驗簡單線性迴歸模型的建立、迴歸係數的顯著性檢定,以及迴歸模型的擬合優度判斷。
首先,我們定義:
: 股價 B (應變數)
: 股價 A (自變數)
迴歸模型假設 ,其中 是截距, 是斜率, 是誤差項。
(a) 估計的最小平方法迴歸模型為何?樣本數是多少?
根據迴歸結果表格,我們可以得到:
截距 (Constant) 的估計值
自變數 (Independent Variable, 即 X) 的斜率估計值
因此,估計的最小平方法迴歸模型為:
樣本數 可以從自由度 (DF) 中得知。
總自由度 (Total DF) 通常是 。
從表格中,Total 的 DF 為 9。
所以,。
另外,迴歸自由度 (Regression DF) 為 1,殘差自由度 (Residual Error DF) 為 8。
?
這裡有一個小矛盾。通常,Total DF = Regression DF + Residual Error DF。
Total DF = 9。
Regression DF = 1。
Residual Error DF = 8。
。
所以,Total DF = 9。
對於簡單線性迴歸,Total DF = 。
因此,。
【答案】迴歸模型為 。樣本數 。
(b) 在 的顯著水準下,兩個變數之間是否存在顯著關係?
這需要檢定迴歸斜率 是否顯著異於 0。
虛無假設 : (股價 A 與股價 B 之間沒有線性關係)
對立假設 : (股價 A 與股價 B 之間存在線性關係)
這是雙尾檢定。
我們可以使用 t 檢定來檢定斜率係數。檢定統計量為:
其中,, (來自 ),。