SlideShare a Scribd company logo
Adaptive filters
x(n)
‫ݓ‬଴ ሺ݊ሻ

‫ି ݖ‬ଵ

x(n-1)
‫ݓ‬ଵ ሺ݊ሻ

‫ି ݖ‬ଵ

‫ି ݖ‬ଵ

x(n-2)

‫ݓ‬ଶ ሺ݊ሻ

x(n-L+1)

‫ݓ‬௅ିଵ ሺ݊ሻ

...

y(n)

General formulation
The output of the adaptive filter is

‫ݕ‬ሺ݊ሻ = ∑௅ିଵ ‫ݓ‬௟ ሺ݊ሻ‫ݔ‬ሺ݊ − ݈ሻ
௟ୀ଴

(1)

where the filter coefficients are time-varying and updated by the adaptive algorithms (to be discussed).
We define the input vector at time n as

‫ ̅ݔ‬ሺ݊ሻ ≜ ሾ‫ݔ‬ሺ݊ሻ	‫ݔ‬ሺ݊ − 1ሻ … ‫ݔ‬ሺ݊ − ‫1 + ܮ‬ሻሿ்

(2)

‫ ݓ‬ሺ݊ሻ ≜ ሾ‫ݓ‬଴ ሺ݊ሻ	‫ݓ‬ଵ ሺ݊ሻ … ‫ݓ‬௅ିଵ ሺ݊ሻሿ்
ഥ

(3)

ഥሺ݊ሻ	
‫ݕ‬ሺ݊ሻ = ‫ ் ݓ‬ሺ݊ሻ	‫ ̅ݔ‬ሺ݊ሻ = 	 ‫ ் ̅ݔ‬ሺ݊ሻ		‫ݓ‬
ഥ

(4)

݁ሺ݊ሻ = ݀ሺ݊ሻ − ‫ݕ‬ሺ݊ሻ = ݀ሺ݊ሻ − 	 ‫ ் ݓ‬ሺ݊ሻ	‫ ̅ݔ‬ሺ݊ሻ
ഥ

(5)

and the weight vector at time n as

Eq. (1) can be expressed in vector form as

The filter output y(n) is compared with the desired d(n) to obtain the error signal
The objective is to determine the weight vector ‫ݓ‬
ഥሺ݊ሻ to minimise a predetermined performance (or
cost) function.

1
Optimization
The most commonly used performance function is based on the mean squared error (MSE) defined as
ߦሺ݊ሻ ≜ ‫ܧ‬ሾ݁ ଶ ሺ݊ሻሿ

(6)

ത ഥሺ݊ሻ
ߦሺ݊ሻ = ‫ܧ‬ሾ݀ଶ ሺ݊ሻሿ − 2	‫ ݓ	 ் ̅݌‬ሺ݊ሻ + 	 ‫ ் ݓ‬ሺ݊ሻ	ܴ		‫ݓ‬
ഥ
ഥ

(7)

The MSE function determined by substituting eq. (5) in eq. (6) can be expressed as
where ‫ 	 ̅݌‬is the autocorrelation vector defined as

‫ܧ ≜ ̅݌‬ሾ݀ሺ݊ሻ‫ ̅ݔ‬ሺ݊ሻሿ = ሾ‫ݎ‬ௗ௫ ሺ0ሻ	‫ݎ‬ௗ௫ ሺ1ሻ … ‫ݎ‬ௗ௫ ሺ‫1 − ܮ‬ሻሿ்

and

‫ݎ‬ௗ௫ ሺ݇ሻ ≜ ‫ܧ‬ሾ݀ሺ݊ + ݇ሻ‫ݔ‬ሺ݊ሻሿ

is the autocorrelation function between ݀ሺ݊ሻ and ‫ݔ‬ሺ݊ሻ.
ത
ܴ is the input autocorrelation matrix defined as

‫ݎ‬௫௫ ሺ1ሻ
… ‫ݎ‬௫௫ ሺ‫1 − ܮ‬ሻ	
‫ݎ‬௫௫ ሺ0ሻ
‫ݎ‬௫௫ ሺ1ሻ
‫ݎ‬௫௫ ሺ0ሻ
… ‫ݎ‬௫௫ ሺ‫2 − ܮ‬ሻ
ܴ ≜ ‫ܧ‬ሾ‫ ̅ݔ‬ሺ݊ሻ‫ ் ̅ݔ‬ሺ݊ሻሿ = 	 ൦
൪
⋮
⋮
⋱
⋮
‫ݎ‬௫௫ ሺ‫1 − ܮ‬ሻ ‫ݎ‬௫௫ ሺ‫2 − ܮ‬ሻ ⋯
‫ݎ‬௫௫ ሺ0ሻ

