You are on page 1of 3

迴歸分析 期末考

(Ch5~Ch9.2) 1/16/2018

一、(20%) 行銷經理希望能分析二個不同品牌(B1, B2)在三種不同行銷策略(M1,


M2, M3)下的銷售量(Sales)
____Brand
B1 B2
M1 μ11 μ12
Marketing Strategy M2 μ21 μ22
M3 μ31 μ32

μ11, μ12, μ21, μ22, μ31, μ32 為銷售量,分析之迴歸式如下:

Sales  32.5106 9.32151  4.4032 2  21.9762 3

1 if M1 is used
1
0 if not

2 1 if M2 is used
0 if not
1 if applied to B1
3
0 if applied to B2

(1) 請計算 μ32

(2) 請計算 μ22 - μ21

二、(20%) 研究人員分析影響吸菸之因素,結果如下 SAS 報表所示。


The REG Procedure
Model: MODEL1
Dependent Variable: cigs

Number of Observations Read 807


Number of Observations Used 807
Parameter Estimates
Parameter Standard Standardized
Variable DF Estimate Error t Value Pr > |t| Estimate

Intercept 1 14.43421 6.76847 2.13 0.0333 0


cigprice 1 -0.03091 0.10215 -0.30 0.7623 -0.01068
white 1 0.26586 1.47901 0.18 0.8574 0.00633
educ 1 -0.37639 0.16987 -2.22 0.0270 -0.08386
age 1 -0.04123 0.02883 -1.43 0.1530 -0.05116
income 1 0.00011794 0.00005602 2.11 0.0356 0.07859

cigs: 每日吸菸之支數
cigprice: 香菸每包之價格(元)
white: 虛擬變數,白人為 1,非白人為 0
educ: 實際受教育年數
age: 實際年齡
income: 個人月所得(元)

1
(1) 由標準化係數(Standardized Estimate) 之結果可知影響每日吸菸支
數最大的二個變數為何?

(2) 由此模型之結果推論,提高香菸的單位價格是否會有效減少吸菸之
數量?

三、(15%) 以下 SAS 報表所列為 Y = b1 + b2 X + b3 N 之結果,其中 Y 為食物支出,


X 為所得,N 為家庭人口數。因考慮異質性(Heteroskedasticity)存在的可能性,
以 X 的大小為依據,將資料分為兩部份以進行 Goldfeld-Quandt 檢驗,X1 為
所得較高之家庭,X2 為所得較低之家庭。迴歸結果分列於下表,請在 5%顯
著水準下檢定殘差是否存在異質變異(需設立虛無假設、對立假設,並判定
檢定結果)。

Model: MODEL1
Dependent Variable: Y

Analysis of Variance

Sum of Mean
Source DF Squares Square F Value Prob>F

Model 2 132.83854 66.41927 2.134 0.1509


Error 16 498.06478 31.12905
C Total 18 630.90332

Root MSE 5.57934 R-square 0.2106


Dep Mean 18.46368 Adj R-sq 0.1119
C.V. 30.21792

Parameter Estimates

Parameter Standard T for H0:


Variable DF Estimate Error Parameter=0 Prob > |T|

INTERCEP 1 -4.041540 11.56096385 -0.350 0.7312


X1 1 0.263772 0.14898366 1.770 0.0957
N 1 0.689384 0.70522715 0.978 0.3429

Model: MODEL2
Dependent Variable: Y

Analysis of Variance

Sum of Mean
Source DF Squares Square F Value Prob>F

Model 2 205.84503 102.92252 17.498 0.0001


Error 16 94.11088 5.88193
C Total 18 299.95591

Root MSE 2.42527 R-square 0.6863


Dep Mean 13.44195 Adj R-sq 0.6470
C.V. 18.04254
Parameter Estimates

Parameter Standard T for H0:


Variable DF Estimate Error Parameter=0 Prob > |T|

INTERCEP 1 -2.405415 3.02704984 -0.795 0.4385


X2 1 0.231981 0.06393592 3.628 0.0023
N 1 1.758516 0.36424063 4.828 0.0002

2
四、(10%) 以課本 p. 430 ex. 8.36 的題目為依據,計算自 1980 年起共 26 年期間
有效壽險保單迴歸式,MINITAB 分析結果如下所示:

(1) 請在 5%顯著水準下,檢定模型內是否存在一階正向自相關(需設立
虛無假設、對立假設,並判定檢定結果)。

(2) 請問報表中顯示第 18 筆資料的標準化殘差相對較大,請問此筆資


料是否可以被判定為離群值?抑或需要更詳盡的分析結果作為判
定依據?請問你會需要哪些分析數據做為判定的準則?

五、(25%)以課本 p. 474 ex. 9.2 的題目為依據,考慮一個含有三段線段的


piecewise regression,其中斜率在 x = 1.45 以及 x = 5.20 處改變斜率(產生折
拗點)。假設此迴歸式的三段線段為連續型的形態。

(1) 請列出迴歸式。其中 x1 = x,x2 及 x3 請寫出設立之區間及設立條件


(0/1)。

(2) 請列出 x ≦ 1.45, 1.45 < x ≦ 5.20, x > 5.20 三段線段的截距及


斜率。

You might also like