ArticleslgStudy

mathematics

Functional principal component analysis

Functional principal component analysis is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Functional principal component analysis rather than just read about it. In short: 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.

Key takeaways

  • Functional principal component analysis belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Functional principal component analysis to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Functional principal component analysis from memory before moving on to harder problems.

Reference excerpt

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, or in functional regression and classification.

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

μ(t)=E(X(t)) and

G(s,t)=Cov(X(s),X(t))=∑k=1∞λkφk(s)φk(t), where λ1≥λ2≥...≥0 are the eigenvalues and φ1, φ2, ... are the orthonormal eigenfunctions of the linear Hilbert–Schmidt operator

G:L2(𝒯)→L2(𝒯),G(f)=∫𝒯G(s,t)f(s)ds. By the Karhunen–Loève theorem, one can express the centered process in the eigenbasis,

X(t)−μ(t)=∑k=1∞ξkφk(t), where

ξk=∫𝒯(X(t)−μ(t))φk(t)dt is the principal component associated with the k-th eigenfunction φk, with the properties

E(ξk)=0,Var(ξk)=λk and E(ξkξl)=0 for k≠l. 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)=μ(t)+∑k=1mξkφk(t), where

E(∫𝒯(X(t)−Xm(t))2dt)=∑j>mλj→0 as m→∞.

Interpretation of eigenfunctions The first eigenfunction φ1 depicts the dominant mode of variation of X.

φ1=argmax‖𝝋‖=1{Var⁡(∫𝒯(X(t)−μ(t))φ(t)dt)}, where

‖𝝋‖=(∫𝒯φ(t)2dt)12. The k-th eigenfunction φk is the dominant mode of variation orthogonal to φ1, φ2, ... , φk−1,

φk=argmax‖𝝋‖=1,⟨φ,φj⟩=0 for j=1,…,k−1{Var⁡(∫𝒯(X(t)−μ(t))φ(t)dt)}, where

⟨φ,φj⟩=∫𝒯φ(t)φj(t)dt, for j=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:

μ̂(tij)=1n∑i=1nYij. If the observations are sparse, one needs to smooth the data pooled from all observations to obtain the mean estimate, using smoothing methods like local linear smoothing or spline smoothing. Then the estimate of the covariance function Ĝ(s,t) is obtained by averaging (in the dense case) or smoothing (in the sparse case) the raw covariances

Gi(tij,til)=(Yij−μ̂(tij))(Yil−μ̂(til)),j≠l,i=1,…,n. Note that the diagonal elements of Gi should be removed because they contain measurement error. In practice, Ĝ(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. The eigenfunction estimates φ̂k can then be obtained by interpolating the eigenvectors vk̂. The fitted covariance should be positive definite and symmetric and is then obtained as

G~(s,t)=∑λk>0λ̂kφ̂k(s)φ̂k(t). Let V̂(t) be a smoothed version of the diagonal elements Gi(tij, tij) of the raw covariance matrices. Then V̂(t) is an estimate of (G(t, t) + σ2). An estimate of σ2 is obtained by

σ̂2=2|𝒯|∫𝒯(V̂(t)−G~(t,t))dt, if σ̂2>0; otherwise σ̂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

ξ̂k=⟨X−μ̂,φ̂k⟩. However, if the observations are sparse, this method will not work. Instead, one can use best linear unbiased predictors, yielding

ξ̂k=λ̂kφ̂kTΣ̂Yi−1(Yi−μ̂), where

Σ̂Yi=G~+σ̂2𝐈mi, and G~ is evaluated at the grid points generated by tij, j = 1, 2, ..., mi. The algorithm, PACE, has an available Matlab package and R package Asymptotic convergence properties of these estimates have been investigated.

Applications FPCA can be applied for displaying the modes of functional variation, in scatterplots of FPCs against each other or of responses against FPCs, for modeling sparse longitudinal data, or for functional regression and classification (e.g., functional linear regression). 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. 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.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Functional principal component analysis

Start with the simplest possible case. Write down what Functional principal component analysis claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Functional principal component analysis before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Functional principal component analysis ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Functional principal component analysis

In research
Functional principal component analysis appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Functional principal component analysis in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Functional principal component analysis is common in secondary-school and first-year university syllabi. It links to neighbouring topics Factor analysis, Nonparametric statistics, so understanding it makes those chapters shorter.
In everyday life
Look for Functional principal component analysis outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Functional principal component analysis” →

How to study Functional principal component analysis in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Functional principal component analysis means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Functional principal component analysis out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Functional principal component analysis in simple terms?

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 eigenfunctio…

Why does Functional principal component analysis matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Functional principal component analysis?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Functional principal component analysis.

Tags

  • Factor analysis
  • Nonparametric statistics

Keep exploring