ArticleslgStudy

mathematics

Least-squares function approximation

Least-squares function approximation 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-squares function approximation rather than just read about it. In short: In mathematics, least squares function approximation applies the principle of least squares to function approximation, by means of a weighted sum of other functions. The best approximation can be defined as that which minimizes the difference between the original function and the approximation; for a least-squares approach the quality of the approximation is measured in terms of the squared differences between the t…

Key takeaways

  • Least-squares function approximation 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-squares function approximation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Least-squares function approximation from memory before moving on to harder problems.

Reference excerpt

In mathematics, least squares function approximation applies the principle of least squares to function approximation, by means of a weighted sum of other functions. The best approximation can be defined as that which minimizes the difference between the original function and the approximation; for a least-squares approach the quality of the approximation is measured in terms of the squared differences between the two.

Functional analysis

A generalization to approximation of a data set is the approximation of a function by a sum of other functions, usually an orthogonal set:

f ( x ) ≈ f n ( x ) = a 1 ϕ 1 ( x ) + a 2 ϕ 2 ( x ) + ⋯ + a n ϕ n ( x ) , {\displaystyle f(x)\approx f_{n}(x)=a_{1}\phi _{1}(x)+a_{2}\phi _{2}(x)+\cdots +a_{n}\phi _{n}(x),\ }

with the set of functions { ϕ j ( x ) {\displaystyle \ \phi _{j}(x)} } an orthonormal set over the interval of interest, say [a, b]: see also Fejér's theorem. The coefficients { a j {\displaystyle \ a_{j}} } are selected to make the magnitude of the difference ||f − fn||2 as small as possible. For example, the magnitude, or norm, of a function g (x ) over the interval [a, b] can be defined by:

‖ g ‖ = ( ∫ a b g ∗ ( x ) g ( x ) d x ) 1 / 2 {\displaystyle \|g\|=\left(\int _{a}^{b}g^{*}(x)g(x)\,dx\right)^{1/2}}

where the ‘*’ denotes complex conjugate in the case of complex functions. The extension of Pythagoras' theorem in this manner leads to function spaces and the notion of Lebesgue measure, an idea of “space” more general than the original basis of Euclidean geometry. The { ϕ j ( x ) {\displaystyle \phi _{j}(x)\ } } satisfy orthonormality relations:

∫ a b ϕ i ∗ ( x ) ϕ j ( x ) d x = δ i j , {\displaystyle \int _{a}^{b}\phi _{i}^{*}(x)\phi _{j}(x)\,dx=\delta _{ij},}

where δij is the Kronecker delta. Substituting function fn into these equations then leads to the n-dimensional Pythagorean theorem:

‖ f n ‖ 2 = | a 1 | 2 + | a 2 | 2 + ⋯ + | a n | 2 . {\displaystyle \|f_{n}\|^{2}=|a_{1}|^{2}+|a_{2}|^{2}+\cdots +|a_{n}|^{2}.\,}

The coefficients {aj} making ||f − fn||2 as small as possible are found to be:

a j = ∫ a b ϕ j ∗ ( x ) f ( x ) d x . {\displaystyle a_{j}=\int _{a}^{b}\phi _{j}^{*}(x)f(x)\,dx.}

The generalization of the n-dimensional Pythagorean theorem to infinite-dimensional  real inner product spaces is known as Parseval's identity or Parseval's equation. Particular examples of such a representation of a function are the Fourier series and the generalized Fourier series.

Further discussion

Using linear algebra It follows that one can find a "best" approximation of another function by minimizing the area between two functions, a continuous function f {\displaystyle f} on [ a , b ] {\displaystyle [a,b]} and a function g ∈ W {\displaystyle g\in W} where W {\displaystyle W} is a subspace of C [ a , b ] {\displaystyle C[a,b]} :

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Least-squares function approximation

Start with the simplest possible case. Write down what Least-squares function approximation 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-squares function approximation 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-squares function approximation 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-squares function approximation

In research
Least-squares function approximation 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-squares function approximation 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-squares function approximation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Approximation theory, Least squares, so understanding it makes those chapters shorter.
In everyday life
Look for Least-squares function approximation 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-squares function approximation” →

Affiliate

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

How to study Least-squares function approximation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Least-squares function approximation 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-squares function approximation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Least-squares function approximation in simple terms?

In mathematics, least squares function approximation applies the principle of least squares to function approximation, by means of a weighted sum of other functions. The best approximation can be defined as that which minimizes the difference between the original function and the approximation; for…

Why does Least-squares function approximation 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-squares function approximation?

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-squares function approximation.

Tags

  • Approximation theory
  • Least squares

Keep exploring