430 likes | 438 Views
Learn to analyze Power Spectral Density of time series data, practical applications, and theoretical concepts in MATLAB. Understand stationary properties and spectral analysis techniques.
E N D
Environmental Data Analysis with MatLab Lecture 12: • Power Spectral Density
SYLLABUS Lecture 01 Using MatLabLecture 02 Looking At DataLecture 03Probability and Measurement ErrorLecture 04 Multivariate DistributionsLecture 05Linear ModelsLecture 06 The Principle of Least SquaresLecture 07 Prior InformationLecture 08 Solving Generalized Least Squares ProblemsLecture 09 Fourier SeriesLecture 10 Complex Fourier SeriesLecture 11 Lessons Learned from the Fourier Transform Lecture 12 Power Spectral DensityLecture 13 Filter Theory Lecture 14 Applications of Filters Lecture 15 Factor Analysis Lecture 16 Orthogonal functions Lecture 17 Covariance and AutocorrelationLecture 18 Cross-correlationLecture 19 Smoothing, Correlation and SpectraLecture 20 Coherence; Tapering and Spectral Analysis Lecture 21 InterpolationLecture 22 Hypothesis testing Lecture 23 Hypothesis Testing continued; F-TestsLecture 24 Confidence Limits of Spectra, Bootstraps
purpose of the lecture compute and understand Power Spectral Density of indefinitely-long time series
Nov 27, 2000 ground vibrations at the Palisades NY seismographic station time, minutes Jan 4, 2011 time, minutes similar appearance of measurements separated by 10+ years apart
stationary time series indefinitely long but statistical properties don’t vary with time
assume that we are dealing with a fragment of an indefinitely long time series time, minutes time series, d duration, T length, N
“Power” T 0
Power T 0 mean-squared amplitude of time series
How is power related to power spectral density ?
write Fourier Series asd = Gmwere m are the Fourier coefficients
now use coefficients of sines and cosines coefficients of complex exponentials equals 2/T Fourier Transform
so, if we define the power spectral density of a stationary time series as the integral of the p.s.d. is the power in the time series
units if time series d has units of u coefficients C also have units of u Fourier Transform has units of u×time • power spectral density has units of u2×time2/time • e.g. u2-s • or equivalently u2/Hz
we will assume that thepower spectral densityis a stationary quantity
when we measure the power spectral density of a finite-length time series,we are making an estimate of the power spectral density of the indefinitely long time seriesthe two are not the samebecause of statistical fluctuation
finallywe will normally subtract out the mean of the time seriesso that power spectral densityrepresents fluctuations about the mean value
enlargement periods of a few seconds
power spectral density frequencies of a few tenths of a Hz periods of a few seconds
cumulative power power in time series
Example 2Neuse River Stream Flow periodof 1 year
power spectral density, s2(f) power spectra density s2(f), (cfs)2 per cycle/day frequency f, cycles/day
power spectral density, s2(f) power spectra density s2(f), (cfs)2 per cycle/day frequency f, cycles/day period of 1 year
Example 3Atmospheric CO2(after removing anthropogenic trend)
enlargement periodof 1 year
power spectral density frequency, cycles per year
power spectral density 1 year period ½ year period frequency, cycles per year
shallow side: 1 year and½ yearout of phase steep side: 1 year and½ yearin phase
cumulative power power in time series
Example 3:Tides 90 days of data
enlargement 7 days of data
enlargement periodof day½ 7 days of data
power spectral density cumulative power power in time series
power spectral density about ½ day period about 1 day period fortnighly • (2 wk) tide cumulative power power in time series
MatLab dtilde= Dt*fft(d-mean(d)); dtilde = dtilde(1:Nf); psd = (2/T)*abs(dtilde).^2; Fourier Transform delete negative frequencies power spectral density
MatLab pwr=df*cumsum(psd); Pf=df*sum(psd); Pt=sum(d.^2)/N; power as a function of frequency total power should be the same! total power