SlideShare a Scribd company logo
Av-738
Adaptive Filter Theory
Lecture 3- Optimum Filtering
[Weiner Filters]
Dr. Bilal A. Siddiqui
Air University (PAC Campus)
Spring 2018
Linear Optimum Filtering
• Consider a linear discrete-time filter
• The filter is linear (to make mathematical analysis easier to handle)
• Filter operates in discrete time (makes implementation easier)
• The requirement is to make the filter error e(n) as small as possible in some statistical sense
• Statistical “sense” means filter output should be optimum (minimizing some criteria). Candidate
criteria are expectation of:
• Absolute value of estimation error
• Square of absolute value (or mean-square value) of estimation error
• Third or higher power of absolute value of estimation error
• Option 1 has a discontinuous first derivative. Option 3 is also mathematically cumbersome
• Option 2 has a unique minimum, and has a second order dependence on filter weights, which
makes optimization possible.
𝐽 = 𝐸 𝑒 𝑛 𝑒∗ 𝑛 = 𝐸 𝑒 𝑛 2
• The linear optimal filtering problem is then formally stated as “design a discrete-time linear filter
whose output y(n) provides an estimate of the desired response d(n) such that mean-square value of
estimation error is minimized.”
Weiner filter – Derivation ,part 1
• The problem is to minimize J by choosing the optimum weights w0
• Since filter coefficients are also (in general complex), 𝑤 𝑘 = 𝑎 𝑘 + 𝑗𝑏 𝑘
• Let’s define the gradient operator (general derivative), 𝛻𝑘 =
𝜕
𝜕𝑎 𝑘
+ 𝑗
𝜕
𝜕𝑏 𝑘
• Multi-dimensional gradient of the (scalar and real) cost function is, therefore 𝛻𝑘 𝐽 =
𝜕𝐽
𝜕𝑎 𝑘
+ 𝑗
𝜕𝐽
𝜕𝑏 𝑘
• For J to attain a minimum, the necessary condition is 𝛻𝑘 𝐽 = 0
𝛻𝑘 𝐽 = 𝛻𝑘 𝐸 𝑒 𝑛 𝑒∗ 𝑛 = 𝐸 𝛻𝑘 𝑒 𝑛 𝑒∗ 𝑛
𝛻𝑘 𝐽 = 𝐸
𝜕𝑒 𝑛
𝜕𝑎 𝑘
𝑒∗
𝑛 +
𝜕𝑒∗
𝑛
𝜕𝑎 𝑘
𝑒 𝑛 + 𝑗
𝜕𝑒 𝑛
𝜕𝑏 𝑘
𝑒∗
𝑛 +
𝜕𝑒∗
𝑛
𝜕𝑏 𝑘
𝑒 𝑛
Weiner filter – derivation 2
𝛻𝑘 𝐽 = 𝐸
𝜕𝑒 𝑛
𝜕𝑎 𝑘
𝑒∗ 𝑛 +
𝜕𝑒∗ 𝑛
𝜕𝑎 𝑘
𝑒 𝑛 +
𝜕𝑒 𝑛
𝜕𝑏 𝑘
𝑗𝑒∗ 𝑛 +
𝜕𝑒∗ 𝑛
𝜕𝑏 𝑘
𝑗𝑒 𝑛
• Since, 𝑒 𝑛 = 𝑑 𝑛 − 𝑘=0
𝑀−1
𝑤 𝑘
∗
𝑢 𝑛 − 𝑘 = 𝑑 𝑛 + 𝑘=0
𝑀−1
−𝑎 𝑘 + 𝑗𝑏 𝑘 𝑢 𝑛 − 𝑘
and d(n) is not a function of wk
𝛻𝑘 𝐽 = −2𝐸 𝑢 𝑛 − 𝑘 𝑒∗
𝑛
• If e0 is the special value of estimation error when filter operates in optimum condition
𝐸 𝑢 𝑛 − 𝑘 𝑒0
∗
𝑛 = 0
• This is an optimum result. It states that, “The necessary and sufficient condition for the cost
function J to attain its minimum, the error value at the operating condition is orthogonal (i.e.
unaffected) by all the samples of input used to calculate that estimate.”
• Since 𝐸 𝑦 𝑛 𝑒∗
𝑛 = 𝐸 𝑘=0
𝑀−1
𝑤 𝑘
∗
𝑢 𝑛 − 𝑘 𝑒∗
𝑛 = 𝑘=0
𝑀−1
𝑤 𝑘
∗
𝐸 𝑢 𝑛 − 𝑘 𝑒∗
𝑛
• This means 𝐸 𝑦0 𝑛 𝑒0
∗
𝑛 = 0, i.e. optimum output is orthogonal to min. error
Weiner Filter - Orthogonality
• For a filter of order 2, this is pictorially depicted below
Weiner-Hopf Equation
• Let’s re-write the orthogonality condition in terms of optimal weights (k=0,1,2,…M-1)
𝐸 𝑢 𝑛 − 𝑘 𝑒0
∗
𝑛 = 𝐸 𝑢 𝑛 − 𝑘 𝑑∗
−
𝑙=0
𝑀−1
𝑤𝑙,0 𝑢∗
𝑛 − 𝑙 = 0
Expanding the equation for
𝑙=0
𝑀−1
𝑤𝑙,0 𝐸 𝑢 𝑛 − 𝑘 𝑢∗
𝑛 − 𝑙 = 𝐸 𝑢 𝑛 − 𝑘 𝑑∗
𝑛
Recognizing autocorrelation 𝑟 𝑙 − 𝑘 = 𝐸 𝑢 𝑛 − 𝑘 𝑢∗ 𝑛 − 𝑙 and cross-correlation 𝑝 −𝑘 = 𝐸 𝑢 𝑛 − 𝑘 𝑑∗ 𝑛
𝑙=0
𝑀−1
𝑤𝑙,0 𝑟 𝑙 − 𝑘 = 𝑝 −𝑘
This can be written in matrix form for 𝑢 𝑛 = [𝑢 𝑛 𝑢 𝑛 − 1 … 𝑢 𝑛 − 𝑀 − 1 ], 𝑹 𝒖 = 𝐸 𝑢 𝑛 𝑢 𝐻
𝑛 ,
𝒑 𝒅𝒖 = 𝑝 0 𝑝 1 … 𝑝 𝑀 − 1 and 𝒘 𝟎 = 𝑤0,0 𝑤1,0 … 𝑤 𝑀−1,0
𝒘 𝟎 = 𝑹 𝒖
−𝟏
𝒑 𝒅𝒖
This is known as the Weiner-Hopf equation
Mean Square Error Surface
• Let the desired filter be of order M (number of tap lines)
𝒚 𝒏 = 𝑘=0
𝑀−1
𝑤 𝑘
∗
𝑢 𝑛 − 𝑘 = 𝒘 𝑯 𝒖(𝒏), 𝒆 𝒏 = 𝒅 𝒏 − 𝒚 𝒏
• The mean square error is
𝐽 𝑤 = 𝐸 𝑒 𝑛 𝑒∗
𝑛 = 𝐸 𝒅 𝒏 − 𝒘 𝑯
𝒖 𝒏 𝒅 𝒏 − 𝒘 𝑯
𝒖 𝒏 𝐻
= 𝐸 𝒅 𝟐
𝒏 − 2𝒘 𝑯
𝐸 𝒅 𝒏 𝒖 𝒏 + 𝒘 𝑯
𝐸 𝒖 𝒏 𝒖 𝑯
𝒏 𝒘
⇒ 𝐽 𝑤 = 𝜎 𝑑
2
− 2𝒘 𝑯
𝒑 𝒅𝒖 + 𝒘 𝑯
𝑹 𝒖 𝒘
Also, for optimal solution, we known that 𝒘 𝟎 = 𝑹 𝒖
−𝟏 𝒑 𝒅𝒖
𝐽0 𝑤0 = 𝜎 𝑑
2
− 2𝒑 𝒅𝒖
𝑯
𝑹 𝒖
−𝟏
𝒑 𝒅𝒖
Example: System Identification
• Find the optimum filter coefficients wo and w1 of the Wiener filter,
which approximates (models) the unknown FIR system with
coefficients bo= 1.5 and b1= 0.5 and contaminated with additive white
uniformly distributed noise of 0.02 variance. Input is white Gaussian
noise of variance 1.
clc;clear;
n =0.5*(rand(1,200)-0.5);%n=noise vector with zero mean and variance 0.02
u=randn(1,200);% u=data vector entering the system
y=filter( [1.5 0.5],1,u); %filter output
d=y + n; % desired output
[ru,lagsru]=xcorr(u,1,'unbiased') ;
Ru=toeplitz(ru(1:2));
[pdu,lagsdu]=xcorr(u,d,1,'unbiased') ;
W_opt=inv(Ru) *pdu(1:2)' ; % optimum Weiner filter weights
sigma2d=xcorr(d,d,0);%autocorrelation of d at zero lag
jmin=mean((d-filter(w_opt,1,u)).^2);
Error Surface
w=[linspace(-3*w_opt(1),3*w_opt(1),50);linspace(-9*w_opt(2),9*w_opt(2),50)];
[w1,w2]=meshgrid(w(1,:),w(2,:));
for k=1:length(w1)
for l=1:length(w2)
J(k,l)=mean((d-filter([w1(k,l) w2(k,l)],1,u)).^2);
end
end
surf(w1,w2,J);
xlabel('W_1');ylabel('W_2');zlabel('Cost Function, J');
Schematic of the previous example
Noise Cancellation with Weiner Filter
• In many practical applications we need to cancel the noise added to a signal.
• E.g., when pilots in planes and helicopters try to communicate, or tank drivers
try to do the same, noise from engine etc. is added to original speech.
The two mic problem
• In this case, we will have two mics. One near pilot’s mouth, the other away from it,
probably both mounted on the helmet.
• We will measure v2 to estimate v1. Assume both are zero mean.
• In this case the Wiener filter is (since desired signal is v2)
𝑅 𝑣2 𝑤𝑜 = 𝑝 𝑣1,𝑣2
• v2 is being measured so Rv2 can be easily calculated. But, v1 is not measured. Clearly v1
and v2 are correlated as they emanate from same source but follow different paths.
𝑝 𝑣1
,𝑣2
𝑘 = 𝐸 𝑣1 𝑛 𝑣2 𝑛 − 𝑘 = 𝐸 𝑥 𝑛 − 𝑑(𝑛) 𝑣2 𝑛 − 𝑘
= 𝐸 𝑥 𝑛 𝑣2 𝑛 − 𝑘 − 𝐸 𝑑(𝑛)𝑣2 𝑛 − 𝑘
• Since d and v2 are not correlated, 𝐸 𝑑(𝑛)𝑣2 𝑛 − 𝑘 = 𝐸 𝑑 𝑛 𝐸(𝑣2(𝑛 − 𝑘)=0
• Therefore, 𝑝 𝑣1
,𝑣2
𝑘 = 𝐸 𝑥 𝑛 𝑣2 𝑛 − 𝑘 =𝑝 𝑥,𝑣2
𝑘 which can be estimated.
Example of Noise Cancellation
Let 𝑑 𝑛 = sin 0.1𝑛𝜋 + 0.2𝜋 , 𝑣1 𝑛 = 0.8𝑣1 𝑛 − 1 + 𝑣(𝑛) and
𝑣1 𝑛 = −0.95𝑣2 𝑛 − 1 + 𝑣(𝑛), where v(n) is white noise with zero
mean value and unit variance.
n=1:500;
d=sin(0.1*n*pi+0.2*pi);
v=randn(1,length(n));
v1=filter(0.8,1,v);
v2=filter(-0.95,1,v);
x=d+v1;
plot(n,d,n,x);
legend('original signal','noisy signal')
M=16;
r_v2=xcorr(v2,M,'unbiased');%autocorrelation
of v
Rv2=toeplitz(r_v2(1:M+1)) ;
p_xv2=xcorr(x,v2,M,'unbiased');
w=inv(Rv2)*p_xv2(1:M+1)' ;
y=filter(w,1,v2) ;
d_est=x-y;
figure;
plot(n,d,n,d_est);
legend('original signal','Weinner filtered')
Homework 1 (b)
• Find the Wiener coefficients wo , w1 and w2 that approximates the
unknown system coefficients which are bo= 0.7 and b1 =0.5. Let the
noise v(n) be white with zero mean and variance 0.15. Further, we
assume that the input data sequence x(n) is stationary white
process with zero mean and variance 1. In addition, v(n) and x(n) are
uncorrelated and v(n) is added to the output of the system under
study. Also find Jmin using the orthogonality principle

More Related Content

What's hot

Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]
Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]
Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]
AI Robotics KR
 
