國立臺灣大學
初等統計學實習課講義 (SPSS)
SPSS 1.0 07 Simple Linear Regression page 1 of 3
簡單直線迴歸 File: ad.sav
例:隨機抽訪某行業 20 家廠商,得
其去年的廣告支出(十萬元)與營業
收入(億元)
- [Analyze][Regression][Linear]
- 將[營收]放入 Dependent,廣告支
出放入 Independent(s)
- Statistics 選項加勾 Regression
Coefficients 的 Confidence
intervals 要求迴歸系數的信任區
間
- Plot 選項可要求殘差散佈圖,選
擇以標準化殘差(*ZRESID)為
Y,標準化估計值(*ZPRED)為 X
的散佈圖,並勾選常態機率圖
Normal probability plot
- Save 選項可將選擇的統計量輸出
到資料中,選擇未標準化的估計
值 Unstandardized Predicted
Values 及 95%信任區間
其中 Mean 代表推測值的信任
區間
Individual 代表新觀測值的信
任區間
- [OK]
請注意資料多了 5 個新變數
- Unstandardized Predicted Value
- 95% L CI for 營收 mean
- 95% U CI for 營收 mean
- 95% L CI for 營收 individual
- 95% U CI for 營收 individual
- 請注意資料最後一筆並無營收數
據,由於遺失資料不會被納入迴
歸模型,所以多一筆資料對參數
估計沒有影響。但透過 Save 選項
我們可以預估該行業一廠商去年
廣告支出 150 萬的營收之信任區
間
Linear Regression 視窗
- Statistics 視窗 (預設只勾選 Reg. Coef. Estimates 及
Model fit)
- Plot 視窗 (預設無勾選)
- Save 視窗 (預設無勾選)
國立臺灣大學
初等統計學實習課講義 (SPSS)
SPSS 1.0 07 Simple Linear Regression page 2 of 3
簡單線性迴歸輸出
Regression
Variables Entered/Removed b
廣告支出
(十萬元)
a . Enter
Model
1
Variables
Entered
Variables
Removed Method
All requested variables entered.a.
Dependent Variable: 營收(億元)b.
Model Summary b
.925
a
.855 .847 .3052
Model
1
R R Square
Adjusted R
Square
Std. Error of
the Estimate
Predictors: (Constant), 廣告支出(十萬元)a.
Dependent Variable: 營收(億元)b.
ANOVAb
9.913 1 9.913 106.425 .000
a
1.677 18 .093
11.589 19
Regression
Residual
Total
Model
1
Sum of Squares df Mean Square F Sig.
Predictors: (Constant), 廣告支出(十萬元)a.
Dependent Variable: 營收(億元)b.
Coefficients a
-.884 .298 -2.969 .008 -1.509 -.258
.178 .017 .925 10.316 .000 .142 .214
(Constant)
廣告支出(十萬元)
Model
1
B Std. Error
Unstandardized
Coefficients
Beta
Standardized
Coefficients
t Sig. Lower Bound Upper Bound
95% Confidence Interval for B
Dependent Variable: 營收(億元)a.
Residuals Statistics a
.895 3.208 2.105 .7223 20
-1.675 1.527 .000 1.000 20
.068 .136 .094 .022 20
.820 3.231 2.101 .7296 20
-.4522 .5257 .0000 .2971 20
-1.482 1.723 .000 .973 20
-1.567 1.798 .007 1.028 20
-.5060 .5731 .0044 .3315 20
-1.639 1.930 .019 1.060 20
.002 2.805 .950 .883 20
.000 .217 .059 .064 20
.000 .148 .050 .046 20
Predicted Value
Std. Predicted Value
Standard Error of
Predicted Value
Adjusted Predicted Value
Residual
Std. Residual
Stud. Residual
Deleted Residual
Stud. Deleted Residual
Mahal. Distance
Cook's Distance
Centered Leverage Value
Minimum Maximum Mean Std. Deviation N
Dependent Variable: 營收(億元)a.
國立臺灣大學
初等統計學實習課講義 (SPSS)
SPSS 1.0 07 Simple Linear Regression page 3 of 3
Charts
Observed Cum Prob
1.00.80.60.40.20.0
E
xp
ec
te
d
C
um
Pr
ob
1.0
0.8
0.6
0.4
0.2
0.0
Normal P-P Plot of Regression Standardized Residual
Dependent Variable: 營收(億元)
Regression Standardized Predicted Value
210-1-2
R
eg
re
ss
io
n
St
an
da
rd
iz
ed
R
es
id
ua
l
2
1
0
-1
-2
Scatterplot
Dependent Variable: 營收(億元)
本文档为【臺灣大學SPSS (社科) version 2.7 SLR】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。