Correct selection of data subsets and PCA