Me314 week09-root locusanalysis
Me314 week09-root locusanalysisMe314 week09-root locusanalysis
Me314 week09-root locusanalysis
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
AI Robotics KR
 
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
AI Robotics KR
 
Lecture 2 transfer-function
Lecture 2 transfer-functionLecture 2 transfer-function
Lecture 2 transfer-functionSaifullah Memon
 
Transfer fn mech. systm
Transfer fn mech. systmTransfer fn mech. systm
Transfer fn mech. systm
Syed Saeed
 
Me314 week05a-block diagreduction
Me314 week05a-block diagreductionMe314 week05a-block diagreduction
Me314 week05a-block diagreduction
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
Lecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systemsLecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systemsSaifullah Memon
 
Quick sort Algorithm Discussion And Analysis
Quick sort Algorithm Discussion And AnalysisQuick sort Algorithm Discussion And Analysis
Quick sort Algorithm Discussion And Analysis
SNJ Chaudhary
 
Meeting w3 chapter 2 part 1
Meeting w3   chapter 2 part 1Meeting w3   chapter 2 part 1
Meeting w3 chapter 2 part 1mkazree
 
Quick sort algorithn
Quick sort algorithnQuick sort algorithn
Quick sort algorithnKumar
 
ME-314- Control Engineering - Week 01
ME-314- Control Engineering - Week 01ME-314- Control Engineering - Week 01
ME-314- Control Engineering - Week 01
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
3.8 quicksort
3.8 quicksort3.8 quicksort
3.8 quicksort
Krish_ver2
 
