Environmental Data Analysis with MatLab Lecture 9: Fourier Series.

Slides:



Advertisements
Similar presentations
Environmental Data Analysis with MatLab Lecture 10: Complex Fourier Series.
Advertisements

Environmental Data Analysis with MatLab
Environmental Data Analysis with MatLab Lecture 21: Interpolation.
Environmental Data Analysis with MatLab Lecture 15: Factor Analysis.
Environmental Data Analysis with MatLab Lecture 8: Solving Generalized Least Squares Problems.
Lecture 13 L1 , L∞ Norm Problems and Linear Programming
Symmetry and the DTFT If we know a few things about the symmetry properties of the DTFT, it can make life simpler. First, for a real-valued sequence x(n),
Lecture 15 Orthogonal Functions Fourier Series. LGA mean daily temperature time series is there a global warming signal?
Environmental Data Analysis with MatLab
Engineering Mathematics Class #15 Fourier Series, Integrals, and Transforms (Part 3) Sheng-Fang Huang.
Fourier Transform – Chapter 13. Image space Cameras (regardless of wave lengths) create images in the spatial domain Pixels represent features (intensity,
1 LES of Turbulent Flows: Lecture 4 (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Spring 2011.
Math Review with Matlab:
Environmental Data Analysis with MatLab
Environmental Data Analysis with MatLab Lecture 13: Filter Theory.
Environmental Data Analysis with MatLab Lecture 16: Orthogonal Functions.
Environmental Data Analysis with MatLab Lecture 23: Hypothesis Testing continued; F-Tests.
Intro to Spectral Analysis and Matlab Q: How Could you quantify how much lower the tone of a race car is after it passes you compared to as it is coming.
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.
Environmental Data Analysis with MatLab Lecture 17: Covariance and Autocorrelation.
Lecture 9 Inexact Theories. Syllabus Lecture 01Describing Inverse Problems Lecture 02Probability and Measurement Error, Part 1 Lecture 03Probability and.
S. Mandayam/ ECOMMS/ECE Dept./Rowan University Electrical Communications Systems Spring 2005 Shreekanth Mandayam ECE Department Rowan University.
GG313 Lecture 23 Nov 15, 2005 Spectral Analysis 1.
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.
S. Mandayam/ ECOMMS/ECE Dept./Rowan University Electrical Communications Systems ECE Spring 2007 Shreekanth Mandayam ECE Department Rowan University.
Lecture 11 Vector Spaces and Singular Value Decomposition.
Fourier Analysis D. Gordon E. Robertson, PhD, FCSB School of Human Kinetics University of Ottawa.
S. Mandayam/ ECOMMS/ECE Dept./Rowan University Electrical Communications Systems Spring 2005 Shreekanth Mandayam ECE Department Rowan University.
Environmental Data Analysis with MatLab Lecture 7: Prior Information.
Fourier Theory in Seismic Processing (From Liner and Ikelle and Amundsen) Temporal aliasing Spatial aliasing.
Environmental Data Analysis with MatLab Lecture 20: Coherence; Tapering and Spectral Analysis.
Goals For This Class Quickly review of the main results from last class Convolution and Cross-correlation Discrete Fourier Analysis: Important Considerations.
Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
ORE 654 Applications of Ocean Acoustics Lecture 6a Signal processing
Diffraction from point scatterers Wave: cos(kx +  t)Wave: cos(kx +  t) + cos(kx’ +  t) max min.
Basics of Signal Processing. SIGNALSOURCE RECEIVER describe waves in terms of their significant features understand the way the waves originate effect.
Environmental Data Analysis with MatLab Lecture 9: Fourier Series.
Image Processing Fourier Transform 1D Efficient Data Representation Discrete Fourier Transform - 1D Continuous Fourier Transform - 1D Examples.
EE2010 Fundamentals of Electric Circuits Lecture 13 Sinusoidal sources and the concept of phasor in circuit analysis.
Time Series Spectral Representation Z(t) = {Z 1, Z 2, Z 3, … Z n } Any mathematical function has a representation in terms of sin and cos functions.
Environmental Data Analysis with MatLab Lecture 10: Complex Fourier Series.
1 LES of Turbulent Flows: Lecture 2 Supplement (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Fall 2014.
Periodic driving forces
Astronomical Data Analysis I
Leo Lam © Signals and Systems EE235 Leo Lam.
GG313 Lecture 24 11/17/05 Power Spectrum, Phase Spectrum, and Aliasing.
Lecture 17 - Approximation Methods CVEN 302 July 17, 2002.
11 Lecture 2 Signals and Systems (II) Principles of Communications Fall 2008 NCTU EE Tzu-Hsien Sang.
 Introduction to reciprocal space
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.
Environmental Data Analysis with MatLab 2 nd Edition Lecture 22: Linear Approximations and Non Linear Least Squares.
Time Series Spectral Representation
Integral Transform Method
Probability Theory and Parameter Estimation I
Outline 2-D Fourier transforms The sampling theorem Sampling Aliasing
MECH 373 Instrumentation and Measurements
Dr. Nikos Desypris, Oct Lecture 3
Environmental Data Analysis with MatLab
Fundamentals Data.
Lecture 26: Environmental Data Analysis with MatLab 2nd Edition
Environmental Data Analysis with MatLab 2nd Edition
Environmental Data Analysis with MatLab 2nd Edition
Geology 491 Spectral Analysis
Environmental Data Analysis with MatLab
Presentation transcript:

Environmental Data Analysis with MatLab Lecture 9: Fourier Series

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 Spectra 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 detect and quantify periodicities in data

importance of periodicities

Stream Flow Neuse River discharge, cfs time, days 365 days 1 year

Air temperature Black Rock Forest 365 days 1 year

Air temperature Black Rock Forest time, days 1 day

temporal periodicities and their periods astronomical rotation daily revolution yearly other natural ocean waves a few seconds anthropogenic electric power 60 Hz

delay, t 0 amplitude, C period, T d(t) time, t sinusoidal oscillation f(t) = C cos{ 2π (t-t 0 ) / T }

amplitude, C lingo temporal f(t) = C cos{ 2π t / T } spatial f(x) = C cos{ 2π x / λ } amplitude, C period, T wavelength, λ frequency, f=1/T angular frequency, ω=2 π /T wavenumber, k=2 π / λ - f(t) = C cos(ωt)f(x) = C cos(kx)

spatial periodicities and their wavelengths natural sand dunes hundreds of meters tree rings a few millimeters anthropogenic furrows plowed in a field few tens of cm

pairing sines and cosines to avoid using time delays

derived using trig identity AB

AB A=C cos(ωt 0 ) B=C sin(ωt 0 ) A 2 =C cos 2 (ωt 0 ) B 2 =C sin 2 (ωt 0 ) A 2 +B 2 =C 2 [cos 2 (ωt 0 )+sin 2 (ωt 0 )] = C 2

Fourier Series linear model containing nothing but sines and cosines

A ’s and B’s are model parameters ω ’s are auxiliary variables

two choices values of frequencies? total number of frequencies?

surprising fact about time series with evenly sampled data Nyquist frequency

values of frequencies? evenly spaced, ω n = (n-1) Δ ω minimum frequency of zero maximum frequency of f ny total number of frequencies? N/2+1 number of model parameters, M = number of data, N

implies

Number of Frequencies why N/2+1 and not N/2 ? first and last sine are omitted from the Fourier Series since they are identically zero:

cos(Δω t)cos(0t)sin(Δωt)cos(2Δω t)sin(2Δω t) cos(½NΔω t)

Nyquist Sampling Theorem when m=n+N another way of stating it note evenly sampled times

ω n = (n-1) Δ ω and t k = (k-1) Δ t Step 1: Insert discrete frequencies and times into l.h.s. of equations.

ω n = (n-1+N) Δ ω and t k = (k-1) Δ t Step 2: Insert discrete frequencies and times into r.h.s. of equations.

same as l.h.s. Step 3: Note that l.h.s equals r.h.s.

when m=n+N or when ω m =ω n +2ω ny only a 2ω ny interval of the ω -axis is unique say from -ω ny to +ω ny Step 4: Identify unique region of ω -axis

cos( ω t) has same shape as cos(- ω t) and sin( ω t) has same shape as sin(- ω t) so really only the 0 to ω ny part of the ω -axis is unique Step 5: Apply symmetry of sines and cosines

  ny  ny  ny  ny  equivalent points on the ω -axis

d 2 (t) d 1 (t) time, t d  (t) = cos(   t), with   =2  d  (t) = cos{   t}, with   =(2+N) ,

problem of aliasing high frequencies masquerading as low frequencies solution: pre-process data to remove high frequencies before digitizing it

Discrete Fourier Series d = Gm

Least Squares Solution m est = [G T G] -1 G T d has substantial simplification … since it can be shown that …

% N = number of data, presumed even % Dt is time sampling interval t = Dt*[0:N-1]’; Df = 1 / (N * Dt ); Dw = 2 * pi / (N * Dt); Nf = N/2+1; Nw = N/2+1; f = Df*[0:N/2]; w = Dw*[0:N/2]; frequency and time setup in MatLab

% set up G G=zeros(N,M); % zero frequency column G(:,1)=1; % interior M/2-1 columns for i = [1:M/2-1] j = 2*i; k = j+1; G(:,j)=cos(w(i+1).*t); G(:,k)=sin(w(i+1).*t); end % nyquist column G(:,M)=cos(w(Nw).*t); Building G in MatLab

gtgi = 2* ones(M,1)/N; gtgi(1)=1/N; gtgi(M)=1/N; mest = gtgi.* (G'*d); solving for model parameters in MatLab

how to plot the model parameters? A ’s and B ’s plot against frequency

power spectral density big at frequency ω when when sine or cosine at the frequency has a large coefficient

alternatively, plot amplitude spectral density

365.2 days period, days frequency, cycles per day amplitude spectral density days 60.0 days amplitude spectral density Stream Flow Neuse River all interesting frequencies near origin, so plot period, T=1/f instead