Independent component analysis
Unmix signals: find statistically independent, non-Gaussian sources behind observed mixtures.
Animated explanation
The idea
At a party, two microphones each record a mixture of two speakers. Can we recover each speaker's voice? ICA says yes, if the sources are statistically independent and not Gaussian.
The key insight comes from the central limit theorem: a mixture of independent signals is more Gaussian than the signals themselves. So we search for directions in which the projected data is as non-Gaussian as possible; each such direction recovers one source. PCA finds uncorrelated directions of large variance; ICA goes further and finds independent ones. It is used for separating EEG/MEG signals from eye-blink artefacts, audio, and financial factors.
What ICA cannot know
The order of the sources and their scale (and sign) are not identifiable: for any permutation and scaling . At most one source may be Gaussian, since a rotation of Gaussians is still Gaussian and nothing could pin it down.
FastICA
Centre and whiten the data (PCA with unit variances). Then for each component run a fixed-point iteration that maximises an approximation of negentropy (non-Gaussianity) using , decorrelating each new component from the previous ones (deflation). It converges in a handful of iterations.
The algorithm, step by step
- 1Centre the data and whiten it: .
- 2For each component : start with a random unit .
- 3Repeat: ; subtract projections on earlier components; normalise.
- 4Stop when ; the sources are .
The maths
Generative model
Whitening
Negentropy approximation
Strengths and weaknesses
Strengths
- Separates mixed signals PCA cannot
- Fast fixed-point algorithm (FastICA)
- No training labels
Weaknesses
- Order, sign and scale of sources are arbitrary
- Assumes linear mixing and independence; at most one Gaussian source
- Sensitive to noise and to the number of components
Reach for it when…
Check your understanding
Lambdian Lab
FastICA by deflation
Separate two mixed signals.
- whiten(X): centre the (n × d) data and return (Z, W_white) with cov(Z) = I (use the eigen-decomposition of the covariance).
- fast_ica(Z, n_components, iters, seed): deflation FastICA with g = tanh; return W (rows are unit vectors, mutually orthogonal).
- unmix(X, n_components, seed): sources = Z @ W.T.