/
DIFFERENCING AND UNIT ROOT TESTS DIFFERENCING AND UNIT ROOT TESTS

DIFFERENCING AND UNIT ROOT TESTS - PDF document

danika-pritchard
danika-pritchard . @danika-pritchard
Follow
422 views
Uploaded On 2017-04-10

DIFFERENCING AND UNIT ROOT TESTS - PPT Presentation

thedifferenceddataMoregenerallythereisthequestionofhowmanytimesweneedtodifferencethedataInthemodelthe ID: 338209

thedifferenceddata.Moregenerally thereisthequestionofhowmanytimesweneedtodifferencethedata.Inthe)model the

Share:

Link:

Embed:

Download Presentation from below link

Download Pdf The PPT/PDF document "DIFFERENCING AND UNIT ROOT TESTS" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

DIFFERENCINGANDUNITROOTTESTSIntheBox-Jenkinsapproachtoanalyzingtimeseries,akeyquestioniswhethertodifferencethata,i.e.,toreplacetherawdata{}bythedifferencedseries{}.Experienceindicatesthattttosteconomictimeseriestendtowanderandarenotstationary,butthatdifferencingoftenyieldsa thedifferenceddata.Moregenerally,thereisthequestionofhowmanytimesweneedtodifferencethedata.Inthe)model,the’thdifferenceisastationary).Theseriesisintegratedodenotedby),whereisanintegerwith1,iftheseriesandallitsdifferencesupto1’starenonstationary,butthe’thdifferenceisstationary.Aseriesissaidtobeintegratedorderzero,denotedby(0),iftheseriesisbothstationaryandinvertible.(Theimportanceofinverti-bilitywillbediscussedlater).Iftheseries{}is)with1,thenthedifferencedseries{tttForanexampleofan(2)process,considerthe(2)series.Thisprocessisotstationary.Equation(1)becomes1,thatis,0.Factoringthisgives1)(0,sotheequationhasunitroots.Sincethelargestroot(i.e.,one)doesnothaveabsolutevalue"lessthanone,theprocessisnotstationary.Itcanbeshownthattherstdifferenceisnotstationaryeither.Theseconddifferenceisisxx]x2xx,wttt1t1t2tt1t2hichisequaltobythedenitionofour(2)process.Sincetheseconddifferenceiswhitenoise,}isan(0,2,0).Sincetheseconddifferenceisstationary,{}is(2).Ingeneral,foranyprocesswhichisintegratedoforder,Equation(1)willhaveexactlyunitroots.Inpracticeowever,theonlyintegervaluesofwhichseemtooccurfrequentlyare0and1.Sohere,wewilllimitourdiscussiontothequestionofwhetherornottodifferencethedataonetime.Ifwefailtotakeadifferencewhentheprocessisnonstationary,regressionsontimewilloftenyieldaspuriouslysignicantlineartrend,andourforecastintervalswillbemuchtoonarrow(optimisic)atlongleadtimes.Foranexampleoftherstphenomenon,recallthatfortheDeatedDowJonesseries,wegota-statisticfortheslopeof5.27(creatingtheillusionofaverystrongindicationorend),butthemeanoftherstdifferenceswasnotsignicantlydifferentfromzero.Foranexampleofthesecondphenomenon,let’scomparearandomwalkwithastationary(1)model.Forarandomalk,thevarianceofthe-stepforecasterroris xx]var[hnnn...]hvarvar],-whichgoestoincreases.Thewidthoftheforecastintervalswillbeproportionalto,indicatingthatouruncertaintyaboutthefuturevalueoftheseriesgrowswithoutboundastheleadtimeincreased.Ontheotherhand,forthestationary(1)process1,thebest-stepforecastis,whichgoestozeroasincreases.Thevarianceoftheforecasterrorisisxx],whichtendstotox],aniteconstant.Soastheleadtimeisincreasedthewidthofthe-steppredictionintervalsgrowswithoutboundforarandomwalk,butremainsboundedforastationary(1).Clearly,then,ifourserieswerereallyarandomwalk,butwefailedtoifferenceitandmodeleditinsteadasastationary(1),thenourpredictionintervalswouldgiveusmuchmorefaithinourabilitytopredictatlongleadtimesthanisactuallywarranted.Itisalsoundesirabletotakeadifferencewhentheprocessisstationary.Problemsariseherebecausethedifferenceofastationaryseriesisnotinvertible,i.e.,cannotberepresentedasanorexample,if,sothat{}isreallyastationary(1),thentherstdifference{}isthenon-invertible(1,1)process,whichhasmoreparametersthantheorigialprocess.(Recallthatan)isinvertibleifthelargestrootoftheequation0satises1,whereb,...,baretheparameters.)Becauseofthon-invertibilityof{},itsparameterswillbedifculttoestimate,anditwillbedifculttoconstructaforecastof.Consequently,takinganunnecessarydifference(i.e.,overdifferencing)willtendtodegradethequalityofforecasts.Ideally,then,whatwewouldlikeisawaytodecidewhethertheseriesisstationary,orintegratedoforder1.Amethodinwidespreadusetodayistodeclaretheseriesnonstationaryifthesampleautoorrelationsdecayslowly.Ifthispatternisobserved,thentheseriesisdifferencedandtheautocorrela-tionsofthedifferencedseriesareexaminedtomakesurethattheydecayrapidly,therebyindicatinghatthedifferencedseriesisstationary.Thismethodissomewhatadhoc,however.Whatisreallyneededisamoreobjectivewayofdecidingbetweenthetwohypotheses,(0)and(1),withoutmakin anyfurtherassumptions.Unfortunately,eachofthesehypothesescoversavastrangeofpossibilitiesndanyclassicalapproachtodiscriminatebetweenthemseemsdoomedtofailureunlesswelimitthescopeofthehypotheses.TheDickey-FullerTestofRandomWalkVs.StationaryAR(1)Atestinvolvingmuchmorenarrowly-speciednullandalternativehypotheseswasproposedbickeyandFullerin1979.Initsmostbasicform,theDickey-Fullertestcomparesthenullhypothesisi.e.,thattheseriesisarandomwalkwithoutdrift,againstthealternativehypothesiareconstantswith1.Accordingto,theprocessisastationary(1)wit).Toseethis,notethat,under,wecanwritesothat  otethatbymakingtherandomwalkthehypothesis,DickeyandFullerareexpressingaprefer-encefordifferencingthedataunlessastrongcasecanbemadethattherawseriesisstationary.Thisisonsistentwiththeconventionalwisdomthat,mostofthetime,thedatadorequiredifferencing.ATypeIerrorcorrespondstodecidingtheprocessisstationarywhenitisactuallyarandomwalk.Inthiase,wewillfailtorecognizethatthedatashouldbedifferenced,andwillbuildastationarymodelforournonstationaryseries.ATypeIIerrorcorrespondstodecidingtheprocessisarandomwalkwhenisactuallystationary.Here,wewillbeinclinedtodifferencethedata,eventhoughdifferencingisnotWeshouldmentiontwoadditionalimportantdifferencesbetweenthe(1)andtherandomwalk.Whereastheinnovationhasatemporary(exponentiallydecaying)effectonthe(1),ithaspermanenteffectontherandomwalk.Whereastheexpectedlengthoftimebetweencrossingsof niteforthe(1)(sothe(1)uctuatesarounditsmeanof),theexpectedlengthoftimebetweencrossingsofanyparticularlevelisinfinitefortherandomwalk(sotherandomwalkhasatendencytanderinanon-systematicfashionfromanygivenstartingpoint).TheDickey-Fullertestiseasytoperform.Givendatax,...,x,werunanordinarylineaegressionoftheobservations(x,...,x)ofthe"dependentvariable"{},againsttheobservationsx,...,x)ofthe"independentvariable"{},togetherwithaconstantterm.Underboth,thedataobeythelinearregressionmodelcorrespondstoDenotethe-statisticfortheleastsquaresestimateistheestimatedstandarderrorforˆ.Notethatiseasytocalculate,sinceˆandcanbbtaineddirectlyfromtheoutputofthestandardcomputerregressionpackages.FortheDeatedDowdata,regressingx,...,xx,...,x,weobtainthefollowin25471546regressionoutput:ResidualStandardError=0.6933,MultipleR-Square=0.9907N=546,F-statistic=57991.38on1and544df,p-value=0coefstd.errt.statp.valueIntercept0.10950.08321.31650.1886X0.99630.0041240.81400.0000TheR-Squarestatisticis.9907,indicatingaverystronglinearrelationshipbetween{}and}.Theestimatedslopeis9963,and0041.WecalculateNotethatwedoNOTusethetstatistic(240.8140)fromtheoutput,sincethiswascomputedrelativetoanullvalueofzero,insteadof1. Thestatisticcanbeusedtotest.Thepercentilesofaregivenintheattachedtable.Thenullhypothesisisrejectedifislessthanthetabledvalue.Thetabulationsfowerebasedonsimulation,assumingGaussian.Thetabledvaluesfortheasymptoticistribution()arevalidaslongasthewithnitevariance.(NoGaussianassumptionisneededhere.)Itshouldbenotedthatdoesnothaveadistributioninnitesamples,anddoesnohaveastandardnormaldistributionasymptotically.Infact,theasymptoticdistributionislonger-tailedthanthestandardnormal.Forexample,theasymptotic01percentagepointofisat3.43,insteado2.326forastandardnormal.Thus,useofthestandardnormaltablewouldresultinanexcessofspuriusdeclarationsofstationarity.FortheDeatedDowdata,weobtained .9024,whichisnotsignicantaccordingtotheable.Sowearenotabletorejecttherandomwalkhypothesis.Asusualinstatisticalhypothesistest-ing,thisdoesnotmeanthatweshouldconcludethattheseriesisarandomwalk.Infact,fromourearieranalysiswehavestrongstatisticalevidencethattheseriesisarandomwalk,sincethelag-1autocorrelationfortherstdifferencesishighlysignicant.AllwecanconcludefromtheDickey-FulleestisthatthereisnostrongevidencetosupportthehypothesisthattheseriesisastationaryThisisthetypeofalternativethatthetestwasdesignedtodetect.Thequestionofwhetherthersifferencehasanyautocorrelationisanotherissuealtogether,andthetestwasnotdesignedtodetectthistypeoffailureoftherandomwalkhypothesis.Inanycase,theresultsofthetestindicatethatiouldbeagoodideatodifferencethedata.Wecouldhavecometothissameconclusionbyexamin-ingtheACFoftherawdata,buttheDickey-FullertestprovidesamoreobjectivebasisformakingthisAsanillustrationofthelongtailsinthedistribution,considertherandomwalkdata(hichwasusedinthelasthandoutforcomparisonwiththeDowandDeatedDowseries.Forthisrandomwalkdataset,weobtainthefollowingregressionoutput. ResidualStandardError=0.9917,MultipleR-Square=0.982=546,F-statistic=30111.83on1and544df,p-value=0coefstd.errt.statp.valuentercept0.07710.05501.40280.1612X0.99130.0057173.52760.000ethereforeget1.53.Ifhadastandardnormaldistribution,wewouldbtaina-valueof.063(one-sided),indicatingsomeevidenceinfavorofthealternativehypothesis(thattheseriesisastationary(1)).Ofcourse,weknowthatthisserieswasinfactarandomwalkndsoitissomewhatdistressingthatwearealmostbeingledtocommitaTypeIerror.Butwhenweusethetruedistributionofunderthenullhypothesis(seetable)wendthattheactualsignicanclevelissubstantiallygreaterthan.10,althoughthetableisnotpreciseenoughtoallowustondtheOfcourse,thenullandalternativehypothesesdescribedabovearetoonarrowtobeveryusefulinawidevarietyofsituations.Often,wewillwanttoconsiderdifferencingthedatecausewehopethedifferencemaybestationary,butwedonotwanttocommitourselvestotheassumptionthattheseriesiseitherarandomwalkorastationary(1).Fortunately,althoughwewilotdescribethedetailshere,thereisasimilartestknownastheAugmentedDickey-Fullertest,whichallowsustotestan,1,0)nullhypothesisversusan1,0,0)alternative,wher0isknown.If1,forexample,thenullhypothesiswouldbethattheseriesisnonstationary,butitsrstdifferenceisastationary(1);thealternativehypothesiswouldbethattheseriesisastation-(2).Inretrospect,itseemsthattheDeatedDowseriesisbetterdescribedbytheabovenullhypothesisthanbytheonewhichwasactuallytested,i.e.,therandomwalk.Butitisneveragoodideaochangeastatisticalhypothesisafterlookingatthedata;itcandestroythevalidityofthetest.Furth-ermore,theuseoftherandomwalkasanullhypothesisfornancialtimeseriesseemswiseasagenralrule.DifferenceStationarityVs.TrendStationarityIntheordinaryDickey-Fuller()test,theseriesisassumedtobefreeofdeterministictrendunderboththenullandalternativehypotheses.Manyactualseriesdohavetrend,however,anditisof nteresttostudythenatureofthistrend.Perhapsthemostimportantissueisthewayinwhichthetrendiscombinedwiththerandomaspectsoftheseries.Inthecaseofarandomwalkwithdrifwhere{}iszeromeanwhitenoise,thereisamixtureofdeterministicandstochasticrend,theprocesshasaunitroot,andtheforecastintervalsgrowwithoutboundastheleadtimeincreases.Differencing{}yieldsastationaryseries,so{}issaidtobedifferencestationary.isthesameasAnotherwaytocombinetrendandrandomnessistostartwithadeterministiclineartrendandburyitinwhitenoise:.Thisisastandardlinearregression(trend-line)model,whiccanbeanalyzedwithoutusingtimeseriesmethods.Iftheparameters((])areknown,theheforecastofissimply).Ifthearenormallydistributed,aforecastintervaldddddisgivenforlargezvar.Thewidthofthisforecastintervaldoesnottoinnityastheleadtimeincreases.Moregenerally,anyseriesformedbyaddingadeterministiclineartrendtoastationary,invertible,zeromean"noise"series{aidtobetrendstationary.Trendstationaryseriesdonotcontainaunitroot.Thewidthoftheirfore-castintervalsforlargeis2zvary,whichdoesnottendtoinnity.Trendstationaryseriesaredddddnotdifferencestationary,sinceitcanbeshownthatthedifferenceof{}isnotinvertible.Sincethrendstationaryseriesobeysaregressionmodelwithautocorrelatederrors,wecanusegeneralizedleastsquares(apopularlinearregressiontechnique)toestimatethetrendandassessitsstatisticaHere,weshowhowtotestaspecicformofdifferencestationarityagainstaspecicformoftrendstationarity,usingavariant()oftheDickey-Fullertest.Thenullhypothesisisarandomwalkwithdrift(whichisdifferencestationary),versuttt }istrendstationary,andthe"noise"termis(1).Ifweput0,thenwegetthtrend-linemodel.Itcanbeshownthatunder}canbeexpresseda,(2)100111areconstants.(Specically, ).)IfweputhenEquation(2)reducesto.e.,arandomwalkwithdrift.Thus,wewanttotestthenullhypothesisthat1versusthealternative1inEquation(2).Toperformthetest,werunanordinarylinearregressionofthe"dependentvariable"{}againstheexplanatoryvariablestime()and{},togetherwithaconstantterm.Theobservationson{are(x,...,x),theobservationsonare(2),andtheobservationson{}arx,...,x).TheteststatisticisthestandardizedestimateofinEquation(2),AlthoughthismayappeartobethesameastheordinaryDickey-Fullerstatistic,itisactuallifferentbecauseofthepresenceoftimeasanexplanatoryvariable.Thepercentilesofunderthenullhypothesis(1)aregivenintheattachedtable.Thenullhypothesisisrejectedifislessthanthabledvalue.Thepercentilesofareconsiderablylessthanthecorrespondingpercentilesof,indi-atingtheeffectsofincludingtimeasanexplanatoryvariable.Forexample,theasymptotic01percen-tagepointofisat3.96for,comparedwith3.43for Thelog10Dowdataseemstocontainatrend,butwhatisthenatureofthistrend?Woulditboreappropriatetomodelthisdataasarandomwalkwithdrift,orasatrendlineplusstationary(1)errors?Inouroriginalanalysisofthisdata,wersttriedanordinarytrend-linemodel,andfounhighlysignicanttrend.Wethenquestionedthevalidityofthisnding,sincetheDurbin-Watsonstatisticshowedstrongerrorautocorrelation.Wecouldhavepursuedtheuseofatrendstationarymodei.e.,lineartrendplusautocorrelatederrors)forthisseries,byre-estimatingthetrendlineusinggeneral- -10-zedleastsquares.Thisstillwouldnothaveansweredthequestionastowhethersuchamodelismoreappropriatethanarandomwalkwithdrift,however.Toaddressthisquestion,wenowruntheTheregressiondescribedaboveyieldedResidualStandardError=0.0147,MultipleR-Square=0.9977N=546,F-statistic=119357.4on2and543df,p-value=0coefstd.errt.statp.valueIntercept0.02070.01301.58850.112ime0.00000.00001.35080.1773x.lag0.99230.0054182.19970.000hereTimedenotes(2547),x.lagis(x,...,x)andthedependentvariableis15462547x,...,x).Theestimatedcoefcientofx.lagis9923,and0054.WecalculateSincethisisnotlessthanthetabledvalueof3.42,wedonotrejectthenullhypothesisofrandomwalkwithdriftatlevel05.Infact,examinationofthetablerevealsthatourobservedisnotsmallaall,witha-valuearound.9,indicatingthatthereisvirtuallynoevidenceinfavoroftrendstationaritorthisseries.Thisdoesnotmeanthatthelog10Dowdataisactuallyarandomwalkwithdrift.(Indeed,wepreviouslyfoundstrongevidencethatthedifferencesofthisdataarenotuncorrelated,evenhoughtheyseemtohaveanonzeroexpectation.)Itjustmeansthatwecannotrejecttherandomwalkwithdrifthypothesisinfavoroftrendstationarity.