A blog by Rob J Hyndman 

Twitter Gplus RSS

Cyclic and seasonal time series

Published on 14 December 2011

These terms get con­fused all the time (e.g., this ques­tion on Cross​Val​i​dated​.com), and so I thought it might be help­ful to try to sum­ma­rize the dis­tinc­tion and some of the asso­ci­ated models.

Def­i­n­i­tions

A sea­sonal pat­tern exists when a series is influ­enced by sea­sonal fac­tors (e.g., the quar­ter of the year, the month, or day of the week). Sea­son­al­ity is always of a fixed and known period. Hence, sea­sonal time series are some­times called peri­odic time series.

A cyclic pat­tern exists when data exhibit rises and falls that are not of fixed period. The dura­tion of these fluc­tu­a­tions is usu­ally of at least 2 years. Think of busi­ness cycles which usu­ally last sev­eral years, but where the length of the cur­rent cycle is unknown beforehand.

Many peo­ple con­fuse cyclic behav­iour with sea­sonal behav­iour, but they are really quite dif­fer­ent. If the fluc­tu­a­tions are not of fixed period then they are cyclic; if the period is unchang­ing and asso­ci­ated with some aspect of the cal­en­dar, then the pat­tern is sea­sonal. In gen­eral, the aver­age length of cycles is longer than the length of a sea­sonal pat­tern, and the mag­ni­tude of cycles tends to be more vari­able than the mag­ni­tude of sea­sonal patterns.

Exam­ples

The fol­low­ing three exam­ples shows dif­fer­ent types of sea­sonal and cyclic patterns.

The top plot shows the famous Cana­dian lynx data — the num­ber of lynx trapped each year in the McKen­zie river dis­trict of north­west Canada (1821−1934). These show clear ape­ri­odic pop­u­la­tion cycles of approx­i­mately 10 years. The cycles are not of fixed length — some last 8 or 9 years and oth­ers last longer than 10 years.

The mid­dle plot shows the monthly sales of new one-​​family houses sold in the USA (1973−1995). There is strong sea­son­al­ity within each year, as well as some strong cyclic behav­iour with period about 6 – 10 years.

The bot­tom plot shows half-​​hourly elec­tric­ity demand in Eng­land and Wales from Mon­day 5 June 2000 to Sun­day 27 August 2000. Here there are two types of sea­son­al­ity — a daily pat­tern and a weekly pat­tern. If we col­lected data over a few years, we would also see there is an annual pat­tern. If we col­lected data over a few decades, we may even see a longer cyclic pattern.

Cyclic and sea­sonal time series models

ETS mod­els

The class of ETS mod­els (expo­nen­tial smooth­ing within a state space frame­work) allows for sea­son­al­ity but not cyclic­ity. For exam­ple, the ETS(A,A,A) model has an addi­tive trend and addi­tive sea­sonal pat­tern. How­ever, there is no ETS model that can repro­duce ape­ri­odic cyclic behav­iour. For ETS mod­els han­dling mul­ti­ple sea­sonal data (such as the elec­tric­ity demand data above), see my paper on com­plex sea­son­al­ity.

Cyclic ARMA models

The class of ARMA mod­els can han­dle both sea­son­al­ity and cyclic behav­iour. An ARIMA(p,q) model can be cyclic if p>1 although there are some con­di­tions on the para­me­ters in order to obtain cyclic­ity. For an AR(2), where y_t = c + \phi_1y_{t-1} + \phi_2y_{t-2} + \varepsilon_t and \varepsilon_t is white noise, cyclic behav­iour is observed if \phi_1^2+4\phi_2 < 0. In that case, the aver­age period of the cycles is

    \[\frac{2\pi}{\text{arc\,cos}\left(-\phi_1(1-\phi_2)/(4\phi_2)\right)}.\]

For exam­ple, the lynx data can be mod­elled (although not very well) with

    \[y_t = 1545 + 1.147 y_{t-1} - 0.600 y_{t-2} + \varepsilon_t,\]

giv­ing an aver­age cyclic period of 8.97. See Jiru (2008) for deriva­tions and fur­ther results along these lines.

Sea­sonal ARMA models

A sea­sonal ARMA model requires addi­tional sea­sonal terms. For exam­ple, a sea­sonal ARMA(1,0)(1,0)_{4} for quar­terly data is writ­ten as

    \[(1 - \phi_1B)(1-\Phi_1B^4)y_t = \varepsilon_t\]

where B is the back­shift oper­a­tor. The quar­terly sea­son­al­ity is explic­itly han­dled with the term involv­ing B^4.

It is pos­si­bly to have both cyclic and sea­sonal behav­iour in an ARMA model, but long-​​period cyclic­ity is not han­dled very well in the ARMA frame­work. Alter­na­tive (non­lin­ear) mod­els are usu­ally better.

Peri­odic ARMA models

There is also a class of peri­odic ARMA mod­els where the para­me­ters take dif­fer­ent val­ues in dif­fer­ent sea­sons. For exam­ple, a peri­odic AR(2) for quar­terly data could be writ­ten as

    \[y_t = \phi_{1,s}y_{t-1} + \phi_{2,s}y_{t-2} + \varepsilon_t\]

where s=t\mod 4 denotes the four sea­sons. A model of this kind could han­dle data with both cyclic and sea­sonal pat­terns more eas­ily than a sea­sonal ARMA model.


Related Posts:


 
1 Comment  comments 
  • dawoud

    use­ful article