Principal component analysis (PCA) with Python

File to download to obtain the code and example data files

Loading the compressed code and example data files [folder: "PCA_py.zip"]

The comprehensive principal component analysis (PCA) program presented here is designed in the spirit of exploratory data analysis. We thus insist on the fundamental role, for the interpretations, of additional (or supplementary) variables (numerical or nominal) and additional (or supplementary) individuals.

This stand-alone program does not refer to existing PCA programs. It only uses the three classic python libraries NUMPY (for vector and matrix computation), PANDAS (for managing data tables) and MATPLOTLIB (for graphics)..

Here is a sample of references from sites developing principal component analysis..
(the latter is the closest to the "Data Analysis" spirit)

  Presentation of PCA from two examples, and full python code

Click below to get the presentation of the PCA from two examples

Commented examples and python program