Polynomial least squares

In mathematical statistics, polynomial least squares comprises a broad range of statistical methods for estimating an underlying polynomial that describes observations. These methods include polynomial regression, curve fitting, linear regression, least squares, ordinary least squares, simple linear regression, linear least squares, approximation theory and method of moments. Polynomial least squares has applications in radar trackers, estimation theory, signal processing, statistics, and econometrics.

Two common applications of polynomial least squares methods are generating a low-degree polynomial that approximates a complicated function and estimating an assumed underlying polynomial from corrupted (also known as "noisy") observations. The former is commonly used in statistics and econometrics to fit a scatter plot with a first degree polynomial (that is, a linear expression).[1][2][3] The latter is commonly used in target tracking in the form of Kalman filtering, which is effectively a recursive implementation of polynomial least squares.[4][5][6][7] Estimating an assumed underlying deterministic polynomial can be used in econometrics as well.[8] In effect, both applications produce average curves as generalizations of the common average of a set of numbers, which is equivalent to zero degree polynomial least squares.[1][2][9]

In the above applications, the term "approximate" is used when no statistical measurement or observation errors are assumed, as when fitting a scatter plot. The term "estimate", derived from statistical estimation theory, is used when assuming that measurements or observations of a polynomial are corrupted.

## Contents

* 1 Polynomial least squares estimate of a deterministic first degree polynomial corrupted with observation errors
* 1.1 Definitions and assumptions
* 1.2 Polynomial least squares and the orthogonality principle
* 2 The empirically determined polynomial least squares output of a first degree polynomial corrupted with observation errors
* 2.1 The weighting function describing the linear polynomial least squares "system"
* 2.2 Empirically determined statistical moments
* 2.3 Measuring or approximating the statistical variance of the random errors
* 3 Properties of polynomial least squares modeled as a linear "system"
* 4 The synergy of integrating polynomial least squares with statistical estimation theory
* 5 See also
* 6 References

## Polynomial least squares estimate of a deterministic first degree polynomial corrupted with observation errors

Assume the deterministic first degree polynomial equation y with unknown coefficients α and β is written as

y=α+βt.

This is corrupted with an additive stochastic process ε described as an error (noise in tracking), resulting in

z=y+ε=α+βt+ε.

Given observations zn from a sample, where the subscript n is the observation index, the problem is to apply polynomial least squares to estimate y(t), and to determine its variance along with its expected value.

### Definitions and assumptions

(1) The term linearity in mathematics may be considered to take two forms that are sometimes confusing: a linear system or transformation (sometimes called an operator)[9] and a linear equation. The term "function" is often used to describe both a system and an equation, which may lead to confusion. A linear system is defined by

f(ax+by)=af(x)+bf(y)

where a and b are constants, and where x and y are variables. In a linear system E[f(x)]=f(E[x]), where E is the linear expectation operator. A linear equation is a straight line as is the first degree polynomial described above.

(2) The error ε is modeled as a zero mean stochastic process, sample points of which are random variables that are uncorrelated and assumed to have identical probability distributions (specifically same mean and variance), but not necessarily Gaussian, treated as inputs to polynomial least squares. Stochastic processes and random variables are described only by probability distributions.[1][9][2]

(3) Polynomial least squares is modeled as a linear signal processing system which processes statistical inputs deterministically, the output being the linearly processed empirically determined statistical estimate, variance, and expected value.[6][7][8]

(4) Polynomial least squares processing produces deterministic moments (analogous to mechanical moments), which may be considered as moments of sample statistics, but not of statistical moments.[8]

### Polynomial least squares and the orthogonality principle

Approximating a function z(t) with a polynomial

z^(t)=∑j=1Jajtj−1

where hat (^) denotes the estimate and (J − 1) is the polynomial degree, can be performed by applying the orthogonality principle. The sum of squared residuals can be written as

∑n=1N(zn−z^n)2.

According to the orthogonality principle,[4][5][6][7][8][9][10][11] this is at its minimum when the residual vector (z−z^) is orthogonal to the estimate z^, that is

∑n=1N(zn−z^n)z^n=0.

This can be described as the orthogonal projection of the data values {zn} onto a solution in the form of the polynomial z^(t).[4][6][7] For N > J, orthogonal projection yields the standard overdetermined system of equations (often called normal equations) used to compute the coefficients in the polynomial approximation.[1][10][11] The minimum sum of squared residuals is then

SSRmin=∑n=1N(zn−z^n)zn

The advantage of using orthogonal projection is that SSRmin can be determined for use in the polynomial least squares processed statistical variance of the estimate.[8][9][11]

