10
$\begingroup$

I have seen senior data scientists doing data scaling either before or after applying PCA.

What is more right to do and why?

$\endgroup$
1

3 Answers 3

17
$\begingroup$

I once heard a data scinetist state at a conference talk: "Basically, you can do what you want, as long as you know what you are doing."

This also applies here. The more statistically sound way would be to transform all variables prior to additional steps such as PCA or factor analysis. Then you still know the scale of your variables and can interpret the rescaling in the context of your application. If you have no such interpretation, but good reasons for rescaling your principal components due to computational issues arising if some values are to close to zero while others are quite large, rescaling the components makes sense. However, reversing this process and still being able to interpret the effect of the rescaling operation in your context will become almost impossible.

$\endgroup$
1
  • $\begingroup$ Thank you for your answer@alex. As I can for the upvotes that you got, your answer is right and actually this was what I had in my mind. $\endgroup$
    – Outcast
    Jul 27, 2018 at 12:01
0
$\begingroup$

It is definitely recommended to center data before performing PCA since the transformation relies on the data being around the origin. Some data might already follow a standard normal distribution with mean zero and standard deviation of one and so would not have to be scaled before PCA.

If you are getting a number of PCA components for multiple features it is best to scale them as with features of different size, your algorithm might interpret one as more important than others without any real reason.

$\endgroup$
-1
$\begingroup$

"It results more important to balance the classes rather than reduce the dimensionality, at least in terms of accuracy; (ii) The best choice seems to be the application of SMOTE followed by PCA.."

Link: https://core.ac.uk/download/pdf/61408511.pdf

$\endgroup$
1
  • $\begingroup$ It does not answer the original question but provides a very misleading advice from a specific usecase that should not be used for generalization. $\endgroup$
    – Viktor
    Jan 20, 2020 at 10:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.