Bhdpis1
Bhdpis1Bhdpis1
Bhdpis1
foxtrot jp R
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
Amr E. Mohamed
 
Meeting w6 chapter 2 part 3
Meeting w6   chapter 2 part 3Meeting w6   chapter 2 part 3
Meeting w6 chapter 2 part 3mkazree
 
5 2020 04_06!09_40_10_pm
5 2020 04_06!09_40_10_pm5 2020 04_06!09_40_10_pm
5 2020 04_06!09_40_10_pm
GHSKassKoronaMardan
 

What's hot (19)

Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]
Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]
Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]
 
Me314 week09-root locusanalysis
Me314 week09-root locusanalysisMe314 week09-root locusanalysis
Me314 week09-root locusanalysis
 
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
 
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
 
Transfer Function
Transfer FunctionTransfer Function
Transfer Function
 
Lecture 2 transfer-function
Lecture 2 transfer-functionLecture 2 transfer-function
Lecture 2 transfer-function
 
Transfer fn mech. systm
Transfer fn mech. systmTransfer fn mech. systm
Transfer fn mech. systm
 
Me314 week05a-block diagreduction
Me314 week05a-block diagreductionMe314 week05a-block diagreduction
Me314 week05a-block diagreduction
 
kalman filtering "From Basics to unscented Kaman filter"
 kalman filtering "From Basics to unscented Kaman filter" kalman filtering "From Basics to unscented Kaman filter"
kalman filtering "From Basics to unscented Kaman filter"
 
Lecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systemsLecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systems
 
Quick sort Algorithm Discussion And Analysis
Quick sort Algorithm Discussion And AnalysisQuick sort Algorithm Discussion And Analysis
Quick sort Algorithm Discussion And Analysis
 
