Measure correlation for categorical vs continous variable Given a variable which is categorical that depends on continuous variables, I would like to know how to check wether these continous variable explain the categorical one.
So:
Y = cagetorical 
X1 = continous 
X2 = continous
X3 = continous

I'd start with a correlation but which? I've seen How to get correlation between two categorical variable and a categorical variable and continuous variable? but there it is explained wether there is a difference in categorical variables explaining a continous variable, so I think it's another topic?
I'm fine with tool advices in R and python as well.
edit: I'm not sure wether cateogrical is correct here. The values of $ Y $ are $ 0, 1, 2, 3 $ but I could also use $ A, B, C, D $. They represent a classification of the measure of cleanliness of a room.
By saying you want to &quot;explain Y by X&quot; it sounds that you try to build a classifier F that can map X values into expected Y: F(X) --&gt; Y.
If so, you don't have to search for &quot;correlation&quot; necessarily.
There are various methods to build such a classifier. You can use logistic regression \ SVM \ Neural network \ etc.
Besides, if it make more sense for you, you can always first discretize the continuous variables into categorical vars and than use also other methods such as decision trees \ Naive Bayes and more.