Rotate the obtained components and scores of a CPCCA model to increase
interpretability. The algorithm here is based on the approach of Cheng &
Dunkerton (1995) [1].
Parameters:
n_modes (int, default=10) – Specify the number of modes to be rotated.
power (int, default=1) – Set the power for the Promax rotation. A power value of 1 results in
a Varimax rotation.
max_iter (int or None, default=None) – Determine the maximum number of iterations for the computation of the
rotation matrix. If not specified, defaults to 1000 if compute=True
and 100 if compute=False, since we can’t terminate a lazy
computation based using rtol.
rtol (float, default=1e-8) – Define the relative tolerance required to achieve convergence and
terminate the iterative process.
compute (bool, default=True) – Whether to compute the rotation immediately.
The components may be referred to differently depending on the model
type. Common terms include canonical vectors, singular vectors, loadings
or spatial patterns.
Parameters:
normalized (bool, default=True) – Whether to return L2 normalized components.
where m is the total number of modes and \(\sigma_i\) is the
ith singular value of the covariance matrix.
This implementation estimates the sum of singular values from the first
n modes, therefore one should aim to retain as many modes as possible
to get a good estimate of the covariance fraction.
Note
In MCA, the focus is on maximizing the squared covariance (SC). As a
result, this quantity is preserved during decomposition - meaning the SC
of both datasets remains unchanged before and after decomposition. Each
mode explains a fraction of the total SC, and together, all modes can
reconstruct the total SC of the cross-covariance matrix. However, the
(non-squared) covariance is not invariant in MCA; it is not preserved by
the individual modes and cannot be reconstructed from them.
Consequently, the squared covariance fraction (SCF) is invariant in MCA
and is typically used to assess the relative importance of each mode. In
contrast, the convariance fraction (CF) is not invariant. Cheng and
Dunkerton [3] introduced the CF to compare the relative importance of
modes before and after Varimax rotation in MCA. Notably, when the data
fields in MCA are identical, the CF corresponds to the explained
variance ratio in Principal Component Analysis (PCA).
The FVE X is the fraction of variance in \(X\) explained by the
scores of \(X\). It is computed as a weighted mean-square error (see
equation (15) in Swenson (2015)) :
The FVE YX is the fraction of variance in \(Y\) explained by the
scores of \(X\). It is computed as a weighted mean-square error (see
equation (15) in Swenson (2015)) :
where \(\mathbf{d}_{X,i}\) and \(\mathbf{d}_{Y,i}\) are the
residuals of the input data \(X\) and \(Y\) after reconstruction
by the ith scores of \(X\) and \(Y\), respectively.
References
Swenson, E. Continuum Power CCA: A Unified Approach for Isolating
Coupled Modes. Journal of Climate 28, 1016–1030 (2015).
The FVE Y is the fraction of variance in \(Y\) explained by the
scores of \(Y\). It is computed as a weighted mean-square error (see
equation (15) in Swenson (2015)) :
The component scores may be referred to differently depending on the
model type. Common terms include canonical variates, expansion
coefficents, principal component (scores) or temporal patterns.
Parameters:
normalized (bool, default=False) – Whether to return L2 normalized scores.
where \(\mathbf{d}_{X,i}\) and \(\mathbf{d}_{Y,i}\) are the
residuals of the input data \(X\) and \(Y\) after reconstruction
by the ith scores of \(X\) and \(Y\), respectively.
References
Swenson, E. Continuum Power CCA: A Unified Approach for Isolating
Coupled Modes. Journal of Climate 28, 1016–1030 (2015).