Environmental Data Analysis with MatLab Lecture 13: Filter Theory.

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 7: Basis Functions & Fourier Series
Lecture 23 Exemplary Inverse Problems including Earthquake Location.
Environmental Data Analysis with MatLab
Lecture 22 Exemplary Inverse Problems including Filter Design.
Environmental Data Analysis with MatLab Lecture 9: Fourier Series.
Environmental Data Analysis with MatLab
Environmental Data Analysis with MatLab Lecture 16: Orthogonal Functions.
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.
Review of Frequency Domain
Lecture 5 A Priori Information and Weighted Least Squared.
Environmental Data Analysis with MatLab Lecture 17: Covariance and Autocorrelation.
Lecture 19 Continuous Problems: Backus-Gilbert Theory and Radon’s Problem.
Lecture 9 Inexact Theories. Syllabus Lecture 01Describing Inverse Problems Lecture 02Probability and Measurement Error, Part 1 Lecture 03Probability and.
Lecture 6 Resolution and Generalized Inverses. Syllabus Lecture 01Describing Inverse Problems Lecture 02Probability and Measurement Error, Part 1 Lecture.
Lecture 22 Adjunct Methods. Part 1 Motivation Motivating scenario We want to predict tomorrow’s weather, u(t) … We have a atmospheric model chugging.
Environmental Data Analysis with MatLab Lecture 5: Linear Models.
Lecture 3 Review of Linear Algebra Simple least-squares.
Lecture 4: Practical Examples. Remember this? m est = m A + M [ d obs – Gm A ] where M = [G T C d -1 G + C m -1 ] -1 G T C d -1.
Environmental Data Analysis with MatLab Lecture 3: Probability and Measurement Error.
Lecture 8 The Principle of Maximum Likelihood. Syllabus Lecture 01Describing Inverse Problems Lecture 02Probability and Measurement Error, Part 1 Lecture.
Lecture 11 Linear Systems. Past History Matters the purpose of this lecture is to give you tools that provide a way of relating what happened in the past.
Environmental Data Analysis with MatLab Lecture 24: Confidence Limits of Spectra; Bootstraps.
QMDA Review Session. Things you should remember 1. Probability & Statistics.
Lecture 5: Linear Systems and Convolution
Lecture 11 Vector Spaces and Singular Value Decomposition.
Environmental Data Analysis with MatLab Lecture 7: Prior Information.
Analogue and digital techniques in closed loop regulation applications Digital systems Sampling of analogue signals Sample-and-hold Parseval’s theorem.
Probability theory 2008 Outline of lecture 5 The multivariate normal distribution  Characterizing properties of the univariate normal distribution  Different.
Review of Probability.
Environmental Data Analysis with MatLab Lecture 20: Coherence; Tapering and Spectral Analysis.
Discrete-Time and System (A Review)
1 Let g(t) be periodic; period = T o. Fundamental frequency = f o = 1/ T o Hz or  o = 2  / T o rad/sec. Harmonics =n f o, n =2,3 4,... Trigonometric.
TELECOMMUNICATIONS Dr. Hugh Blanton ENTC 4307/ENTC 5307.
1 Part 5 Response of Linear Systems 6.Linear Filtering of a Random Signals 7.Power Spectrum Analysis 8.Linear Estimation and Prediction Filters 9.Mean-Square.
Environmental Data Analysis with MatLab Lecture 10: Complex Fourier Series.
Systems (filters) Non-periodic signal has continuous spectrum Sampling in one domain implies periodicity in another domain time frequency Periodic sampled.
Input Function x(t) Output Function y(t) T[ ]. Consider The following Input/Output relations.
Robotics Research Laboratory 1 Chapter 7 Multivariable and Optimal Control.
ES97H Biomedical Signal Processing
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Normal Equations The Orthogonality Principle Solution of the Normal Equations.
Chapter 2. Fourier Representation of Signals and Systems
Baseband Receiver Receiver Design: Demodulation Matched Filter Correlator Receiver Detection Max. Likelihood Detector Probability of Error.
Geology 6600/7600 Signal Analysis 23 Oct 2015
Auditory Perception: 2: Linear Systems. Signals en Systems: To understand why the auditory system represents sounds in the way it does, we need to cover.
EKT430/4 DIGITAL SIGNAL PROCESSING 2007/2008 CHAPTER 2 DISCRETE TIME SIGNAL AND SYSTEMS.
Environmental Data Analysis with MatLab 2 nd Edition Lecture 14: Applications of Filters.
Eeng360 1 Chapter 2 Linear Systems Topics:  Review of Linear Systems Linear Time-Invariant Systems Impulse Response Transfer Functions Distortionless.
Environmental Data Analysis with MatLab 2 nd Edition Lecture 22: Linear Approximations and Non Linear Least Squares.
Math for CS Fourier Transforms
Lecture 7: Basis Functions & Fourier Series
UNIT-III Signal Transmission through Linear Systems
LECTURE 30: SYSTEM ANALYSIS USING THE TRANSFER FUNCTION
Computational Data Analysis
Random Process The concept of random variable was defined previously as mapping from the Sample Space S to the real line as shown below.
MMSE Optimal Design: The Least Squares method
Basic Image Processing
Coherence spectrum (coherency squared)
8.6 Autocorrelation instrument, mathematical definition, and properties autocorrelation and Fourier transforms cosine and sine waves sum of cosines Johnson.
Lecture 23: Environmental Data Analysis with MatLab 2nd Edition
Environmental Data Analysis with MatLab
Presentation transcript:

Environmental Data Analysis with MatLab Lecture 13: Filter Theory

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 develop the Linear Filter as a way to describe the way past events influence present-time observations

sometimes, no past history is needed Flame with time-varying heat h(t) Thermometer measuring temperature θ(t) Flame instantaneously heats the thermometer Thermometer retains no heat θ(t)  h(t)

this idea described as a linear model θ 1 = g 1 h 1... θ 10 = g 1 h 10 θ 11 = g 1 h 11 θ 12 = g 1 h θ N = g 1 h N where g 1 is a constant

But sometimes, past history is needed Flame with time-varying heat h(t) Thermometer measuring temperature θ(t) Heats takes time to seep through plate Plate retains heat θ(t=t’)  history of h(t) for time t<t’ Steel plate

But sometimes, past history is needed Flame with time-varying heat h(t) Thermometer measuring temperature  (t) Heats takes time to seep through plate Plate retains heat  (t=t’)  history of h(t) for time t<t’ Steel plate “causal”: only past effects present (not future)

this idea described as a linear model... θ 10 = g 1 h 10 + g 2 h 9 + g 3 h 8 + g 4 h 7 + … θ 11 = g 1 h 11 + g 2 h 10 + g 3 h 9 + g 4 h 8 + … θ 12 = g 1 h 12 + g 2 h 11 + g 3 h 10 + g 4 h 9 + …... where g 1, g 2, g 3, … are constants called a “filter”

Special case: temperature depends only on the time elapsed since the flame was turned on, and not on the experiment as performed on Monday or Wednesday same shape  (t) experiment is “time- shift invariant”

this idea described as a linear model... θ 10 = g 1 h 10 + g 2 h 9 + g 3 h 8 + g 4 h 7 + … θ 11 = g 1 h 11 + g 2 h 10 + g 3 h 9 + g 4 h 8 + … θ 12 = g 1 h 12 + g 2 h 11 + g 3 h 10 + g 4 h 9 + …... where g 1, g 2, g 3, … are constants called a filter coefficients all the same … filter is time-shift invariant …

this idea written as a summation

input output filter “convolution”, not multiplication

this idea written as matrix equation output input filter

we’ve heard the word “convolution” before in Lecture 11 it’s the name of this integral

but the integral can be approximated as the summation we’ve just seen

so, mathematically, what we’re doing is “convolution”

convolutions can be written two ways... θ 10 = g 1 h 10 + g 2 h 9 + g 3 h 8 + g 4 h 7 + … θ 11 = g 1 h 11 + g 2 h 10 + g 3 h 9 + g 4 h 8 + … θ 12 = g 1 h 12 + g 2 h 11 + g 3 h 10 + g 4 h 9 + …... g inside matrix h inside matrix

implying that the convolution operation is symmetric g*h = h*g

meaning of the filter g suppose the input is a spike h = [1, 0, 0, 0 … 0] T then the output is the filter output input filter

so the filter represents the “impulse response” of the experiment

time, t, after impulse  (t), K 0 time, t, after impulse h(t), W 0 A) Input is spike B) Output is impulse response spike

h(t 0 )g(t  t 0 ) h(t), W time, t t0t0  (t). K time, t t0t0 spike of amplitude, h(t 0 ) A) B)

example: heat-generating layer soil heat-generating layer observation point z=0 z-axis z

known impulse response based on known physics of heat transfer

known impulse response soil density 1500 kg/m 3 soil heat capacity, 800 J/kg-K soil thermal diffusivity. 1.25×10 -6 m 2 /s distance from center of layer

 t g(t) h true (t), W/m 2  true (t), K time t, days A) B) C) time t, days

The Method solve using least-squares … well, use damped least square, just in case

 obs (t), K h true (t), W/m 2 B) C) h est (t) ), W/m 2 time t, days A)

 obs (t), K h true (t), W/m 2 B) C) h est (t) ), W/m 2 time t, days A)noise in data … … is amplified

Try adding prior information of smoothness (minimize second derivative)

 obs (t), K h true (t), W/m 2 B) C) h est (t) ), W/m 2 time t, days A) much less noise

Tips on filter calculations with MatLab

you should avoid constructing the matrix because it contains so many redundant elements G =

Tip #1 use the conv() function to calculate the convolution q = g * h not the matrix multiplication q=Gh tmp = conv(g, h); q=tmp(1:N); note that we truncate the output of conv(), so that is has the same length, N, as the input time series

Tip #2 use the bicg() solver, together with the function filterrfun() to solve Fq=h by generalized least squares not matrix division h est =(F T F)\(F T q) it implements the matrix multiplications, G T (Gv), using the timeseries g, and does not ever construct G filterrfun() is described in the text