Singular value decomposition and principal components analysis