Functional principal component analysis explained

Functional principal component analysis (FPCA) is a statistical method for investigating the dominant modes of variation of functional data. Using this method, a random function is represented in the eigenbasis, which is an orthonormal basis of the Hilbert space L2 that consists of the eigenfunctions of the autocovariance operator. FPCA represents functional data in the most parsimonious way, in the sense that when using a fixed number of basis functions, the eigenfunction basis explains more variation than any other basis expansion. FPCA can be applied for representing random functions,[1] or in functional regression[2] and classification.

Formulation

For a square-integrable stochastic process X(t), t ∈, let

\mu(t)=E(X(t))

and

G(s,t)=Cov(X(s),X(t))=

infty
\sum
k=1

λk\varphik(s)\varphik(t),

where

λ1\geqλ2\geq...\geq0

are the eigenvalues and

\varphi1

,

\varphi2

, ... are the orthonormal eigenfunctions of the linear Hilbert–Schmidt operator

G:L2(l{T})L2(l{T}),G(f)=\intl{T}G(s,t)f(s)ds.

By the Karhunen–Loève theorem, one can express the centered process in the eigenbasis,

X(t)-\mu(t)=

infty
\sum
k=1

\xik\varphik(t),

where

\xik=\intl{T}(X(t)-\mu(t))\varphik(t)dt

is the principal component associated with the k-th eigenfunction

\varphik

, with the properties

E(\xik)=0,Var(\xik)=λkandE(\xik\xil)=0fork\nel.

The centered process is then equivalent to ξ1, ξ2, .... A common assumption is that X can be represented by only the first few eigenfunctions (after subtracting the mean function), i.e.

X(t)Xm(t)=\mu(t)+

m
\sum
k=1

\xik\varphik(t),

where

E\left(\intl{T

} \left(X(t) - X_m(t)\right)^2 dt\right) = \sum_ \lambda_j \rightarrow 0 \text m \rightarrow \infty .

Interpretation of eigenfunctions

The first eigenfunction

\varphi1

depicts the dominant mode of variation of X.

\varphi1=\underset{\Vert\varphi\Vert=1}{\operatorname{argmax}}\left\{\operatorname{Var}(\intl{T}(X(t)-\mu(t))\varphi(t)dt)\right\},

where

\Vert\varphi\Vert=\left(

2
\int
l{T}\varphi(t)

dt

1
2
\right)

.

The k-th eigenfunction

\varphik

is the dominant mode of variation orthogonal to

\varphi1

,

\varphi2

, ...,

\varphik-1

,

\varphik=\underset{\Vert\varphi\Vert=1,\langle\varphi,\varphij\rangle=0forj=1,...,k-1}{\operatorname{argmax}}\left\{\operatorname{Var}(\intl{T}(X(t)-\mu(t))\varphi(t)dt)\right\},

where

\langle\varphi,\varphij\rangle=\intl{T}\varphi(t)\varphij(t)dt,forj=1,...,k-1.

Estimation

Let Yij = Xi(tij) + εij be the observations made at locations (usually time points) tij, where Xi is the i-th realization of the smooth stochastic process that generates the data, and εij are identically and independently distributed normal random variable with mean 0 and variance σ2, j = 1, 2, ..., mi. To obtain an estimate of the mean function μ(tij), if a dense sample on a regular grid is available, one may take the average at each location tij:

\hat{\mu}(tij)=

1
n
n
\sum
i=1

Yij.

If the observations are sparse, one needs to smooth the data pooled from all observations to obtain the mean estimate,[3] using smoothing methods like local linear smoothing or spline smoothing.

Then the estimate of the covariance function

\hat{G}(s,t)

is obtained by averaging (in the dense case) or smoothing (in the sparse case) the raw covariances

Gi(tij,til)=(Yij-\hat{\mu}(tij))(Yil-\hat{\mu}(til)),jl,i=1,...,n.

Note that the diagonal elements of Gi should be removed because they contain measurement error.[4]

In practice,

\hat{G}(s,t)

