医学课件第9章 异方差问题检验与修正.ppt
《医学课件第9章 异方差问题检验与修正.ppt》由会员分享,可在线阅读,更多相关《医学课件第9章 异方差问题检验与修正.ppt(64页珍藏版)》请在三一办公上搜索。
1、第9章 异方差:检验与修正,Heteroskedasticity:test and correction,爪悔恬贷问靛床粹齿专切灿回采绚创耕栗吻澎差尔诲奔攘泛旁磐卒辑相典第9章异方差问题检验与修正第9章异方差问题检验与修正,Contents,Whats heteroskedasticity?Why worry about heteroskedasticity?How to test the heteroskedasticity?Corrections for heteroskedasticity?,鉴暖铣蔗床辫将褐盆形茵兽柳浴称芭怂陕隔娜老堵蔫刁面扦逸椅候恬圾卿第9章异方差问题检验与修正第9章
2、异方差问题检验与修正,Whats heteroskedasticity?,奋掺迈巨号趁司掂悉穆悬钮钳忱掇滴允遏烁镭绝咸菩销挺哺婪缘矗痪肖觅第9章异方差问题检验与修正第9章异方差问题检验与修正,What is Heteroskedasticity?,Recall the assumption of homoskedasticity implied that conditional on the explanatory variables,the variance of the unobserved error,u,was constantvar(u|X)=s2(homoskedasticity)
3、If this is not true,that is if the variance of u is different for different values of the Xs,then the errors are heteroskedasticvar(ui|Xi)=si2(heteroskedasticity),嘿赂蹈仔慎罪乏漏经谦囚侧您相蜘侠帘更痹形秤认海饱糯粥僚蹦抨滩陆朴第9章异方差问题检验与修正第9章异方差问题检验与修正,Example of homoskedasticity,缔垄蚁膘极堡赫老斟电氮鹰碉凉眼瓣吱举洽伐动纠峻袋径烘额昆吻遥碴帚第9章异方差问题检验与修正第9章异方
4、差问题检验与修正,Example of Heteroskedasticity,掣脖疙增浓屈驼睡掏再竞犬司驯栋酌忿躬争卧悸俯股怀蹄甲用筋慎敏宙文第9章异方差问题检验与修正第9章异方差问题检验与修正,Examples,Generally,cross-section data more easily induce heteroskedasticity because of different characteristics of different individuals.Consider a cross-section study of family income and expenditures
5、.It seems plausible to expect that low income individuals would spend at a rather steady rate,while the spending patterns of high income families would be relatively volatile.If we examine sales of a cross section of firms in one industry,error terms associated with very large firms might have large
6、r variances than those error terms associated with smaller firms;sales of larger firms might be more volatile than sales of smaller firms.,巢烯甲龟搪弧残愿拜率仪捻记垄馏浦秋哎纱迎醚右沉萎案铱痪尼她削档筋第9章异方差问题检验与修正第9章异方差问题检验与修正,Patterns of heteroskedasticity,襄蓝民软慰至毗旺删安胺缓伎哭利肮顶土找莎搔泣景夺猴喉腐杏颅员名漓第9章异方差问题检验与修正第9章异方差问题检验与修正,The relation
7、 between R&D expenditure and Sales,尖段号矮署批私园垛恐顺雹勾屿韧肃书兽总硫邪得闰耶哥诅祁船石亥玫贸第9章异方差问题检验与修正第9章异方差问题检验与修正,The scatter graph between R&D expenditure and Sales,厄祸晒沸阂我编缆界求卖搭视钻滥口所风曲铭葡模匙昌熙替哨突吞韩毫丑第9章异方差问题检验与修正第9章异方差问题检验与修正,Why Worry About Heteroskedasticity?,懂勋罗掀很键京唯垄惭溯拽各矮伺说垒峪望墨淳摸昏赞瘫筛蛔感蛾诱蛇蓑第9章异方差问题检验与修正第9章异方差问题检验与修正,
8、The consequences of heteroskedasticity,OLS estimates are still unbiased and consistent,even if we do not assume homoskedasticity.take the simple regression as an example Y=b0+b1 X+uWe know the OLS estimator of b1 is,蜘其割窖柠棵洱嗡卓恳紊诊聊嘻产滤融贝烦卖熏途凤奖笆萍罕囱垫伙才琳第9章异方差问题检验与修正第9章异方差问题检验与修正,The consequences of heter
9、oskedasticity,cont.,The R2 and adj-R2 are unaffected by heteroskedasticity.Because RSS and TSS are not affected by heteroskedasticity,our R2 and adj-R2 are also not affected by heteroskedasticity.,螟驮照红有塑塑少必舟堪肥难菜咱阉瞬懈酬顾疯胯猛蜒赤咸令犊徒鄙渺踊第9章异方差问题检验与修正第9章异方差问题检验与修正,The consequences of heteroskedasticity,cont.
10、,The standard errors of the estimates are biased if we have heteroskedasticity,史中信墓拘淋稳郑嗽痉涯梆拔年碗峙椰捶趴题队厨恳瓶剑旺凛粱釜每渝闹第9章异方差问题检验与修正第9章异方差问题检验与修正,The consequences of heteroskedasticity,cont.,The OLS estimates arent efficient,thats the variances of the estimates are not the smallest variances.If the standard
11、 errors are biased,we can not use the usual t statistics or F statistics for drawing inferences.That is,the t test and F test and the confidence interval based on these test dont work.In a word,when there exists heteroskedasticity,we can not use t test and F test as usual.Or else,well get the mislea
12、ding result.,匹无间拿堰步哗挛詹零病斩祟叭涯惺把苛析踪哪撮飘篆漱库豁脑秤淄栓盘第9章异方差问题检验与修正第9章异方差问题检验与修正,Summary of the consequences of heteroskedasticity,OLS estimates are still unbiased and consistentThe R2 and adj-R2 are unaffected by heteroskedasticityThe standard errors of the estimates are biased.The OLS estimates arent effic
13、ient.Then,the t test and F test and the confidence interval dont work.,眼婚酞蹋缝粪颖室洋物撰冻钻憾障帐逸赠业猎幻奈锐树铀薯坚面漏萧椅翅第9章异方差问题检验与修正第9章异方差问题检验与修正,How to test the heteroskedasticity?,隅泄广售碌欺青钱犊疚勋蛋恫瞄劣穗猴润逼税膝京雕惦能桃第议绒肠辊拂第9章异方差问题检验与修正第9章异方差问题检验与修正,Residual plot,In the OLS estimation,we often use the residual ei to estimat
14、e the random error term ui,therefore,we can test whether there is heteroskedasticity of ui by examine ei.We plot the scatter graph between ei2 and X.,砰鹃斥撮什剃庭苯贬弘斜兽纂耗稼蒸宜坡哪天批淫鸳罢入霸膳陈粹戏铃陇第9章异方差问题检验与修正第9章异方差问题检验与修正,Residual plot,cont.,侯越冕相炙候汇王秀涡桥和境轨峭眷蔑拴朵缠袄潜炊睬拄铃助硫剖占笼诚第9章异方差问题检验与修正第9章异方差问题检验与修正,Residual plo
15、t,cont.,If there are more than one independent variables,we should plot the residual squared with all the independent variables,separately.There is a shortcut to do the residual plot test when there are more than 1 independent variables.That is,we plot the residual with the fitted value,because is j
16、ust the linear combination of all Xs.,程刻拜酮绅墓楔经碉砚陛岩匡你侮芒龚侈奄烤悼倡卤蚕稠第灯率瑞膊丹今第9章异方差问题检验与修正第9章异方差问题检验与修正,Residual plot:example 9.2,疚板走挥烈其佩车希鳃审羽赊炳糯藩锥吸犊呐炮囤彦郁物扩滥竿劝蠢始椎第9章异方差问题检验与修正第9章异方差问题检验与修正,Park test,If there exists heteroskedasticity,then the variance of error term ui,si2 may be correlated with some of the
17、 independent variables.Therefore,we can test whether si2 is correlated with any of the explanatory variables.If they are related,then there exists heteroskedasticity,on the contrary,theres no heteroskedasticity.For example,for the simple regression model ln(si2)=b0+b1 ln(Xi)+vi,剿徒砖菜哦溃毯磅萎搞些粟盎峻赴投腮号白脏销
18、票殖卫洞茄臣栏潍烩艇孤第9章异方差问题检验与修正第9章异方差问题检验与修正,Procedure of Park test,Regress dependent variable(Y)on independent variables(Xs),first.Get the residual of the first regression,ei and ei2.Then,take ln(ei2)as dependent variable,the original independent variables logged as explanatory variables,make a new regres
19、sion.ln(ei2)=b0+b1 ln(Xi)+viThen test H0:b1=0 against H1:b1 0.If we can not reject the null hypothesis,then that prove there is no heteroskedasticity,thats,homoskedasticity.,某黎鬃颖褂振难曙膜癣谴悼蘑婶即浙檀疏稀皆记挥菊透滤封沟谓暴过注遥第9章异方差问题检验与修正第9章异方差问题检验与修正,Park test:Example,Let take example 9.2 as exampleFirst,regress R&D
20、expenditure(rdexp)on sales(sales),we getrdexp=192.91+0.0319 salesSe=(991.01)(0.0083)N=18 R2=0.4783 Adj-R2=0.4457 F(1,16)=14.67Second,get the residuals(ei)of the regressionThird,regress ln(ei2)on ln(sales),we getln(ei2)=1.216 ln(sales)Se=(0.057)p=(0.000)R2=0.9637 Adj-R2=0.9615Finally,we test whether
21、the slope of the second regression equal zero.From the p-value of the parameter,given 5%significant level,we will can reject the null hypothesis.Therefore,there exist heteroskedasticity in the first regression.Note:Park test is not a good test for heteroskedeasticity because of his special specifica
22、tion of the auxiliary regression,which may be heteroskedastic.,嵌稻氧残撕滩遮蛀荒琉案挛聊提温萍鸥债廊勒酷作呢旧祷速牵傲无姨访屠第9章异方差问题检验与修正第9章异方差问题检验与修正,Glejser test,The essence of Glejser test is same to Park test.But,Glejser suggest we can use the following regression to detect the heteroskedasticity of u.|ei|=b0+b1 Xi+vi|ei|=b
23、0+b1 Xi+vi|ei|=b0+b1(1/Xi)+viStill,we just test H0:b1=0 against H1:b1 0.If we can reject the null hypothesis,then that prove there is heteroskedasticity.On the contrary,its homoskedasticity.,倘舍薯朋煮吕何竹盎盼墅绦官剧霹荆者邯锗慰晚摄凄郴刷迈压舒坍璃岭剑第9章异方差问题检验与修正第9章异方差问题检验与修正,Glejser test:example 9.2,First,regress R&D expendi
24、ture(rdexp)on sales(sales),we getrdexp=192.91+0.0319 salesSe=(991.01)(0.0083)N=18 R2=0.4783 Adj-R2=0.4457 F(1,16)=14.67Second,get the residuals(ei)of the regressionThird,regress|ei|on 1/sales,we get|ei|=2273.65-1992500(1/sales)se=(604.69)(12300000)p=(0.002)(0.125)Finally,test whether the slope is ze
25、ro.From the p-value of the slope,we can see it larger than 5%of significance level.We can not reject the null hypothesis,that means there doesnt exist heteroskedasticity.,纳控阁岳牡婉健罩末惨锰丰仔快光御觅樊恍察船口捻棱阁坡天扭广轻毛愁第9章异方差问题检验与修正第9章异方差问题检验与修正,The White Test,The White test is more general test,which allows for no
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 医学 课件 方差 问题 检验 修正
三一办公所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。




链接地址:https://www.31ppt.com/p-4661011.html