手机版

Forecasting Financial Time Series with Support Vector Machin(3)

发布时间:2021-06-05   来源:未知    
字号:

tangentdistance[24],timealignment[25]–[27],ordynamictimewarpingkernels[28].Alsoprobabilisticmodels,suchasHMM8hiddenMarkovmodels)andGMM(Gaussianmixturemodels),thataretrainedonthetimeseriesdata,canbeusedincombinationwithSVM.Theso-calledFisher-kernelshavebeenwidelyused,e.g.,forspeechrecognition[29],[30],speakeridenti cation[31]–[33],orwebaudioclassi cation[34].[35],[36]usedanothersimilaritymeasureonGMM,theKullback-Leiblerdivergence,forspeakeridenti cationandveri cation.

Altogether,wecanstatethatdynamickernelfunctions[20]incorporatetemporalinformationdirectlyintoansupportvectormachine’skernelanduseitforcalculatingthesimilaritybetweendifferentinputtimeseries.Therefore,itbecomespos-sibletoalsodetectsimilaritiesbetweenmisalignedsequencesoravaryingfrequencyofthecontainedpatterns.C.DynamicTimeWarpingasKernelFunctionforSVMInourwork,weusedakernelbasedonthedynamictimewarping(DTW)method,whichhaspreviouslybeenutilizedforhandwritingandspeechrecognitionin[27],[28].Wealsorelyonownresultsdescribedin

[37].

Fig.2.ExamplefortheresultsobtainedwithDTW:Thecorrespondenceofpointsoftwosimilartimeseries(oneisdrawnwithaconstantoffsethere)isindicatedbyconnectinglines.

TheDTWkerneltakestwoinputtimeseriesandcalculatestheirsimilaritybydetermininganoptimalso-calledwarpingpathconsistingofpairsoftheirrespectivepoints.Eachpointofoneseriesisassignedtooneormorepointsoftheotherseries,obeyingthreeconstraints:

The rstandthelastpointsofbothseriesareassignedtoeachother.

Allassignmentsrespecttheseries’temporalorder.

Everypointofbothseriesbelongstoatleastoneassign-ment.

Thewarpingpathwiththeminimumsumofdistancesinitsassignmentswillbechosenastheoptimalwarpingpath.Otherdynamickernels,suchasthelongestcommonsubse-quence(LCSS)kernelwepresentedandinvestigatedin[37]followasimilarapproach.

IV.TESTSANDEXPERIMENTS

A.PreparationsandDataSetConstruction

Forourwork,weusedtheSVMroutinesfromthesoftwarepackageLibSVM[38].Theimplementationofthedynamickernelfunctionsfollows[37].

Tocomparetheforecastingaccuracyofthedifferentmodels,avarietyofdifferentmeasuresareusedintheliterature.How-ever,[39]and[40]showthatallofthepopularmeasuresareeithernotinvarianttoscalingorcontainunde nedintervals.Therefore,weusedthemeanabsolutescalederror(MASE)asproposedby[40],whichscalesthemeasurederrorusingthemeanabsoluteerrorofanaiveforecast(alsocalledrandomwalk).Thisforecastingtechniquesimplyassumesthattheresultforthenextpatternequalsthepreviousresult.

IfYtdenotestheobservationattimet∈{1,...,n}andFtistheforecast,wecallet=Yt Fttheforecasterror.Themeanabsolutescalederrorisde nedasthearithmeticmeanoftheforecasterrorsscaledbytheaverageerrorofarandomwalk:

MASE=mean

et |Y (1)i Yi 1| .

i=2Consequently,aMASEsmallerthan1.0indicatesthattheforecastingmethodperformsbetterthananaiveforecast.Appliedtothedomainoftechnicalanalysis,wecanseethatconstantMASEvaluessmallerthan1.0contradicttheef cientmarkettheory.Additionally,wespeci edthehitrateHITSofallforecasts,whichsimplyisthepercentageofcorrectlypredictedtrendsinthechart:HITS=

|{Fi|(Yi Yi 1)·(Fi Fi 1)>0,i=1,...,n}|

n

.

(2)

Fig.3.Inthediagram,weseehowthehistoryoftheFDAXwasdividedintosixdifferent,overlappingseriesofasizeof1000dayseach.Thelast250valuesofeachpart(approximatelyoneyear)wasusedtocalculatethepredictionaccuracyofthedevelopedsystemonthisspeci ctimeseries.Asaresult,amaximumnumberof750valueswasusedfortraining.

Forourexperiments,wedecidedtousetwopopularfutures:TheFDAXfutureonthestockindexDAX,andtheFGBLfutureonGermangovernmentbonds.Asallfuturespriceshaveapre-de nedenddateand,therefore,containperiodicbehaviorandpointsofdiscontinuity,thedatawasmanuallyadjusted.Tominimizetheimpactoftemporaryanomalies,we

Forecasting Financial Time Series with Support Vector Machin(3).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
×
二维码
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)