Closed mobeets closed 8 years ago
determinant = product of eigenvalues.
well, it's true that the baseline and minimal hypothesis have very tiny eigenvalues, so the determinant just gets super tiny.
but just looking at the covariance matrices for a given kinematic condition, it's clear minimal and baseline are way off. from top left, clockwise: observed, habitual, minimal, baseline:
project eigenvectors onto other data and see how variance is explained.
From "A simple procedure for the comparison of covariance matrices": You get two scores, each describing the error in terms of mismatch in shape and mismatch in orientation.
This describes the ability of one cov's eigenvector to explain the data of the other, and vice versa, relative to how well the cov's eigenvector describes itself.
Big strength I think is in interpretation: just as we have a error metric for the mean, where 0 is the best, now we have an error metric for the covariance, where 0 is the best.
Okay, I've gone back to Pete's original code as pulled from the repo. It took a few adjustments to get right:
So there was only the one bug, with subCellArray, which I fixed.
But alas! Minimal hypothesis still has a covError of around 10e-3.
I also noticed some code computing a volitionalBasis other than just the row space's intuitive mapping. And some minimal/baseline hypotheses fit in the latent space rather than neural space.
Given that a better covError seems appropriate anyway, I'm just going to mark this closed for now and suggest I use the new one.
Maybe a data issue? Did he use a different date?