Applied Time Series
Applied Time Series
|
|modellinq and anal yts time function ond fiting ARINA modd
Lerles dada 8)Fore casting
9)ting ProCRr in freguen
CouRSE DUTLINE domoinY
Introduction and characteristiar af
time. sories General
Componerl time uerie ,uimple |Remark:
descriptive techn iques and he uniguenecc ime serier
meacurpmert rend and ueapnal. doeta is h Hh data ic orrelae
3.Auto covariance, auto corre lation and and can be ucedto orecast the
corrp logram. data
Hture valuer he given
4Rerid onalyri, Ceries.
-ler rancomnecr
Jample artocorrelation junction tar INT RODUC TLDN.
Jurning point test |Timecerie i a collpclion
- Kendallr tet lobservati ons made cequentially
5Pro babilty tet for t imp eries in ime.
- Aationarty: is a relaiDnchip betuepn a
Casuality: |varioble« one uhich mud be
Inverdibility Hime.
hte nore.
-Rondom walk.
6Linear filtersi moving average ,
Exampletime
lime
orie
Serie Occur in many ielde
.
aut oreqresrive,ARMA ARIMA models.ranging rom eco nomjcs 4o engineering
Hhe ueri, fadors eg trends and
- Share sometimer be eanl
reasonaldy can
prices onuCcea Ye days sepn from cuch plot
Currency
exchange. Ho-entthe pl onabler one to
EpOrt {alc in GUcretivo momh look or
un ucual obrofvalion 'e
incomp in Cuccersiye oullier:
Averag
month
Company prete in Cuccksrire a) ExplaogteoExploratiun
or
khen obcervall onc are taken on
) yearu
Phycical dime ceIBL,
|more variables, H may be poati ble
Many time serie octur
phy<ical science
in the
in
Ho urp he vari ion in on
CPrier to explain the
pt ime
varioti on in
i
particulary fer
meleorrlog4 ,marine ccienceS and andher time reries
geo phyia: Thic lead to a beHer un dortand
lock
Rainfall on Cuc¢ertire hot genoroled
Anrtemp. in cuccausiYe
ng
dayhous, Hhe 4h Procpd to Trends
|
he time domain.
dercriber he evolution
aml4inqdime decodkery be
)
cCries fanges
rom relaively
Horward ciragh
decriplive melbodu t
Aed ierpnti al ophicla Cyclic vaialivn
echnique 1hece are vari oti ons in time
e conider dhe cinple
darcriphi ve Veries olh period accillation tme
|Aechniquer
nol eq uol to one year
Examples include, rt
COMPONEN TS oF TIME
v0r1afing
TradHionol m-lhodl
SERIES. - baily tempe rcture.s in Mombace
peig
|
conetant or change very These flutuotion are due to forces
gradua or ner a Larae Periatos beyond hismsn
ime rnntrol.
Eg; Eathquakes, crikes, epidemics
Apart from upward and dow nwa rd c
Hen dencies come tim e cerles have
ralue lueluing around -a tornetarl |Problens n dume serier
|which deer chorge uorth tme . Dldentiy the compones
Anal4fi
at work.
a)\sclate, study, analyse and
measure he
components
in
dependertly
SlatitieatHeehmque for naty
MeacuremeIrs drend in time
Ceriec data
edhed
The SRm)-Qvergges
D bivde
procedure a fl louoc,
the whole data cet into two
parts wnd tiMe
Compule the arrthmedic m eqn qor Advartag es'
Pach pard and plot there two
OVeroges 0goind he mid-peimtr
e rerpethve periods toverpd
0jeive
biskdvantaqe;
-
and comprehensive
Evample
fru
wqy dealing wrlh
-seasona l data which cprlain
01
lorl early
asimpleubdiox do the
dr
data.
Conaider the 1pllooinq
€et gres 1Dr lhere are variou upar
Curver
compony X Hhat can be uspd fo describe
Ahe drend in a qiven dorta s
SalesYear et
3)Groth curves
1987
Eslime cala in 1q19, |988 and
a+bc Modhed exp curye
Log
1989.
X Gompertz Cc ve
duetencer bhen
. Qa, - au -a
ExoMple,
ve Let Ux: aot a,x+ aax°
Ux - - Ux Ux
eer exicte
0- (AU.)
0ooroximahionu at he =A la,+201X +a.)
pe LurvP b be uPd con be made -0a
|by ue adheore m baied 1nte U (A U)
dif4 erentes. - A (20s)
Let ,, Ka
be the cbserved
valuer arandom yarinble at hmel
1e second
cferpnce
dere nce x A(X-
=
(X
x)
\apolynomial
Uy
degroen
-
Ak+- A
X+a-X,-
:a-3X1
In
Condant r>n
similarman per,he qro wth
Hqher order
be derined.
dferenceur
t| Curve can be aPpromled
can smilorly Conclan the
)X
Nodyed
rains
by he
exponertial
,
X-1
-9
|)lag Gompert z
-5
54
-13 |3) () Lgieic curye
35
Elample,
Let Ux= ao t
Method e
Xa
Leatquace
ttngastaighd line
= atbt )
.
a,
Then S-2(-a- b)
: Qota,x ta, - Q, -Q,x. ds -aŽ (x4-a -b)
U - (U.) as-at(u-a-4)=o
Ue - Ux t:
{1 - A + 8 2°
n24"-(21)
Similarly
Ea9ople,
b=ntK - The 4able belaw rhows the 1gure4
n13- ()?
ppoducrinihouupnd
Thace Year19c31965 964 1961 1968|11¢9972
which
qre ihe normal eualionr
a and b qre derived romrcd|l| Sa| 94| 5 98
hence;
X -a tb4 hich linear i) EA a trajght line by melhod
lead Gquarer and lobulate
HlB:The ame procedure can be he trend value
uKed to tit he and degree u) Eiminte he Arend.
trend
S-(X- 96-a,t-a1)
) Whe
What
produ
) Ectimate the
eti
Componentr
Seriar are left?
Ahe monthy increare
on
pr oduction
+he time
in
in the
197d
-2> 4-0-qt- 9.)-0[
Lei he Arend eqn. be
AS -2 2tlXa, -91-a,)-0... X. -a+ +e
i
middle
, celec t Suh
""
2t-a. Ztta.24? + a1 ear X|{ |x|0tl
0
There 1465 88 4
76s2.88 even,
44 -94 85 07 we
middle
1961 85 87-120
|1468 Sq- +5
ondolpnecualecue:
X4 : ab'te |1969 98
celed
poirte
492 to
Log legatt legtt lege be
I49 orther
2b
Led z 2 (9 - - B) s/2213
a- 86 1
G13-1arb
I99 at 5\b divided
chall cn der
on 4tting
e the curve
nelhd
and we
3
GI3- 1a
1390:1at35
b
-
celkcted
x,, ,a corrpo
pots
om vaue
to 3
4.,
7$0
356
35Ç b
350
|eguidsl
ta and 3 cuch hal
b2 1910
G13-7Q+2 19t0 |Subettuting 4,deta in l0, w
get
X,=a tbe
Xa:41bet
Xa a 1 be J
= 812G 219t
X,
Auming addi4ivp mpdel time
Ceripc wp mi nate lhp trend valuer
eli 2
{rom cubtracti ng then -from he
9iven yalueu;
() X.af fed
buthe qradien he line nnce
+ve ,{he yeorly role in cret Sabtting3
-
prodution 19.
K3- Ka
Value
X4 :81 correrponding
26 4 2 19l3)
to I90;
Subtitun
fquot ron
bhcinany
wP qP
93 63
Assignment
The follewinq talle hous million
mguep-Couugr
1429Lgkg |49lq59 I769 1979199 '
5 |25,|m92L9l2cll43 9
Pop
)Y: ab' t e' the trend
Log Log clg b
ond tabulate Let A: Log a
) value
Estimte he populati on in 1999.
log
B: Lg
Bc
b
K
Complte a Syear Moving g
I00
e
K
100
I00I00
I04
C= e 2+
Eqn
104
(iv) is agaim in4he orm
a modyi ed curve ond so
exponenlial I0D o0
Hhe previouc method can be uted to
|evaluate he paa MPlerr n vol ved.
19 0D
|Mehodeun9averog
|Moing vg eittn misaseries ople
| fucresrive ave10ger or arihmetic |Arsuming
|edrend ba4-yr cy cle, calculate
means of m Aerms Glaring wth he he method movim
1jnti second ,1hird dernmu etc
11 moving g the meon y1he-finl
avq
oo
4olagdta
ronm he
ae11a211149s19
m ers
the qcrage -16e econd
m erm elartinq fron the seco nd 551511 586CI2.
Her m to (ma1erD +Yua A- Certeed.
i f
middle value
m
morin g
odd, ie
u
ohe
m:aktL, lhen dhe
placed
dime
agons he
inder val H
2
3 518
515
490
5005 495. 15
CoYers ie 1: ktI 4 467
506.15 503-625
d Pven, ie m:aK,1hen {he 5 502 516-5
ird moving avg K placed tlun 054D 5425 524-6
tuo middle valuer tho tme 557 5635 558-O
iterval it cover ie : Ok andtor l. 8 571 58| 512:5
5
However, 1he movirg avg dops nol 9 586
cojncide wth the oriqidal ime pericd I0 Cia
ir
lineqr
a erier H)
lingar or
Ccllaery mouement
Ahe dala are feth
regulr in perid
and ampltude
i) lhe ren d is nol linear,
correspondr to middle lerm
Ahen the moving
a bias in he trenqvq intart
value
The 4ormula (inds trend values
A
operations with
rom the
avg
o ',3" e
can be
erm ExAnple
talculote he irond
|1ollpuomg 4ime uerier by a A
val uer he
eharaderized by the ertend m and where a linear polynomial is
pthe deoqree he Hted to ccHeauve e-
We wre m.a s ie s, 1.
3
5ppint
5
X143819.2C1&.4317 26C-S45 12
Let a. at . Teol.7lr7c
9 1
2 10Jn
1
and
: 2K+I tr ms be
n5 k+
Xx
e
,, x-a,
4= -K2,-,0, ,2-K.
X-,X0, , ..X 5
Putding -o in (i)
ur
norgal
22oea24
di wr
0 ao
are,
and a ,lhe
I8. +3
4-K 4:
for -4 ard m.a)
I813
(i) 15 49
The (oK)(ak-)(3k13
1 ind moving avg Coinside a le
lo ermate do, ) Cu= C-4 The weighs are
0grPguire he ymmeric
19llouoin g
24-Aota,
normal equalions: R) Sum o weiqhtr Ik unty = 1
t a 2°
Exasple
2t0 2 Suppse we have ls,alfindihe
2
i.e odd pouer 1 |weg
Hence ) m5 =aktl
K=a
a, °.8
Weghsi
21°- ao 24.+a 4, (íu)
C- a, C-1 Co, Ci, Ca
Ca 3a (4) t3(a)- - s-a)2)
l(41) (4-) (4+6)
3
|
21' 1+3+...1 n
:nlnt)(2nt)
Ca-C- 35
- nln)anti) 3n°gn-1)
30
Ls,al ,,,
35 35 35 35 35
but,
Ls,al
X1-
avg
,,.,
4he
dh uil
30 implia hol the trend val vet
Bt(knlakal zi"
Ihis
1he d Ftem K.
35
30
Consider dhe follo wing reries
36
1
e+ 12r c|elhed meauring-Eaonal
)
3) Rotio to moving
COM put e Ahe,irend volue ot overggt
t:4 relative methd.
5,]: 1-3 12
4) Link
35
|DMelhad impleauETaget
Trend yalue a {9 tepr n volved;
as
3
|(-gx) 162x8)1 (i1ra1) t
L (12xe+)-
(ax12s)
t
Arranqe -he dala Ly Parr
Ahe year
t16 06r7c8-315|) CoMpue dhe averagerfer hece
35
porl he 4eor ie
and i:1,a-+
N,i:2.
for mehly
Jor quterly dola:
ti) Coupute e combined me an
m2Kt| p=3 Momihly
Concider the polynomial
¿isQuarterly
and
i) 9btain cearonal indicec for
)
Normalequalions arp, dfferent partr the yeQr by
2 (art)., a248, a)
epreusing {he ovg. 1he part
214 -a, 2+ ' 0, 1he a ya age le
combin ed meao
0
S
Mo y
Since Quore .
2'0 for inodd 14 s4he cimple allThe
|Uolving for ae usng o) ond ui) whic melheds.
are he cau e ens used in case 2 Houe ver, based on {he
Cm,a] = [m,8] acsumplion that dhe dala doar
(-a .2,11, 12,-3): ls,31 nd conlain any drendtyclic
|
eect and rreqular comonete
aro removed by averag ng
MEAS REMFTS OF SEASOH AL |here acsumplions are nel in
FLVCTVATIONS qeneral Arue since masl econ omid
4 ir impo rto nt to study Geasonal time ceries have trend.
poHernc co as |An index shous increare or
. decrease
i
leterminp dhe efece úoaco |in aalven quantity
On the rize 1ho variobler.
) To dtudu ol
Nolue
should be he
he
variable
was no seaDnal variation
To wolch dh e value
For ihe Gudy
there
Exauple
The dola
|9uerly
53
| |
40r
55 595
cemedit Jo
4o_
& + +
a
quoery or cemi-annually.
1910 56- 59D G G G53 +
4
-53 95
-4S3159.5ts52tC5:3_ Etaple
Calculoe lhe seascngl varialion
ralo to rend melhad.
3
19 34
:52.9 1912 40 St
1913 5t
S = 48-QS x I00 97 8o 9a
52-79 |beerm,ne the trend values 4i
o3 7.
lead 4ocord
1970
t49 4X,
3a
S
Ioa.7
8
59-19
. 1RO
:a+bd
Ratic do dcend meho ŽX4 : na t b 24
Thic method
improves melhod he
Gimple averq 9er and i baued
on he asumpti Dn that ceasonal a 80 -5a Q5Ç
Yariodion tr
any qiven monh,
|9ulpr or par thE(eor o a i b- |a
|cond and 1ador thetrend.
|Grp involved , X4 56 +124
0
)
Oblain he drend values by
leat a9 mhod
Elimin ade the trend by Prprecing
Ahe oriqunal a4a
valu e.
Assuming
4hase ls
he irend
the
will
. aa
1910
multiplicalive m odel, 11
Conlain
b- 12early increamerl
5 |3D5
54 5 551.5 Go 5
30
4t
increampnt
s),e3)
33536
48 5
45.5
5
ear
1970
I09 131 5 1015 93 I where
S€.I I22.4 l09.9
|1a1 71.1 I06 34 0-3 n-i
14 73 85 |43 97 8 85-5
105-5
Ava. |2 78 |16.0 I09 12 81-3D. Snce T measureu tbe corr Cospficeal
| Tol arq: 0.20
|lun Guccecsive ohservothonu
Llq9 1, t ic called teriad
Core lolion coeficiem or
Adjurted ag,S k. aulo correlal ton coefIcIend llag1
K400
Totol
avg here
Adjucled
401
S:q
29
18 xo.49&s
|Thug ,T 12(-R) n-I
(X -)
92. 43
S3 ioR.92xo.9968 n
-I0259 Yn a-x)
87 3R XOq62.
67-04 Var (X4
S,- 1O0--152, 11 s8,259, -12 96 n(- )(Xit -)
PROBABILTY MODELS oE IIME 2(x-x)
SERLES Lim
Jhese are used to analyse time n-i
A
) (ta )n.s
Cimlor idpa con be applhed to see
whether succerIVe oerer vot ions are
,Xn) xn-1) pairs
|lage
Th
)(h-x)
bulne
correlatpd.at
|lo T
wn.
be the
o brErvation
1 distance apart
correlalion
a 1drance
coeficie
part
|Aulocorrelolicn
lpn ortlpn
coeficeml
a;
logb
|(Lag 1).
Var(X)
Cov( X4r) ECr, Xt)- E(x)E
ueesclatienacily
(ir)Ame' eier u
clnd talicnay
doe y1he joint
Cov (xx):E(x)- tGa)EK) dutriGrlio
E (x)-E )]" Same 1in dlbutin o
- Var(x) ,a., X4n th,Y1 l.
and h
covariance
mean
is
conctant and
no
dt
on nciondors
bul bnly de pend
|deprnd
on he dtance on lhe var abler
e
E Ce,) E(e.) =o
var (e) : E (e.)? - [E (e)]
E(e)'- 6 2tca-n)
Linpar Filter.
biffe rencin q FHer
14 can be ihpd do convert one time|H 1Sa cpecIol dype Her
|cerie ino an
|1ine peEator
ar
her b a ewhich ie ucefulfer renmo
Hhe trend Snpl by deenl
a qven ceries until
,3
uhere is the oriqinal 1i me
Example
Serie.
afbt +e,where e ore
:e-q:
Suppare
cor ti sin
|
id va lo,)
1}: di^t-)
E4):atbt
:
|xa+ ,€, [o.bi-) ,ea]
- Such a çunion ic he outocorrelHion
E
Var
(1,) -b
(Y) t8
ne dependemd 4
unrtion (Arr)
p (h):
Coy
()
5
(,)
cov
Cov (, ,
(, Ke)
26ndependent 1 Nor
|Aulecrrre lolicn coficienls rel
:arb1'+e -
tc-o
(.
latba-),c
he probnbildy model hat
|gencraled he dola
Given he obrer valien.r ,xa
1b 1, e-R -b41 -e', o-C- on a dicero{e -ime oric. U
Can fofm (n-) par cbcervatien
E(Z,)
b 20-c*e -P -L2c(t-)-(+
eC-te-at2C
2C Contant
he
where
and
(
corre lelion ce ficient bton
Zi ie
(ctationary
)
general, if the trend is a polyn oma r me asurer -lhe corre lation blon.
dpgree n,lhen we dterncE the |ucrpcuive obrervation. and -
Series n imnpc in ordor Ho romcy e I Called Ahe comple atocorrelaton
Hhe Irend lag 1or firc seal cnrrelollon
|bydiyferenting
AuIOCavaRiACE AuIocCRPELAILOt
z(.)" (xt-
FUHCTIDNS. r. (i)(-)
log
,
lera a ionary Procpoc , we have
neled tha eor (xth)dependr on |l a imilar manner, autprerrelcn
cocHieied lag.h
funcdion
6(0)
Td cempore the baric properlier
Hhe time series, iH is oHen weful
to have a untion hal ic not
inluen tEd by unit 4 reaurpmerdl
TuE sERIES MOD ELS
1hle noise
iu a purely
lhic
rande m procer
A discrpdp ctochadic Process (Time = u?. u? 6
Random ualki
urpece a random
sequence
ducrete random
r lh e a
|variabler
Proc mean and Yariance c'
Indegender
e
E(1]- E(e) - > Concat