## The empirically determined polynomial least squares output of a first degree polynomial corrupted with observation errors

To fully determine the output of polynomial least squares, a weighting function describing the processing must first be structured and then the statistical moments can be computed.

### The weighting function describing the linear polynomial least squares "system"

The weighting function wn(τ) can be formulated from polynomial least squares to estimate the unknown y(t) as follows:[8]

y^(τ)=1N∑n=1Nznwn(τ)=1N∑n=1N(α+βtn+εn)wn(τ)

where N is the number of samples, zn are random variables as samples of the stochastic z (noisy signal), and the first degree polynomial data weights are

wn(τ)≡[t2¯−t¯tn+(tn−t¯)τ](t2¯−t¯2)

which represent the linear polynomial least squares "system" and describe its processing.[8] The Greek letter τ is the independent variable t when estimating the dependent variable y(t) after data fitting has been performed. (The letter τ is used to avoid confusion with t before and sampling during polynomial least squares processing.) The overbar ( ¯ ) defines the deterministic centroid of un as processed by polynomial least squares [8] – i.e., it defines the deterministic first order moment, which may be considered a sample average, but does not here approximate a first order statistical moment:

u¯=def1N∑n=1Nun

### Empirically determined statistical moments

Applying wn(τ) yields

y^(τ)=α^+β^τ

where

α^=(z¯t2¯−zt¯t¯)(t2¯−t¯2)=α+(ε¯t2¯−εt¯t¯)(t2¯−t¯2)

and

β^=(zt¯−z¯t¯)(t2¯−t¯2)=β+(εt¯−ε¯t¯)(t2¯−t¯2)

As linear functions of the random variables εn, both coefficient estimates α^ and β^ are random variables.[8] In the absence of the errors εn, α^=α and β^=β, as they should to meet that boundary condition.

Because the statistical expectation operator E[•] is a linear function and the sampled stochastic process errors εn are zero mean, the expected value of the estimate y^ is the first order statistical moment as follows:[1][2][3][8]

E[y^(τ)]=α+βτ+1N∑n=1NE[εn]wn(τ)=α+βτ=α+βt

The statistical variance in y^ is given by the second order statistical central moment as follows:[1][2][3][8]

σy^2=E[(y^−E[y^])2]=1N1N∑n=1N∑i=1Nwn(τ)E[εnεi]wi(τ)

=σε21N1N∑n=1N∑i=1Nwn2(τ)

because

∑i=1NE[εnεi]wi(τ)=σε2wn(τ)

where σε2 is the statistical variance of random variables εn; i.e., E[εnεi]=σε2 for i = n and (because εn are uncorrelated) σε2=0 for i≠n [8]

Carrying out the multiplications and summations in σy^2 yields[8]

σy^2=σε2(t2¯−2t¯τ+τ2)N(t2¯−t¯2).

### Measuring or approximating the statistical variance of the random errors

In a hardware system, such as a tracking radar, the measurement noise variance σε2 can be determined from measurements when there is no target return – i.e., by just taking measurements of the noise alone.

However, if polynomial least squares is used when the variance σε2 is not measurable (such as in econometrics or statistics), it can be estimated with observations in emin from orthogonal projection as follows:

σε2≈σε2^=(z2¯−α^z¯−β^zt¯) [8]

As a result, to the first order approximation from the estimates α^ and β^ as functions of sampled z and t

σy^2≈[(z2¯−z¯2)(t2¯−t¯2)−((zt¯−z¯t¯)(t2¯−t¯))2](t2¯−2t¯τ+τ2)N

which goes to zero in the absence of the errors εn, as it should to meet that boundary condition.[8]

As a result, the samples zn (noisy signal) are considered to be the input to the linear polynomial least squares "system" which transforms the samples into the empirically determined statistical estimate y^(τ), the expected value E[y^], and the variance σy^2.[8]

## Properties of polynomial least squares modeled as a linear "system"

(1) The empirical statistical variance σy^2 is a function of σε2, N and τ. Setting the derivative of σy^2 with respect to τ equal to zero shows the minimum to occur at τ=t¯; i.e., at the centroid (sample average) of the samples tn. The minimum statistical variance thus becomes σε2N. This is equivalent to the statistical variance from polynomial least squares of a zero degree polynomial – i.e., of the centroid (sample average) of α.[1][2][8] [9]

(2) The empirical statistical variance σy^2 is a function of the quadratic τ2 . Moreover, the further τ deviates from t¯ (even within the data window), the larger is the variance σy^2 due to the random variable errors εn . The independent variable τ can take any value on the t axis. It is not limited to the data window. It can extend beyond the data window – and likely will at times depending on the application. If it is within the data window, estimation is described as interpolation. If it is outside the data window, estimation is described as extrapolation. It is both intuitive and well known that the further is extrapolation, the larger is the error.[8]

