应用回归分析(何晓群)作业.pdf
文本预览下载声明
《回归分析》第二次作业
第四章
P127
4.9 解答:
(1) 用普通最小二乘法建立y 与x 的回归方程,并画出残差散点图。
spss 输出结果如下:
Model Summary
Model R R Square Adjusted Std. Error of
R Square the Estimate
1 .839a .705 .699 1.57720
a. Predictors: (Constant), x
ANOVAa
Model Sum ofdf Mean Square F Sig.
Squares
Regression 302.633 1 302.633 121.658 .000b
1 Residual 126.866 51 2.488
Total 429.499 52
a. Dependent Variable: y
b. Predictors: (Constant), x
Coefficientsa
Model Unstandardized Standardized t Sig.
Coefficients Coefficients
B Std. Error Beta
(Constant) -.831 .442 -1.882 .065
1
x .004 .000 .839 11.030 .000
a. Dependent Variable: y
由上表可得回归方程为:
ˆ
y =−0.831+0.004x
残差图为:
1
《回归分析》第二次作业
(2)诊断该问题是否存在异方差。
①由残差散点图可以明显看出存在异方差,误差的方差随着x 的增加而增大。
②用spss 做等级相关系数的检验,结果如下表所示:
Correlations
x abs
*
Correlation Coefficient 1.000 .318
x Sig. (2-tailed) . .021
N 53 53
显示全部