is discretized to an equal-spaced dense grid, and the estimation of eigenvalues λk and eigenvectors vk is carried out by numerical linear algebra.[5] The eigenfunction estimates

\hat{\varphi}k

can then be obtained by interpolating the eigenvectors

\hat{vk}.

The fitted covariance should be positive definite and symmetric and is then obtained as

\tilde{G}(s,t)=

\sum
λk>0

\hat{λ}k\hat{\varphi}k(s)\hat{\varphi}k(t).

Let

\hat{V}(t)

be a smoothed version of the diagonal elements Gi(tij, tij) of the raw covariance matrices. Then

\hat{V}(t)

is an estimate of (G(t, t) + σ2). An estimate of σ2 is obtained by

\hat{\sigma}2=

2
|l{T

|}\intl{T

} (\hat(t) - \tilde(t, t)) dt, if

\hat{\sigma}2>0;

otherwise

\hat{\sigma}2=0.

If the observations Xij, j=1, 2, ..., mi are dense in, then the k-th FPC ξk can be estimated by numerical integration, implementing

\hat{\xi}k=\langleX-\hat{\mu},\hat{\varphi}k\rangle.

However, if the observations are sparse, this method will not work. Instead, one can use best linear unbiased predictors,[3] yielding

\hat{\xi}k=\hat{λ}k

T
\hat{\varphi}
k
-1
\hat{\Sigma}
Yi

(Yi-\hat{\mu}),

where
\hat{\Sigma}
Yi

=\tilde{G}+\hat{\sigma}2

I
mi

, and

\tilde{G}

is evaluated at the grid points generated by tij, j = 1, 2, ..., mi. The algorithm, PACE, has an available Matlab package[6] and R package[7]

Asymptotic convergence properties of these estimates have been investigated.[3] [8] [9]

Applications

FPCA can be applied for displaying the modes of functional variation,[1] [10] in scatterplots of FPCs against each other or of responses against FPCs, for modeling sparse longitudinal data,[3] or for functional regression and classification (e.g., functional linear regression).[2] Scree plots and other methods can be used to determine the number of components included. Functional Principal component analysis has varied applications in time series analysis. At present, this method is being adapted from traditional multivariate techniques to analyze financial data sets such as stock market indices and generate implied volatility graphs.[11] A good example of advantages of the functional approach is the Smoothed FPCA (SPCA), developed by Silverman [1996] and studied by Pezzulli and Silverman [1993], that enables direct combination of FPCA along with a general smoothing approach that makes using the information stored in some linear differential operators possible. An important application of the FPCA already known from multivariate PCA is motivated by the Karhunen-Loève decomposition of a random function to the set of functional parameters – factor functions and corresponding factor loadings (scalar random variables). This application is much more important than in the standard multivariate PCA since the distribution of the random function is in general too complex to be directly analyzed and the Karhunen-Loève decomposition reduces the analysis to the interpretation of the factor functions and the distribution of scalar random variables. Due to dimensionality reduction as well as its accuracy to represent data, there is a wide scope for further developments of functional principal component techniques in the financial field.

Applications of PCA in automotive engineering.[12] [13] [14] [15]

Connection with principal component analysis

The following table shows a comparison of various elements of principal component analysis (PCA) and FPCA. The two methods are both used for dimensionality reduction. In implementations, FPCA uses a PCA step.

However, PCA and FPCA differ in some critical aspects. First, the order of multivariate data in PCA can be permuted, which has no effect on the analysis, but the order of functional data carries time or space information and cannot be reordered. Second, the spacing of observations in FPCA matters, while there is no spacing issue in PCA. Third, regular PCA does not work for high-dimensional data without regularization, while FPCA has a built-in regularization due to the smoothness of the functional data and the truncation to a finite number of included components.

ElementIn PCAIn FPCA
Data

X\inRp

X\inL2(l{T})

Dimension

p<infty

infty

Mean

\mu=E(X)

\mu(t)=E(X(t))

Covariance

Cov(X)=\Sigmap

Cov(X(s),X(t))=G(s,t)

