Statistics & probability

Independent component analysis calculator for separating mixed signals

Separate square mixtures into candidate independent components with centered whitening and deterministic multistart symmetric FastICA.

Your numbers

Rows are simultaneous observations; columns are 2–4 channels.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Separate square mixtures into candidate independent components with centered whitening and deterministic multistart symmetric FastICA.

THE FORMULAZ=Cov(X)^(−1/2)(X−mean); W←E[tanh(WZ)Zᵀ]−diag(E[1−tanh²(WZ)])W, followed by symmetric decorrelation.

A worked example

The default mixes two independent Cartesian uniform sources through channels 2x+y and x−2y. The recovered standardized components have excess kurtosis −1.3 and approximately −1.268571429, with reconstruction residual below 1e−12.

Good to know

20–1000 complete rows and 2–4 channels; full-rank population-covariance whitening, four deterministic symmetric FastICA starts and bounded iterations. Convergence/reconstruction checked. Components have arbitrary signs, order and scale; no global contrast optimum, physical source identity, missing-value model or noise separation claim.

Decorrelation does not imply independence

A signal matrix can contain several channels that are linear mixtures of underlying processes. Principal component analysis makes channels uncorrelated and orders their variance, but that transformation does not generally recover independent sources. Independent component analysis uses additional information in the distribution beyond second moments to choose a separating transformation.

This page searches for components with a particular non-Gaussian contrast after whitening. It does not know what generated the observations. A numerically converged set of components should be treated as a model-based representation whose interpretation depends on the mixing assumptions, not as automatically identified physical, biological or financial sources.

Independent component analysis calculator for separating mixed signals worked exampleObserved: 2x+y, x−2yRecovered source grid
Scroll across to see the full diagram.
The default mixes two independent Cartesian uniform sources through channels 2x+y and x−2y. The recovered standardized components have excess kurtosis −1.3 and approximately −1.268571429, with reconstruction residual below 1e−12.

Compare this with the Principal component analysis calculator from a data matrix. Recover statistically independent non-Gaussian sources and a mixing/unmixing matrix; PCA decorrelates variance directions and cannot generally undo arbitrary source mixing.

Rows must represent simultaneous observations

Enter one observation per row and one channel per column. All rows must have the same number of columns, because mixing relates the measurements observed together. The supported square model has the same number of recovered components as channels; there is no hidden selection of a smaller or larger source count.

Channel centering removes its sample mean before the separation. Whitening uses the population covariance convention with divisor n, so recovered component variances are measured under that convention. Missing entries, categorical values and time-misaligned channels cannot be repaired merely by including them in the same numeric matrix.

Whitening fixes covariance before rotation

The centered covariance matrix is decomposed to construct its inverse square root. Multiplying by this transform produces whitened observations with identity covariance when the input has sufficient numerical rank. A singular or nearly singular covariance is rejected, since arbitrarily amplifying a tiny direction would not supply reliable new information.

Whitening leaves an orthogonal rotation undetermined. FastICA chooses that rotation using a smooth log-cosh contrast and symmetric updates of all components. This distinction explains why a whitening matrix and a complete unmixing matrix are different objects, even though either can decorrelate the original channels in suitable circumstances.

Convergence has a specific meaning here

Four deterministic initial rotations are attempted, with symmetric decorrelation after each update. A component direction and its negative represent the same candidate source, so the convergence check compares absolute row-direction alignment between successive iterations. An unconverged attempt is not accepted simply because it has consumed its iteration budget.

A converged candidate must also reconstruct the centered input through the inverse mixing transformation with a small relative residual. Reconstruction checks the linear algebra, while convergence checks the iterative update. Neither check proves that the contrast landscape has a unique global optimum or that the observed samples satisfy independent-source assumptions.

Understand the constructed default mixture

The example builds two independent discrete uniform sources on a Cartesian grid, then observes the mixtures two x plus y and x minus two y. Every possible source combination is represented, so independence is a property of the designed example rather than something inferred from the output table alone.

After standardization, the original source distributions have different excess kurtoses, approximately minus 1.3 and minus 1.268571429. The recovered values can be compared without relying on component names or signs. The residual is near floating-point roundoff, showing that the returned mixing and unmixing matrices reconstruct the centered observations in this controlled case.

Signs, scales and ordering are ambiguous

Multiplying one source by a nonzero constant while dividing its mixing column by the same constant leaves the observed mixture unchanged. Permuting source columns also leaves the model unchanged after the corresponding mixing permutation. ICA therefore cannot assign an intrinsic sign, scale or output order without external conventions or information.

Whitening supplies a convenient standardization here, but it does not turn component one into a named source. Comparing results from another implementation should account for signed permutations and scaling. In particular, a negative correlation near minus one with a known source can indicate the same successful recovery as a positive correlation near one.

Identify when the model is unsuitable

Independent Gaussian components cannot generally be separated by their non-Gaussian distributional contrast; rotations can remain indistinguishable. Additive noise, changing mixtures, nonlinear mixing and dependent sources also weaken the interpretation. The page does not fit a noise model, detect all such violations or select an optimal scientific model automatically.

Inspect component distributions and the assumptions of the measurement process alongside numerical diagnostics. Reordering observations should preserve the underlying solution up to allowed ambiguities, while rescaling a channel should be absorbed by whitening and the mixing matrices. These invariances are useful checks, but they cannot replace evidence that the chosen source model is appropriate.

A few questions, answered

Are recovered components named real sources?

No. Their signs, order and scales are nonidentifiable without additional information, and a converged contrast does not establish physical identity.

Why is a full-rank covariance required?

Whitening needs an inverse covariance square root; an unresolved small eigenvalue would amplify numerical noise rather than identify a supported direction.

Can this separate Gaussian sources?

Independent Gaussian sources are rotationally ambiguous, so the non-Gaussian contrast cannot generally distinguish them.

Is reconstruction enough to validate ICA?

No. It verifies the linear transformation, while independence assumptions and substantive source interpretation require separate evidence.

Find your calculator

Start typing to explore the library.