The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

p-value

p-value

0
Votes
1
Answer

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.
 

1 Answer

365 Team
0
Votes

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

JanuaryPromo
×
Complete Data Science Education
Get 50% OFF