Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Last answered:

19 Nov 2021

Posted on:

30 Nov 2020

0

Resolved: p-value

Hi, I request you please give me the detailed explanation answer for the following query. Can we pass binary integer categorical variable to PCA? Waiting for your reply. Thank you.  
2 answers ( 1 marked as helpful)
Instructor
Posted on:

08 Dec 2020

0
Hi Mohammad,  thanks for reaching out! That's a great question! First, when it comes to theory you could use PCA with categorical binary variables. The question is how accurate the results would be.  What you could do if you'd like to use PCA on categorical data is to create dummy variables. You can read a more detailed explanation here: http://staskolenikov.net/talks/Gustavo-Stas-PCA-generic.pdf Otherwise, you can use Multiple Factor Analysis instead. This method has the advantage of being able to handle a mixture of categorical and continuous variables better, as it balances the influence of each feature in the data set.  Hope this helps! Best,  365 Eli
Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Posted on:

19 Nov 2021

0

Hi Elitsa,
Thank you very much for your answer. It's very helpful to me.

Best!
Khadeer Akbar

Submit an answer