Skip to content

Instantly share code, notes, and snippets.

@jacoblevine
jacoblevine / correspondence_analysis.py
Last active January 11, 2018 17:37
Correspondence Analysis
import numpy as np
def correspondence_analysis(x):
"""Correspondence Analysis on frequency table x
as described in Härdle & Simar (2012) "Applied Multivariate Statistical Analysis"
Parameters
----------
x : np.ndarray
n-by-m table of counts or frequencies of m categories in n samples