(3) The empirical statistical variance σy^2 due to the random variable errors εn is inversely proportional to N. As N increases, the statistical variance decreases. This is well known and what filtering out the errors εn is all about.[1][2][8][12] The underlying purpose of polynomial least squares is to filter out the errors to improve estimation accuracy by reducing the empirical statistical estimation variance. In reality, only two data points are required to estimate α and β; albeit the more data points with zero mean statistical errors included, the smaller is the empirical statistical estimation variance as established by N samples.

(4) There is an additional issue to be considered when the noise variance is not measurable: Independent of the polynomial least squares estimation, any new observations would be described by the variance σε2≈σε2^=(z2¯−α^z¯−β^zt¯).[8][9]

Thus, the polynomial least squares statistical estimation variance σy^2 and the statistical variance of any new sample in σε2 would both contribute to the uncertainty of any future observation. Both variances are clearly determined by polynomial least squares in advance.

(5) This concept also applies to higher degree polynomials. However, the weighting function wn(τ) is obviously more complicated. In addition, the estimation variances increase exponentially as polynomial degrees increase linearly (i.e., in unit steps). However, there are ways of dealing with this as described in.[6][7]

## The synergy of integrating polynomial least squares with statistical estimation theory

Modeling polynomial least squares as a linear signal processing "system" creates the synergy of integrating polynomial least squares with statistical estimation theory to deterministically process samples of an assumed polynomial corrupted with a statistically described stochastic error ε. In the absence of the error ε, statistical estimation theory is irrelevant and polynomial least squares reverts to the conventional approximation of complicated functions and scatter plots.

## See also

* Multi-fractional order estimator

## References

1. ↑ 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 Gujarati, Damodar N.; Porter, Dawn C. (2008). Basic Econometrics (5 ed.). McGraw-Hill Education. ISBN 978-0073375779. http://egei.vse.cz/english/wp-content/uploads/2012/08/Basic-Econometrics.pdf.
2. ↑ 2.0 2.1 2.2 2.3 2.4 2.5 2.6 Hansen, Bruce E. (January 16, 2015). Econometrics. http://www.ssc.wisc.edu/~bhansen/econometrics/Econometrics.pdf.
3. ↑ 3.0 3.1 3.2 Copeland, Thomas E.; Weston, John Fred; Shastri, Kuldeep (January 10, 2004). Financial Theory and Corporate Policy (4 ed.). Prentice Hall. ISBN 978-0321127211.
4. ↑ 4.0 4.1 4.2 Kálmán, Rudolf E. (March 1, 1960). "A New Approach to Linear Filtering and Prediction Problems". Journal of Basic Engineering 82: 35. doi:10.1115/1.3662552.
5. ↑ 5.0 5.1 Sorenson, H. W., Least-squares estimation: Gauss to Kalman, IEEE Spectrum, July, 1970.
6. ↑ 6.0 6.1 6.2 6.3 6.4 Bell, J. W., Simple Disambiguation Of Orthogonal Projection In Kalman’s Filter Derivation, Proceedings of the International Conference on Radar Systems, Glasgow, UK. October, 2012.
7. ↑ 7.0 7.1 7.2 7.3 7.4 Bell, J. W., A Simple Kalman Filter Alternative: The Multi-Fractional Order Estimator, IET-RSN, Vol. 7, Issue 8, October 2013.
8. ↑ 8.00 8.01 8.02 8.03 8.04 8.05 8.06 8.07 8.08 8.09 8.10 8.11 8.12 8.13 8.14 8.15 8.16 8.17 8.18 8.19 "Ordinary Least Squares Revolutionized: Establishing the Vital Missing Empirically Determined Statistical Prediction Variance by Jeff Bell". SSRN. doi:10.2139/ssrn.2573840. http://ssrn.com/abstract=2573840. Retrieved 2019-02-27.
9. ↑ 9.0 9.1 9.2 9.3 9.4 9.5 9.6 Papoulis, A., Probability, RVs, and Stochastic Processes, McGraw-Hill, New York, 1965
10. ↑ 10.0 10.1 Wylie, C. R., Jr., Advanced Engineering Mathematics, McGraw-Hill, New York, 1960.
11. ↑ 11.0 11.1 11.2 Schied, F., Numerical Analysis, Schaum's Outline Series, McGraw-Hill, New York, 1968.
12. ↑ Ordinary least squares

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Polynomial_least_squares&oldid=223849"