Meeting w3 chapter 2 part 1
Meeting w3   chapter 2 part 1Meeting w3   chapter 2 part 1
Meeting w3 chapter 2 part 1
 
Quick sort algorithn
Quick sort algorithnQuick sort algorithn
Quick sort algorithn
 
ME-314- Control Engineering - Week 01
ME-314- Control Engineering - Week 01ME-314- Control Engineering - Week 01
ME-314- Control Engineering - Week 01
 
3.8 quicksort
3.8 quicksort3.8 quicksort
3.8 quicksort
 
Bhdpis1
Bhdpis1Bhdpis1
Bhdpis1
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
 
Meeting w6 chapter 2 part 3
Meeting w6   chapter 2 part 3Meeting w6   chapter 2 part 3
Meeting w6 chapter 2 part 3
 
5 2020 04_06!09_40_10_pm
5 2020 04_06!09_40_10_pm5 2020 04_06!09_40_10_pm
5 2020 04_06!09_40_10_pm
 

Similar to Av 738- Adaptive Filtering - Wiener Filters[wk 3]

Artyom Makovetskii - An Efficient Algorithm for Total Variation Denoising
Artyom Makovetskii - An Efficient Algorithm for Total Variation DenoisingArtyom Makovetskii - An Efficient Algorithm for Total Variation Denoising
Artyom Makovetskii - An Efficient Algorithm for Total Variation Denoising
AIST
 
Introduction to equalization
Introduction to equalizationIntroduction to equalization
Introduction to equalization
Harshit Srivastava
 
Kalman filter for Beginners
Kalman filter for BeginnersKalman filter for Beginners
Kalman filter for Beginners
winfred lu
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
Sindhu Rumesh Kumar
 
Equalization
EqualizationEqualization
Equalization
bhabendu
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
nmahi96
 
Second Order Active RC Blocks
Second Order Active RC BlocksSecond Order Active RC Blocks
Second Order Active RC Blocks
Hoopeer Hoopeer
 
Before quiz 2
Before quiz 2Before quiz 2
Before quiz 2
Gopi Saiteja
 
Applied Algorithms and Structures week999
Applied Algorithms and Structures week999Applied Algorithms and Structures week999
Applied Algorithms and Structures week999
fashiontrendzz20
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing
ssuser2797e4
 
L12.pptx VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
L12.pptx VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVL12.pptx VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
L12.pptx VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
pr2102000
 
Linear regression, costs & gradient descent
Linear regression, costs & gradient descentLinear regression, costs & gradient descent
Linear regression, costs & gradient descent
Revanth Kumar
 
Numerical Analysis and Its application to Boundary Value Problems
Numerical Analysis and Its application to Boundary Value ProblemsNumerical Analysis and Its application to Boundary Value Problems
Numerical Analysis and Its application to Boundary Value Problems
Gobinda Debnath
 
contuning lecture of instumentation for ag
contuning lecture of instumentation for agcontuning lecture of instumentation for ag
contuning lecture of instumentation for ag
pr2102000
 
Deep learning study 2
Deep learning study 2Deep learning study 2
Deep learning study 2
San Kim
 
State estimation
State estimationState estimation
State estimation
Vipin Pandey
 
07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processing07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processing
JordanJohmMallillin
 
Optimum Engineering Design - Day 2b. Classical Optimization methods
Optimum Engineering Design - Day 2b. Classical Optimization methodsOptimum Engineering Design - Day 2b. Classical Optimization methods
Optimum Engineering Design - Day 2b. Classical Optimization methods
SantiagoGarridoBulln
 
Max flows via electrical flows (long talk)
Max flows via electrical flows (long talk)Max flows via electrical flows (long talk)
Max flows via electrical flows (long talk)Thatchaphol Saranurak
 
Dcs lec03 - z-analysis of discrete time control systems
Dcs   lec03 - z-analysis of discrete time control systemsDcs   lec03 - z-analysis of discrete time control systems
Dcs lec03 - z-analysis of discrete time control systems
Amr E. Mohamed
 

Similar to Av 738- Adaptive Filtering - Wiener Filters[wk 3] (20)

Artyom Makovetskii - An Efficient Algorithm for Total Variation Denoising
Artyom Makovetskii - An Efficient Algorithm for Total Variation DenoisingArtyom Makovetskii - An Efficient Algorithm for Total Variation Denoising
Artyom Makovetskii - An Efficient Algorithm for Total Variation Denoising
 
Introduction to equalization
Introduction to equalizationIntroduction to equalization
Introduction to equalization
 
Kalman filter for Beginners
Kalman filter for BeginnersKalman filter for Beginners
Kalman filter for Beginners
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
 
Equalization
EqualizationEqualization
Equalization
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
 
Second Order Active RC Blocks
Second Order Active RC BlocksSecond Order Active RC Blocks
Second Order Active RC Blocks
 
Before quiz 2
Before quiz 2Before quiz 2
Before quiz 2
 
Applied Algorithms and Structures week999
Applied Algorithms and Structures week999Applied Algorithms and Structures week999
Applied Algorithms and Structures week999
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing
 
L12.pptx VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
L12.pptx VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVL12.pptx VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
L12.pptx VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
 
Linear regression, costs & gradient descent
Linear regression, costs & gradient descentLinear regression, costs & gradient descent
Linear regression, costs & gradient descent
 