where ‫ݎ‬௫௫ is the autocorrelation function of ‫ݔ‬ሺ݊ሻ.

Steepest descent
The MSE in eq. (7) is a quadratic function of the weights. We can use a steepest descent method in order
to reach the minimum by following the negative gradient direction, in which the performance surface
has the greatest rate of decrease.
where ߤ is a step size.

‫1 + ݓ‬ሻ = 	 ‫ ݓ‬ሺ݊ሻ − 	 ∇ߦሺ݊ሻ
ഥሺ݊
ഥ
ఓ
ଶ

2

(8)
The LMS algorithm
In many practical applications, the statistics of d(n) and x(n) are unknown. Therefore, the steepest
descent method cannot be used directly since it assumes exact knowledge of the gradient vector. The
LMS algorithm uses the instantaneous error ݁ ଶ ሺ݊ሻ to estimate the Mean Squared Error (MSE).
ߦሺ݊ሻ ≜ ݁ ଶ ሺ݊ሻ

Therefore, the gradient used by the LMS algorithm can be written as
∇ߦሺ݊ሻ = ∇݁ ଶ ሺ݊ሻ = 2 ∙ ∇݁ሺ݊ሻ ∙ ݁ሺ݊ሻ

(9)

Since ݁ሺ݊ሻ = ݀ሺ݊ሻ − ‫ ் ݓ‬ሺ݊ሻ‫ ̅ݔ‬ሺ݊ሻ
ഥ

∇eሺnሻ = ∇൫݀ሺ݊ሻ − ‫ ் ݓ‬ሺ݊ሻ‫ ̅ݔ‬ሺ݊ሻ൯ = −xሺnሻ
ഥ
ത

Therefore, the gradient estimate of eq. (9) becomes

∇ߦሺ݊ሻ = −2 ∙ ݁ሺ݊ሻ ∙ ‫ ̅ݔ‬ሺ݊ሻ

By substituting this gradient estimate into the steepest descent algorithm of eq. (8), we have
‫ ݓ‬ሺ݊ + 1ሻ = ‫ݓ‬
ഥ
ഥሺ݊ሻ + ߤ ∙ ‫ ̅ݔ‬ሺ݊ሻ ∙ ݁ሺ݊ሻ

This is the well-known LMS algorithm. It is simple and does not require squaring, averaging, and
differentiating. The LMS structure is graphically depicted in the figure below.
d(n)
x(n)

‫ݓ‬
ഥሺ݊ሻ

+
y(n)

-

+

e(n)

LMS

Steps for the application of the LMS algorithm:

1. Determine ‫ ߤ ,ܮ‬and ‫ݓ‬
ഥሺ0ሻ , where L is the length of the filter, 	ߤ is the LMS step size, and ‫ ݓ‬ሺ0ሻ is
ഥ
the initial filter vector.
2. Compute the output of the adaptive filter as: ‫ݕ‬ሺ݊ሻ = ∑௅ିଵ ‫ݓ‬௟ ሺ݊ሻ‫ݔ‬ሺ݊ − ݈ሻ
௟ୀ଴
3. Compute the error signal ݁ሺ݊ሻ = ݀ሺ݊ሻ − ‫ݕ‬ሺ݊ሻ
4. Update the adaptive filter vector using the LMS algorithm
‫ݓ‬௟ ሺ݊ + 1ሻ = ‫ݓ‬௟ ሺ݊ሻ + ߤ ∙ ‫ݔ‬ሺ݊ − ݈ሻ ∙ ݁ሺ݊ሻ
3

More Related Content

PPT
Extrapolation
PPT
Extrapolation
PPTX
case study of curve fitting
PPTX
Extrapolation
PPTX
Dmitrii Tihonkih - The Iterative Closest Points Algorithm and Affine Transfo...
PPT
Wk 6 part 2 non linearites and non linearization april 05
PPTX
Math Geophysics-system of linear algebraic equations
PDF
Modern Control System (BE)
Extrapolation
Extrapolation
case study of curve fitting
Extrapolation
Dmitrii Tihonkih - The Iterative Closest Points Algorithm and Affine Transfo...
Wk 6 part 2 non linearites and non linearization april 05
Math Geophysics-system of linear algebraic equations
Modern Control System (BE)

What's hot (19)

