Professional Documents
Culture Documents
Don Percival, Applied Physics Lab, University of Washington Q: what is spectral analysis? one of the most widely used methods for data analysis in geophysics, oceanography, atmospheric science, astronomy, engineering (all types), . . . method is used with time series let xt denote value of time series at time t; for example, x10 = 43 = temperature at GHS at 8AM on 10th day of 2003 four examples of time series x1, x2, . . . , x127, x128
4 xt 1 6 12 xt 10 8 0 64 t 128 (a) 15 0 15 7 (c) 0 7 (b)
(d)
64 t
128
Q: how would you describe these 4 series? spectral analysis describes xts by comparing them to sines and cosines
1
2 u
4 0
2 u
2 let u = 2 128 t for t = 1, 2, . . . , 128 2 2 t) and cos(2 128 t) versus t plots of sin(2 128 2 0 2
64 t
128 0
64 t
128
can interpret
2 128
64 t
128 0
64 t
128
if k is small, sine time series is said to have low frequency if k is large, sine time series is said to have high frequency
k amplitude (maximum range of variation) of st = sin(2 128 t) is 1 7 7 t) and 1.5 sin(2 128 t) plots of 0.5 sin(2 128 2 0 2
64 t
128 0
64 t
128
conclusion: by summing up lots of sines and cosines with dierent amplitudes, can get articial time series that resemble actual time series
4
above called Fourier representation for a time series (named after 19th Century French mathematician) allows us to reexpress time series in a standard way dierent time series will need dierent ak s and bk s can compare dierent time series by comparing the ak s and bk s
Gory Details: I
Q: how do we gure out what ak s and bk s should be to form a particular time series? answer turns out to be surprisingly simple: 1 ak = 64
128 128 k xt cos(2 128 t) t=1
t=1
to see why this is reasonable, consider the following: let y1, . . . , y128 & z1, . . . , z128 be collections of ordered values let y and z be their sample means (i.e., y =
2 2 and z be their sample variances: i.e., let y 128 2 y = 1 128 t=1 1 128 t yt
etc.)
(y t y )2
y )(zt z ) t yt zt = , y z 128y z
where 2nd equality holds if z =0 measures strength of linear relationship between yts and zts (1 1) relationship is strong if
t yt zt
is large in magnitude
ak is thus related to strength of linear relationship between k =0 yt = xt and zt = sin(2 128 t), for which z
6
Gory Details: II
to summarize how important frequency xt =
k 2 2 let us form Sk = 1 2 ( ak + b k ) k 128
is in
if frequency if frequency
k 128 k 128
Sk =
k
1 128 t=1
2 (x t x )2 = x
i.e., spectrum breaks sample variance of time series up into pieces, each of which is associated with a particular frequency spectral analysis is thus an analysis of variance technique, 2 in which x is broken up across dierent frequencies
(d)
64 t
128
(c) Sk
(d)
0.25 k f = 128
0.5 0
0.25 k f = 128
0.5
uses include testing theories (e.g., wind data), exploratory data analysis (e.g., rainfall data), discriminating data (e.g., neonates), assessing predictability (e.g., atomic clocks)
8