Eigenvalues

λ1,λ2,...,λp

λ1,λ2,...

Eigenvectors/Eigenfunctions

v1,v2,...,vp

\varphi1(t),\varphi2(t),...

Inner Product

\langleX,Y\rangle=

p
\sum
k=1

XkYk

\langleX,Y\rangle=\intl{T}X(t)Y(t)dt

Principal Components

zk=\langleX-\mu,

vk

\rangle,k=1,2,...,p

\xik=\langleX-\mu,\varphik\rangle,k=1,2,...

See also

References

Notes and References

  1. Jones . M. C. . Rice . J. A. . 10.1080/00031305.1992.10475870 . Displaying the Important Features of Large Collections of Similar Curves . The American Statistician . 46 . 2 . 140 . 1992 .
  2. Yao . F. . Müller . H. G. . Wang . J. L. . 10.1214/009053605000000660 . Functional linear regression analysis for longitudinal data . The Annals of Statistics . 33 . 6 . 2873 . 2005 . math/0603132 .
  3. Yao . F. . Müller . H. G. . Wang . J. L. . 10.1198/016214504000001745 . Functional Data Analysis for Sparse Longitudinal Data . Journal of the American Statistical Association . 100 . 470 . 577 . 2005 .
  4. Staniswalis . J. G. . Joan Staniswalis . Lee . J. J. . 10.1080/01621459.1998.10473801 . Nonparametric Regression Analysis of Longitudinal Data . Journal of the American Statistical Association . 93 . 444 . 1403 . 1998 .
  5. Rice . John. Silverman. B.. 1991. Estimating the Mean and Covariance Structure Nonparametrically When the Data are Curves. Journal of the Royal Statistical Society. Series B (Methodological). 53. 1. 233–243. 10.1111/j.2517-6161.1991.tb01821.x.
  6. Web site: PACE: Principal Analysis by Conditional Expectation.
  7. Web site: fdapace: Functional Data Analysis and Empirical Dynamics. 2018-02-25.
  8. Hall . P. . Müller . H. G. . Wang . J. L. . 10.1214/009053606000000272 . Properties of principal component methods for functional and longitudinal data analysis . The Annals of Statistics . 34 . 3 . 1493 . 2006 . math/0608022 .
  9. Li . Y. . Hsing . T. . 10.1214/10-AOS813 . Uniform convergence rates for nonparametric regression and principal component analysis in functional/longitudinal data . The Annals of Statistics . 38 . 6 . 3321 . 2010 . 1211.2137 .
  10. 10.1186/s13040-015-0051-7. 26140054. 4488123. Uncovering correlated variability in epigenomic datasets using the Karhunen-Loeve transform. BioData Mining. 8. 20. 2015. Madrigal. Pedro. Krajewski. Paweł . free .
  11. Functional Data Analysis with Applications in Finance by Michal Benko
  12. Lee. Sangdon. 2012. 10.1177/0954407012442775. Variation modes of vehicle acceleration and development of ideal vehicle acceleration. Proceedings of the Institution of Mechanical Engineers, Part D: Journal of Automobile Engineering. 226. 9 . 1185–1201.
  13. Lee. Sangdon. 2010. 10.1243/09544070JAUTO1585. Characterization and Development of the Ideal Pedal Force, Pedal Travel, and Response Time in the Brake System for the Translation of the Voice of the Customer to Engineering Specifications. Proceedings of the Institution of Mechanical Engineers, Part D: Journal of Automobile Engineering. 224. 11 . 1433–1450 .
  14. Lee. Sangdon. 2008. 10.1243/09544070JAUTO351. Principal component analysis of vehicle acceleration gain and translation of voice of the customer. Proceedings of the Institution of Mechanical Engineers, Part D: Journal of Automobile Engineering. 222. 2 . 191–203 .
  15. Lee. Sangdon. 2006. 10.1504/IJVNV.2006.011052. Multivariate statistical analyses of idle noise and vehicle positioning. International Journal of Vehicle Noise and Vibration. 2. 2 . 156–175 .