108 年 國立高雄大學金融管理學系碩士班《統計學》
第 1 題5 分
- (5%) The following table shows the percentage of individuals in each age group who use an
online tax program to prepare their federal income tax return (CompleteTax website, November
9, 2012). Suppose a follow-up study consisting of personal interviews is to be conducted to
determine the most important factors in selecting a method for filing taxes. How many
18-34-year-olds must be sampled to find an expected number of at least 25 who use an online
tax program to prepare their federal income tax return?
| Age | Online tax program (%) |
|---|---|
| 18-34 | 16 |
| 35-44 | 12 |
| 45-54 | 10 |
| 55-64 | 8 |
| 65+ | 2 |
登入後即可作答並保存紀錄。
核心觀念
本題的核心觀念為二項分配(Binomial Distribution)之期望值與樣本數(Sample Size)決策:
- 二項分配:在母體規模龐大且採隨機抽樣的假設下,每次試驗結果僅有兩種可能(使用或未使用線上報稅軟體),且每次抽樣互相獨立、成功機率固定為 。令隨機變數 代表樣本中具備該特徵的人數,則 服從二項分配,記為:
- 期望值公式:二項分配的期望值(Expected Value)為試驗次數(樣本數)與單次成功機率的乘積:
- 樣本數取整原則:由題目給定的期望值門檻條件 列出不等式求解 。由於抽樣人數必須為非負整數,計算所得之最低樣本數需無條件進位(Ceiling function, )至下一個整數,以確保期望值確實達到標準。
解題方法
從考卷附表「各年齡層使用線上報稅軟體之比例(Age vs. Online tax program (%))」可讀出:18–34 歲組別的使用比例為 ,即單次抽樣成功的機率為 (其餘年齡層數據如 35–44 歲 、45–54 歲 等,與本題無關,不予採納)。
步驟一:設定隨機變數與模型
設抽取 18–34 歲的受訪者人數為 。
令 表示抽取的 位 18–34 歲受訪者中,使用線上報稅軟體申報聯邦所得稅的人數。
則 服從參數為 與 的二項分配:
步驟二:根據題意建立不等式
題目要求使用線上報稅軟體人數的期望值至少為 25:
代入二項分配期望值公式 :
步驟三:求解樣本數
步驟四:整數條件判斷與驗算
因為受訪人數 必須為正整數:
- 若取 :期望值為 (未達標)。
- 若取 :期望值為 (符合標準)。
第 2 題5 分
- (5%) Management proposed the following regression model to predict sales at a fast-food
outlet:
,
where = number of competitors within one mile, = population within one mile (1000s),
= 1 if drive-up window present, and 0 otherwise, and = sales (\hat{y} = 10.1 - 4.2x_1 + 6.8x_2 + 15.3x_3$.
Please predict sales for a store with two competitors, a population of 8000 within one mile, and
no drive-up window.
登入後即可作答並保存紀錄。
此題考驗迴歸模型的預測應用。題目提供了一個多元迴歸模型的估計式,並給定自變數的特定值,要求預測應變數的值。
給定的迴歸模型估計式為:
其中:
= 一英里內競爭者數量
= 一英里內人口數 (單位:千人)
= 1 若有得來速車道,0 則否
= 銷售額 (單位:千美元)
題目給定的條件如下:
- 競爭者數量:兩位,所以 。
- 一英里內人口數:8000 人。由於 的單位是千人,所以 。
- 無得來速車道,所以 。
第 3 題1 分
- Data on advertising expenditures and revenue (in thousands of dollars) for the Four Seasons
Restaurant follow.
Advertising expenditures | Revenue
----------------------- | --------
1 | 19
2 | 32
4 | 44
6 | 40
10 | 52
14 | 53
20 | 54
(1) (5%) Let equal advertising expenditures and equal revenue. Use the method of least
squares to develop a straight line approximation of the relationship between the two
variables.
登入後即可作答並保存紀錄。
此題考驗簡單線性迴歸的最小平方法應用。題目提供廣告支出 () 與營收 () 的配對資料,要求建立一條直線來近似兩者之間的關係。
我們需要建立一個簡單線性迴歸模型:。
使用最小平方法,我們需要計算迴歸線的斜率 和截距 。
計算公式如下:
首先,我們需要計算所需的總和:
(資料筆數)
| x | y | xy | x^2 |
|---|---|---|---|
| 1 | 19 | 19 | 1 |
| 2 | 32 | 64 | 4 |
| 4 | 44 | 176 | 16 |
| 6 | 40 | 240 | 36 |
| 10 | 52 | 520 | 100 |
| 14 | 53 | 742 | 196 |
| 20 | 54 | 1080 | 400 |
| Σx=57 | Σy=344 | Σxy=2841 | Σx²=753 |
計算 :
第 3 題2 分
(2) (5%) Test whether revenue and advertising expenditures are related at a 0.05 level of
significance. F value (1 degree of freedom numerator and 5 denominator) at a 0.10 level
of significance is equal to 4.06, at a 0.05 level of significance is equal to 6.61, at a 0.025
level of significance is equal to 10.01.
登入後即可作答並保存紀錄。
核心觀念
本題是在檢定「營收(revenue)」與「廣告支出(advertising expenditures)」是否具有線性關係,可使用簡單線性迴歸模型:
其中:
- :營收
- :廣告支出
- :廣告支出對營收的線性影響
- 誤差自由度為 ,因此樣本數為
檢定假設為:
若 ,表示廣告支出與營收之間沒有顯著的線性關係;若拒絕 ,則表示兩者具有顯著線性關係。
解題方法
在簡單線性迴歸中,利用迴歸分析的 檢定:
其中:
- :迴歸均方,代表模型所解釋的變異
- :誤差均方,代表模型未解釋的變異
本題的自由度為:
顯著水準為 ,題目給定:
因此拒絕域為:
決策規則如下:
- 若 ,拒絕 ,認為營收與廣告支出具有顯著線性關係。
- 若 ,不拒絕 ,不足以認定兩者具有顯著線性關係。
題目未提供原始資料、迴歸分析表或計算出的 值,因此無法進一步判定實際的拒絕與否;完整判斷所缺資料為 。
與相關係數的等價判斷
在簡單線性迴歸中, 統計量也可由樣本相關係數 表示:
本題 ,故:
令臨界條件為 :
解得:
因此:
第 3 題3 分
(3) (5%) Prepare a residual plot of versus . Use the result from part (1) to obtain the
values of .
登入後即可作答並保存紀錄。
此題考驗殘差圖的繪製與解釋。我們需要先計算每個數據點的預測值 ,然後計算殘差 ,最後繪製殘差圖,其中橫軸為 ,縱軸為 。
從問題 (1) 我們得到迴歸方程式:
(使用較精確的 )
我們需要計算每個數據點的 值:
| x | y | ||
|---|---|---|---|
| 1 | 19 | ||
| 2 | 32 | ||
| 4 | 44 | ||
| 6 | 40 | ||
| 10 | 52 | ||
| 14 | 53 |
第 3 題4 分
(4) (5%) What conclusions can you draw from residual analysis? Should this model be used, or
should we look for a better one?
登入後即可作答並保存紀錄。
此題考驗殘差分析的結果解釋,以及對模型選取的判斷。
從問題 (3) 我們繪製了殘差圖。現在需要根據殘差圖的模式來判斷模型的適當性。
在一個理想的線性迴歸模型中,殘差應該是隨機分佈在零線附近,沒有明顯的模式。常見的非隨機模式包括:
- 扇形或喇叭形模式 (Funnel or Fan Shape):表示殘差的變異性隨 的增加而增加(或減少),這違反了迴歸模型中殘差變異數恆定的假設(homoscedasticity)。
- 曲線模式 (Curvilinear Pattern):如果殘差圖顯示出一個 U 形或倒 U 形的曲線,表示線性模型可能無法捕捉到自變數和應變數之間的非線性關係。
- 聚集或分組模式 (Clustering or Grouping):殘差點明顯聚集在某些區域,可能表示有其他未被考慮的變數影響。
根據我們計算出的殘差值:
(48.158, -29.158)
(48.296, -16.296)
(48.572, -4.572)
(48.848, -8.848)
(49.400, 2.600)
(50.001, 2.999)
(50.780, 3.220)
我們可以觀察到:
- 殘差的絕對值在 值較小時(約 48-49),相對較大(-29.158, -16.296, -4.572, -8.848)。
- 殘差的絕對值在 值較小時(約 48-49),有較大的負值。
- 隨著 值增加到 49.400 以上,殘差變成了正值,且絕對值變小。
- 最後幾個點的殘差值(2.600, 2.999, 3.220)都相對較小且為正。
這顯示出一個潛在的模式: 殘差的變異性似乎隨著 的增加而減小,或者說,在低 值時,殘差的離散程度較大,而在高 值時,殘差的離散程度較小。這可能表示異質變異數 (heteroscedasticity) 的存在。
此外,從殘差值來看,從較大的負值(-29.158)到較小的正值(3.220),雖然沒有明顯的 U 形曲線,但殘差的趨勢顯示可能需要考慮非線性關係,或者數據點 (1, 19) 和 (2, 3
第 4 題5 分
- (5%) The price per share of stock for a sample of 25 companies was recorded at the beginning
of 2012 and then again at the end of the 1st quarter of 2012 (the Wall Street Journal, April 2,
2012). How stocks perform during the 1st quarter is an indicator of what is ahead for the stock
market and the economy. Use the sample data in the following.
| Company | End of 1st Quarter | Beginning of Year | Company | End of 1st Quarter | Beginning of Year |
|---|---|---|---|---|---|
| Bank of New York | 24.13 | 19.91 | Home Depot | 50.31 | 42.04 |
| Kraft Foods | 38.01 | 37.36 | JP Morgan Chase | 45.98 | 33.25 |
| Dupont | 52.90 | 45.78 | Procter & Gamble | 67.21 | 66.71 |
| Consolidated Edison | 58.42 | 62.03 | Verizon | 38.23 | 40.12 |
| Johnson & Johnson | 65.96 | 65.58 | Devon Energy | 71.12 | 62.00 |
| Union Pacific | 107.48 | 105.94 | Lilly | 40.27 | 41.56 |
| Comcast | 30.01 | 23.71 | Microsoft | 32.26 | 25.96 |
| Applied Materials | 12.45 | 10.71 | Coco Cola | 74.01 | 69.97 |
| Pfiser | 43.41 | 41.22 | Qualcomm | 68.06 | 54.70 |
| General Electric | 20.07 | 17.91 | Exxon Mobil | 86.73 | 84.76 |
| AT&T | 31.23 | 30.24 | Pacific Gas & Electric | 22.65 | 21.64 |
| Cisco Systems | 21.15 | 18.08 | Oracle Systems | 29.16 | 25.58 |
| Chevron | 107.21 | 106.40 |
What is the 95% confidence interval estimate of the population mean change in the price per
share of stock during the first quarter? (With df = 24, , )
登入後即可作答並保存紀錄。
此題考驗平均數的信賴區間估計,特別是針對配對樣本的差值。我們需要計算每家公司股價在第一季度的變化量,然後對這些變化量的平均數建構信賴區間。
首先,計算每家公司的股價變化量 。
(公司數量)
| Company | End of 1st Quarter | Beginning of Year | |
|---|---|---|---|
| Bank of New York | 24.13 | 19.91 | 4.22 |
| Kraft Foods | 38.01 | 37.36 | 0.65 |
| Dupont | 52.90 | 45.78 | 7.12 |
| Consolidated Edison | 58.42 | 62.03 | -3.61 |
| Johnson & Johnson | 65.96 | 65.58 | 0.38 |
| Union Pacific | 107.48 | 105.94 | 1.54 |
| Comcast | 30.01 | 23.71 | 6.30 |
| Applied Materials | 12.45 | 10.71 | 1.74 |
| Pfiser | 43.41 | 41.22 | 2.19 |
| General Electric | 20.07 | 17.91 | 2.16 |
| AT&T | 31.23 | 30.24 | 0.99 |
| Cisco Systems | 21.15 | 18.08 | 3.07 |
| Home Depot | 50.31 | 42.04 | 8.27 |
| JP Morgan Chase | 45.98 | 33.25 | 12.73 |
| Procter & Gamble | 67.21 | 66.71 | 0.50 |
| Verizon | 38.23 | 40.12 | -1.89 |
| Devon Energy | 71.12 | 62.00 | 9.12 |
| Lilly | 40.27 | 41.56 | -1.29 |
| Microsoft | 32.26 | 25.96 | 6.30 |
| Coco Cola | 74.01 | 69.97 | 4.04 |
| Qualcomm | 68.06 | 54.70 | 13.36 |
| Exxon Mobil | 86.73 | 84.76 | 1.97 |
| Pacific Gas & Electric | 22.65 | 21.64 | 1.01 |
| Oracle Systems | 29.16 | 25.58 | 3.58 |
| Chevron | 107.21 | 106.40 | 0.81 |
接下來,計算差值 的平均數 和標準差 。
計算 :
第 5 題5 分
- (5%) Investors commonly use the standard deviation of the monthly percentage return for a
mutual fund as a measure of the risk for the fund; in such cases, a fund that has a larger standard
deviation is considered more risky than a fund with a lower standard deviation. The standard
deviation for the American Century Equity Growth fund and the standard deviation for the
Fidelity Growth Discovery fund were recently reported to be 15.0% and 18.9%, respectively.
Assume that each of these standard deviations is based on a sample of 60 months of returns. Do
the sample results support the conclusion that the Fidelity Fund has a larger population variance
than the American Century Fund? Which fund is more risky? (α = 0.05)
登入後即可作答並保存紀錄。
此題考驗變異數比例的檢定,以判斷兩個總體變異數的大小關係。我們將比較 Fidelity Fund 和 American Century Fund 的月報酬率標準差。
設:
= Fidelity Fund 的樣本標準差 = 18.9% = 0.189
= American Century Fund 的樣本標準差 = 15.0% = 0.150
= Fidelity Fund 的樣本數 = 60
= American Century Fund 的樣本數 = 60
虛無假設 : (Fidelity Fund 的總體變異數不大於 American Century Fund)
對立假設 : (Fidelity Fund 的總體變異數大於 American Century Fund)
由於我們關心的是 Fidelity Fund 是否「更大」,因此這是單尾檢定。
我們將使用 F 檢定來比較兩個總體變異數的比例。檢定統計量為:
計算檢定統計量:
自由度:
分子自由度
分母自由度
我們需要將計算出的 F 統計量與在 下,自由度為 (59, 59) 的 F 分佈的上臨界值進行比較。
題目給定 。
比較:
計算出的 F 統計量 。
臨界值 。
由於 ,我們拒絕虛無假設 。
結論:
在 的顯著水準下,我們有足夠的證據支持對立假設 ,即 Fidelity Fund 的總體變異數大於 American Century Fund 的總體變異
第 6 題1 分
- In a regression analysis involving 27 observations, the following estimated regression equation
was developed:
.
For this estimated regression equation and .
(1) (5%) At , test whether is significant. Suppose that variables and are
added to the model and the following regression equation is obtained:
.
For this estimated regression equation and .
登入後即可作答並保存紀錄。
此題考驗迴歸模型中自變數顯著性的檢定。首先,我們需要檢定第一個模型中 是否顯著。
第一部分:檢定 在單一自變數模型中的顯著性
模型:
(觀察值數量)
檢定:檢定 是否顯著,即檢定 。
我們可以使用 t 檢定或 F 檢定。對於簡單線性迴歸,兩者是等價的。
使用 F 檢定:
(自變數個數)
SSR (迴歸平方和)
MSR (平均迴歸平方和)
MSE (平均殘差平方和)
F 統計量
在 下,我們需要找到臨界值 。
題目提供了 。
比較:
由於 ,我們拒絕虛無假設 。
因此, 在 的水準下是顯著的。
使用 t 檢定(可選,作為驗證):
第 6 題2 分
(2) (5%) Use an F test and a = 0.05 level of significance to determine whether and
contribute significantly to the model.
登入後即可作答並保存紀錄。
此題考驗在已有的迴歸模型中,額外加入的自變數是否能顯著提升模型的解釋力。這是使用 F 檢定來比較兩個模型的適配度。
第一部分:舊模型 (只含 )
(當 )
第二部分:新模型 (含 )
(SST 在兩個模型中應該是一樣的,因為應變數 的總變異數不變)
(當 )
檢定:
虛無假設 : (變數 和 對模型沒有顯著貢獻)
對立假設 : 或 (或兩者) 不為 0 (變數 和 對模型有顯著貢獻)
我們使用 F 檢定來比較兩個模型的 SSE。
F 統計量公式為:
計算 F 統計量:
(這是額外加入的自變數的個數)
第 7 題1 分
- Let X and Y be two random variables defined on the same probability space. Please show
that:
(1) (5%) Var(X)=E{X²}-(E{X})², where Var() and E denote the variance and
the expectation of a random variable, respectively.
登入後即可作答並保存紀錄。
此題要求證明變異數的計算公式。這是機率論與數理統計中的一個基本公式。
證明 Var(X) = E{X²} - (E{X})²:
根據變異數的定義,Var(X) 是隨機變數 X 與其期望值 E{X} 之間差值的平方的期望值。
Var(X) = E{ (X - E{X})² }
展開 (X - E{X})²:
(X - E{X})² = X² - 2X E{X} + (E{X})²
現在,我們取這個展開式的期望值:
Var(X) = E{ X² - 2X E{X} + (E{X})² }
根據期望值的線性性質,我們可以將期望值運算分配到每一項:
Var(X) = E{X²} - E{ 2X E{X} } + E{ (E{X})² }
在 E{ 2X E{X} } 中,2 和 E{X} 都是常數(相對於隨機變數 X 而言),因此可以提出期望值運算符:
第 7 題2 分
(2) (5%) Cov(X,Y)=E{XY}-E{X}E{Y}, where Cov() denotes the covariance of two
random variables.
登入後即可作答並保存紀錄。
此題要求證明共變異數 (Covariance) 的計算公式。共變異數衡量兩個隨機變數之間的線性相關程度。
證明 Cov(X,Y) = E{XY} - E{X}E{Y}:
根據共變異數的定義,Cov(X,Y) 是隨機變數 X 與其期望值 E{X} 的差值,以及隨機變數 Y 與其期望值 E{Y} 的差值兩者乘積的期望值。
Cov(X,Y) = E{ (X - E{X}) (Y - E{Y}) }
展開 (X - E{X}) (Y - E{Y}):
(X - E{X}) (Y - E{Y}) = XY - X E{Y} - Y E{X} + E{X} E{Y}
現在,我們取這個展開式的期望值:
Cov(X,Y) = E{ XY - X E{Y} - Y E{X} + E{X} E{Y} }
根據期望值的線性性質,我們可以將期望值運算分配到每一項:
Cov(X,Y) = E{XY} - E{ X E{Y} } - E{ Y E{X} } + E{ E{X} E{Y} }
在 E{ X E{Y} } 中,E{Y} 是常數,可以提出:
E{ X E{Y} } = E{Y} E{X}
在 E{ Y E{X} } 中,E{X} 是常數,可以提出:
E{ Y E{X} } = E{X} E{Y}
第 8 題1 分
- Let X be uniformly distributed on [0,1] and Y be normally distributed with mean 0 and
variance 1. If a and b≠0 are real numbers, please find the probability density functions of
the following random variables:
(1) (5%) a+bX .
登入後即可作答並保存紀錄。
此題考驗隨機變數轉換的機率密度函數 (PDF) 計算。我們需要找到隨機變數 的 PDF,其中 服從 上的均勻分佈。
已知:
。其 PDF 為 for ,否則為 0。
是實數,且 。
我們要求 的 PDF,記為 。
方法一:使用累積分佈函數 (CDF)
首先,找到 的 CDF,即 。
我們需要考慮 的正負情況。
情況 1:
由於 ,其 CDF 為 for 。
所以,,當 。
這個條件 相當於:
(因為 )
因此,當 時,。
在區間外, 或 。
現在,我們對 求導,得到 PDF :
,當 。
否則,。
情況 2:
由於 ,不等號方向改變:
(假設 X 是連續的,P(X < x) = P(X <= x))
所以,,當 。
這個條件 相當於:
(因為 ,乘以 後不等號反向)
因此,當 時,。
否則, 或 。
現在,我們對 求導,得到 PDF :
,當 。
否則,。
綜合兩種情況:
如果 ,PDF 是 ,分佈範圍是 。
如果 ,PDF 是 ,分佈範圍是 。
我們可以將這兩種情況合併。
注意到當 時,。
所以 PDF 是 。
分佈的範圍是從 到 。
方法二:使用變換公式 (Transformation Method)
對於 ,若 是單調函數,則 。
在這裡,。
反函數是 。
第 8 題2 分
- Let X be uniformly distributed on [0,1] and Y be normally distributed with mean 0 and
variance 1. If a and b≠0 are real numbers, please find the probability density functions of
the following random variables:
(2) (5%) a+bY.
登入後即可作答並保存紀錄。
此題考驗隨機變數轉換的機率密度函數 (PDF) 計算。我們需要找到隨機變數 的 PDF,其中 服從平均數為 0,變異數為 1 的標準常態分佈。
已知:
。其 PDF 為 ,對於所有實數 。
是實數,且 。
我們要求 的 PDF,記為 。
使用變換公式 (Transformation Method):
對於 ,若 是單調函數,則 。
首先,找到 的反函數 :
所以,。
接下來,計算反函數對 的導數:
。
然後,計算絕對值:
。
現在,將反函數代入 的 PDF:
將上述結果代入變換公式:
整理後得到:
這個 PDF 的形式是常態分佈的 PDF。
標準常態分佈 的 PDF 是 。
第 8 題3 分
- Let X be uniformly distributed on [0,1] and Y be normally distributed with mean 0 and
variance 1. If a and b≠0 are real numbers, please find the probability density functions of
the following random variables:
(3) (7%)
登入後即可作答並保存紀錄。
此題考驗隨機變數轉換的機率密度函數 (PDF) 計算。我們需要找到隨機變數 的 PDF,其中 。
已知:
。其 PDF 為 ,對於所有實數 。
是實數,且 。
我們要求 的 PDF,記為 。
首先,注意到 是一個指數函數。由於 總是正的,所以 的值域將是 。
我們可以使用變換公式。令 。
方法一:使用 CDF
因為 ,所以 必須大於 0。如果 ,則 。
假設 。
取自然對數:
現在我們需要根據 的符號來解這個不等式。
情況 1:
所以,。
由於 ,其 CDF 為 。
,對於 。
對 求導得到 PDF :
使用鏈式法則:
其中 是標準常態 PDF。
所以,當 時:
, for .
, for .
情況 2:
由於 ,不等號方向改變:
所以,。
, for .
對 求導得到 PDF :
由於 ,所以 是負的。
因為 ,所以 。
第 9 題1 分
- Let be a group of random variables which satisfies the following three
conditions:
i. .
ii. is normally distributed with mean 0 and variance , where .
iii. Given , and are independent.
Please answer the following questions:
(1) (10%) What is the covariance of and , where ?
登入後即可作答並保存紀錄。
核心觀念
利用共變異數的線性性,以及獨立隨機變數的共變異數為 。先把 拆成「從 到 的增量」與 :
題目條件 iii 取 ,可知 與 獨立。由於 ,因此 ,也就是 與 獨立。
解題方法
依共變異數的線性性,
因為 與 獨立,第一項為 。又由條件 ii,對 ,
第 9 題2 分
- Let be a group of random variables which satisfies the following three
conditions:
i. .
ii. is normally distributed with mean 0 and variance , where .
iii. Given , and are independent.
Please answer the following questions:
(2) (13%) Given a positive real number K. Please show that:
where denotes the maximum between and 0, as well as
.
登入後即可作答並保存紀錄。
核心觀念
由條件 ii,取 且 ,可得
因此本題要求計算對數常態隨機變數 的歐式買權期望值:
關鍵工具包括:
- 的密度函數。
- 將積分區間依照 分為 。
- 配方將含有 的常態密度轉換為平移後的標準常態分布函數 。
解題方法與計算
因為 當且僅當 ,所以
由 ,其密度為
因此
拆成兩項:
先處理第一項。指數部分配方如下:
而
所以
令
當 時,
因此第一項為
第二項則直接令 :
合併可得
第 1 題5 分
- (5%) The following table shows the percentage of individuals in each age group who use an
online tax program to prepare their federal income tax return (CompleteTax website, November
9, 2012). Suppose a follow-up study consisting of personal interviews is to be conducted to
determine the most important factors in selecting a method for filing taxes. How many
18-34-year-olds must be sampled to find an expected number of at least 25 who use an online
tax program to prepare their federal income tax return?
| Age | Online tax program (%) |
|---|---|
| 18-34 | 16 |
| 35-44 | 12 |
| 45-54 | 10 |
| 55-64 | 8 |
| 65+ | 2 |
登入後即可作答並保存紀錄。
核心觀念
本題的核心觀念為二項分配(Binomial Distribution)之期望值與樣本數(Sample Size)決策:
- 二項分配:在母體規模龐大且採隨機抽樣的假設下,每次試驗結果僅有兩種可能(使用或未使用線上報稅軟體),且每次抽樣互相獨立、成功機率固定為 。令隨機變數 代表樣本中具備該特徵的人數,則 服從二項分配,記為:
- 期望值公式:二項分配的期望值(Expected Value)為試驗次數(樣本數)與單次成功機率的乘積:
- 樣本數取整原則:由題目給定的期望值門檻條件 列出不等式求解 。由於抽樣人數必須為非負整數,計算所得之最低樣本數需無條件進位(Ceiling function, )至下一個整數,以確保期望值確實達到標準。
解題方法
從考卷附表「各年齡層使用線上報稅軟體之比例(Age vs. Online tax program (%))」可讀出:18–34 歲組別的使用比例為 ,即單次抽樣成功的機率為 (其餘年齡層數據如 35–44 歲 、45–54 歲 等,與本題無關,不予採納)。
步驟一:設定隨機變數與模型
設抽取 18–34 歲的受訪者人數為 。
令 表示抽取的 位 18–34 歲受訪者中,使用線上報稅軟體申報聯邦所得稅的人數。
則 服從參數為 與 的二項分配:
步驟二:根據題意建立不等式
題目要求使用線上報稅軟體人數的期望值至少為 25:
代入二項分配期望值公式 :
步驟三:求解樣本數
步驟四:整數條件判斷與驗算
因為受訪人數 必須為正整數:
- 若取 :期望值為 (未達標)。
- 若取 :期望值為 (符合標準)。
第 2 題5 分
- (5%) Management proposed the following regression model to predict sales at a fast-food
outlet:
,
where = number of competitors within one mile, = population within one mile (1000s),
= 1 if drive-up window present, and 0 otherwise, and = sales (\hat{y} = 10.1 - 4.2x_1 + 6.8x_2 + 15.3x_3$.
Please predict sales for a store with two competitors, a population of 8000 within one mile, and
no drive-up window.
登入後即可作答並保存紀錄。
此題考驗迴歸模型的預測應用。題目提供了一個多元迴歸模型的估計式,並給定自變數的特定值,要求預測應變數的值。
給定的迴歸模型估計式為:
其中:
= 一英里內競爭者數量
= 一英里內人口數 (單位:千人)
= 1 若有得來速車道,0 則否
= 銷售額 (單位:千美元)
題目給定的條件如下:
- 競爭者數量:兩位,所以 。
- 一英里內人口數:8000 人。由於 的單位是千人,所以 。
- 無得來速車道,所以 。
第 3 題1 分
- Data on advertising expenditures and revenue (in thousands of dollars) for the Four Seasons
Restaurant follow.
Advertising expenditures | Revenue
----------------------- | --------
1 | 19
2 | 32
4 | 44
6 | 40
10 | 52
14 | 53
20 | 54
(1) (5%) Let equal advertising expenditures and equal revenue. Use the method of least
squares to develop a straight line approximation of the relationship between the two
variables.
登入後即可作答並保存紀錄。
此題考驗簡單線性迴歸的最小平方法應用。題目提供廣告支出 () 與營收 () 的配對資料,要求建立一條直線來近似兩者之間的關係。
我們需要建立一個簡單線性迴歸模型:。
使用最小平方法,我們需要計算迴歸線的斜率 和截距 。
計算公式如下:
首先,我們需要計算所需的總和:
(資料筆數)
| x | y | xy | x^2 |
|---|---|---|---|
| 1 | 19 | 19 | 1 |
| 2 | 32 | 64 | 4 |
| 4 | 44 | 176 | 16 |
| 6 | 40 | 240 | 36 |
| 10 | 52 | 520 | 100 |
| 14 | 53 | 742 | 196 |
| 20 | 54 | 1080 | 400 |
| Σx=57 | Σy=344 | Σxy=2841 | Σx²=753 |
計算 :
第 3 題2 分
(2) (5%) Test whether revenue and advertising expenditures are related at a 0.05 level of
significance. F value (1 degree of freedom numerator and 5 denominator) at a 0.10 level
of significance is equal to 4.06, at a 0.05 level of significance is equal to 6.61, at a 0.025
level of significance is equal to 10.01.
登入後即可作答並保存紀錄。
核心觀念
本題是在檢定「營收(revenue)」與「廣告支出(advertising expenditures)」是否具有線性關係,可使用簡單線性迴歸模型:
其中:
- :營收
- :廣告支出
- :廣告支出對營收的線性影響
- 誤差自由度為 ,因此樣本數為
檢定假設為:
若 ,表示廣告支出與營收之間沒有顯著的線性關係;若拒絕 ,則表示兩者具有顯著線性關係。
解題方法
在簡單線性迴歸中,利用迴歸分析的 檢定:
其中:
- :迴歸均方,代表模型所解釋的變異
- :誤差均方,代表模型未解釋的變異
本題的自由度為:
顯著水準為 ,題目給定:
因此拒絕域為:
決策規則如下:
- 若 ,拒絕 ,認為營收與廣告支出具有顯著線性關係。
- 若 ,不拒絕 ,不足以認定兩者具有顯著線性關係。
題目未提供原始資料、迴歸分析表或計算出的 值,因此無法進一步判定實際的拒絕與否;完整判斷所缺資料為 。
與相關係數的等價判斷
在簡單線性迴歸中, 統計量也可由樣本相關係數 表示:
本題 ,故:
令臨界條件為 :
解得:
因此:
第 3 題3 分
(3) (5%) Prepare a residual plot of versus . Use the result from part (1) to obtain the
values of .
登入後即可作答並保存紀錄。
此題考驗殘差圖的繪製與解釋。我們需要先計算每個數據點的預測值 ,然後計算殘差 ,最後繪製殘差圖,其中橫軸為 ,縱軸為 。
從問題 (1) 我們得到迴歸方程式:
(使用較精確的 )
我們需要計算每個數據點的 值:
| x | y | ||
|---|---|---|---|
| 1 | 19 | ||
| 2 | 32 | ||
| 4 | 44 | ||
| 6 | 40 | ||
| 10 | 52 | ||
| 14 | 53 |
第 3 題4 分
(4) (5%) What conclusions can you draw from residual analysis? Should this model be used, or
should we look for a better one?
登入後即可作答並保存紀錄。
此題考驗殘差分析的結果解釋,以及對模型選取的判斷。
從問題 (3) 我們繪製了殘差圖。現在需要根據殘差圖的模式來判斷模型的適當性。
在一個理想的線性迴歸模型中,殘差應該是隨機分佈在零線附近,沒有明顯的模式。常見的非隨機模式包括:
- 扇形或喇叭形模式 (Funnel or Fan Shape):表示殘差的變異性隨 的增加而增加(或減少),這違反了迴歸模型中殘差變異數恆定的假設(homoscedasticity)。
- 曲線模式 (Curvilinear Pattern):如果殘差圖顯示出一個 U 形或倒 U 形的曲線,表示線性模型可能無法捕捉到自變數和應變數之間的非線性關係。
- 聚集或分組模式 (Clustering or Grouping):殘差點明顯聚集在某些區域,可能表示有其他未被考慮的變數影響。
根據我們計算出的殘差值:
(48.158, -29.158)
(48.296, -16.296)
(48.572, -4.572)
(48.848, -8.848)
(49.400, 2.600)
(50.001, 2.999)
(50.780, 3.220)
我們可以觀察到:
- 殘差的絕對值在 值較小時(約 48-49),相對較大(-29.158, -16.296, -4.572, -8.848)。
- 殘差的絕對值在 值較小時(約 48-49),有較大的負值。
- 隨著 值增加到 49.400 以上,殘差變成了正值,且絕對值變小。
- 最後幾個點的殘差值(2.600, 2.999, 3.220)都相對較小且為正。
這顯示出一個潛在的模式: 殘差的變異性似乎隨著 的增加而減小,或者說,在低 值時,殘差的離散程度較大,而在高 值時,殘差的離散程度較小。這可能表示異質變異數 (heteroscedasticity) 的存在。
此外,從殘差值來看,從較大的負值(-29.158)到較小的正值(3.220),雖然沒有明顯的 U 形曲線,但殘差的趨勢顯示可能需要考慮非線性關係,或者數據點 (1, 19) 和 (2, 3
第 4 題5 分
- (5%) The price per share of stock for a sample of 25 companies was recorded at the beginning
of 2012 and then again at the end of the 1st quarter of 2012 (the Wall Street Journal, April 2,
2012). How stocks perform during the 1st quarter is an indicator of what is ahead for the stock
market and the economy. Use the sample data in the following.
| Company | End of 1st Quarter | Beginning of Year | Company | End of 1st Quarter | Beginning of Year |
|---|---|---|---|---|---|
| Bank of New York | 24.13 | 19.91 | Home Depot | 50.31 | 42.04 |
| Kraft Foods | 38.01 | 37.36 | JP Morgan Chase | 45.98 | 33.25 |
| Dupont | 52.90 | 45.78 | Procter & Gamble | 67.21 | 66.71 |
| Consolidated Edison | 58.42 | 62.03 | Verizon | 38.23 | 40.12 |
| Johnson & Johnson | 65.96 | 65.58 | Devon Energy | 71.12 | 62.00 |
| Union Pacific | 107.48 | 105.94 | Lilly | 40.27 | 41.56 |
| Comcast | 30.01 | 23.71 | Microsoft | 32.26 | 25.96 |
| Applied Materials | 12.45 | 10.71 | Coco Cola | 74.01 | 69.97 |
| Pfiser | 43.41 | 41.22 | Qualcomm | 68.06 | 54.70 |
| General Electric | 20.07 | 17.91 | Exxon Mobil | 86.73 | 84.76 |
| AT&T | 31.23 | 30.24 | Pacific Gas & Electric | 22.65 | 21.64 |
| Cisco Systems | 21.15 | 18.08 | Oracle Systems | 29.16 | 25.58 |
| Chevron | 107.21 | 106.40 |
What is the 95% confidence interval estimate of the population mean change in the price per
share of stock during the first quarter? (With df = 24, , )
登入後即可作答並保存紀錄。
此題考驗平均數的信賴區間估計,特別是針對配對樣本的差值。我們需要計算每家公司股價在第一季度的變化量,然後對這些變化量的平均數建構信賴區間。
首先,計算每家公司的股價變化量 。
(公司數量)
| Company | End of 1st Quarter | Beginning of Year | |
|---|---|---|---|
| Bank of New York | 24.13 | 19.91 | 4.22 |
| Kraft Foods | 38.01 | 37.36 | 0.65 |
| Dupont | 52.90 | 45.78 | 7.12 |
| Consolidated Edison | 58.42 | 62.03 | -3.61 |
| Johnson & Johnson | 65.96 | 65.58 | 0.38 |
| Union Pacific | 107.48 | 105.94 | 1.54 |
| Comcast | 30.01 | 23.71 | 6.30 |
| Applied Materials | 12.45 | 10.71 | 1.74 |
| Pfiser | 43.41 | 41.22 | 2.19 |
| General Electric | 20.07 | 17.91 | 2.16 |
| AT&T | 31.23 | 30.24 | 0.99 |
| Cisco Systems | 21.15 | 18.08 | 3.07 |
| Home Depot | 50.31 | 42.04 | 8.27 |
| JP Morgan Chase | 45.98 | 33.25 | 12.73 |
| Procter & Gamble | 67.21 | 66.71 | 0.50 |
| Verizon | 38.23 | 40.12 | -1.89 |
| Devon Energy | 71.12 | 62.00 | 9.12 |
| Lilly | 40.27 | 41.56 | -1.29 |
| Microsoft | 32.26 | 25.96 | 6.30 |
| Coco Cola | 74.01 | 69.97 | 4.04 |
| Qualcomm | 68.06 | 54.70 | 13.36 |
| Exxon Mobil | 86.73 | 84.76 | 1.97 |
| Pacific Gas & Electric | 22.65 | 21.64 | 1.01 |
| Oracle Systems | 29.16 | 25.58 | 3.58 |
| Chevron | 107.21 | 106.40 | 0.81 |
接下來,計算差值 的平均數 和標準差 。
計算 :
第 5 題5 分
- (5%) Investors commonly use the standard deviation of the monthly percentage return for a
mutual fund as a measure of the risk for the fund; in such cases, a fund that has a larger standard
deviation is considered more risky than a fund with a lower standard deviation. The standard
deviation for the American Century Equity Growth fund and the standard deviation for the
Fidelity Growth Discovery fund were recently reported to be 15.0% and 18.9%, respectively.
Assume that each of these standard deviations is based on a sample of 60 months of returns. Do
the sample results support the conclusion that the Fidelity Fund has a larger population variance
than the American Century Fund? Which fund is more risky? (α = 0.05)
登入後即可作答並保存紀錄。
此題考驗變異數比例的檢定,以判斷兩個總體變異數的大小關係。我們將比較 Fidelity Fund 和 American Century Fund 的月報酬率標準差。
設:
= Fidelity Fund 的樣本標準差 = 18.9% = 0.189
= American Century Fund 的樣本標準差 = 15.0% = 0.150
= Fidelity Fund 的樣本數 = 60
= American Century Fund 的樣本數 = 60
虛無假設 : (Fidelity Fund 的總體變異數不大於 American Century Fund)
對立假設 : (Fidelity Fund 的總體變異數大於 American Century Fund)
由於我們關心的是 Fidelity Fund 是否「更大」,因此這是單尾檢定。
我們將使用 F 檢定來比較兩個總體變異數的比例。檢定統計量為:
計算檢定統計量:
自由度:
分子自由度
分母自由度
我們需要將計算出的 F 統計量與在 下,自由度為 (59, 59) 的 F 分佈的上臨界值進行比較。
題目給定 。
比較:
計算出的 F 統計量 。
臨界值 。
由於 ,我們拒絕虛無假設 。
結論:
在 的顯著水準下,我們有足夠的證據支持對立假設 ,即 Fidelity Fund 的總體變異數大於 American Century Fund 的總體變異
第 6 題1 分
- In a regression analysis involving 27 observations, the following estimated regression equation
was developed:
.
For this estimated regression equation and .
(1) (5%) At , test whether is significant. Suppose that variables and are
added to the model and the following regression equation is obtained:
.
For this estimated regression equation and .
登入後即可作答並保存紀錄。
此題考驗迴歸模型中自變數顯著性的檢定。首先,我們需要檢定第一個模型中 是否顯著。
第一部分:檢定 在單一自變數模型中的顯著性
模型:
(觀察值數量)
檢定:檢定 是否顯著,即檢定 。
我們可以使用 t 檢定或 F 檢定。對於簡單線性迴歸,兩者是等價的。
使用 F 檢定:
(自變數個數)
SSR (迴歸平方和)
MSR (平均迴歸平方和)
MSE (平均殘差平方和)
F 統計量
在 下,我們需要找到臨界值 。
題目提供了 。
比較:
由於 ,我們拒絕虛無假設 。
因此, 在 的水準下是顯著的。
使用 t 檢定(可選,作為驗證):
第 6 題2 分
(2) (5%) Use an F test and a = 0.05 level of significance to determine whether and
contribute significantly to the model.
登入後即可作答並保存紀錄。
此題考驗在已有的迴歸模型中,額外加入的自變數是否能顯著提升模型的解釋力。這是使用 F 檢定來比較兩個模型的適配度。
第一部分:舊模型 (只含 )
(當 )
第二部分:新模型 (含 )
(SST 在兩個模型中應該是一樣的,因為應變數 的總變異數不變)
(當 )
檢定:
虛無假設 : (變數 和 對模型沒有顯著貢獻)
對立假設 : 或 (或兩者) 不為 0 (變數 和 對模型有顯著貢獻)
我們使用 F 檢定來比較兩個模型的 SSE。
F 統計量公式為:
計算 F 統計量:
(這是額外加入的自變數的個數)
第 7 題1 分
- Let X and Y be two random variables defined on the same probability space. Please show
that:
(1) (5%) Var(X)=E{X²}-(E{X})², where Var() and E denote the variance and
the expectation of a random variable, respectively.
登入後即可作答並保存紀錄。
此題要求證明變異數的計算公式。這是機率論與數理統計中的一個基本公式。
證明 Var(X) = E{X²} - (E{X})²:
根據變異數的定義,Var(X) 是隨機變數 X 與其期望值 E{X} 之間差值的平方的期望值。
Var(X) = E{ (X - E{X})² }
展開 (X - E{X})²:
(X - E{X})² = X² - 2X E{X} + (E{X})²
現在,我們取這個展開式的期望值:
Var(X) = E{ X² - 2X E{X} + (E{X})² }
根據期望值的線性性質,我們可以將期望值運算分配到每一項:
Var(X) = E{X²} - E{ 2X E{X} } + E{ (E{X})² }
在 E{ 2X E{X} } 中,2 和 E{X} 都是常數(相對於隨機變數 X 而言),因此可以提出期望值運算符:
第 7 題2 分
(2) (5%) Cov(X,Y)=E{XY}-E{X}E{Y}, where Cov() denotes the covariance of two
random variables.
登入後即可作答並保存紀錄。
此題要求證明共變異數 (Covariance) 的計算公式。共變異數衡量兩個隨機變數之間的線性相關程度。
證明 Cov(X,Y) = E{XY} - E{X}E{Y}:
根據共變異數的定義,Cov(X,Y) 是隨機變數 X 與其期望值 E{X} 的差值,以及隨機變數 Y 與其期望值 E{Y} 的差值兩者乘積的期望值。
Cov(X,Y) = E{ (X - E{X}) (Y - E{Y}) }
展開 (X - E{X}) (Y - E{Y}):
(X - E{X}) (Y - E{Y}) = XY - X E{Y} - Y E{X} + E{X} E{Y}
現在,我們取這個展開式的期望值:
Cov(X,Y) = E{ XY - X E{Y} - Y E{X} + E{X} E{Y} }
根據期望值的線性性質,我們可以將期望值運算分配到每一項:
Cov(X,Y) = E{XY} - E{ X E{Y} } - E{ Y E{X} } + E{ E{X} E{Y} }
在 E{ X E{Y} } 中,E{Y} 是常數,可以提出:
E{ X E{Y} } = E{Y} E{X}
在 E{ Y E{X} } 中,E{X} 是常數,可以提出:
E{ Y E{X} } = E{X} E{Y}
第 8 題1 分
- Let X be uniformly distributed on [0,1] and Y be normally distributed with mean 0 and
variance 1. If a and b≠0 are real numbers, please find the probability density functions of
the following random variables:
(1) (5%) a+bX .
登入後即可作答並保存紀錄。
此題考驗隨機變數轉換的機率密度函數 (PDF) 計算。我們需要找到隨機變數 的 PDF,其中 服從 上的均勻分佈。
已知:
。其 PDF 為 for ,否則為 0。
是實數,且 。
我們要求 的 PDF,記為 。
方法一:使用累積分佈函數 (CDF)
首先,找到 的 CDF,即 。
我們需要考慮 的正負情況。
情況 1:
由於 ,其 CDF 為 for 。
所以,,當 。
這個條件 相當於:
(因為 )
因此,當 時,。
在區間外, 或 。
現在,我們對 求導,得到 PDF :
,當 。
否則,。
情況 2:
由於 ,不等號方向改變:
(假設 X 是連續的,P(X < x) = P(X <= x))
所以,,當 。
這個條件 相當於:
(因為 ,乘以 後不等號反向)
因此,當 時,。
否則, 或 。
現在,我們對 求導,得到 PDF :
,當 。
否則,。
綜合兩種情況:
如果 ,PDF 是 ,分佈範圍是 。
如果 ,PDF 是 ,分佈範圍是 。
我們可以將這兩種情況合併。
注意到當 時,。
所以 PDF 是 。
分佈的範圍是從 到 。
方法二:使用變換公式 (Transformation Method)
對於 ,若 是單調函數,則 。
在這裡,。
反函數是 。
第 8 題2 分
- Let X be uniformly distributed on [0,1] and Y be normally distributed with mean 0 and
variance 1. If a and b≠0 are real numbers, please find the probability density functions of
the following random variables:
(2) (5%) a+bY.
登入後即可作答並保存紀錄。
此題考驗隨機變數轉換的機率密度函數 (PDF) 計算。我們需要找到隨機變數 的 PDF,其中 服從平均數為 0,變異數為 1 的標準常態分佈。
已知:
。其 PDF 為 ,對於所有實數 。
是實數,且 。
我們要求 的 PDF,記為 。
使用變換公式 (Transformation Method):
對於 ,若 是單調函數,則 。
首先,找到 的反函數 :
所以,。
接下來,計算反函數對 的導數:
。
然後,計算絕對值:
。
現在,將反函數代入 的 PDF:
將上述結果代入變換公式:
整理後得到:
這個 PDF 的形式是常態分佈的 PDF。
標準常態分佈 的 PDF 是 。
第 8 題3 分
- Let X be uniformly distributed on [0,1] and Y be normally distributed with mean 0 and
variance 1. If a and b≠0 are real numbers, please find the probability density functions of
the following random variables:
(3) (7%)
登入後即可作答並保存紀錄。
此題考驗隨機變數轉換的機率密度函數 (PDF) 計算。我們需要找到隨機變數 的 PDF,其中 。
已知:
。其 PDF 為 ,對於所有實數 。
是實數,且 。
我們要求 的 PDF,記為 。
首先,注意到 是一個指數函數。由於 總是正的,所以 的值域將是 。
我們可以使用變換公式。令 。
方法一:使用 CDF
因為 ,所以 必須大於 0。如果 ,則 。
假設 。
取自然對數:
現在我們需要根據 的符號來解這個不等式。
情況 1:
所以,。
由於 ,其 CDF 為 。
,對於 。
對 求導得到 PDF :
使用鏈式法則:
其中 是標準常態 PDF。
所以,當 時:
, for .
, for .
情況 2:
由於 ,不等號方向改變:
所以,。
, for .
對 求導得到 PDF :
由於 ,所以 是負的。
因為 ,所以 。
第 9 題1 分
- Let be a group of random variables which satisfies the following three
conditions:
i. .
ii. is normally distributed with mean 0 and variance , where .
iii. Given , and are independent.
Please answer the following questions:
(1) (10%) What is the covariance of and , where ?
登入後即可作答並保存紀錄。
核心觀念
利用共變異數的線性性,以及獨立隨機變數的共變異數為 。先把 拆成「從 到 的增量」與 :
題目條件 iii 取 ,可知 與 獨立。由於 ,因此 ,也就是 與 獨立。
解題方法
依共變異數的線性性,
因為 與 獨立,第一項為 。又由條件 ii,對 ,