UCM Procedure

Modeling a Cycle

A deterministic cycle psi Subscript t with frequency lamda, 0 less than lamda less than pi, can be written as

psi Subscript t Baseline equals alpha cosine left parenthesis lamda t right parenthesis plus beta sine left parenthesis lamda t right parenthesis

If the argument t is measured on a continuous scale, then psi Subscript t is a periodic function with period 2 pi divided by lamda, amplitude gamma equals left parenthesis alpha squared plus beta squared right parenthesis Superscript 1 divided by 2, and phase phi equals tangent Superscript negative 1 Baseline left parenthesis beta divided by alpha right parenthesis. Equivalently, the cycle can be written in terms of the amplitude and phase as

psi Subscript t Baseline equals gamma cosine left parenthesis lamda t minus phi right parenthesis

Note that when psi Subscript t is measured only at the integer values, it is not exactly periodic, unless lamda equals left parenthesis 2 pi j right parenthesis divided by k for some integers j and k. The cycles in their pure form are not used very often in practice. However, they are very useful as building blocks for more complex periodic patterns. It is well known that the periodic pattern of any complexity can be written as a sum of pure cycles of different frequencies and amplitudes. In time series situations it is useful to generalize this simple cyclical pattern to a stochastic cycle that has a fixed expected period but time-varying amplitude and phase. The stochastic cycle considered here is motivated by the following recursive formula for computing psi Subscript t,

StartBinomialOrMatrix psi Subscript t Baseline Choose psi Subscript t Superscript asterisk Baseline EndBinomialOrMatrix equals Start 2 By 2 Matrix 1st Row 1st Column cosine lamda 2nd Column sine lamda 2nd Row 1st Column minus sine lamda 2nd Column cosine lamda EndMatrix StartBinomialOrMatrix psi Subscript t minus 1 Baseline Choose psi Subscript t minus 1 Superscript asterisk EndBinomialOrMatrix

starting with psi 0 equals alpha and psi 0 Superscript asterisk Baseline equals beta. Note that psi Subscript t and psi Subscript t Superscript asterisk satisfy the relation

psi Subscript t Superscript 2 Baseline plus psi Subscript t Superscript asterisk 2 Baseline equals alpha squared plus beta squared normal f normal o normal r normal a normal l normal l t

A stochastic generalization of the cycle psi Subscript t can be obtained by adding random noise to this recursion and by introducing a damping factor, rho, for additional modeling flexibility. This model can be described as follows,

StartBinomialOrMatrix psi Subscript t Baseline Choose psi Subscript t Superscript asterisk Baseline EndBinomialOrMatrix equals rho Start 2 By 2 Matrix 1st Row 1st Column cosine lamda 2nd Column sine lamda 2nd Row 1st Column minus sine lamda 2nd Column cosine lamda EndMatrix StartBinomialOrMatrix psi Subscript t minus 1 Baseline Choose psi Subscript t minus 1 Superscript asterisk Baseline EndBinomialOrMatrix plus StartBinomialOrMatrix nu Subscript t Baseline Choose nu Subscript t Superscript asterisk EndBinomialOrMatrix

where 0 less than or equals rho less than or equals 1, and the disturbances nu Subscript t and nu Subscript t Superscript asterisk are independent upper N left parenthesis 0 comma sigma Subscript nu Superscript 2 Baseline right parenthesis variables. The resulting stochastic cycle has a fixed expected period but time-varying amplitude and phase. The stationarity properties of the random sequence psi Subscript t depend on the damping factor rho. If rho less than 1, psi Subscript t has a stationary distribution with mean 0 and variance sigma Subscript nu Superscript 2 Baseline divided by left parenthesis 1 minus rho squared right parenthesis. If rho equals 1, psi Subscript t is nonstationary.

You can incorporate a cycle in a UCM by specifying a CYCLE statement. You can include multiple cycles in the model by using separate CYCLE statements for each included cycle.

As mentioned before, the cycles are very useful as building blocks for constructing more complex periodic patterns. Periodic patterns of almost any complexity can be created by superimposing cycles of different periods and amplitudes. In particular, the seasonal patterns, general periodic patterns with integer periods, can be constructed as sums of cycles. This important topic of modeling the seasonal components is considered next.

Last updated: July 09, 2026