HOME

TheInfoList



OR:

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 ...
: :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 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: : \, g\, = \left(\int_a^b g^*(x)g(x) \, dx \right)^ 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: : \int_a^b \phi _i^* (x)\phi _j (x) \, dx =\delta_, 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 ...
: :\, f_n\, ^2 = , a_1, ^2 + , a_2, ^2 + \cdots + , a_n, ^2. \, The coefficients making , , ''f'' − ''f''''n'', , 2 as small as possible are found to be: :a_j = \int_a^b \phi _j^* (x)f (x) \, dx. 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 f on ,b/math> and a function g\in W where W is a subspace of C ,b/math>: :\text = \int_a^b \left\vert f(x) - g(x)\right\vert \, dx, all within the subspace W. Due to the frequent difficulty of evaluating integrands involving absolute value, one can instead define :\int_a^b
f(x) - g(x) F, or f, is the sixth letter in the Latin alphabet, used in the modern English alphabet, the alphabets of other western European languages and others worldwide. Its name in English is ''ef'' (pronounced ), and the plural is ''efs''. Hist ...
^2\, dx as an adequate criterion for obtaining the least squares approximation, function g, of f with respect to the inner product space W. As such, \lVert f-g \rVert ^2 or, equivalently, \lVert f-g \rVert, can thus be written in vector form: :\int_a^b
f(x)-g(x) F, or f, is the sixth letter in the Latin alphabet, used in the modern English alphabet, the alphabets of other western European languages and others worldwide. Its name in English is ''ef'' (pronounced ), and the plural is ''efs''. Hist ...
2\, dx = \left\langle f-g , f-g\right\rangle = \lVert f-g\rVert^2. In other words, the least squares approximation of f is the function g\in \text W closest to f in terms of the inner product \left \langle f,g \right \rangle. Furthermore, this can be applied with a theorem: :Let f be continuous on a,b /math>, and let W be a finite-dimensional subspace of C ,b/math>. The least squares approximating function of f with respect to W is given by ::g = \left \langle f,\vec w_1 \right \rangle \vec w_1 + \left \langle f,\vec w_2 \right \rangle \vec w_2 + \cdots + \left \langle f,\vec w_n \right \rangle \vec w_n, :where B = \ is an orthonormal basis for W.


References

{{reflist Least squares Approximation theory