Numerical Analysis and Its application to Boundary Value Problems
Numerical Analysis and Its application to Boundary Value ProblemsNumerical Analysis and Its application to Boundary Value Problems
Numerical Analysis and Its application to Boundary Value Problems
 
contuning lecture of instumentation for ag
contuning lecture of instumentation for agcontuning lecture of instumentation for ag
contuning lecture of instumentation for ag
 
Deep learning study 2
Deep learning study 2Deep learning study 2
Deep learning study 2
 
State estimation
State estimationState estimation
State estimation
 
07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processing07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processing
 
Optimum Engineering Design - Day 2b. Classical Optimization methods
Optimum Engineering Design - Day 2b. Classical Optimization methodsOptimum Engineering Design - Day 2b. Classical Optimization methods
Optimum Engineering Design - Day 2b. Classical Optimization methods
 
Max flows via electrical flows (long talk)
Max flows via electrical flows (long talk)Max flows via electrical flows (long talk)
Max flows via electrical flows (long talk)
 
Dcs lec03 - z-analysis of discrete time control systems
Dcs   lec03 - z-analysis of discrete time control systemsDcs   lec03 - z-analysis of discrete time control systems
Dcs lec03 - z-analysis of discrete time control systems
 

More from Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS

Av 738 - Adaptive Filtering Lecture 1 - Introduction
Av 738 - Adaptive Filtering Lecture 1 - IntroductionAv 738 - Adaptive Filtering Lecture 1 - Introduction
Av 738 - Adaptive Filtering Lecture 1 - Introduction
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME-314- Control Engineering - Week 03-04
ME-314- Control Engineering - Week 03-04ME-314- Control Engineering - Week 03-04
ME-314- Control Engineering - Week 03-04
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
Marketing Presentation of Mechanical Engineering @ DSU for High School Students
Marketing Presentation of Mechanical Engineering @ DSU for High School StudentsMarketing Presentation of Mechanical Engineering @ DSU for High School Students
Marketing Presentation of Mechanical Engineering @ DSU for High School Students
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
"It isn't exactly Rocket Science" : The artsy science of rocket propulsion
"It isn't exactly Rocket Science" : The artsy science of rocket propulsion"It isn't exactly Rocket Science" : The artsy science of rocket propulsion
"It isn't exactly Rocket Science" : The artsy science of rocket propulsion
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
2 Day Workshop on Digital Datcom and Simulink
2 Day Workshop on Digital Datcom and Simulink2 Day Workshop on Digital Datcom and Simulink
2 Day Workshop on Digital Datcom and Simulink
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
Why Choose Graduate Studies at the University you work in?
Why Choose Graduate Studies at the University you work in?Why Choose Graduate Studies at the University you work in?
Why Choose Graduate Studies at the University you work in?
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]
ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]
ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME 312 Mechanical Machine Design - Introduction [Week 1]
ME 312 Mechanical Machine Design - Introduction [Week 1]ME 312 Mechanical Machine Design - Introduction [Week 1]
ME 312 Mechanical Machine Design - Introduction [Week 1]
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME438 Aerodynamics (week 12)
ME438 Aerodynamics (week 12)ME438 Aerodynamics (week 12)
ME438 Aerodynamics (week 12)
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME438 Aerodynamics (week 11)
ME438 Aerodynamics (week 11)ME438 Aerodynamics (week 11)
ME438 Aerodynamics (week 11)
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME-438 Aerodynamics (week 10)
ME-438 Aerodynamics (week 10)ME-438 Aerodynamics (week 10)
ME-438 Aerodynamics (week 10)
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME-438 Aerodynamics (week 9)
ME-438 Aerodynamics (week 9)ME-438 Aerodynamics (week 9)
ME-438 Aerodynamics (week 9)
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME438 Aerodynamics (week 8)
ME438 Aerodynamics (week 8)ME438 Aerodynamics (week 8)
ME438 Aerodynamics (week 8)
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME438 Aerodynamics (week 5-6-7)
ME438 Aerodynamics (week 5-6-7)ME438 Aerodynamics (week 5-6-7)
ME438 Aerodynamics (week 5-6-7)
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
Me438 Aerodynamics (week 1-2-3)
Me438 Aerodynamics (week 1-2-3)Me438 Aerodynamics (week 1-2-3)
Me438 Aerodynamics (week 1-2-3)
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME 312 Mechanical Machine Design - Lecture 01
ME 312 Mechanical Machine Design  - Lecture 01ME 312 Mechanical Machine Design  - Lecture 01
ME 312 Mechanical Machine Design - Lecture 01
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
ME 313 Mechanical Measurements and Instrumentation Lecture 01
ME 313 Mechanical Measurements and Instrumentation Lecture 01ME 313 Mechanical Measurements and Instrumentation Lecture 01
ME 313 Mechanical Measurements and Instrumentation Lecture 01
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 

More from Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS (19)

Av 738 - Adaptive Filtering Lecture 1 - Introduction
Av 738 - Adaptive Filtering Lecture 1 - IntroductionAv 738 - Adaptive Filtering Lecture 1 - Introduction
Av 738 - Adaptive Filtering Lecture 1 - Introduction
 
ME-314- Control Engineering - Week 03-04
ME-314- Control Engineering - Week 03-04ME-314- Control Engineering - Week 03-04
ME-314- Control Engineering - Week 03-04
 