PPSX
linear algebra in control systems
PDF
The Controller Design For Linear System: A State Space Approach
PPTX
Chapter 4: Linear Algebraic Equations
PPTX
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
PPTX
Week 15 state space rep may 25 2016 final
PPTX
linear equation and gaussian elimination
PDF
R nonlinear least square
PDF
Classical Mechanics
PDF
24 kestirim-omar
PPTX
Signal flow graph
PPT
Gauss elimination
PDF
Estimation Theory Class (Summary and Revision)
PPTX
Solution of equations for methods iterativos
PDF
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
DOC
Term paper
PPTX
Convolution&Correlation
PPT
linear Algebra least squares
PPTX
ELEMENTARY ROW OPERATIONS
linear algebra in control systems
The Controller Design For Linear System: A State Space Approach
Chapter 4: Linear Algebraic Equations
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Week 15 state space rep may 25 2016 final
linear equation and gaussian elimination
R nonlinear least square
Classical Mechanics
24 kestirim-omar
Signal flow graph
Gauss elimination
Estimation Theory Class (Summary and Revision)
Solution of equations for methods iterativos
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
Term paper
Convolution&Correlation
linear Algebra least squares
ELEMENTARY ROW OPERATIONS
Ad

Viewers also liked (20)

PDF
Reducting Power Dissipation in Fir Filter: an Analysis
PPTX
A Multiple-Shooting Differential Dynamic Programming Algorithm
DOCX
Optimization of Cairo West Power Plant for Generation
PPTX
Outdoor propagatiom model
PPTX
3. the-wireless-channel-2
PPT
Wiener filters
PDF
Gradient descent method
PPT
Outdoor indoor Propagation
PPTX
Nlms algorithm for adaptive filter
PPT
Parameters of multipath channel
PPT
combat fading in wireless
PPTX
Adaptive filter
PPTX
Large scale path loss 1
PPT
Fading Seminar
PPT
Small scale fading
PPTX
Noice canclellation using adaptive filters with adpative algorithms(LMS,NLMS,...
PPTX
Chap 5 (small scale fading)
PPT
Adaptive filter
PPT
Introduction To Wireless Fading Channels
PPTX
Chap 4 (large scale propagation)
Reducting Power Dissipation in Fir Filter: an Analysis
A Multiple-Shooting Differential Dynamic Programming Algorithm
Optimization of Cairo West Power Plant for Generation
Outdoor propagatiom model
3. the-wireless-channel-2
Wiener filters
Gradient descent method
Outdoor indoor Propagation
Nlms algorithm for adaptive filter
Parameters of multipath channel
combat fading in wireless
Adaptive filter
Large scale path loss 1
Fading Seminar
Small scale fading
Noice canclellation using adaptive filters with adpative algorithms(LMS,NLMS,...
Chap 5 (small scale fading)
Adaptive filter
Introduction To Wireless Fading Channels
Chap 4 (large scale propagation)
Ad

Similar to Adaptive filtersfinal (11)

PDF
HEURISTIC BASED ADAPTIVE STEP SIZE CLMS ALGORITHMS FOR SMART ANTENNAS
PDF
Heuristic based adaptive step size clms algorithms for smart antennas
PPT
Introduction to adaptive filtering and its applications.ppt
PDF
Mitigating Interference to GPS Operation Using Variable Forgetting Factor Bas...
PPT
lecture2forelectronics and communication.ppt
PPT
Adaptive Filters dsp.ppt
PPTX
Channel Equalisation
PDF
Performance_Analysis_of_LMS_Adaptive_FIR_Filter_an.pdf
PDF
PERFORMANCE ANALYIS OF LMS ADAPTIVE FIR FILTER AND RLS ADAPTIVE FIR FILTER FO...
PDF
Download full ebook of Adaptive Filtering Edited By Lino Garcia instant downl...
PDF
20120140504026
HEURISTIC BASED ADAPTIVE STEP SIZE CLMS ALGORITHMS FOR SMART ANTENNAS
Heuristic based adaptive step size clms algorithms for smart antennas
Introduction to adaptive filtering and its applications.ppt
Mitigating Interference to GPS Operation Using Variable Forgetting Factor Bas...
lecture2forelectronics and communication.ppt
Adaptive Filters dsp.ppt
Channel Equalisation
Performance_Analysis_of_LMS_Adaptive_FIR_Filter_an.pdf
PERFORMANCE ANALYIS OF LMS ADAPTIVE FIR FILTER AND RLS ADAPTIVE FIR FILTER FO...
Download full ebook of Adaptive Filtering Edited By Lino Garcia instant downl...
20120140504026

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
cuic standard and advanced reporting.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation theory and applications.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
sap open course for s4hana steps from ECC to s4
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Unlocking AI with Model Context Protocol (MCP)
cuic standard and advanced reporting.pdf
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation theory and applications.pdf
A Presentation on Artificial Intelligence
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Advanced methodologies resolving dimensionality complications for autism neur...
sap open course for s4hana steps from ECC to s4
The AUB Centre for AI in Media Proposal.docx
Dropbox Q2 2025 Financial Results & Investor Presentation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Chapter 3 Spatial Domain Image Processing.pdf
MYSQL Presentation for SQL database connectivity
Mobile App Security Testing_ A Comprehensive Guide.pdf
Network Security Unit 5.pdf for BCA BBA.
Diabetes mellitus diagnosis method based random forest with bat algorithm
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

Adaptive filtersfinal

  • 1. Adaptive filters x(n) ‫ݓ‬଴ ሺ݊ሻ ‫ି ݖ‬ଵ x(n-1) ‫ݓ‬ଵ ሺ݊ሻ ‫ି ݖ‬ଵ ‫ି ݖ‬ଵ x(n-2) ‫ݓ‬ଶ ሺ݊ሻ x(n-L+1) ‫ݓ‬௅ିଵ ሺ݊ሻ ... y(n) General formulation The output of the adaptive filter is ‫ݕ‬ሺ݊ሻ = ∑௅ିଵ ‫ݓ‬௟ ሺ݊ሻ‫ݔ‬ሺ݊ − ݈ሻ ௟ୀ଴ (1) where the filter coefficients are time-varying and updated by the adaptive algorithms (to be discussed). We define the input vector at time n as ‫ ̅ݔ‬ሺ݊ሻ ≜ ሾ‫ݔ‬ሺ݊ሻ ‫ݔ‬ሺ݊ − 1ሻ … ‫ݔ‬ሺ݊ − ‫1 + ܮ‬ሻሿ் (2) ‫ ݓ‬ሺ݊ሻ ≜ ሾ‫ݓ‬଴ ሺ݊ሻ ‫ݓ‬ଵ ሺ݊ሻ … ‫ݓ‬௅ିଵ ሺ݊ሻሿ் ഥ (3) ഥሺ݊ሻ ‫ݕ‬ሺ݊ሻ = ‫ ் ݓ‬ሺ݊ሻ ‫ ̅ݔ‬ሺ݊ሻ = ‫ ் ̅ݔ‬ሺ݊ሻ ‫ݓ‬ ഥ (4) ݁ሺ݊ሻ = ݀ሺ݊ሻ − ‫ݕ‬ሺ݊ሻ = ݀ሺ݊ሻ − ‫ ் ݓ‬ሺ݊ሻ ‫ ̅ݔ‬ሺ݊ሻ ഥ (5) and the weight vector at time n as Eq. (1) can be expressed in vector form as The filter output y(n) is compared with the desired d(n) to obtain the error signal The objective is to determine the weight vector ‫ݓ‬ ഥሺ݊ሻ to minimise a predetermined performance (or cost) function. 1
  • 2. Optimization The most commonly used performance function is based on the mean squared error (MSE) defined as ߦሺ݊ሻ ≜ ‫ܧ‬ሾ݁ ଶ ሺ݊ሻሿ (6) ത ഥሺ݊ሻ ߦሺ݊ሻ = ‫ܧ‬ሾ݀ଶ ሺ݊ሻሿ − 2 ‫ ݓ ் ̅݌‬ሺ݊ሻ + ‫ ் ݓ‬ሺ݊ሻ ܴ ‫ݓ‬ ഥ ഥ (7) The MSE function determined by substituting eq. (5) in eq. (6) can be expressed as where ‫ ̅݌‬is the autocorrelation vector defined as ‫ܧ ≜ ̅݌‬ሾ݀ሺ݊ሻ‫ ̅ݔ‬ሺ݊ሻሿ = ሾ‫ݎ‬ௗ௫ ሺ0ሻ ‫ݎ‬ௗ௫ ሺ1ሻ … ‫ݎ‬ௗ௫ ሺ‫1 − ܮ‬ሻሿ் and ‫ݎ‬ௗ௫ ሺ݇ሻ ≜ ‫ܧ‬ሾ݀ሺ݊ + ݇ሻ‫ݔ‬ሺ݊ሻሿ is the autocorrelation function between ݀ሺ݊ሻ and ‫ݔ‬ሺ݊ሻ. ത ܴ is the input autocorrelation matrix defined as ‫ݎ‬௫௫ ሺ1ሻ … ‫ݎ‬௫௫ ሺ‫1 − ܮ‬ሻ ‫ݎ‬௫௫ ሺ0ሻ ‫ݎ‬௫௫ ሺ1ሻ ‫ݎ‬௫௫ ሺ0ሻ … ‫ݎ‬௫௫ ሺ‫2 − ܮ‬ሻ ܴ ≜ ‫ܧ‬ሾ‫ ̅ݔ‬ሺ݊ሻ‫ ் ̅ݔ‬ሺ݊ሻሿ = ൦ ൪ ⋮ ⋮ ⋱ ⋮ ‫ݎ‬௫௫ ሺ‫1 − ܮ‬ሻ ‫ݎ‬௫௫ ሺ‫2 − ܮ‬ሻ ⋯ ‫ݎ‬௫௫ ሺ0ሻ where ‫ݎ‬௫௫ is the autocorrelation function of ‫ݔ‬ሺ݊ሻ. Steepest descent The MSE in eq. (7) is a quadratic function of the weights. We can use a steepest descent method in order to reach the minimum by following the negative gradient direction, in which the performance surface has the greatest rate of decrease. where ߤ is a step size. ‫1 + ݓ‬ሻ = ‫ ݓ‬ሺ݊ሻ − ∇ߦሺ݊ሻ ഥሺ݊ ഥ ఓ ଶ 2 (8)
  • 3. The LMS algorithm In many practical applications, the statistics of d(n) and x(n) are unknown. Therefore, the steepest descent method cannot be used directly since it assumes exact knowledge of the gradient vector. The LMS algorithm uses the instantaneous error ݁ ଶ ሺ݊ሻ to estimate the Mean Squared Error (MSE). ߦሺ݊ሻ ≜ ݁ ଶ ሺ݊ሻ Therefore, the gradient used by the LMS algorithm can be written as ∇ߦሺ݊ሻ = ∇݁ ଶ ሺ݊ሻ = 2 ∙ ∇݁ሺ݊ሻ ∙ ݁ሺ݊ሻ (9) Since ݁ሺ݊ሻ = ݀ሺ݊ሻ − ‫ ் ݓ‬ሺ݊ሻ‫ ̅ݔ‬ሺ݊ሻ ഥ ∇eሺnሻ = ∇൫݀ሺ݊ሻ − ‫ ் ݓ‬ሺ݊ሻ‫ ̅ݔ‬ሺ݊ሻ൯ = −xሺnሻ ഥ ത Therefore, the gradient estimate of eq. (9) becomes ∇ߦሺ݊ሻ = −2 ∙ ݁ሺ݊ሻ ∙ ‫ ̅ݔ‬ሺ݊ሻ By substituting this gradient estimate into the steepest descent algorithm of eq. (8), we have ‫ ݓ‬ሺ݊ + 1ሻ = ‫ݓ‬ ഥ ഥሺ݊ሻ + ߤ ∙ ‫ ̅ݔ‬ሺ݊ሻ ∙ ݁ሺ݊ሻ This is the well-known LMS algorithm. It is simple and does not require squaring, averaging, and differentiating. The LMS structure is graphically depicted in the figure below. d(n) x(n) ‫ݓ‬ ഥሺ݊ሻ + y(n) - + e(n) LMS Steps for the application of the LMS algorithm: 1. Determine ‫ ߤ ,ܮ‬and ‫ݓ‬ ഥሺ0ሻ , where L is the length of the filter, ߤ is the LMS step size, and ‫ ݓ‬ሺ0ሻ is ഥ the initial filter vector. 2. Compute the output of the adaptive filter as: ‫ݕ‬ሺ݊ሻ = ∑௅ିଵ ‫ݓ‬௟ ሺ݊ሻ‫ݔ‬ሺ݊ − ݈ሻ ௟ୀ଴ 3. Compute the error signal ݁ሺ݊ሻ = ݀ሺ݊ሻ − ‫ݕ‬ሺ݊ሻ 4. Update the adaptive filter vector using the LMS algorithm ‫ݓ‬௟ ሺ݊ + 1ሻ = ‫ݓ‬௟ ሺ݊ሻ + ߤ ∙ ‫ݔ‬ሺ݊ − ݈ሻ ∙ ݁ሺ݊ሻ 3