0
$\begingroup$

There are categorical features which have two different value in my dataframe next to numerical features. I've converted these categorical values to 0 or 1.

I will apply correalation elimination on features after calculating correlation coefficients. Depending on type of features, methods are given below:

Numeric - Numeric: Pearson

Numeric - Categoric: Cramer_V

Categoric - Categoric: Correlation Ratio

That's why I could not be sure what should be type of converted categorical features? Numerical or categorical ?

Another reason to I asked this question is that when I create dummy features for the categorical features which have only two different values, it creates features contains 0 and 1 like how I did manually. So after this process it's taking these features as numerical. But still each value from the feature represents a class and I think feature type should not be numerical.

$\endgroup$
  • $\begingroup$ I've converted these categorical values to 0 or 1. How and what's the procedure adopted by you ? $\endgroup$ – Subhash C. Davar Apr 5 at 4:14
  • $\begingroup$ Should the type of Boolean categorical features be numerical or categorical after encoding? What do you mean by Boolean categorical features ? Translating categories into Boolean- is it valid ? $\endgroup$ – Subhash C. Davar Apr 5 at 4:43
  • $\begingroup$ I meant to convert categorical values with two classes into numerical ones. For example, when we convert the "Gender" variable to numerical, we get 0 and 1, so there is no problem here. What should be the correlation approach for the gender variable converted into numerical in the next step? Should it be categorically treated in correlation or should it be treated numerically because it is converted into a numerical type? $\endgroup$ – talatccan Apr 7 at 8:44
0
$\begingroup$

In mathematics and mathematical logic, Boolean algebra is the branch of algebra in which the values of the variables are the truth values true and false, usually denoted 1 and 0 respectively. Generally, gender can not be considered - true or false . Classification is based on sex - Male or female . Categories differ and can be assigned particular numerical values (dummy variable) 1, 2 or 2, 3 etc. Binary variable is different. If you want to find correlation between the scores obtained by Male students and female students, you will have to have matched pairs. Categories measure the levels for grouping. Binary classification can be undertaken for a dependent variable in regression analysis or point biserial correlation. The standard softwares for statistical analysis do not invoke 0,1 as variable. The probability based solutions may use this classification for grouping.

| improve this answer | |
$\endgroup$

Your Answer

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

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