数学建模社区-数学中国
标题: 利用spss进行异方差检验的方法,望借鉴 [打印本页]
作者: 馨冉回忆 时间: 2013-10-13 16:12
标题: 利用spss进行异方差检验的方法,望借鉴
1. 用图表检验Analyze -> regression -> Linear-> Plots
3 i* A" V+ y! E( N5 r" x* Z5 `Scatter plot of the standardised residuals on the standardised predicted values (ZRESID as the Y variable, and ZPRED as the X variable& C! c( y7 k- y
1 G3 V: ?0 ]. ?9 w
如果图表显示有可能存在异方差,需要用统计检验来进一步检测异方差是否确实存在。9 P) ?3 k0 U' h1 P* Z# w
2. 用统计检验
9 y- B+ R4 H* [7 C2 _2 Y2 d5 J& j7 MHeteroscedasticity——Testing and Correcting in SPSS.pdf
Gwilym Pryce March 2002.doc
(172.5 KB, 下载次数: 4)
1 o" w- ?' I7 M0 B( E- v- ~, v7 p3 v
$ Q) `9 N) j/ ?# S+ R+ l3 h( k
Levene’s Test! Y" ?# Y$ R( }# N6 i w) i
Goldfeld-Quandt Test2 }1 Z0 \4 X! X1 O; T: t% b
Breusch-Pagan Test* d' `' o! o% H( E7 o o9 M
White‘s Test (比较常用来检验异方差), i5 @& t4 [! L' o0 `
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)
) r& O% U( T4 D
- u8 z! v) M- }
1 E# q8 X4 v% g, [! \- d5 K
! C. X4 w3 d0 |+ m
White’s Test
· Calculate n*R2 à R2 = 0.037, n=2016 à Thus, n*R2 = .037*2016 = 74.6.
) W3 j# g8 G! R/ q. z
· Compare this value with c2 (n), i.e.with c2 (2016)
. D4 P. @: A" x; }7 p9 h9 } u(c2 is the symbol for theChi-Square distribution)
( w: {; l6 ?, O- m3 D' Z0 F- _ Nc2 (2016) = 124obtained from c2 table. (For 955 confidence) As n*R2 < c2 ,heteroskedasticity can not be confirmed.
6 d" }) d3 s2 ?8 l) o4 y. {+ O2 b
2 L7 V8 e3 S6 k- w* G6 E请参考:regression_explained_SPSS
regression_explained_SPSS.doc
(368 KB, 下载次数: 0)
6 @. B- h- V* j2 z7 U
| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) |
Powered by Discuz! X2.5 |