109 年 國立臺灣大學園藝暨景觀學研究所園藝作物組《統計學(E)》
第 1 題8 分
(8 points) Prove that if P(A)>0 and P(B)>0, then:
A. If A and B are mutually exclusive, they cannot be independent. (4 points)
B. If A and B are independent, they cannot be mutually exclusive. (4 points)
登入後即可作答並保存紀錄。
此題為機率論的基本證明題,主要在於釐清獨立事件與互斥事件的定義及其關係。
核心觀念:
- 互斥事件 (Mutually Exclusive Events): 兩個事件 A 和 B 不能同時發生,即 。
- 獨立事件 (Independent Events): 一個事件的發生與否不影響另一個事件發生的機率,即 。
- 題目條件: 且 。
證明過程:
A. 若 A 和 B 互斥,則它們不能獨立。
- 假設 A 和 B 互斥: 根據互斥事件的定義,我們知道 。
- 假設 A 和 B 獨立: 根據獨立事件的定義,我們知道 。
- 矛盾證明:
- 若 A 和 B 互斥,則 。
- 若 A 和 B 同時獨立,則 。
- 因此,若 A 和 B 獨立且互斥,則必須滿足 。
- 然而,題目已知條件是 且 。
- 這意味著 。
第 2 題15 分
(15 points) 9 data points are randomly drawn from a normal distribution with a known standard deviation of 2.
Suppose you want to test the null hypothesis : against the alternative hypothesis : at the 5% level
of significance. Suppose the 9 data points have a sample mean of 7.5.
A. Calculate the test statistic. What is the rejection region for the test statistic? (4 points)
B. What is the p-value for these data? What is your conclusion regarding the null hypothesis? (4 points)
C. Determine the power of the test using the alternative hypothesis : . (7 points)
登入後即可作答並保存紀錄。
此題為關於單一樣本平均值檢定的標準題型,包含計算檢定統計量、決定拒絕域、計算 p-value、下結論,以及計算檢定的 power。
核心觀念:
- 單一樣本 Z 檢定 (One-sample Z-test): 當母體標準差 已知時,用來檢定母體平均數 的檢定。
- 檢定統計量:
- 拒絕域 (Rejection Region): 在給定的顯著水準 下,使得拒絕 的統計量值的集合。
- p-value: 在 為真的情況下,觀察到目前樣本結果或更極端結果的機率。
- 檢定 Power (Power of the Test): ,其中 是第二類錯誤的機率,即當 為真時,未能拒絕 的機率。
已知條件:
- 樣本數
- 母體標準差
- 虛無假設 :
- 對立假設 : (雙尾檢定)
- 顯著水準
- 樣本平均數
A. 計算檢定統計量與拒絕域
-
計算檢定統計量 (Z):
檢定統計量為 。 -
決定拒絕域:
- 此為雙尾檢定,顯著水準 。
- 我們需要在標準常態分佈的兩側各分配 的機率。
- 查標準常態分佈表 (Table 1),找到累積機率為 或 處的 Z 值。
- 累積機率為 處的 Z 值約為 (或更精確地,從 Table 1 查到 ,故 ;或者,Table 1 的 欄位值為 意味著 。若要找 ,則 ,則 。)。
- 因此,拒絕域為 或 。
-
判斷是否拒絕 :
- 計算出的檢定統計量 。
- 因為 不在拒絕域 內,所以我們不拒絕虛無假設 。
【答案】
檢定統計量為 。
拒絕域為 或 。
B. 計算 p-value 與結論
-
計算 p-value:
- p-value 是指在 為真的情況下,觀察到樣本平均數 或更極端結果的機率。
- 對於雙尾檢定,p-value = 。
- 在此,。
- p-value = 。
- 由於標準常態分佈是對稱的,p-value = 。
- 查標準常態分佈表 (Table 1),找到 。
- Table 1 中,當 時,對應值為 (取 )。
- 。
- p-value = 。
-
結論:
- 顯著水準 。
- p-value () > ()。
- 因此,我們不拒絕虛無假設 。
- 結論是:在 5% 的顯著水準下,沒有足夠的證據顯示母體平均數 與 7 有顯著差異。
【答案】
p-value 為 。
結論:不拒絕虛無假設 。
C. 計算檢定 Power
- Power 的定義: Power = 。
- 條件:
- : (此時 的真值為 7.2)。
- 顯著水準 ,拒絕域為 或 。
- 計算 (第二類錯誤機率): 。
第 3 題27 分
(27 points) A health economist is interested in the effect of wealth on mental health. 5 people were randomly
selected, and information on their monthly income and happiness score (a higher score indicates greater
happiness) were collected:
| ID | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| Income | 23 | 21 | 18 | 17 | 21 |
| Happiness score | 10 | 9 | 5 | 4 | 7 |
A. Calculate the least squares line of regression of happiness score on income. (6 points)
B. Interpret (i) the constant term and (ii) the estimated coefficient of income. (4 points)
C. Test the significance of the estimated coefficient of income at the 5% significance level, given that the
standard error of the coefficient estimate is 0.1667. Clearly write down each step of the hypothesis testing
procedure. (6 points)
D. Calculate the 95% confidence interval for the estimated coefficient of income. (4 points)
E. Given the following table of analysis of variance for the regression, calculate the coefficient of
determination () and interpret it. (3 points)
| Source of variation | Degrees of Freedom | Sum of Squares | Mean Squares | F |
|---|---|---|---|---|
| Regression | 1 | 24 | 24 | 36 |
| Residual | 3 | 2 | 0.6667 | |
| Total | 4 | 26 |
F. What is the predicted happiness score for a person with an income of 21.3? (2 points)
G. Is it appropriate to predict the happiness score for a person with an income of 47.3 using the estimated
regression equation? Explain your answer. (2 points)
登入後即可作答並保存紀錄。
此題為簡單線性迴歸分析的綜合題,涵蓋了迴歸線的計算、參數解釋、假設檢定、信賴區間、變異數分析以及預測。
已知資料:
樣本數
自變數 (Income, X): 23, 21, 18, 17, 21
應變數 (Happiness score, Y): 10, 9, 5, 4, 7
首先,計算迴歸分析所需的統計量:
計算斜方差和相關係數:
A. 計算最小平方迴歸直線
最小平方迴歸直線的方程式為 。
其中, 是斜率, 是截距。
-
計算斜率 :
-
計算截距 :
-
最小平方迴歸直線方程式:
即 。
【答案】
迴歸直線方程式為 。
B. 解釋截距項與斜率估計值
-
(i) 截距項 (Constant Term, ) 的解釋:
截距項代表當自變數 X (Income) 為 0 時,應變數 Y (Happiness score) 的預測值。
在這個情境下,截距項為 -13,表示當月收入為 0 時,預測的快樂分數為 -13。然而,月收入為 0 通常不是一個實際或合理的數據點,而且快樂分數也不太可能為負值。因此,這個截距項的解釋在實際應用上可能沒有太大意義,這暗示迴歸模型可能不適用於 X=0 的情況,或者自變數的範圍不包含 0。 -
(ii) 估計的斜率係數 (Estimated Coefficient of Income, ) 的解釋:
斜率係數 代表當自變數 X (Income) 每增加一個單位時,應變數 Y (Happiness score) 的平均變化量。
在這個情境下,估計的斜率為 1,表示當月收入每增加 1 元,預測的快樂分數平均會增加 1 分。這意味著收入與快樂分數之間存在正向關係。
【答案】
(i) 當月收入為 0 時,預測的快樂分數為 -13。此解釋在實際應用上可能不具意義。
(ii) 當月收入每增加 1 元,預測的快樂分數平均增加 1 分。
C. 檢定估計係數的顯著性
-
檢定目標: 檢定收入 (X) 的係數 是否在 5% 的顯著水準下顯著不為零。
-
虛無假設 : (即收入對快樂分數沒有顯著影響)。
-
對立假設 : (即收入對快樂分數有顯著影響)。
-
顯著水準: 。
-
檢定統計量: 。
- 已知 (從 A 計算得到)。
- 已知 (題目提供)。
- 已知 (根據 )。
- 。
-
決定拒絕域:
- 這是關於迴歸係數的雙尾檢定。
- 自由度 (df) = ,其中 是樣本數, 是自變數的個數。
- 在此,, (Income)。
- 所以,自由度 df = 。
- 在 的顯著水準下,對於自由度為 3 的 t 分佈,雙尾拒絕域的臨界值為 。
第 4 題8 分
(8 points) Die A has orange on two faces and blue on four faces, Die B has orange on three faces and blue on
three faces, Die C has orange on four faces and blue on two faces. All are fair dice. If the three dice are rolled,
find the probability that exactly two of the three dice come up orange.
登入後即可作答並保存紀錄。
此題為機率計算題,涉及多個獨立事件的組合機率。
核心觀念:
- 獨立事件機率: 每個骰子擲出的結果是獨立的。
- 組合機率: 計算恰好有兩個骰子出現橙色的組合。
已知資訊:
- 骰子 A:2 面橙 (O),4 面藍 (B)。總共 6 面。
- 骰子 B:3 面橙 (O),3 面藍 (B)。總共 6 面。
- 骰子 C:4 面橙 (O),2 面藍 (B)。總共 6 面。
目標: 計算擲出三個骰子,恰好有兩個骰子出現橙色的機率。
可能的組合 (恰好兩個橙色):
有三種情況,分別是哪一個骰子出現藍色:
- A 藍, B 橙, C 橙 ()
- A 橙, B 藍, C 橙 ()
- A 橙, B 橙, C 藍 ()
第 5 題15 分
(15 points) Let X have a uniform distribution on the interval (0, 1). Given that X = x, let Y have a uniform
distribution on the interval (0, e^x).
(a) Find the joint pdf of X and Y. Sketch the region where f (x, y) > 0. (5 points)
(b) Find E(Y | x), the conditional mean of Y, given that X = x. Draw this line on the region sketched in part (a).
(5 points)
(c) Find fy(y), the marginal pdf of Y. Be sure to include the domain. (5 points)
登入後即可作答並保存紀錄。
此題為聯合機率分佈與條件機率的題目,涉及連續型隨機變數的聯合機率密度函數、邊際機率密度函數以及條件期望值。
已知條件:
- 。其機率密度函數 (pdf) 為 for ,否則為 0。
- 給定 ,則 。其條件機率密度函數 (conditional pdf) 為 for ,否則為 0。
a. 計算聯合機率密度函數 (joint pdf) 並繪製區域
-
聯合 pdf 的計算公式:
-
計算:
-
定義域 (Domain):
- 的範圍是 。
- 的範圍是 。
- 因此,聯合 pdf 的定義域為 。
-
繪製區域 :
- 我們需要在 xy 平面上繪製滿足 且 的區域。
- 的範圍是從 0 到 1 (不包含端點)。
- 的上限是 。當 時,。當 時,。
- 的下限是 。
- 這個區域是一個由 , , 和曲線 所圍成的區域。
區域描述:
- 畫出 x 軸和 y 軸。
- 畫出垂直線 (y 軸) 和 。
- 畫出水平線 (x 軸)。
- 畫出曲線 。當 時,曲線通過點 。當 時,曲線通過點 。
- 所要求的區域是位於 和 之間,y 軸上方,且在曲線 下方的區域。
【答案】
聯合 pdf 為 ,定義域為 。
區域為由 和 所圍成的區域。
b. 計算條件期望值 並繪製
-
條件期望值 的計算公式:
-
計算:
- ,範圍是 。
- ,範圍是 。
-
繪製 這條線:
- 這條線代表在給定 值下,Y 的平均值。
第 6 題12 分
(12 points) Let the following numbers represent the order statistics of the n = 27 observations obtained in a
random sample from a certain population of monthly earnings in Taiwan (measured in hundreds of NT dollars):
261 269 271 274 279 280 283 284 286 287 292 293 296
300 304 305 313 321 322 329 341 343 356 364 391 417
300 304 305 313 321 322 329 341 343 356 364 391 417
476
(a) Give point estimates of 0.25, median (), π0.75. (6 points)
(b) The interval (, ) could serve as a confidence interval for , that is .
Use the normal approximation to find the confidence coefficient . (6 points)
登入後即可作答並保存紀錄。
此題是關於順序統計量 (Order Statistics) 的應用,包含點估計與信賴區間的計算,並利用常態近似來近似機率。
已知資料:
樣本數 。
順序統計量 (按升序排列的樣本值):
(注意:資料中重複列出了 300 到 417 的部分,但總數應為 27 個。假設最後一個 476 是 ,那麼前面的列表是完整的 27 個值。)
a. 計算分位數的點估計
-
核心觀念: 順序統計量 可以用來估計母體的分位數。
- 母體 分位數 的點估計值通常是 ,其中 約為 。
- 中位數 的點估計是 (當 n 為奇數)。
-
計算 的點估計:
- 我們需要尋找 使得 。
- 最接近的整數索引是 7。
- 因此, 的點估計值是 。
- 從列表中,。
-
計算中位數 的點估計:
- 是奇數。
- 中位數的索引是 。
- 因此, 的點估計值是 。
- 從列表中,。
-
計算 的點估計:
- 我們需要尋找 使得 。
- 最接近的整數索引是 20。
- 因此, 的點估計值是 。
- 從列表中,。
【答案】
- 的點估計值是 。
- (中位數) 的點估計值是 。
- 的點估計值是 。
b. 計算信賴區間的信賴係數
-
問題設定: 給定信賴區間 用於估計 。
- 這意味著我們關心的是,當我們從母體中抽取 27 個樣本,並觀察其順序統計量 和 時,母體 0.25 分位數 落在這兩個順序統計量之間的機率。
- 即 。
- 我們需要利用常態近似來計算這個機率。
-
常態近似:
- 對於一個從連續分佈中抽取的大小為 的樣本,順序統計量 的分佈可以用常態分佈來近似。
- 的平均值近似為母體 分位數,其中 。
- 的變異數近似為 ,其中 是 pdf, 是母體 分位數。
- 然而,這裡我們關心的是機率 。
- 對於一個從母體中抽取,且母體分佈未知(但為連續型)的樣本,我們可以利用二項分佈的常態近似來處理順序統計量。
- 考慮事件 : 。如果母體分佈是連續的,則 。
- 我們感興趣的事件是: 且 。
- 這相當於:在 27 個樣本中,有 4 個樣本小於 (也就是 ),並且有 個樣本大於 (也就是 )。
- 換句話說,我們關心的是有 個樣本小於 的機率。
第 7 題15 分
(15 points) A random sample X1, X2, ...,Xn of size n is taken from a Poisson distribution with a mean of
λ, 0<λ<∞. The probability mass function of X is f(x) = (λ^x * e^-λ) / x!, x = 0,1,2........
(a) Show that the maximum likelihood estimator for λ is X̄. (4 points)
(b) Show that the method-of-moments estimator for λ is X̄. (3 points)
(c) Show that X̄ is an unbiased estimator of λ. (4 points)
(d) Let X equal the number of flaws per 100 feet of a used computer tape. Assume that X has a Poisson
distribution with a mean of λ. If 40 observations of X yielded 3 zeros, 8 ones, 10 twos, 6 threes, 7 fours, 4
five, and 2 six, find the maximum likelihood estimate of λ. (4 points)
登入後即可作答並保存紀錄。
此題為關於 Poisson 分佈的估計量問題,涵蓋了最大概似估計 (MLE)、動差法估計 (Method of Moments) 以及證明估計量的無偏性。
已知條件:
- 樣本 來自 Poisson 分佈,平均值為 。
- Poisson 分佈的機率質量函數 (pmf) 為 ,對於 。
- 母體平均數 。
- 母體變異數 。
a. 證明最大概似估計量 (MLE) 為
-
最大概似函數 (Likelihood Function):
對於一個樣本 ,聯合機率質量函數為:
-
對數概似函數 (Log-Likelihood Function):
為了便於微分,我們取對數:
-
求導並令導數為零:
對 對 微分,並令其等於 0 以找到極值點。
令 :
-
驗證二階導數:
由於 且 ,所以 且 。
因此, (當 時為負,當 時為零)。這表明我們找到的是一個最大值。
【答案】
最大概似估計量 (MLE) 為 。
b. 證明動差法估計量 (Method of Moments Estimator, MoM) 為