Skip to content

Instantly share code, notes, and snippets.

jacoblevine /
Last active Jan 11, 2018
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"
x : np.ndarray
n-by-m table of counts or frequencies of m categories in n samples