Docsity

Introduction to Spectral Analysis, Study notes of Chemistry

Toggle sidebar
bg1
Introduction to Spectral Analysis
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 xtdenote 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
−1
−6
12
10
8
15
0
−15
7
0
−7
(a) (b)
(c) (d)
0 64 128 0 64 128
tt
xt
xt
•Q: how would you describe these 4 series?
•spectral analysis describes xt’s by comparing them to
sines and cosines
1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Introduction to Spectral Analysis and more Study notes Chemistry in PDF only on Docsity!

Introduction to Spectral Analysis

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 x (^) t denote value of time series at time t; for example, x 10 = 43◦^ = temperature at GHS at 8AM on 10th day of 2003
  • four examples of time series x 1 , x 2 ,... , x 127 , x 128

4 − 1 − 6 12 10 8

15 0 − 15 7 0 − 7

(a) (b)

(c) (d)

0 64 128 0 64 128 t t

xt

xt

  • Q: how would you describe these 4 series?
  • spectral analysis describes x (^) t’s by comparing them to sines and cosines

Sines and Cosines: I

  • Q: what do sines and cosines have to do with time series?
  • plots of sin(u) and cos(u) versus u as u goes from 0 to 4π

2 0

− 2 0 2 π 4 π 0 2 π 4 π u u

  • let u = 2π 1282 t for t = 1, 2 ,... , 128
  • plots of sin(2π 1282 t) and cos(2π 1282 t) versus t

2 0 − 2 0 64 128 0 64 128 t t

  • can regard above as artificial time series: s (^) t = sin(2π 1282 t) etc
  • can interpret 1282 as ‘2 cycles over time span of 128’

Sines and Cosines: III

  • let’s add together sines and cosines with different frequencies

 first column uses sines and cosines of amplitude 1  second and third columns use random amplitudes

0 128 0 128 0 128 t t t

f = 1281 f = 1283 f = 1285 f = 1287 f = 1289 f = 12811 f = 12813 f = 12815 f = 12817 f = 12819 xt

  • conclusion: by summing up lots of sines and cosines with different amplitudes, can get artificial time series that resemble actual time series

Goal of Spectral Analysis

  • given a time series x (^) t, figure out how to construct it using sines and cosines; i.e., to write

x (^) t =

k

a (^) k sin(2π 128 k t) + b (^) k cos(2π 128 k t)

  • above called ‘Fourier representation’ for a time series (named after 19th Century French mathematician)
  • allows us to reexpress time series in a standard way
  • different time series will need different ak’s and b (^) k’s
  • can compare different time series by comparing the a (^) k’s and b (^) k’s

Gory Details: II

  • to summarize how important frequency 128 k is in

x (^) t =

k

a (^) k sin(2π 128 k t) + b (^) k cos(2π 128 k t),

let us form S (^) k = 12 (a^2 k + b^2 k)  if frequency 128 k is important, then S (^) k should be large  if frequency 128 k is not important, then S (^) k should be small

  • S (^) k over all frequencies 128 k is called the spectrum
  • fundamental fact about the spectrum:

∑

k

S (^) k = 1281

∑^128

t=

(x (^) t − x¯)^2 = σ x^2

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, in which σ x^2 is broken up across different frequencies

Examples of Spectral Analysis

  • recall the four examples of time series

4 − 1

− 6 12 10 8

15 0

− 15 7 0 − 7

(a) (b)

(c) (d)

0 64 128 0 64 128 t t

xt

xt

  • here are the spectra for these four series

Sk

Sk

(a) (b)

(c) (d)

0 0. 25 0. 5 0 0. 25 0. 5 f = 128 k f = 128 k

  • 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)