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 |
登入後即可作答並保存紀錄。
此題考驗機率與期望值的應用。題目要求找出樣本數 ,使得 18-34 歲年齡層中,預期使用線上報稅程式的人數至少為 25 人。
根據表格,18-34 歲年齡層使用線上報稅程式的比例為 16%。
設 為需要抽樣的 18-34 歲人數。
設 為這 人中使用線上報稅程式的人數。
則 服從二項分佈 ,其中 。
第 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 則否
= 銷售額 (單位:千美元)
第 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 |
第 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 |
第 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 以上,殘差變成了正值,且絕對值變小。
第 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 |
第 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 檢定來比較兩個總體變異數的比例。檢定統計量為:
計算檢定統計量:
自由度:
分子自由度
分母自由度
第 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 統計量
在 下,我們需要找到臨界值 。
題目提供了 。
第 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 統計量公式為:
第 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})² }
第 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}
第 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 :
,當
第 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:
第 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:
由於 ,不等號方向改變:
所以,。
第 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 取 ,可知 與 獨立。由於 ,因此 ,也就是 與 獨立。
解題方法
依共變異數的線性性,
第 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 |
登入後即可作答並保存紀錄。
此題考驗機率與期望值的應用。題目要求找出樣本數 ,使得 18-34 歲年齡層中,預期使用線上報稅程式的人數至少為 25 人。
根據表格,18-34 歲年齡層使用線上報稅程式的比例為 16%。
設 為需要抽樣的 18-34 歲人數。
設 為這 人中使用線上報稅程式的人數。
則 服從二項分佈 ,其中 。
第 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 則否
= 銷售額 (單位:千美元)
第 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 |
第 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 |
第 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 以上,殘差變成了正值,且絕對值變小。
第 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 |
第 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 檢定來比較兩個總體變異數的比例。檢定統計量為:
計算檢定統計量:
自由度:
分子自由度
分母自由度
第 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 統計量
在 下,我們需要找到臨界值 。
題目提供了 。
第 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 統計量公式為:
第 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})² }
第 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}
第 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 :
,當
第 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:
第 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:
由於 ,不等號方向改變:
所以,。
第 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 取 ,可知 與 獨立。由於 ,因此 ,也就是 與 獨立。
解題方法
依共變異數的線性性,