Computational Cognitive Neuroscience

0%

Loading...

Static preview:

Principal components analysis

Principal components analysis (PCA) is a widely-used dimensionality reduction technique that computes new basis vectors that capture the primary dimensions of variance in the covariance matrix across a set of data (e.g., patterns of neural activity over time). By representing a high-dimensional state space using a small number of efficient basis vectors, which can be represented in a 2D or 3D plot, the essential structure of the representations can often be understood. See linear algebra for mathematical details behind these concepts and the eigenvector / eigenvalue framework that underlies the mathematics of PCA.

In addition to the practical utility of using PCA for analyzing neural representations, this process of re-representing information in a new rotated set of axes or basis vectors is an essential feature of neural information processing as discussed in categorization, driven by learning mechanisms that adjust synaptic weights, which provide the basis vectors by which information is represented in the brain.

Indeed, various forms of Hebbian learning have been shown to perform an approximations of PCA, and PCA provides a useful abstract, mathematically well-defined example of what Hebbian learning can accomplish. Specifically, PCA is based on correlations among the input variables, and shows how Hebbian learning can usefully extract the correlational structure of the input space.

In an information-theory framing, more variance means greater entropy and thus greater information, so finding the maximum variance dimensions is the same as finding the most informative dimensions. Eliminating redundant, correlated signals in the input is equivalent to compressing the information so it can be represented more efficiently. The closely-related independent components analysis (ICA) method (Jutten & Herault, 1991) is derived from the information-theoretic principle of minimizing mutual information, and it has certain advantages in some situations over PCA (Hyvärinen, 2013).

Covariance matrix

Figure 1:

Petal length and width for different types of irises in a widely-used stats dataset. These values are very strongly correlated and therefore redundant. PCA can collapse across these redundancies to extract the principal components of variance.



The computation of the PCA components starts with the covariance matrix of the data, which captures the extent to which different variables (e.g., neuron activity states) co-vary (correlate) with each other over the rows of data. Intuitively, if two variables exhibit the same pattern of activity over time, then they are redundant and can be captured with just one variable instead of two (Figure 1). This same principle can be extended in a soft manner by capturing the central tendency across multiple variables, that are only partially redundant. This is what PCA can accomplish.

Figure 2:

Covariance matrix for the iris dataset, for sepal length, sepal width, petal length, and petal width features. Brighter yellow indicates strong correlations, and all except the sepal width are strong correlated with each other, with petal length and width correlated at a level of 0.96, where 1 is a perfect correlation.



Figure 2 shows the covariance matrix for the UCI machine-learning standard iris dataset. Because 3 out of the 4 features strongly covary with each other across the three different iris flower species and the 50 individual samples of each species in the dataset, it can be more efficiently represented with just two principal components, which capture a large amount of the variance across this dataset.

PCA projection

Figure 3:

Projection of the iris data onto the first (PC0) and second (PC1) principal component basis vectors. The first component (X axis) fairly cleanly separates the different species of iris, while the second component (Y axis) differentiates measurements within each species.



Figure 3 shows the projection of the iris data along the two strongest principal components. The relatively spread-out nature of the points in general is an indication of the PCA projection finding the axes that capture the dimensions of maximum variance within the data. The first principal component along the X axis clearly distinguishes the different species of irises, while the second component plotted along the Y axis maximizes the variance within species.