Expand description
Canonical Correlation Analysis.
Mirrors sklearn.cross_decomposition.CCA (and PLSCanonical for the
univariate case). Given paired (X, Y), CCA finds linear combinations
Xa and Yb that are maximally correlated.
Closed form via SVD:
- Centre and whiten both X and Y (X_white = X · K_x, Y_white = Y · K_y).
- Compute the cross-covariance
C = X_whiteᵀ · Y_white / (n - 1). - SVD
C = U Σ Vᵀ. The firstkcolumns ofK_x · UandK_y · Vare the loadingsx_weights_andy_weights_(sklearn’s naming). Σ_iiare the canonical correlations.