You are on page 1of 4

迴歸分析 期中考

(Ch.1~Ch.4) 11/04/2020

一、 (10%)一項調查結果顯示,國內家計單位主要採購者在傳統市場
(traditional markets)與在超市(supermarkets)購買豬肉的支出型態不同。

------------------------------------------------------- location = supermarkets------------------------------------------------------

The MEANS Procedure

Analysis Variable : pork_exp

N Mean Std Dev Minimum Maximum


---------------------------------------------------------------------------------------------------------------------------------------
75 194.7333333 128.1993099 40.0000000 750.0000000
---------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------- location = traditional markets ------------------------------------------------------

Analysis Variable : pork_exp

N Mean Std Dev Minimum Maximum


-----------------------------------------------------------------------------------------------------------------------------------------
200 136.2750000 88.7107511 30.0000000 600.0000000
-----------------------------------------------------------------------------------------------------------------------------------------
(1) 請依報表結果檢定傳統市場與超市客群在豬肉支出(pork_exp,元)的
變異數(variance)上是否有所差異(α=0.05),並請解釋檢定結果的意涵。

二、 (20%)分析大學生飲用咖啡的研究結果顯示咖啡支出受到飲用量及生活
費高低的影響。
The REG Procedure
Model: MODEL1
Dependent Variable: coffee_exp
Analysis of Variance
Sum of Mean
Source DF Squares Square F Value Pr > F

Model 5 6565193 1313039 73.36 <.0001


Error 207 3705056 17899
Corrected Total 212 10270249

Root MSE 133.78648 R-Square 0.6392


Dependent Mean110.35211 Adj R-Sq 0.6305
Coeff Var 121.23599

Parameter Estimates
Parameter Standard
Variable DF Estimate Error t Value Pr > |t|
Intercept 1 -96.79993 24.48664 -3.95 0.0001
gender 1 -12.73586 18.98330 -0.67 0.5030
brew 1 38.88485 3.28053 11.85 <.0001
can 1 19.47790 2.73451 7.12 <.0001
instant 1 3.71031 6.17787 0.60 0.5488
month_exp 1 0.00698 0.00298 2.34 0.0202

coffee_exp: 每月咖啡支出金額(元) can: 罐裝即飲咖啡每月飲用量(罐)


gender: 性別,男性為 1,女性為 0 instant: 即溶咖啡每月飲用量(杯)
brew: 現煮咖啡每月飲用量(杯) month_exp: 每月生活費(元)

1
(1) 請解釋迴歸式中 R2 之意涵。
(2) 請在 5%顯著水準下檢定現煮咖啡(brew)之係數是否與 40 有所差異。

三、 (30%)某一速食連鎖店的漢堡銷售總金額、售價、與廣告支出的關係如
下所示:
The REG Procedure

Model: MODEL1
Dependent Variable: sales

Number of Observations Read 75


Number of Observations Used 75

Analysis of Variance

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

Model 2 1396.53893 698.26946 29.25 <.0001


Error 72 1718.94294 23.87421
Corrected Total 74 3115.48187

Root MSE 4.88612 R-Square 0.4483


Dependent Mean 77.37467 Adj R-Sq 0.4329
Coeff Var 6.31489

Parameter Estimates

Parameter Standard
Variable DF Estimate Error t Value Pr > |t|

Intercept 1 118.91361 6.35164 18.72 <.0001


price 1 -7.90785 1.09599 -7.22 <.0001
ad_exp 1 1.86258 0.68320 2.73 0.0080

sales: 銷售總金額(單位為仟美元,平均數為 77.37)


price: 售價(單位為美元,平均數為 5.69)
ad_exp: 廣告支出(單位為仟美元,平均數為 1.84)
(1) 請問當售價降低 1 美元時,銷售總金額的變化為多少?
(2) 此速食連鎖店的行銷經理認為當廣告支出每增加 1 仟美元時,銷售總
金額的增量亦為 1 仟美元。請在 5%顯著水準下檢定廣告支出之係數與
1 是否有顯著差異。
(3) 請計算廣告支出係數的 95%信賴區間。

2
四、 (30%)國內鮮乳市場中鮮乳的售價(p,元/公升)隨著季節而波動,下表
為利用季節虛擬變數分析鮮乳售價之結果。

The REG Procedure


Model: MODEL1
Dependent Variable: p

Analysis of Variance

Sum of Mean
Source DF Squares Square F Value Pr > F
Model 3 291.04457 97.01486 18.65 <.0001
Error 29 150.81790 5.20062
Corrected Total 32 441.86247

Root MSE 2.28049 R-Square 0.6587


Dependent Mean 49.55091 Adj R-Sq 0.6234
Coeff Var 4.60231

Parameter Estimates

Parameter Standard
Variable DF Estimate Error t Value Pr > |t|

Intercept 1 44.90500 0.93100 48.23 <.0001


Spring 1 2.33000 1.23160 1.89 0.0685
Summer 1 7.49167 1.14024 6.57 <.0001
Fall 1 6.39643 1.26875 5.04 <.0001

(1) 請問此虛擬變數的設計上是以那一季作為基礎(base)?
(2) 請檢定夏季(Summer)虛擬變數之係數在 5%顯著水準下是否與 0 有所差
異並解釋其意涵(雙尾檢定)。
(3) 請問夏季鮮乳售價與秋季鮮乳售價之差異為每公升多少元?

五、(10%)請以下列分析結果進行統計檢定及分析。
The REG Procedure
Model: MODEL1
Dependent Variable: price

Analysis of Variance

Sum of Mean
Source DF Squares Square F Value Pr > F
Model 1 709384 709384 49.05 <.0001
Error 1078 15591671 14464
Corrected Total 1079 16301055

Root MSE 120.26436 R-Square 0.0435


Dependent Mean 154.86318 Adj R-Sq 0.0426
Coeff Var 77.65846

Parameter Estimates

Parameter Standard
Variable DF Estimate Error t Value Pr > |t|

Intercept 1 184.05276 5.54654 33.18 <.0001


age 1 -1.49124 0.21293 -7.00 <.0001

3
The REG Procedure
Model: MODEL2
Dependent Variable: price

Analysis of Variance

Sum of Mean
Source DF Squares Square F Value Pr > F
Model 3 932437 310812 21.76 <.0001
Error 1076 15368619 14283
Corrected Total 1079 16301055

Root MSE 119.51194 R-Square 0.0572


Dependent Mean 154.86318 Adj R-Sq 0.0546
Coeff Var 77.17260

Parameter Estimates

Parameter Standard
Variable DF Estimate Error t Value Pr > |t|
Intercept 1 195.59368 7.74485 25.25 <.0001
age 1 -2.58667 1.24202 -2.08 0.0375
age_sq 1 -0.00252 0.04747 -0.05 0.9577
age_cu 1 0.00039218 0.00046549 0.84 0.3997

price:房屋銷售價格(千美元,平均數為 154.86)
age:屋齡(年數,平均數為 19.57)
age_sq:屋齡變數的平方
age_cu:屋齡變數的三次方
(1) 請在 5%顯著水準下檢定房屋銷售價格與屋齡的迴歸模型中,age_sq 與
age_cu 之參數估計值是否同時為 0(需設立虛無假設與對立假設)。

You might also like