BrainSpace icon indicating copy to clipboard operation
BrainSpace copied to clipboard

How to calculate percentage variance explained for each graident from DM?

Open Patricklv opened this issue 1 year ago • 0 comments

The official documentation states that "The lambda property stores the variance explained (for PCA) or the eigenvalues (for LE and DM)." When using DM, I am wondering how to obtain percentage of variance explained by each gradient.

If I understand correctly, the eigenvalues in DM are scaled. It seems doubtful to divide each eigenvalue by the sum of all eigenvalues to get the percentage variance explained. Is there a workaround or this is a valid approach?

An alternative thinking is even though the eigenvalues are scaled, their relative magnitudes still provide valuable information. Higher eigenvalues correspond to gradients that capture more prominent data variation. Thus, one can still use the eigenvalues to compare the importance of different gradients. The caveat is that the resulting percentages might not represent the 'variance explained' in the conventional sense (as it would with PCA), but rather the relative importance of each gradient in capturing the data variation.

Thank you.

Lv

Patricklv avatar Nov 10 '23 09:11 Patricklv