ArticleslgStudy

mathematics

Least mean squares filter

Least mean squares filter is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Least mean squares filter rather than just read about it. In short: Least mean squares (LMS) algorithms are a class of adaptive filter used to mimic a desired filter by finding the filter coefficients that relate to producing the least mean square of the error signal (difference between the desired and the actual signal). It is a stochastic gradient descent method in that the filter is only adapted based on the error at the current time.

Least mean squares filter — main illustration
Least mean squares filter — illustration

Key takeaways

  • Least mean squares filter belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Least mean squares filter to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Least mean squares filter from memory before moving on to harder problems.

Reference excerpt

Least mean squares (LMS) algorithms are a class of adaptive filter used to mimic a desired filter by finding the filter coefficients that relate to producing the least mean square of the error signal (difference between the desired and the actual signal). It is a stochastic gradient descent method in that the filter is only adapted based on the error at the current time. It was invented in 1960 by Stanford University professor Bernard Widrow and his first Ph.D. student, Ted Hoff, based on their research into single-layer neural networks. Specifically, they used gradient descent to train an ADALINE to recognize patterns, and called the algorithm "delta rule". They applied the rule to filters, resulting in the LMS algorithm.

Problem formulation The picture shows the various parts of the filter. x {\displaystyle x} is the input signal, which is then transformed by an unknown filter h {\displaystyle h} that we wish to match using h ^ {\displaystyle {\hat {h}}} . The output from the unknown filter is y {\displaystyle y} , which is then interfered with a noise signal ν {\displaystyle \nu } , producing d = y + ν {\displaystyle d=y+\nu } . Then the error signal e = d − y ^ = y + ν − y ^ {\displaystyle e=d-{\hat {y}}=y+\nu -{\hat {y}}} is computed, and it is fed back to the adaptive filter, to adjust its parameters in order to minimize the mean squared error, ∑ e 2 / n {\displaystyle \sum e^{2}/n} .

Relationship to the Wiener filter The realization of the causal Wiener filter resembles the solution to the least squares estimate, except in the signal processing domain. The least squares solution for input matrix X {\displaystyle \mathbf {X} } and output vector y {\displaystyle {\boldsymbol {y}}}

is

β ^ = ( X T X ) − 1 X T y . {\displaystyle {\boldsymbol {\hat {\beta }}}=(\mathbf {X} ^{\mathbf {T} }\mathbf {X} )^{-1}\mathbf {X} ^{\mathbf {T} }{\boldsymbol {y}}.}

The finite impulse response (FIR) least mean squares filter is related to the Wiener filter, but minimizing the error criterion of the former does not rely on cross-correlations or auto-correlations. Its solution converges to the Wiener filter solution. Most linear adaptive filtering problems can be formulated using the block diagram above. That is, an unknown system h ( n ) {\displaystyle \mathbf {h} (n)} is to be identified and the adaptive filter attempts to adapt the filter h ^ ( n ) {\displaystyle {\hat {\mathbf {h} }}(n)} to make it as close as possible to h ( n ) {\displaystyle \mathbf {h} (n)} , while using only observable signals x ( n ) {\displaystyle x(n)} , d ( n ) {\displaystyle d(n)} and e ( n ) {\displaystyle e(n)} ; but y ( n ) {\displaystyle y(n)} , v ( n ) {\displaystyle v(n)} and h ( n ) {\displaystyle h(n)} are not directly observable. Its solution is closely related to the Wiener filter.

Definition of symbols

n {\displaystyle n} is the number of the current input sample

p {\displaystyle p} is the number of filter taps

{ ⋅ } H {\displaystyle \{\cdot \}^{H}} (Hermitian transpose or conjugate transpose)

x ( n ) = [ x ( n ) , x ( n − 1 ) , … , x ( n − p + 1 ) ] T {\displaystyle \mathbf {x} (n)=\left[x(n),x(n-1),\dots ,x(n-p+1)\right]^{T}}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Least mean squares filter

Start with the simplest possible case. Write down what Least mean squares filter claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Least mean squares filter before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Least mean squares filter ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Least mean squares filter

In research
Least mean squares filter appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Least mean squares filter in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Least mean squares filter is common in secondary-school and first-year university syllabi. It links to neighbouring topics Digital signal processing, Filter theory, Statistical algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Least mean squares filter outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Least mean squares filter” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Least mean squares filter in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Least mean squares filter means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Least mean squares filter out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Least mean squares filter in simple terms?

Least mean squares (LMS) algorithms are a class of adaptive filter used to mimic a desired filter by finding the filter coefficients that relate to producing the least mean square of the error signal (difference between the desired and the actual signal). It is a stochastic gradient descent method…

Why does Least mean squares filter matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Least mean squares filter?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Least mean squares filter.

Tags

  • Digital signal processing
  • Filter theory
  • Statistical algorithms

Keep exploring