Package Fastica': R Topics Documented
Package Fastica': R Topics Documented
Package Fastica': R Topics Documented
R topics documented:
fastICA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
ica.R.def . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
ica.R.par . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Index 8
1
2 fastICA
Description
This is an R and C code implementation of the FastICA algorithm of Aapo Hyvarinen et al. (http:
//www.cs.helsinki.fi/u/ahyvarin/) to perform Independent Component Analysis (ICA) and
Projection Pursuit.
Usage
Arguments
Details
Independent Component Analysis (ICA)
The data matrix X is considered to be a linear combination of non-Gaussian (independent) compo-
nents i.e. X = SA where columns of S contain the independent components and A is a linear mixing
matrix. In short ICA attempts to ‘un-mix’ the data by estimating an un-mixing matrix W where XW
= S.
Under this generative model the measured ‘signals’ in X will tend to be ‘more Gaussian’ than
the source components (in S) due to the Central Limit Theorem. Thus, in order to extract the
independent components/sources we search for an un-mixing matrix W that maximizes the non-
gaussianity of the sources.
In FastICA, non-gaussianity is measured using approximations to neg-entropy (J) which are more
robust than kurtosis-based measures and fast to compute.
The approximation takes the form
Value
A list containing the following components
Author(s)
J L Marchini and C Heaton
References
A. Hyvarinen and E. Oja (2000) Independent Component Analysis: Algorithms and Applications,
Neural Networks, 13(4-5):411-430
See Also
ica.R.def, ica.R.par
Examples
#---------------------------------------------------
#Example 1: un-mixing two mixed independent uniforms
#---------------------------------------------------
#--------------------------------------------
#Example 2: un-mixing two independent signals
#--------------------------------------------
#-----------------------------------------------------------
#Example 3: using FastICA to perform projection pursuit on a
# mixture of bivariate normal distributions
#-----------------------------------------------------------
if(require(MASS)){
x <- mvrnorm(n = 1000, mu = c(0, 0), Sigma = matrix(c(10, 3, 3, 1), 2, 2))
x1 <- mvrnorm(n = 1000, mu = c(-1, 2), Sigma = matrix(c(10, 3, 3, 1), 2, 2))
X <- rbind(x, x1)
Description
R code for FastICA using a deflation scheme in which the components are estimated one by one.
This function is called by the fastICA function.
Usage
ica.R.def(X, n.comp, tol, fun, alpha, maxit, verbose, w.init)
Arguments
X data matrix
n.comp number of components to be extracted
tol a positive scalar giving the tolerance at which the un-mixing matrix is considered
to have converged.
fun the functional form of the G function used in the approximation to negentropy.
alpha constant in range [1,2] used in approximation to negentropy when fun == "logcosh"
maxit maximum number of iterations to perform
verbose a logical value indicating the level of output as the algorithm runs.
w.init Initial value of un-mixing matrix.
6 ica.R.par
Details
See the help on fastICA for details.
Value
The estimated un-mixing matrix W.
Author(s)
J L Marchini and C Heaton
See Also
fastICA, ica.R.par
Description
R code for FastICA using a parallel scheme in which the components are estimated simultaneously.
This function is called by the fastICA function.
Usage
ica.R.par(X, n.comp, tol, fun, alpha, maxit, verbose, w.init)
Arguments
X data matrix.
n.comp number of components to be extracted.
tol a positive scalar giving the tolerance at which the un-mixing matrix is considered
to have converged.
fun the functional form of the G function used in the approximation to negentropy.
alpha constant in range [1,2] used in approximation to negentropy when fun == "logcosh".
maxit maximum number of iterations to perform.
verbose a logical value indicating the level of output as the algorithm runs.
w.init Initial value of un-mixing matrix.
Details
See the help on fastICA for details.
Value
The estimated un-mixing matrix W.
ica.R.par 7
Author(s)
J L Marchini and C Heaton
See Also
fastICA, ica.R.def
Index
∗Topic multivariate
fastICA, 2
∗Topic utilities
ica.R.def, 5
ica.R.par, 6
fastICA, 2, 6, 7
ica.R.def, 4, 5, 7
ica.R.par, 4, 6, 6