There exist many such expansions of a stochastic process: if the process is indexed over[a,b], anyorthonormal basis ofL2([a,b]) yields an expansion thereof in that form. The importance of the Karhunen–Loève theorem is that it yields the best such basis in the sense that it minimizes the totalmean squared error.
In contrast to a Fourier series where the coefficients are fixed numbers and the expansion basis consists ofsinusoidal functions (that is,sine andcosine functions), the coefficients in the Karhunen–Loève theorem arerandom variables and the expansion basis depends on the process. In fact, the orthogonal basis functions used in this representation are determined by thecovariance function of the process. One can think that the Karhunen–Loève transform adapts to the process in order to produce the best possible basis for its expansion.
In the case of acentered stochastic process{Xt}t ∈ [a,b] (centered meansE[Xt] = 0 for allt ∈ [a,b]) satisfying a technical continuity condition,X admits a decomposition
whereZk are pairwiseuncorrelated random variables and the functionsek are continuous real-valued functions on[a,b] that are pairwiseorthogonal inL2([a,b]). It is therefore sometimes said that the expansion isbi-orthogonal since the random coefficientsZk are orthogonal in the probability space while the deterministic functionsek are orthogonal in the time domain. The general case of a processXt that is not centered can be brought back to the case of a centered process by consideringXt −E[Xt] which is a centered process.
Moreover, if the process isGaussian, then the random variablesZk are Gaussian andstochastically independent. This result generalizes theKarhunen–Loève transform. An important example of a centered real stochastic process on[0, 1] is theWiener process; the Karhunen–Loève theorem can be used to provide a canonical orthogonal representation for it. In this case the expansion consists of sinusoidal functions.
Throughout this article, we will consider a random processXt defined over aprobability space(Ω,F,P) and indexed over a closed interval[a,b], which issquare-integrable, has zero-mean, and with covariance functionKX(s,t). In other words, we have:
The square-integrable condition is logically equivalent to being finite for all.[4]
SinceTKX is a linear endomorphism, it makes sense to talk about its eigenvaluesλk and eigenfunctionsek, which are found by solving the homogeneous Fredholmintegral equation of the second kind
Theorem. LetXt be a zero-mean square-integrable stochastic process defined over a probability space(Ω,F,P) and indexed over a closed and bounded interval [a, b], with continuous covariance functionKX(s,t).
ThenKX(s,t) is aMercer kernel and lettingek be an orthonormal basis onL2([a,b]) formed by the eigenfunctions ofTKX with respective eigenvaluesλk, Xt admits the following representation
Furthermore, the random variablesZk have zero-mean, are uncorrelated and have varianceλk
Note that by generalizations of Mercer's theorem we can replace the interval [a,b] with other compact spacesC and theLebesgue measure on [a,b] with aBorel measure whose support isC.
The covariance functionKX satisfies the definition of a Mercer kernel. ByMercer's theorem, there consequently exists a setλk,ek(t) of eigenvalues and eigenfunctions ofTKX forming an orthonormal basis ofL2([a,b]), andKX can be expressed as
The processXt can be expanded in terms of the eigenfunctionsek as:
where the coefficients (random variables)Zk are given by the projection ofXt on the respective eigenfunctions
We may then derive
where we have used the fact that theek are eigenfunctions ofTKX and are orthonormal.
Since the limit in the mean of jointly Gaussian random variables is jointly Gaussian, and jointly Gaussian random (centered) variables are independentif and only if they are orthogonal, we can also conclude:
Theorem. The variablesZi have a joint Gaussian distribution and are stochastically independent if the original process{Xt}t is Gaussian.
In the Gaussian case, since the variablesZi are independent, we can say more:
almost surely.
The Karhunen–Loève transform decorrelates the process
In the introduction, we mentioned that the truncated Karhunen–Loeve expansion was the best approximation of the original process in the sense that it reduces the total mean-square error resulting of its truncation. Because of this property, it is often said that the KL transform optimally compacts the energy.
More specifically, given any orthonormal basis{fk} ofL2([a,b]), we may decompose the processXt as:
where
and we may approximateXt by the finite sum
for some integerN.
Claim. Of all such approximations, the KL approximation is the one that minimizes the total mean square error (provided we have arranged the eigenvalues in decreasing order).
Proof
Consider the error resulting from the truncation at theN-th term in the following orthonormal expansion:
The mean-square errorεN2(t) can be written as:
We then integrate this last equality over [a,b]. The orthonormality of thefk yields:
The problem of minimizing the total mean-square error thus comes down to minimizing the right hand side of this equality subject to the constraint that thefk be normalized. We hence introduceβk, the Lagrangian multipliers associated with these constraints, and aim at minimizing the following function:
Differentiating with respect tofi(t) (this is afunctional derivative) and setting the derivative to 0 yields:
which is satisfied in particular when
In other words, when thefk are chosen to be the eigenfunctions ofTKX, hence resulting in the KL expansion.
An important observation is that since the random coefficientsZk of the KL expansion are uncorrelated, theBienaymé formula asserts that the variance ofXt is simply the sum of the variances of the individual components of the sum:
Integrating over [a,b] and using the orthonormality of theek, we obtain that the total variance of the process is:
In particular, the total variance of theN-truncated approximation is
As a result, theN-truncated expansion explains
of the variance; and if we are content with an approximation that explains, say, 95% of the variance, then we just have to determine an such that
The Karhunen–Loève expansion has the minimum representation entropy property
Given a representation of, for some orthonormal basis and random, we let, so that. We may then define the representationentropy to be. Then we have, for all choices of. That is, the KL-expansion has minimal representation entropy.
Proof:
Denote the coefficients obtained for the basis as, and for as.
Choose. Note that since minimizes the mean squared error, we have that
Expanding the right hand size, we get:
Using the orthonormality of, and expanding in the basis, we get that the right hand size is equal to:
We may perform identical analysis for the, and so rewrite the above inequality as:
Subtracting the common first term, and dividing by, we obtain that:
Consider a whole class of signals we want to approximate over the firstM vectors of a basis. These signals are modeled as realizations of a random vectorY[n] of sizeN. To optimize the approximation we design a basis that minimizes the averageapproximation error. This section proves that optimal bases are Karhunen–Loeve bases that diagonalize the covariance matrix ofY. The random vectorY can be decomposed in an orthogonal basis
as follows:
where each
is a random variable. The approximation from the firstM ≤N vectors of the basis is
The energy conservation in an orthogonal basis implies
This error is related to the covariance ofY defined by
For any vectorx[n] we denote byK thecovariance operator represented by this matrix,
The errorε[M] is therefore a sum of the lastN −M coefficients of the covariance operator
The covariance operatorK is Hermitian and Positive and is thus diagonalized in an orthogonal basis called a Karhunen–Loève basis. The following theorem states that a Karhunen–Loève basis is optimal for linear approximations.
Theorem (Optimality of Karhunen–Loève basis). LetK be a covariance operator. For allM ≥ 1, the approximation error
is minimum if and only if
is a Karhunen–Loeve basis ordered by decreasing eigenvalues.
Linear approximations project the signal onM vectors a priori. The approximation can be made more precise by choosing theM orthogonal vectors depending on the signal properties. This section analyzes the general performance of these non-linear approximations. A signal is approximated with M vectors selected adaptively in an orthonormal basis for[definition needed]
Let be the projection of f over M vectors whose indices are inIM:
The approximation error is the sum of the remaining coefficients
To minimize this error, the indices inIM must correspond to the M vectors having the largest inner product amplitude
These are the vectors that best correlate f. They can thus be interpreted as the main features of f. The resulting error is necessarily smaller than the error of alinear approximation which selects the M approximation vectors independently of f. Let us sort
in decreasing order
The best non-linear approximation is
It can also be written as inner product thresholding:
with
The non-linear error is
this error goes quickly to zero as M increases, if the sorted values of have a fast decay as k increases. This decay is quantified by computing the norm of the signal inner products in B:
To further illustrate the differences between linear and non-linear approximations, we study the decomposition of a simple non-Gaussian random vector in a Karhunen–Loève basis. Processes whose realizations have a random translation are stationary. The Karhunen–Loève basis is then a Fourier basis and we study its performance. To simplify the analysis, consider a random vectorY[n] of sizeN that is random shift moduloN of a deterministic signalf[n] of zero mean
The random shiftP is uniformly distributed on [0, N − 1]:
Clearly
and
Hence
Since RY is N periodic, Y is a circular stationary random vector. The covariance operator is acircular convolution with RY and is therefore diagonalized in the discrete Fourier Karhunen–Loève basis
The power spectrum is Fourier transform ofRY:
Example: Consider an extreme case where. A theorem stated above guarantees that the Fourier Karhunen–Loève basis produces a smaller expected approximation error than a canonical basis of Diracs. Indeed, we do not know a priori the abscissa of the non-zero coefficients ofY, so there is no particular Dirac that is better adapted to perform the approximation. But the Fourier vectors cover the whole support of Y and thus absorb a part of the signal energy.
Selecting higher frequency Fourier coefficients yields a better mean-square approximation than choosing a priori a few Dirac vectors to perform the approximation. The situation is totally different for non-linear approximations. If then the discrete Fourier basis is extremely inefficient because f and hence Y have an energy that is almost uniformly spread among all Fourier vectors. In contrast, since f has only two non-zero coefficients in the Dirac basis, a non-linear approximation of Y withM ≥ 2 gives zero error.[5]
We have established the Karhunen–Loève theorem and derived a few properties thereof. We also noted that one hurdle in its application was the numerical cost of determining the eigenvalues and eigenfunctions of its covariance operator through the Fredholm integral equation of the second kind
However, when applied to a discrete and finite process, the problem takes a much simpler form and standard algebra can be used to carry out the calculations.
Note that a continuous process can also be sampled atN points in time in order to reduce the problem to a finite version.
We henceforth consider a randomN-dimensional vector. As mentioned above,X could containN samples of a signal but it can hold many more representations depending on the field of application. For instance it could be the answers to a survey or economic data in an econometrics analysis.
As in the continuous version, we assume thatX is centered, otherwise we can let (where is themean vector ofX) which is centered.
Recall that the main implication and difficulty of the KL transformation is computing the eigenvectors of the linear operator associated to the covariance function, which are given by the solutions to the integral equation written above.
Define Σ, the covariance matrix ofX, as anN ×N matrix whose elements are given by:
Rewriting the above integral equation to suit the discrete case, we observe that it turns into:
where is anN-dimensional vector.
The integral equation thus reduces to a simple matrix eigenvalue problem, which explains why the PCA has such a broad domain of applications.
Since Σ is a positive definite symmetric matrix, it possesses a set of orthonormal eigenvectors forming a basis of, and we write this set of eigenvalues and corresponding eigenvectors, listed in decreasing values ofλi. Let alsoΦ be the orthonormal matrix consisting of these eigenvectors:
It remains to perform the actual KL transformation, called theprincipal component transform in this case. Recall that the transform was found by expanding the process with respect to the basis spanned by the eigenvectors of the covariance function. In this case, we hence have:
In a more compact form, the principal component transform ofX is defined by:
Thei-th component ofY is, the projection ofX on and the inverse transformX = ΦY yields the expansion ofX on the space spanned by the:
As in the continuous case, we may reduce the dimensionality of the problem by truncating the sum at some such that
where α is the explained variance threshold we wish to set.
We can also reduce the dimensionality through the use of multilevel dominant eigenvector estimation (MDEE).[6]
There are numerous equivalent characterizations of theWiener process which is a mathematical formalization ofBrownian motion. Here we regard it as the centered standard Gaussian processWt with covariance function
We restrict the time domain to [a,b]=[0,1] without loss of generality.
The eigenvectors of the covariance kernel are easily determined. These are
and the corresponding eigenvalues are
Proof
In order to find the eigenvalues and eigenvectors, we need to solve the integral equation:
differentiating once with respect tot yields:
a second differentiation produces the following differential equation:
The general solution of which has the form:
whereA andB are two constants to be determined with the boundary conditions. Settingt = 0 in the initial integral equation givese(0) = 0 which implies thatB = 0 and similarly, settingt = 1 in the first differentiation yieldse'(1) = 0, whence:
which in turn implies that eigenvalues ofTKX are:
The corresponding eigenfunctions are thus of the form:
A is then chosen so as to normalizeek:
This gives the following representation of the Wiener process:
Theorem. There is a sequence {Zi}i of independent Gaussian random variables with mean zero and variance 1 such that
Note that this representation is only valid for On larger intervals, the increments are not independent. As stated in the theorem, convergence is in the L2 norm and uniform in t.
Adaptive optics systems sometimes use K–L functions to reconstruct wave-front phase information (Dai 1996, JOSA A).Karhunen–Loève expansion is closely related to theSingular Value Decomposition. The latter has myriad applications in image processing, radar, seismology, and the like. If one has independent vector observations from a vector valued stochastic process then the left singular vectors aremaximum likelihood estimates of the ensemble KL expansion.
In communication, we usually have to decide whether a signal from a noisy channel contains valuable information. The following hypothesis testing is used for detecting continuous signals(t) from channel outputX(t),N(t) is the channel noise, which is usually assumed zero mean Gaussian process with correlation function
When the channel noise is white, its correlation function is
and it has constant power spectrum density. In physically practical channel, the noise power is finite, so:
Then the noise correlation function is sinc function with zeros at Since are uncorrelated and gaussian, they are independent. Thus we can take samples fromX(t) with time spacing
Let. We have a total of i.i.d observations to develop the likelihood-ratio test. Define signal, the problem becomes,
When N(t) is colored (correlated in time) Gaussian noise with zero mean and covariance function we cannot sample independent discrete observations by evenly spacing the time. Instead, we can use K–L expansion to decorrelate the noise process and get independent Gaussian observation 'samples'. The K–L expansion ofN(t):
where and the orthonormal bases are generated by kernel, i.e., solution to
which is known as theWiener–Hopf equation. The equation can be solved by taking fourier transform, but not practically realizable since infinite spectrum needs spatial factorization. A special case which is easy to calculatek(t) is white Gaussian noise.
The corresponding impulse response ish(t) =k(T − t) =CS(T − t). LetC = 1, this is just the result we arrived at in previous section for detecting of signal in white noise.
For some type of colored noise, a typical practise is to add a prewhitening filter before the matched filter to transform the colored noise into white noise. For example, N(t) is a wide-sense stationary colored noise with correlation function
When the signal we want to detect from the noisy channel is also random, for example, a white Gaussian processX(t), we can still implement K–L expansion to get independent sequence of observation. In this case, the detection problem is described as follows:
X(t) is a random process with correlation function
The K–L expansion ofX(t) is
where
and are solutions to
So's are independent sequence of r.v's with zero mean and variance. ExpandingY(t) andN(t) by, we get
where
AsN(t) is Gaussian white noise,'s are i.i.d sequence of r.v with zero mean and variance, then the problem is simplified as follows,
The Neyman–Pearson optimal test:
so the log-likelihood ratio is
Since
is just the minimum-mean-square estimate of given's,
K–L expansion has the following property: If
where
then
So let
Noncausal filterQ(t,s) can be used to get the estimate through
^Ghoman, Satyajit; Wang, Zhicun; Chen, PC; Kapania, Rakesh (2012). "A POD-based Reduced Order Design Scheme for Shape Optimization of Air Vehicles".Proc of 53rd AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics, and Materials Conference, AIAA-2012-1808, Honolulu, Hawaii.
Stark, Henry; Woods, John W. (1986).Probability, Random Processes, and Estimation Theory for Engineers. Prentice-Hall, Inc.ISBN978-0-13-711706-2.OL21138080M.
Ghanem, Roger; Spanos, Pol (1991).Stochastic finite elements: a spectral approach. Springer-Verlag.ISBN978-0-387-97456-9.OL1865197M.
Guikhman, I.; Skorokhod, A. (1977).Introduction a la Théorie des Processus Aléatoires. Éditions MIR.
Simon, B. (1979).Functional Integration and Quantum Physics. Academic Press.
Karhunen, Kari (1947). "Über lineare Methoden in der Wahrscheinlichkeitsrechnung".Ann. Acad. Sci. Fennicae. Ser. A I. Math.-Phys.37:1–79.
Loève, M. (1978).Probability theory Vol. II. Graduate Texts in Mathematics. Vol. 46 (4 ed.). Springer-Verlag.ISBN978-0-387-90262-3.
Wu B., Zhu J., Najm F.(2005) "A Non-parametric Approach for Dynamic Range Estimation of Nonlinear Systems". In Proceedings of Design Automation Conference(841–844) 2005
Wu B., Zhu J., Najm F.(2006) "Dynamic Range Estimation". IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, Vol. 25 Issue:9 (1618–1636) 2006