Kalpana Kalpana (Editor)

Least squares function approximation

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, the idea of least squares can be applied to approximating a given function by a weighted sum of other functions. The best approximation can be defined as that which minimises 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 ) ,  

with the set of functions {   ϕ j ( x ) } an orthonormal set over the interval of interest, say [a, b]: see also Fejér's theorem. The coefficients {   a j } are selected to make the magnitude of the difference ||ffn ||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

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 )   } satisfy orthonormality relations:

a b ϕ i ( x ) ϕ j ( x ) d x = δ i j ,

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 .

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

a j = a b ϕ j ( x ) f ( x ) d x .

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.

References

Least-squares function approximation Wikipedia