Environmental Data Analysis with MatLab Lecture 20: Coherence; Tapering and Spectral Analysis.

Slides:



Advertisements
Similar presentations
Change-Point Detection Techniques for Piecewise Locally Stationary Time Series Michael Last National Institute of Statistical Sciences Talk for Midyear.
Advertisements

Environmental Data Analysis with MatLab Lecture 10: Complex Fourier Series.
Environmental Data Analysis with MatLab
Environmental Data Analysis with MatLab Lecture 21: Interpolation.
Environmental Data Analysis with MatLab Lecture 15: Factor Analysis.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Periodograms Bartlett Windows Data Windowing Blackman-Tukey Resources:
Environmental Data Analysis with MatLab Lecture 8: Solving Generalized Least Squares Problems.
Lecture 23 Exemplary Inverse Problems including Earthquake Location.
Environmental Data Analysis with MatLab
FilteringComputational Geophysics and Data Analysis 1 Filtering Geophysical Data: Be careful!  Filtering: basic concepts  Seismogram examples, high-low-bandpass.
GG 313 Lecture 25 Transform Pairs and Convolution 11/22/05.
DFT/FFT and Wavelets ● Additive Synthesis demonstration (wave addition) ● Standard Definitions ● Computing the DFT and FFT ● Sine and cosine wave multiplication.
Environmental Data Analysis with MatLab Lecture 9: Fourier Series.
Environmental Data Analysis with MatLab
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
Environmental Data Analysis with MatLab Lecture 13: Filter Theory.
Environmental Data Analysis with MatLab Lecture 16: Orthogonal Functions.
Digital Signal Processing
Environmental Data Analysis with MatLab Lecture 23: Hypothesis Testing continued; F-Tests.
Spectral analysis for point processes. Error bars. Bijan Pesaran Center for Neural Science New York University.
Environmental Data Analysis with MatLab Lecture 11: Lessons Learned from the Fourier Transform.
Environmental Data Analysis with MatLab
Environmental Data Analysis with MatLab Lecture 12: Power Spectral Density.
Lecture 2 Probability and Measurement Error, Part 1.
Environmental Data Analysis with MatLab Lecture 17: Covariance and Autocorrelation.
Lecture 17 spectral analysis and power spectra. Part 1 What does a filter do to the spectrum of a time series?
Environmental Data Analysis with MatLab Lecture 5: Linear Models.
Environmental Data Analysis with MatLab Lecture 3: Probability and Measurement Error.
Environmental Data Analysis with MatLab Lecture 24: Confidence Limits of Spectra; Bootstraps.
QMDA Review Session. Things you should remember 1. Probability & Statistics.
Environmental Data Analysis with MatLab Lecture 7: Prior Information.
Introduction To Signal Processing & Data Analysis
Relationship between Magnitude and Phase (cf. Oppenheim, 1999)
Oceanography 569 Oceanographic Data Analysis Laboratory Kathie Kelly Applied Physics Laboratory 515 Ben Hall IR Bldg class web site: faculty.washington.edu/kellyapl/classes/ocean569_.
TELECOMMUNICATIONS Dr. Hugh Blanton ENTC 4307/ENTC 5307.
The Story of Wavelets.
Oceanography 569 Oceanographic Data Analysis Laboratory Kathie Kelly Applied Physics Laboratory 515 Ben Hall IR Bldg class web site: faculty.washington.edu/kellyapl/classes/ocean569_.
Environmental Data Analysis with MatLab Lecture 10: Complex Fourier Series.
Autocorrelation correlations between samples within a single time series.
1 Lecture 3: March 6, 2007 Topic: 1. Frequency-Sampling Methods (Part I)
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
Signals CY2G2/SE2A2 Information Theory and Signals Aims: To discuss further concepts in information theory and to introduce signal theory. Outcomes:
Managerial Economics Demand Estimation & Forecasting.
Chapter 2 Signals and Spectra (All sections, except Section 8, are covered.)
Modern Navigation Thomas Herring MW 11:00-12:30 Room
Introduction to Deconvolution
Lecture#10 Spectrum Estimation
Discrete-time Random Signals
Baseband Receiver Receiver Design: Demodulation Matched Filter Correlator Receiver Detection Max. Likelihood Detector Probability of Error.
Stochastic Process Theory and Spectral Estimation Bijan Pesaran Center for Neural Science New York University.
Geology 6600/7600 Signal Analysis 30 Sep 2015 © A.R. Lowry 2015 Last time: The transfer function relating linear SISO input & output signals is given by.
Stochastic Process Theory and Spectral Estimation
ESTIMATION METHODS We know how to calculate confidence intervals for estimates of  and  2 Now, we need procedures to calculate  and  2, themselves.
Environmental Data Analysis with MatLab 2 nd Edition Lecture 14: Applications of Filters.
M.P. Rupen, Synthesis Imaging Summer School, 18 June Cross Correlators Michael P. Rupen NRAO/Socorro.
Environmental Data Analysis with MatLab 2 nd Edition Lecture 22: Linear Approximations and Non Linear Least Squares.
Fourier series With coefficients:.
Chapter 4 Basic Estimation Techniques
UNIT-III Signal Transmission through Linear Systems
MECH 373 Instrumentation and Measurements
Lecture 1.30 Structure of the optimal receiver deterministic signals.
Chapter 13 Integral transforms
Filtering Geophysical Data: Be careful!
Lecture 26: Environmental Data Analysis with MatLab 2nd Edition
Lecture 20: Environmental Data Analysis with MatLab 2nd Edition
Environmental Data Analysis with MatLab
Chapter 7 Finite Impulse Response(FIR) Filter Design
Environmental Data Analysis with MatLab 2nd Edition
Chapter 7 Finite Impulse Response(FIR) Filter Design
Environmental Data Analysis with MatLab
Presentation transcript:

Environmental Data Analysis with MatLab Lecture 20: Coherence; Tapering and Spectral Analysis

Lecture 01Using MatLab Lecture 02Looking At Data Lecture 03Probability and Measurement Error Lecture 04Multivariate Distributions Lecture 05Linear Models Lecture 06The Principle of Least Squares Lecture 07Prior Information Lecture 08Solving Generalized Least Squares Problems Lecture 09Fourier Series Lecture 10Complex Fourier Series Lecture 11Lessons Learned from the Fourier Transform Lecture 12Power Spectral Density Lecture 13Filter Theory Lecture 14Applications of Filters Lecture 15Factor Analysis Lecture 16Orthogonal functions Lecture 17Covariance and Autocorrelation Lecture 18Cross-correlation Lecture 19Smoothing, Correlation and Spectra Lecture 20Coherence; Tapering and Spectral Analysis Lecture 21Interpolation Lecture 22 Hypothesis testing Lecture 23 Hypothesis Testing continued; F-Tests Lecture 24 Confidence Limits of Spectra, Bootstraps SYLLABUS

purpose of the lecture Part 1 Finish up the discussion of correlations between time series Part 2 Examine how the finite observation time affects estimates of the power spectral density of time series

Part 1 “Coherence” frequency-dependent correlations between time series

Scenario A in a hypothetical region windiness and temperature correlate at periods of a year, because of large scale climate patterns but they do not correlate at periods of a few days

time, years wind speed temperature

time, years wind speed temperature summer hot and windy winters cool and calm

time, years wind speed temperature heat wave not especially windy cold snap not especially calm

in this case times series correlated at long periods but not at short periods

Scenario B in a hypothetical region plankton growth rate and precipitation correlate at periods of a few weeks but they do not correlate seasonally

time, years growth rate precipitation

time, years plant growth rate precipitation summer drier than winter growth rate has no seasonal signal

time, years plant growth rate precipitation growth rate high at times of peak precipitation

in this case times series correlated at short periods but not at long periods

Coherence a way to quantify frequency-dependent correlation

strategy band pass filter the two time series, u(t) and v(t) around frequency, ω 0 compute their zero-lag cross correlation (large when time series are similar in shape) repeat for many ω 0 ’s to create a function c(ω 0 )

ω 0 |f(ω)| 2 ω0ω0 -ω0-ω0 2Δω band pass filter f(t) has this p.s.d.

evaluate at zero lag t=0 and at many ω 0 ’s

Short Cut Fact 1 A function evaluates at time t=0 is equal to the integral of its Fourier Transform Fact 2 the Fourier Transform of a convolution is the product of the transforms

integral over frequency

assume ideal band pass filter that is either 0 or 1 negative frequencies positive frequencies

