2
$\begingroup$

I was thinking about it, but I couldn't find a logical explanation.

Mostly im following below steps after data become ready:

  • Correlation analysis and elimination
  • Apply dummy if categorical variables exist
  • Balance the data if data is unbalanced
  • Scale data
  • Feature selection (Backward, Stepwise etc.)
  • Train model

Where would the correlation analysis be applied for this path I followed would make more sense? After the data is balanced? After scaling? Or at first?

$\endgroup$
3
  • $\begingroup$ Your first step is "Correlation analysis and elimination", do you mean that you eliminate the features which have a low correlation with the target variable? If yes that would be part of the feature selection process, so I would probably do it around the same time as the other feature selection part. $\endgroup$ – Erwan Feb 21 '20 at 0:22
  • $\begingroup$ I did mean eliminate the features which are highly correlated with each other. If i do that in feature selection section, data will be balanced, scaled and transformed the dummy variables. So how much is it correct to perform correlation analysis after those sections? If i perform it on original dataset isin't it more logical? $\endgroup$ – talatccan Feb 21 '20 at 6:50
  • $\begingroup$ Imho I don't see any strong reason to do it one way or the other, but the result might be different: for instance 2 categorical variables might not be correlated but some of their "dummy" features might be. $\endgroup$ – Erwan Feb 21 '20 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.