KarhunenLoeveDecomposition
KarhunenLoeveDecomposition[{a1,a2,…}]
gives the Karhunen–Loeve transform {{b1,b2,…},m} of the numerical arrays {a1,a2,…}, where m.aibi.
KarhunenLoeveDecomposition[{b1,b2,…},m]
uses the inverse of the matrix m for transforming bi to ai.
Details and Options
- Karhunen–Loeve decomposition is typically used to reduce the dimensionality of data and capture the most important variation in the first few components.
- The ai can be arbitrary rank arrays or images of the same dimensions.
- The inner product of m and {a1,a2,…} gives {b1,b2,…}.
- In KarhunenLoeveDecomposition[{a1,…}], rows of the transformation matrix m are the eigenvectors of the covariance matrix formed from the arrays ai.
- The matrix m is a linear transformation of ai. The transformed arrays bi are uncorrelated, are given in order of decreasing variance, and have the same total variance as ai.
- KarhunenLoeveDecomposition[{b1,b2,…},m] effectively computes the inverse Karhunen–Loeve transformation. If the length of {b1,b2,…} is less than the size of m, missing components are assumed to be zero.
- With an option setting StandardizedTrue, datasets ai are shifted so that their means are zero.
Examples
open allclose allBasic Examples (2)
Scope (5)
Applications (3)
Properties & Relations (7)
The Karhunen–Loeve decomposition preserves the total variance:
The Karhunen–Loeve decomposition yields uncorrelated sets:
The Karhunen–Loeve decomposition yields an orthogonal transformation matrix:
Relation to PrincipalComponents:
A setting Standardized->True is equivalent to subtracting the mean from the input data:
Normalizing by the square root of the number of datasets better preserves the input dynamics:
KarhunenLoeveDecomposition normally returns images of a real type:
Text
Wolfram Research (2010), KarhunenLoeveDecomposition, Wolfram Language function, https://reference.wolfram.com/language/ref/KarhunenLoeveDecomposition.html (updated 2015).
CMS
Wolfram Language. 2010. "KarhunenLoeveDecomposition." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/KarhunenLoeveDecomposition.html.
APA
Wolfram Language. (2010). KarhunenLoeveDecomposition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KarhunenLoeveDecomposition.html