<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr">I&#39;m using the following example to compute envelope correlation.<div>The matrix that I obtained after using function &quot;<span class="gmail-n"><a href="https://martinos.org/mne/dev/generated/mne.connectivity.envelope_correlation.html#mne.connectivity.envelope_correlation" title="View documentation for mne.connectivity.envelope_correlation">envelope_correlation</a></span>&quot; has negative determinant, and the diagonal values are not 1. To apply some statistical test for significance, the determinant should be positive. Any explanation or solution for this problem?</div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-size:12.8px">Vivek Sharma</span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>