
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Department of Statistics & Applied Probability, Center for Financial Mathematics and Actuarial Research, University of California, Santa Barbara Winter 2026 Lecture 11: Cyclical behavior, Spectral density
We observe the cyclic patterns everywhere Biological internal body clock (e.g., circadian clock) Weekly pattern (Sunday — Saturday) Bi-weekly pattern (e.g., pay checks) Monthly pattern (January — December) Quarterly pattern (Q1 — Q4) Bi-annual pattern (e.g., dentist appointment) Annual pattern (e.g., Budget, Tax return) Biennial pattern (e.g., Elections) Periodical cicadas (17 years) Halley’s comet (75 years)
Assume that U 1 U 2 are uncorrelated r.v.’s with mean 0 and variance 2 The ACF of xt t Z is given by (h) = 2 cos( 2 h) h Z Holding frequency (Nyquist frequency) corresponds to 0 5 cycles/sample, i.e., needs at least 2 samples for one cycle. Wagon wheel effect https://en.wikipedia.org/wiki/Wagon-wheel_effect We generalize the model to xt = q k= 1 (Uk 1 cos( (^2) k t) + Uk 2 sin( (^2) k t)) ; t R for some uncorrelated zero-mean random variables Uk 1 Uk 2 with variance (^) k^2 and distinct frequencies (^) k , k = 1 q.
Let us consider the sum xt 1 + xt 2 + xt 3 of series xt k = uk 1 cos( 2 t (^) k 1 ) + uk 2 sin( 2 t (^) k 2 ) ; k = 1 2 3 with u 1 1 = 2 u 1 2 = 3 u 2 1 = 4 u 2 2 = 5 u 3 1 = 6 u 3 2 = 7 ( 1 2 3 ) =
Then we define the periodogram I( (^) j ) = d( (^) j ) 2 ; j = 0 1 n 1 Recall Euler’s formula ei^ = cos( ) + i sin( ) ; R With z = e 2 ij^ n^ and (^) j = j n , we obtain n t= 1 exp( 2 i (^) j t) = n t= 1 zt^ = z( 1 zn) 1 z
because zn^ = e 2 ij^ = cos( 2 j) i sin( 2 j) = 1 for every j. Thus, with the sample average x , the DFT is rewritten as d( (^) j ) =
n n t= 1 (xt x) exp( 2 i (^) j t) for j = 0 1 n 1.
Then by the change-of-variable t s = h , the periodogram is I( (^) j ) = d( (^) j ) 2 =
n n t= 1 (xt x) exp( 2 i (^) j t) 2 =
n n s t= 1 (xt x) exp( 2 i (^) j t) (xs x) exp(+ 2 i (^) j s) = n 1 h= (n 1 )
n n h s= 1 (xs+ h x)(xs x) exp( 2 i (^) j h) = n 1 h= (n 1 ) (h) exp( 2 i (^) j h) for j = 0 1 n 1 , where is the sample ACF. We define the scaled periodpgram P( (^) j ) =
n I( (^) j )
Magnitude of a star taken at midnight for 600 consecutive days. Chapter XIII “The Calculus of Observations, a Treatise on Numerical Mathematics”, by WHITTAKER & ROBINSON (1923). ! " n = l e n g t h ( s t a r ) par ( mfrow=c ( 2 , 1 ) , mar=c ( 3 , 3 , 1 , 1 ) , mgp=c ( 1. 6 ,. 6 , 0 ) ) p l o t ( s t a r , y l a b =" s t a r magnitude " , x l a b =" day " ) Per = Mod( f f t ( s t a r !mean ( s t a r ) ) ) ^ 2 / n Freq = ( 1 : n! 1 ) / n
p l o t ( Freq [ 1 : 5 0 ] , (^4) * Per [ 1 : 5 0 ] / n , t y p e = ’ h ’ , lwd =3 , y l a b =" Scaled Periodogram " , x l a b =" Frequency " ) u = which. max ( Per [ 1 : 5 0 ] ) # 22 f r e q =21/600=.035 c y c l e s / day uu = which. max ( Per [ 1 : 5 0 ] [! u ] ) # 25 f r e q =25/600=.041 c y c l e s / day 1 / Freq [ 2 2 ] ; 1 / Freq [ 2 6 ] # p e r i o d = days / c y c l e
t e x t (. 0 5 , 40 , "24 day c y c l e " ) ; t e x t (. 0 2 7 , 20 , "29 day c y c l e " )
y = cbind ( 1 : 5 0 , Freq [ 1 : 5 0 ] , Per [ 1 : 5 0 ] ) ; y [ o r d e r ( y [ , 3 ] ) , ]
f ( ) 0 for [ 1 2 1 2 ] [why?]; f is an even function, i.e., f ( ) = f ( ) because f ( ) = h= (h) exp( 2 i h) = h= ( h) exp( 2 i h) = h= (h) exp( 2 i h) = f ( ) for every ; The inverse transform of f is the ACF , i.e., (h) = 1 2 1 2 f ( ) exp( 2 i h)d ; h Z ; In particular, ( 0 ) = 1 2 1 2 f^ (^ )d^ =^ F^ (^1 2 )^.
Let us find out the spectral density f for the white noise with (h) = 2 for h = 0 , and zero, otherwise. Thus, the spectral density is constant, i.e., f ( ) = h= (h) exp( 2 i h) = 2 ;
The white noise consists of all frequencies with equal weights (power). cf. white light contains all frequencies in the color spectrum.
To prove it, we evaluate the ACF (^) y of yt by y (h)^ =^ Cov(xt+h xt ) = j= k= aj ak Cov(xt+h j xt k ) = j= k= aj ak x (h j + k) = j= k= aj ak 1 2 1 2 e^2 i^ (h^ j+k)fx ( )d = 1 2 (^1 2) j= aj e 2 i^ j k= ak e^2 i^ k^ e^2 i^ hfx ( )d = 1 2 1 2 e^2 i^ h^ A( ) 2 fx ( )d and we identify fy ( ) = A( ) 2 fx ( ) ; [ 1 2 1 2 ]
Thus, for the causal ARMA (p q) process xt with (B)xt = (B)wt , t Z and the representation xt = j= 0 j wt j with (z) = (z) (z)
j= 0 j z j (^) z C j= 0 j the spectral density function fx is computed from the spectral density of the white noise wt , i.e., fx ( ) = (e 2 i^ ) 2 2 = (e 2 i^ ) 2 (e 2 i^ ) 2 2 where (z) = 1 p k= 1 k zk^ , (z) = 1 + q k= 1 k zk^.
The spectral density of AR ( 2 ) process xt xt 1 + 0 9 xt 2 = wt ; t Z with (z) = 1 z + 0 9 z^2 , is given by fx ( ) = (e 2 i^ ) 2 2 = 1 e 2 i^ + 0 9 e 4 i^2 = 2 2 81 3 8 cos( 2 ) + 1 8 cos( 4 )
! " arma. spec ( main =" White Noise " ) arma. spec (ma=. 5 , main =" Moving Average " ) arma. spec ( a r =c ( 1 ,!. 9 ) , main =" A u t o r e g r e s s i o n ( 2 ) " ) arma. spec ( a r =c ( 1 , !0.5 , 0. 0 4 ) , ma=c ( 0. 5 , 0. 2 ) , main ="ARMA( 2 , 2 ) " ) arma. spec ( a r =c ( 1 , !0.5 , 0. 0 4 ) , ma=c ( 0. 7 , 0. 5 , 0. 3 ) , main ="ARMA( 2 , 3 ) " )