ArticleslgStudy

computer science

FastICA

FastICA is a computer science 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 FastICA rather than just read about it. In short: FastICA is an efficient and popular algorithm for independent component analysis invented by Aapo Hyvärinen at Helsinki University of Technology. Like most ICA algorithms, FastICA seeks an orthogonal rotation of prewhitened data, through a fixed-point iteration scheme, that maximizes a measure of non-Gaussianity of the rotated components.

Key takeaways

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

Reference excerpt

FastICA is an efficient and popular algorithm for independent component analysis invented by Aapo Hyvärinen at Helsinki University of Technology. Like most ICA algorithms, FastICA seeks an orthogonal rotation of prewhitened data, through a fixed-point iteration scheme, that maximizes a measure of non-Gaussianity of the rotated components. Non-gaussianity serves as a proxy for statistical independence, which is a very strong condition and requires infinite data to verify. FastICA can also be alternatively derived as an approximative Newton iteration.

Algorithm

Prewhitening the data Let the 𝐗:=(xij)∈ℝN×M denote the input data matrix, M the number of columns corresponding with the number of samples of mixed signals and N the number of rows corresponding with the number of independent source signals. The input data matrix 𝐗 must be prewhitened, or centered and whitened, before applying the FastICA algorithm to it.

Centering the data entails demeaning each component of the input data 𝐗, that is,

for each i=1,…,N and j=1,…,M. After centering, each row of 𝐗 has an expected value of 0. Whitening the data requires a linear transformation 𝐋:ℝN×M→ℝN×M of the centered data so that the components of 𝐋(𝐗) are uncorrelated and have variance one. More precisely, if 𝐗 is a centered data matrix, the covariance of 𝐋𝐱:=𝐋(𝐗) is the (N×N)-dimensional identity matrix, that is,

A common method for whitening is by performing an eigenvalue decomposition on the covariance matrix of the centered data 𝐗, E{𝐗𝐗T}=𝐄𝐃𝐄T, where 𝐄 is the matrix of eigenvectors and 𝐃 is the diagonal matrix of eigenvalues. The whitened data matrix is defined thus by

Single component extraction The iterative algorithm finds the direction for the weight vector 𝐰∈ℝN that maximizes a measure of non-Gaussianity of the projection 𝐰T𝐗, with 𝐗∈ℝN×M denoting a prewhitened data matrix as described above. Note that 𝐰 is a column vector. To measure non-Gaussianity, FastICA relies on a nonquadratic nonlinear function f(u), its first derivative g(u), and its second derivative g′(u). Hyvärinen states that the functions

are useful for general purposes, while

may be highly robust. The steps for extracting the weight vector 𝐰 for single component in FastICA are the following:

Randomize the initial weight vector 𝐰 Let 𝐰+←E{𝐗g(𝐰T𝐗)T}−E{g′(𝐰T𝐗)}𝐰, where E{...} means averaging over all column-vectors of matrix 𝐗 Let 𝐰←𝐰+/‖𝐰+‖ If not converged, go back to 2

Multiple component extraction The single unit iterative algorithm estimates only one weight vector which extracts a single component. Estimating additional components that are mutually "independent" requires repeating the algorithm to obtain linearly independent projection vectors - note that the notion of independence here refers to maximizing non-Gaussianity in the estimated components. Hyvärinen provides several ways of extracting multiple components with the simplest being the following. Here, 𝟏𝐌 is a column vector of 1's of dimension M. Algorithm FastICA

Input: C Number of desired components Input: 𝐗∈ℝN×M Prewhitened matrix, where each column represents an N-dimensional sample, where C<=N Output: 𝐖∈ℝN×C Un-mixing matrix where each column projects 𝐗 onto independent component. Output: 𝐒∈ℝC×M Independent components matrix, with M columns representing a sample with C dimensions. for p in 1 to C: 𝐰𝐩← Random vector of length N while 𝐰𝐩 changes 𝐰𝐩←1M𝐗g(𝐰𝐩T𝐗)T−1Mg′(𝐰𝐩T𝐗)𝟏𝐌𝐰𝐩 𝐰𝐩←𝐰𝐩−∑j=1p−1(𝐰𝐩T𝐰𝐣)𝐰𝐣 𝐰𝐩←𝐰𝐩‖𝐰𝐩‖ output 𝐖←[𝐰𝟏,…,𝐰𝐂] output 𝐒←𝐖𝐓𝐗

See also Unsupervised learning Machine learning The IT++ library features a FastICA implementation in C++ Infomax

References

External links FastICA in Python FastICA package for Matlab or Octave fastICA package in R programming language FastICA in Java on SourceForge FastICA in Java in RapidMiner. FastICA in Matlab FastICA in MDP FastICA in Julia

Worked examples

Example 1 — a first encounter with FastICA

Start with the simplest possible case. Write down what FastICA claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, 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 FastICA 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 FastICA 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 FastICA

In research
FastICA appears in computer science 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 FastICA 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
FastICA is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational statistics, Factor analysis, Machine learning algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for FastICA 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 “FastICA” →

How to study FastICA in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what FastICA 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 FastICA out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is FastICA in simple terms?

FastICA is an efficient and popular algorithm for independent component analysis invented by Aapo Hyvärinen at Helsinki University of Technology. Like most ICA algorithms, FastICA seeks an orthogonal rotation of prewhitened data, through a fixed-point iteration scheme, that maximizes a measure of n…

Why does FastICA matter?

Because it connects several computer science 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 FastICA?

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 FastICA.

Tags

  • Computational statistics
  • Factor analysis
  • Machine learning algorithms

Keep exploring