1. 用图表检验Analyze -> regression -> Linear-> Plots& C6 E1 a* T* O' S: F5 o
Scatter plot of the standardised residuals on the standardised predicted values (ZRESID as the Y variable, and ZPRED as the X variable. u% T9 q1 o& W/ g. m
( d! Z+ T0 b0 G0 ]2 t
如果图表显示有可能存在异方差,需要用统计检验来进一步检测异方差是否确实存在。% w0 I- M+ C% M8 X' d; ^
2. 用统计检验) j" \# C2 f, O7 G) v1 Q h' k
Heteroscedasticity——Testing and Correcting in SPSS.pdf
Gwilym Pryce March 2002.doc
(172.5 KB, 下载次数: 4)
) {% O) v3 X/ g1 F
~! H6 [$ J& o, s
: N. w7 H k5 P- D% v* ~4 ALevene’s Test0 ^5 q# V4 M5 J2 \
Goldfeld-Quandt Test3 @0 O" d2 ]1 R1 v* Z; A+ n+ {
Breusch-Pagan Test' l: q& Y; H [: {1 x0 t7 N4 q
White‘s Test (比较常用来检验异方差). K _" c5 w3 h
Assume you want to run a regression of wage on age, work experience,education, gender, and a dummy for sectorofemployment (whether employed in the public sector). wage = function(age, workexperience, education, gender, sector) or, as your textbook will have it, wage = b1 + b2*age + b3*work experience+ b4*education + b5*gender + b6*sector The White’s test is usually used as a test for heteroskedasticity. In this test, a regression of the squares ofthe residuals is run on the variables suspected of causing theheteroskedasticity, their squares, and cross products. (residuals)2 = b0 + b1 educ + b2 work_ex+ b3 (educ)2 + b4 (work_ex)2 + b5(educ*work_ex) 2 X7 e( s1 G& Z: C
8 z# _+ t6 J$ I9 M
# f, t8 X' Y' R" K& z7 Q7 x- k8 E) Y2 A
White’s Test · Calculate n*R2 à R2 = 0.037, n=2016 à Thus, n*R2 = .037*2016 = 74.6.
+ f8 v8 J# l+ X S0 c7 f' o· Compare this value with c2 (n), i.e.with c2 (2016)
; S. l2 h. k! a% }% `# l5 m(c2 is the symbol for theChi-Square distribution) & ]: q" J+ x, |' V5 ^
c2 (2016) = 124obtained from c2 table. (For 955 confidence) As n*R2 < c2 ,heteroskedasticity can not be confirmed. 3 f5 g# l3 t2 Y; O" h) E9 R, q6 b
# \' C. ^1 F8 y$ E2 m
请参考:regression_explained_SPSS
regression_explained_SPSS.doc
(368 KB, 下载次数: 0)
8 ?0 B a4 F& B' z7 p' e! N
|