Marketing Presentation of Mechanical Engineering @ DSU for High School Students
Marketing Presentation of Mechanical Engineering @ DSU for High School StudentsMarketing Presentation of Mechanical Engineering @ DSU for High School Students
Marketing Presentation of Mechanical Engineering @ DSU for High School Students
 
"It isn't exactly Rocket Science" : The artsy science of rocket propulsion
"It isn't exactly Rocket Science" : The artsy science of rocket propulsion"It isn't exactly Rocket Science" : The artsy science of rocket propulsion
"It isn't exactly Rocket Science" : The artsy science of rocket propulsion
 
2 Day Workshop on Digital Datcom and Simulink
2 Day Workshop on Digital Datcom and Simulink2 Day Workshop on Digital Datcom and Simulink
2 Day Workshop on Digital Datcom and Simulink
 
Why Choose Graduate Studies at the University you work in?
Why Choose Graduate Studies at the University you work in?Why Choose Graduate Studies at the University you work in?
Why Choose Graduate Studies at the University you work in?
 
ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]
ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]
ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]
 
ME 312 Mechanical Machine Design - Introduction [Week 1]
ME 312 Mechanical Machine Design - Introduction [Week 1]ME 312 Mechanical Machine Design - Introduction [Week 1]
ME 312 Mechanical Machine Design - Introduction [Week 1]
 
labview-cert
labview-certlabview-cert
labview-cert
 
WindTunnel_Certificate
WindTunnel_CertificateWindTunnel_Certificate
WindTunnel_Certificate
 
ME438 Aerodynamics (week 12)
ME438 Aerodynamics (week 12)ME438 Aerodynamics (week 12)
ME438 Aerodynamics (week 12)
 
ME438 Aerodynamics (week 11)
ME438 Aerodynamics (week 11)ME438 Aerodynamics (week 11)
ME438 Aerodynamics (week 11)
 
ME-438 Aerodynamics (week 10)
ME-438 Aerodynamics (week 10)ME-438 Aerodynamics (week 10)
ME-438 Aerodynamics (week 10)
 
ME-438 Aerodynamics (week 9)
ME-438 Aerodynamics (week 9)ME-438 Aerodynamics (week 9)
ME-438 Aerodynamics (week 9)
 
ME438 Aerodynamics (week 8)
ME438 Aerodynamics (week 8)ME438 Aerodynamics (week 8)
ME438 Aerodynamics (week 8)
 
ME438 Aerodynamics (week 5-6-7)
ME438 Aerodynamics (week 5-6-7)ME438 Aerodynamics (week 5-6-7)
ME438 Aerodynamics (week 5-6-7)
 
Me438 Aerodynamics (week 1-2-3)
Me438 Aerodynamics (week 1-2-3)Me438 Aerodynamics (week 1-2-3)
Me438 Aerodynamics (week 1-2-3)
 
ME 312 Mechanical Machine Design - Lecture 01
ME 312 Mechanical Machine Design  - Lecture 01ME 312 Mechanical Machine Design  - Lecture 01
ME 312 Mechanical Machine Design - Lecture 01
 
ME 313 Mechanical Measurements and Instrumentation Lecture 01
ME 313 Mechanical Measurements and Instrumentation Lecture 01ME 313 Mechanical Measurements and Instrumentation Lecture 01
ME 313 Mechanical Measurements and Instrumentation Lecture 01
 

Recently uploaded

Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 

Recently uploaded (20)

Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 

