Least-squares function approximation
In mathematics, least squares function approximation applies the principle of least squares to function approximation, by means of a weighted sum of other functions.[5] 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.[5]
In mathematics, least squares function approximation applies the principle of least squares to function approximation, by means of a weighted sum of other functions.[5] 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.[5] ==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) \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 { \ \phi _j (x) } an orthonormal set over the interval of interest, : see also Fejér's theorem.[src] The coefficients { \ a_j } are selected to make the magnitude of the difference || || 2 as small as possible.[src] 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)^{1/2} where the ‘*’ denotes complex conjugate in the case of complex functions.[src] 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.[src] The satisfy orthonormality relations: \int_a^b \phi _i^* (x)\phi _j (x) \, dx =\delta_{ij}, where δ ij is the Kronecker delta.[src] Substituting function into these equations then leads to the n-dimensional Pythagorean theorem: \|f_n\|^2 = |a_1|^2 + |a_2|^2 + \cdots + |a_n|^2.[src] \, The coefficients {a j } making ||f − f n || 2 as small as possible are found to be: a_j = \int_a^b \phi _j^* (x)f (x) \, dx.[src] 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.[src] Particular examples of such a representation of a function are the Fourier series and the generalized Fourier series.[src] ==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 [a,b] and a function g\in W where W is a subspace of C[a,b] : \text{Area} = \int_a^b \left\vert f(x) - g(x)\right\vert \, dx, all within the subspace W .[src] Due to the frequent difficulty of evaluating integrands involving absolute value, one can instead define \int_a^b [ f(x) - g(x) ] ^2\, dx as an adequate criterion for obtaining the least squares approximation, function g , of f with respect to the inner product space W .[src] 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) ]^2\, dx = \left\langle f-g , f-g\right\rangle = \lVert f-g\rVert^2.[src] In other words, the least squares approximation of f is the function g\in \text{ subspace } W closest to f in terms of the inner product \left \langle f,g \right \rangle .[src] Furthermore, this can be applied with a theorem: Let f be continuous on [ a,b ] , and let W be a finite-dimensional subspace of C[a,b] .[src] 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 = \{\vec w_1 , \vec w_2 , \dots , \vec w_n \} is an orthonormal basis for W .[src] ==References==[src]
20 sentences · 20 cited inline · 5 references stored
References
- Equation 3.14 · retrieved 2026-11-17 · rev 1319532340
Cite this reference
MLA "Equation 3.14." Gerald B Folland (2009). 2026-11-17. https://books.google.com/books?id=ix2iCQ-o9x4C&pg=PA69. Accessed 28 November 2026.
Chicago "Equation 3.14." Gerald B Folland (2009). 2026-11-17. https://books.google.com/books?id=ix2iCQ-o9x4C&pg=PA69.
APA Gerald B Folland (2009). (2026). Equation 3.14. Retrieved November 28, 2026, from https://books.google.com/books?id=ix2iCQ-o9x4C&pg=PA69
- Folland, Gerald B (2009). Fourier Analysis and Its Applications . American Mathematical Society. p. 69. ISBN 978-0-8218-4790-9 . Wikipedia revision 1319532340, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1319532340
Cite this reference
MLA "Folland, Gerald B (2009). Fourier Analysis and Its Applications . American Mathematical Society. p. 69. ISBN 978-0-8218-4790-9 . Wikipedia revision 1319532340, retrieved 2026-11-18." Folland, Gerald B (2009). 2026-11-17. https://books.google.com/books?id=ix2iCQ-o9x4C&pg=PA69. Accessed 28 November 2026.
Chicago "Folland, Gerald B (2009). Fourier Analysis and Its Applications . American Mathematical Society. p. 69. ISBN 978-0-8218-4790-9 . Wikipedia revision 1319532340, retrieved 2026-11-18." Folland, Gerald B (2009). 2026-11-17. https://books.google.com/books?id=ix2iCQ-o9x4C&pg=PA69.
APA Folland, Gerald B (2009). (2026). Folland, Gerald B (2009). Fourier Analysis and Its Applications . American Mathematical Society. p. 69. ISBN 978-0-8218-4790-9 . Wikipedia revision 1319532340, retrieved 2026-11-18. Retrieved November 28, 2026, from https://books.google.com/books?id=ix2iCQ-o9x4C&pg=PA69
- Equation 3.22 · retrieved 2026-11-17 · rev 1319532340
Cite this reference
MLA "Equation 3.22." Gerald B Folland (2009-01-13). 2026-11-17. https://books.google.com/books?id=ix2iCQ-o9x4C&pg=PA77. Accessed 28 November 2026.
Chicago "Equation 3.22." Gerald B Folland (2009-01-13). 2026-11-17. https://books.google.com/books?id=ix2iCQ-o9x4C&pg=PA77.
APA Gerald B Folland (2009-01-13). (2026). Equation 3.22. Retrieved November 28, 2026, from https://books.google.com/books?id=ix2iCQ-o9x4C&pg=PA77
- a b Cornelius Lanczos (1988). Applied analysis (Reprint of 1956 Prentice–Hall ed.). Dover Publications. pp. 212– 213. ISBN 0-486-65656-X . Wikipedia revision 1319532340, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1319532340
Cite this reference
MLA "a b Cornelius Lanczos (1988). Applied analysis (Reprint of 1956 Prentice–Hall ed.). Dover Publications. pp. 212– 213. ISBN 0-486-65656-X . Wikipedia revision 1319532340, retrieved 2026-11-18." a b Cornelius Lanczos (1988). 2026-11-17. https://books.google.com/books?id=6E85hExIqHYC&pg=PA212. Accessed 28 November 2026.
Chicago "a b Cornelius Lanczos (1988). Applied analysis (Reprint of 1956 Prentice–Hall ed.). Dover Publications. pp. 212– 213. ISBN 0-486-65656-X . Wikipedia revision 1319532340, retrieved 2026-11-18." a b Cornelius Lanczos (1988). 2026-11-17. https://books.google.com/books?id=6E85hExIqHYC&pg=PA212.
APA a b Cornelius Lanczos (1988). (2026). a b Cornelius Lanczos (1988). Applied analysis (Reprint of 1956 Prentice–Hall ed.). Dover Publications. pp. 212– 213. ISBN 0-486-65656-X . Wikipedia revision 1319532340, retrieved 2026-11-18. Retrieved November 28, 2026, from https://books.google.com/books?id=6E85hExIqHYC&pg=PA212
- §2.5 Sum of squares · retrieved 2026-11-17 · rev 1319532340
Cite this reference
MLA "§2.5 Sum of squares." David J. 2026-11-17. https://books.google.com/books?id=8ummgMVRev0C&pg=PA30. Accessed 28 November 2026.
Chicago "§2.5 Sum of squares." David J. 2026-11-17. https://books.google.com/books?id=8ummgMVRev0C&pg=PA30.
APA David J. (2026). §2.5 Sum of squares. Retrieved November 28, 2026, from https://books.google.com/books?id=8ummgMVRev0C&pg=PA30
Cite this article
MLA
"Least-squares function approximation." encyclopegia.org, 2025, https://encyclopegia.org/wiki/least-squares-function-approximation. Accessed 28 November 2026.
Chicago
"Least-squares function approximation." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/least-squares-function-approximation.
APA
encyclopegia.org. (2025). Least-squares function approximation. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/least-squares-function-approximation
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON