Reducing the dimensionality of a dataset with a principal component analysis