Av 738- Adaptive Filtering - Wiener Filters[wk 3]

  • 1. Av-738 Adaptive Filter Theory Lecture 3- Optimum Filtering [Weiner Filters] Dr. Bilal A. Siddiqui Air University (PAC Campus) Spring 2018
  • 2. Linear Optimum Filtering • Consider a linear discrete-time filter • The filter is linear (to make mathematical analysis easier to handle) • Filter operates in discrete time (makes implementation easier) • The requirement is to make the filter error e(n) as small as possible in some statistical sense • Statistical “sense” means filter output should be optimum (minimizing some criteria). Candidate criteria are expectation of: • Absolute value of estimation error • Square of absolute value (or mean-square value) of estimation error • Third or higher power of absolute value of estimation error • Option 1 has a discontinuous first derivative. Option 3 is also mathematically cumbersome • Option 2 has a unique minimum, and has a second order dependence on filter weights, which makes optimization possible. 𝐽 = 𝐸 𝑒 𝑛 𝑒∗ 𝑛 = 𝐸 𝑒 𝑛 2 • The linear optimal filtering problem is then formally stated as “design a discrete-time linear filter whose output y(n) provides an estimate of the desired response d(n) such that mean-square value of estimation error is minimized.”
  • 3. Weiner filter – Derivation ,part 1 • The problem is to minimize J by choosing the optimum weights w0 • Since filter coefficients are also (in general complex), 𝑤 𝑘 = 𝑎 𝑘 + 𝑗𝑏 𝑘 • Let’s define the gradient operator (general derivative), 𝛻𝑘 = 𝜕 𝜕𝑎 𝑘 + 𝑗 𝜕 𝜕𝑏 𝑘 • Multi-dimensional gradient of the (scalar and real) cost function is, therefore 𝛻𝑘 𝐽 = 𝜕𝐽 𝜕𝑎 𝑘 + 𝑗 𝜕𝐽 𝜕𝑏 𝑘 • For J to attain a minimum, the necessary condition is 𝛻𝑘 𝐽 = 0 𝛻𝑘 𝐽 = 𝛻𝑘 𝐸 𝑒 𝑛 𝑒∗ 𝑛 = 𝐸 𝛻𝑘 𝑒 𝑛 𝑒∗ 𝑛 𝛻𝑘 𝐽 = 𝐸 𝜕𝑒 𝑛 𝜕𝑎 𝑘 𝑒∗ 𝑛 + 𝜕𝑒∗ 𝑛 𝜕𝑎 𝑘 𝑒 𝑛 + 𝑗 𝜕𝑒 𝑛 𝜕𝑏 𝑘 𝑒∗ 𝑛 + 𝜕𝑒∗ 𝑛 𝜕𝑏 𝑘 𝑒 𝑛
  • 4. Weiner filter – derivation 2 𝛻𝑘 𝐽 = 𝐸 𝜕𝑒 𝑛 𝜕𝑎 𝑘 𝑒∗ 𝑛 + 𝜕𝑒∗ 𝑛 𝜕𝑎 𝑘 𝑒 𝑛 + 𝜕𝑒 𝑛 𝜕𝑏 𝑘 𝑗𝑒∗ 𝑛 + 𝜕𝑒∗ 𝑛 𝜕𝑏 𝑘 𝑗𝑒 𝑛 • Since, 𝑒 𝑛 = 𝑑 𝑛 − 𝑘=0 𝑀−1 𝑤 𝑘 ∗ 𝑢 𝑛 − 𝑘 = 𝑑 𝑛 + 𝑘=0 𝑀−1 −𝑎 𝑘 + 𝑗𝑏 𝑘 𝑢 𝑛 − 𝑘 and d(n) is not a function of wk 𝛻𝑘 𝐽 = −2𝐸 𝑢 𝑛 − 𝑘 𝑒∗ 𝑛 • If e0 is the special value of estimation error when filter operates in optimum condition 𝐸 𝑢 𝑛 − 𝑘 𝑒0 ∗ 𝑛 = 0 • This is an optimum result. It states that, “The necessary and sufficient condition for the cost function J to attain its minimum, the error value at the operating condition is orthogonal (i.e. unaffected) by all the samples of input used to calculate that estimate.” • Since 𝐸 𝑦 𝑛 𝑒∗ 𝑛 = 𝐸 𝑘=0 𝑀−1 𝑤 𝑘 ∗ 𝑢 𝑛 − 𝑘 𝑒∗ 𝑛 = 𝑘=0 𝑀−1 𝑤 𝑘 ∗ 𝐸 𝑢 𝑛 − 𝑘 𝑒∗ 𝑛 • This means 𝐸 𝑦0 𝑛 𝑒0 ∗ 𝑛 = 0, i.e. optimum output is orthogonal to min. error
  • 5. Weiner Filter - Orthogonality • For a filter of order 2, this is pictorially depicted below
  • 6. Weiner-Hopf Equation • Let’s re-write the orthogonality condition in terms of optimal weights (k=0,1,2,…M-1) 𝐸 𝑢 𝑛 − 𝑘 𝑒0 ∗ 𝑛 = 𝐸 𝑢 𝑛 − 𝑘 𝑑∗ − 𝑙=0 𝑀−1 𝑤𝑙,0 𝑢∗ 𝑛 − 𝑙 = 0 Expanding the equation for 𝑙=0 𝑀−1 𝑤𝑙,0 𝐸 𝑢 𝑛 − 𝑘 𝑢∗ 𝑛 − 𝑙 = 𝐸 𝑢 𝑛 − 𝑘 𝑑∗ 𝑛 Recognizing autocorrelation 𝑟 𝑙 − 𝑘 = 𝐸 𝑢 𝑛 − 𝑘 𝑢∗ 𝑛 − 𝑙 and cross-correlation 𝑝 −𝑘 = 𝐸 𝑢 𝑛 − 𝑘 𝑑∗ 𝑛 𝑙=0 𝑀−1 𝑤𝑙,0 𝑟 𝑙 − 𝑘 = 𝑝 −𝑘 This can be written in matrix form for 𝑢 𝑛 = [𝑢 𝑛 𝑢 𝑛 − 1 … 𝑢 𝑛 − 𝑀 − 1 ], 𝑹 𝒖 = 𝐸 𝑢 𝑛 𝑢 𝐻 𝑛 , 𝒑 𝒅𝒖 = 𝑝 0 𝑝 1 … 𝑝 𝑀 − 1 and 𝒘 𝟎 = 𝑤0,0 𝑤1,0 … 𝑤 𝑀−1,0 𝒘 𝟎 = 𝑹 𝒖 −𝟏 𝒑 𝒅𝒖 This is known as the Weiner-Hopf equation
  • 7. Mean Square Error Surface • Let the desired filter be of order M (number of tap lines) 𝒚 𝒏 = 𝑘=0 𝑀−1 𝑤 𝑘 ∗ 𝑢 𝑛 − 𝑘 = 𝒘 𝑯 𝒖(𝒏), 𝒆 𝒏 = 𝒅 𝒏 − 𝒚 𝒏 • The mean square error is 𝐽 𝑤 = 𝐸 𝑒 𝑛 𝑒∗ 𝑛 = 𝐸 𝒅 𝒏 − 𝒘 𝑯 𝒖 𝒏 𝒅 𝒏 − 𝒘 𝑯 𝒖 𝒏 𝐻 = 𝐸 𝒅 𝟐 𝒏 − 2𝒘 𝑯 𝐸 𝒅 𝒏 𝒖 𝒏 + 𝒘 𝑯 𝐸 𝒖 𝒏 𝒖 𝑯 𝒏 𝒘 ⇒ 𝐽 𝑤 = 𝜎 𝑑 2 − 2𝒘 𝑯 𝒑 𝒅𝒖 + 𝒘 𝑯 𝑹 𝒖 𝒘 Also, for optimal solution, we known that 𝒘 𝟎 = 𝑹 𝒖 −𝟏 𝒑 𝒅𝒖 𝐽0 𝑤0 = 𝜎 𝑑 2 − 2𝒑 𝒅𝒖 𝑯 𝑹 𝒖 −𝟏 𝒑 𝒅𝒖
  • 8. Example: System Identification • Find the optimum filter coefficients wo and w1 of the Wiener filter, which approximates (models) the unknown FIR system with coefficients bo= 1.5 and b1= 0.5 and contaminated with additive white uniformly distributed noise of 0.02 variance. Input is white Gaussian noise of variance 1. clc;clear; n =0.5*(rand(1,200)-0.5);%n=noise vector with zero mean and variance 0.02 u=randn(1,200);% u=data vector entering the system y=filter( [1.5 0.5],1,u); %filter output d=y + n; % desired output [ru,lagsru]=xcorr(u,1,'unbiased') ; Ru=toeplitz(ru(1:2)); [pdu,lagsdu]=xcorr(u,d,1,'unbiased') ; W_opt=inv(Ru) *pdu(1:2)' ; % optimum Weiner filter weights sigma2d=xcorr(d,d,0);%autocorrelation of d at zero lag jmin=mean((d-filter(w_opt,1,u)).^2);
  • 9. Error Surface w=[linspace(-3*w_opt(1),3*w_opt(1),50);linspace(-9*w_opt(2),9*w_opt(2),50)]; [w1,w2]=meshgrid(w(1,:),w(2,:)); for k=1:length(w1) for l=1:length(w2) J(k,l)=mean((d-filter([w1(k,l) w2(k,l)],1,u)).^2); end end surf(w1,w2,J); xlabel('W_1');ylabel('W_2');zlabel('Cost Function, J');
  • 10. Schematic of the previous example
  • 11. Noise Cancellation with Weiner Filter • In many practical applications we need to cancel the noise added to a signal. • E.g., when pilots in planes and helicopters try to communicate, or tank drivers try to do the same, noise from engine etc. is added to original speech.
  • 12. The two mic problem • In this case, we will have two mics. One near pilot’s mouth, the other away from it, probably both mounted on the helmet. • We will measure v2 to estimate v1. Assume both are zero mean. • In this case the Wiener filter is (since desired signal is v2) 𝑅 𝑣2 𝑤𝑜 = 𝑝 𝑣1,𝑣2 • v2 is being measured so Rv2 can be easily calculated. But, v1 is not measured. Clearly v1 and v2 are correlated as they emanate from same source but follow different paths. 𝑝 𝑣1 ,𝑣2 𝑘 = 𝐸 𝑣1 𝑛 𝑣2 𝑛 − 𝑘 = 𝐸 𝑥 𝑛 − 𝑑(𝑛) 𝑣2 𝑛 − 𝑘 = 𝐸 𝑥 𝑛 𝑣2 𝑛 − 𝑘 − 𝐸 𝑑(𝑛)𝑣2 𝑛 − 𝑘 • Since d and v2 are not correlated, 𝐸 𝑑(𝑛)𝑣2 𝑛 − 𝑘 = 𝐸 𝑑 𝑛 𝐸(𝑣2(𝑛 − 𝑘)=0 • Therefore, 𝑝 𝑣1 ,𝑣2 𝑘 = 𝐸 𝑥 𝑛 𝑣2 𝑛 − 𝑘 =𝑝 𝑥,𝑣2 𝑘 which can be estimated.
  • 13. Example of Noise Cancellation Let 𝑑 𝑛 = sin 0.1𝑛𝜋 + 0.2𝜋 , 𝑣1 𝑛 = 0.8𝑣1 𝑛 − 1 + 𝑣(𝑛) and 𝑣1 𝑛 = −0.95𝑣2 𝑛 − 1 + 𝑣(𝑛), where v(n) is white noise with zero mean value and unit variance. n=1:500; d=sin(0.1*n*pi+0.2*pi); v=randn(1,length(n)); v1=filter(0.8,1,v); v2=filter(-0.95,1,v); x=d+v1; plot(n,d,n,x); legend('original signal','noisy signal')
  • 14. M=16; r_v2=xcorr(v2,M,'unbiased');%autocorrelation of v Rv2=toeplitz(r_v2(1:M+1)) ; p_xv2=xcorr(x,v2,M,'unbiased'); w=inv(Rv2)*p_xv2(1:M+1)' ; y=filter(w,1,v2) ; d_est=x-y; figure; plot(n,d,n,d_est); legend('original signal','Weinner filtered')
  • 15. Homework 1 (b) • Find the Wiener coefficients wo , w1 and w2 that approximates the unknown system coefficients which are bo= 0.7 and b1 =0.5. Let the noise v(n) be white with zero mean and variance 0.15. Further, we assume that the input data sequence x(n) is stationary white process with zero mean and variance 1. In addition, v(n) and x(n) are uncorrelated and v(n) is added to the output of the system under study. Also find Jmin using the orthogonality principle