In
mathematics, least squares function approximation applies the principle of
least squares
The method of least squares is a standard approach in regression analysis to approximate the solution of overdetermined systems (sets of equations in which there are more equations than unknowns) by minimizing the sum of the squares of the r ...
to
function approximation
In general, a function approximation problem asks us to select a function among a that closely matches ("approximates") a in a task-specific way. The need for function approximations arises in many branches of applied mathematics, and comput ...
, 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
In mathematics, particularly linear algebra, an orthonormal basis for an inner product space ''V'' with finite dimension is a basis for V whose vectors are orthonormal, that is, they are all unit vectors and orthogonal to each other. For example ...
:
[
]
:
with the set of functions an
orthonormal set
In linear algebra, two vectors in an inner product space are orthonormal if they are orthogonal (or perpendicular along a line) unit vectors. A set of vectors form an orthonormal set if all vectors in the set are mutually orthogonal and all of ...
over the interval of interest, : see also
Fejér's theorem In mathematics, Fejér's theorem,Leopold FejérUntersuchungen über Fouriersche Reihen ''Mathematische Annalen''vol. 58 1904, 51-69. named after Hungarian mathematician Lipót Fejér, states the following:
Explanation of Fejér's Theorem's
Exp ...
. The coefficients are selected to make the magnitude of the difference , , , ,
2 as small as possible. For example, the magnitude, or norm, of a function over the can be defined by:
[
]
:
where the ‘*’ denotes
complex conjugate
In mathematics, the complex conjugate of a complex number is the number with an equal real part and an imaginary part equal in magnitude but opposite in sign. That is, (if a and b are real, then) the complex conjugate of a + bi is equal to a - ...
in the case of complex functions. The extension of Pythagoras' theorem in this manner leads to
function space
In mathematics, a function space is a set of functions between two fixed sets. Often, the domain and/or codomain will have additional structure which is inherited by the function space. For example, the set of functions from any set into a ve ...
s and the notion of
Lebesgue measure
In measure theory, a branch of mathematics, the Lebesgue measure, named after French mathematician Henri Lebesgue, is the standard way of assigning a measure to subsets of ''n''-dimensional Euclidean space. For ''n'' = 1, 2, or 3, it coincides ...
, an idea of “space” more general than the original basis of Euclidean geometry. The satisfy
orthonormality relations:
[
]
:
where ''δ''
''ij'' is the
Kronecker delta
In mathematics, the Kronecker delta (named after Leopold Kronecker) is a function of two variables, usually just non-negative integers. The function is 1 if the variables are equal, and 0 otherwise:
\delta_ = \begin
0 &\text i \neq j, \\
1 ...
. Substituting function into these equations then leads to
the ''n''-dimensional
Pythagorean theorem
In mathematics, the Pythagorean theorem or Pythagoras' theorem is a fundamental relation in Euclidean geometry between the three sides of a right triangle. It states that the area of the square whose side is the hypotenuse (the side opposit ...
:
[
]
:
The coefficients making , , ''f'' − ''f''
''n'', ,
2 as small as possible are found to be:
[
:
The generalization of the ''n''-dimensional Pythagorean theorem to ''infinite-dimensional '' ]real
Real may refer to:
Currencies
* Brazilian real (R$)
* Central American Republic real
* Mexican real
* Portuguese real
* Spanish real
* Spanish colonial real
Music Albums
* ''Real'' (L'Arc-en-Ciel album) (2000)
* ''Real'' (Bright album) (201 ...
inner product spaces is known as Parseval's identity In mathematical analysis, Parseval's identity, named after Marc-Antoine Parseval, is a fundamental result on the summability of the Fourier series of a function. Geometrically, it is a generalized Pythagorean theorem for inner-product spaces (wh ...
or Parseval's equation.[
] Particular examples of such a representation of a function are the Fourier series
A Fourier series () is a summation of harmonically related sinusoidal functions, also known as components or harmonics. The result of the summation is a periodic function whose functional form is determined by the choices of cycle length (or '' ...
and the generalized Fourier series
In mathematical analysis, many generalizations of Fourier series have proved to be useful. They are all special cases of decompositions over an orthonormal basis of an inner product space. Here we consider that of square-integrable functions d ...
.
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 on