Simple correspondence analysis in Python

6.9k Views Asked by At

How can I run simple correspondence analysis (CA) in Python? In the sklearn library, there only appears to be multiple correspondence analysis (MCA) and canonical correspondence analysis (CCA) options. However, my data is not categorical and does not need the additional linearity constraints applied by CCA.

My impression based on this link on CCA and this one on MCA is that regular CA cannot be applied by using one of the two other option.

1

There are 1 best solutions below

0
On

For correspondence analysis you can use a package "prince" https://pypi.org/project/prince/ . It makes a plot from the data in a few steps. Although the drawback is that you (I) cannot see details of the calculated residuals for instance.