数学建模社区-数学中国

标题: 利用spss进行异方差检验的方法,望借鉴 [打印本页]

作者: 馨冉回忆    时间: 2013-10-13 16:12
标题: 利用spss进行异方差检验的方法,望借鉴
1. 用图表检验Analyze -> regression -> Linear-> Plots  p9 e, t' k* k! F' r, q) v
Scatter plot of the standardised residuals on the standardised predicted values (ZRESID as  the Y variable, and ZPRED as the X variable, G" N0 m, H1 v
, ~) v0 D7 D6 V7 [& j2 I
如果图表显示有可能存在异方差,需要用统计检验来进一步检测异方差是否确实存在。
8 [% d6 h9 n$ o$ k' F) Z( C2. 用统计检验
, ^  R& r, L' T0 q" Q% Z5 N/ `Heteroscedasticity——Testing and Correcting in SPSS.pdf Gwilym Pryce March 2002.doc (172.5 KB, 下载次数: 4) 6 R5 j6 F7 O2 @# T; M. g/ t/ t. W
4 h, m9 b+ a* o% ]! I
( D) w6 {# ~' o) C" P% b7 k. o
Levene’s Test
) X! ?/ \$ ^6 e$ U; ?/ CGoldfeld-Quandt Test
' B$ w9 f3 j; x6 y+ S% ]. Q. tBreusch-Pagan Test
3 e+ j; r% O% i  v. NWhite‘s Test (比较常用来检验异方差)" U0 q6 R9 K" j& z* I5 E& J! r
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)
6 \+ N$ l4 ^. T5 i7 @

' y* T" R8 J9 {# g' Y7 |; _8 ]

3 H6 K2 k: l/ t; m/ z7 L; l( ]$ I* |& B. ^
White’s Test
·        Calculate n*R2                            à              R2  = 0.037, n=2016           à    Thus, n*R2 = .037*2016 = 74.6.

9 H( e/ I$ F& v3 ?5 E1 _
·        Compare this value with c2 (n), i.e.with  c2 (2016)  ! s1 {# D- T9 e) `
(c2  is the symbol for theChi-Square distribution)
0 {% j2 a% X- i; _% @
c2 (2016) = 124obtained from c2 table.            (For 955 confidence)              As n*R2  < c2 ,heteroskedasticity can not be confirmed.
: K* ~) C" {/ p4 E( ^. b4 L5 A
- j. T8 T9 X! l; O8 X  w
请参考:regression_explained_SPSS regression_explained_SPSS.doc (368 KB, 下载次数: 0) 0 }5 j3 G: Y5 m( z* m6 N





欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5