integral over frequency assume ideal band pass filter that is either 0 or 1 negative frequencies positive frequencies c is real so real part is symmetric, adds imag part is antisymmetric, cancels

integral over frequency assume ideal band pass filter that is either 0 or 1 negative frequencies positive frequencies c is real so real part is symmetric, adds imag part is antisymmetric, cancels interpret intergral as an average over frequency band

integral over frequency can be viewed as an average over frequency (indicated with the overbar)

Two final steps 1. Omit taking of real part in formula (simplifying approximation) 2. Normalize by the amplitude of the two time series and square, so that result varies between 0 and 1

the final result is called Coherence

A) B) C) D) E) F) new dataset: Water Quality Reynolds Channel, Coastal Long Island, New York

A) B) C) D) E) F) new dataset: Water Quality Reynolds Channel, Coastal Long Island, New York precipitation air temperature water temperature salinity turbidity chlorophyl

A) periods near 1 year Fig, Band-pass filtered water quality measurements from Reynolds Channel (New York) for several years starting January 1, A) Periods near one year; and B) periods near 5 days. MatLab script eda09_16. B) periods near 5 days

A) periods near 1 year Fig, Band-pass filtered water quality measurements from Reynolds Channel (New York) for several years starting January 1, A) Periods near one year; and B) periods near 5 days. MatLab script eda09_16. B) periods near 5 days

A) B)C) one year one week one year

A) B)C) one year one week one year high coherence at periods of 1 year moderate coherence at periods of about a month very low coherence at periods of months to a few days

Part 2 windowing time series before computing power- spectral density

scenario: you are studying an indefinitely long phenomenon … but you only observe a short portion of it …

how does the power spectral density of the short piece differ from the p.s.d. of the indefinitely long phenomenon (assuming stationary time series)

We might suspect that the difference will be increasingly significant as the window of observation becomes so short that it includes just a few oscillations of the period of interest.

starting point short piece is the indefinitely long time series multiplied by a window function, W(t)

by the convolution theorem Fourier Transform of short piece is Fourier Transform of indefinitely long time series convolved with Fourier Transform of window function

so Fourier Transform of short piece exactly Fourier Transform of indefinitely long time series when Fourier Transform of window function is a spike

boxcar window functionits Fourier Transform

boxcar window functionits Fourier Transform sinc() function sort of spiky but has side lobes

narrow spectral peak wide central spike wide spectral peak Effect 1: broadening of spectral peaks

only one spectral peak side lobes spurious spectral peaks Effect 2: spurious side lobes

Q: Can the situation be improved? A: Yes, by choosing a smoother window function more like a Normal Function (which has no side lobes) but still zero outside of interval of observation

boxcar window functionHamming window function

no side lobes but central peak wider than with boxcar

Hamming Window Function

Q: Is there a “best” window function? A: Only if you carefully specify what you mean by “best” (notion of best based on prior information)

“optimal”window function maximize ratio of power in central peak (assumed to lie in range ±ω 0 ) to overall power

The parameter, ω 0, allows you to choose how much spectral broadening you can tolerate Once ω 0 is specified, the problem can be solved by using standard optimization techniques One finds that there are actually several window functions, with radically different shapes, that are “optimal”

v W 1 (t) v W 2 (t) v W 3 (t) v time, s v v Family of three “optimal” window functions

a common strategy is to compute the power spectral density with each of these window functions separately and then average the result technique called Multi-taper Spectral Analysis

v v B(t)d(t) v time t, s v v v v d(t) W 1 (t)d(t) W 2 (t)d(t) W 3 (t)d(t) v v frequency, Hz v v v v v

v v B(t)d(t) v time t, s v v v v d(t) W 1 (t)d(t) W 2 (t)d(t) W 3 (t)d(t) v v frequency, Hz v v v v v box car tapering

v v B(t)d(t) v time t, s v v v v d(t) W 1 (t)d(t) W 2 (t)d(t) W 3 (t)d(t) v v frequency, Hz v v v v v tapering with three “optimal” window functions

v v B(t)d(t) v time t, s v v v v d(t) W 1 (t)d(t) W 2 (t)d(t) W 3 (t)d(t) v v frequency, Hz v v v v v p.s.d. produced by averaging

Summary always taper a time series before computing the p.s.d. try a simple Hamming taper first it’s simple use multi-taper analysis when higher resolution is needed e.g. when the time series is very short