<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if gte mso 9]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
<style type="text/css">* a:hover{cursor:pointer;}</style>
<style>body {-webkit-animation:bugfix infinite 1s;}@-webkit-keyframes bugfix {from {position:relative;}to {position:relative;}}</style>
</head>
<body style="word-wrap:normal; word-break:break-word;">
<style>a {word-wrap:normal;word-break:break-word;}.background-contain {background-size:contain;}@media only screen and (max-width:600px) {.container {-webkit-text-size-adjust:none !important;}.container,.palm-one-whole {width:100% !important;min-width:100% !important;}.palm-one-half {width:50% !important;min-width:50% !important;box-sizing:border-box;}blockquote .container,blockquote .container div,blockquote .container table {width:auto !important;min-width:0 !important;position:relative !important;}img {max-width:100%;}.border-outer,.border-middle,.border-inner,.inner,[title="separator"] {width:100% !important;}.innercell {padding:8px !important;}.palm-block {display:block !important;}td.palm-one-whole {display:inline-block !important;padding:0;}td.palm-one-whole:first-child:not(:only-child) {margin-bottom:16px;}td.hostname {padding-top:3px !important;}}@media only screen and (min-width:601px) {.preview-card {max-width:600px !important;}}@media only screen and (min-device-width :320px) and (max-device-width :568px),only screen and (min-device-width :768px) and (max-device-width :1024px),only screen and (max-device-width:640px),only screen and (max-device-width:667px),only screen and (max-width:480px){.container {width:100% !important;min-width:100% !important;}.p,.small,li,font[size="2"],font[size="3"] {font-size:1em !important;}}@media only screen and (min-device-width :320px) and (max-device-width :568px),only screen and (min-device-width :768px) and (max-device-width :1024px),only screen and (min-device-width :1224px) {.message-wrapper {padding-top:6px;}.apple-only[style] {display:block !important;max-height:none !important;line-height:normal !important;overflow:visible !important;height:auto !important;width:100% !important;position:relative !important;}.no-apple {display:none !important;}form {font-size:inherit;}input[type="text"] {height:43px;padding-left:4px !important;}button:hover {cursor:pointer;}}@media only screen and (min-device-width :1224px) {.apple-mail-form {display:block !important;background-color:white !important;}}* [office365] .outlook-com-hidden {display:none !important;}* [office365] .outlook-com-button {display:block;}* [office365] .outlook-com-only {display:block !important;max-height:none !important;line-height:normal !important;overflow:visible !important;height:auto !important;width:100% !important;position:relative !important;}.ExternalClass {width:100%;}.ExternalClass .outlook-com-button {display:block;}.ExternalClass button {height:auto;}.ExternalClass .outlook-com-hidden {display:none !important;}.ExternalClass .outlook-com-only {display:block !important;max-height:none !important;line-height:normal !important;overflow:visible !important;height:auto !important;width:100% !important;position:relative !important;}.ExternalClass .ecxlabels {display:none !important;}.ExternalClass .ecxlabels {display:none !important;}.ExternalClass .ecxarrow {display:none !important;}.ExternalClass cite >div + div {padding:0 0 4px 0;}.ExternalClass .h1 {padding-bottom:5px;}.ExternalClass .h2 {padding-bottom:5px;}.ExternalClass .h3 {padding-bottom:5px;}.ExternalClass [lang="brand-pinterest"] {width:280px !important;}</style>
<!--[if (gte mso 9)|(IE)]>
<style>a,body {font-family:'Calibri',Arial,sans-serif;}img {border:none !important;-ms-interpolation-mode:bicubic;}td {mso-line-height-rule:exactly !important;}.mso-card-inner table {border-collapse:collapse !important;mso-table-lspace:0pt;mso-table-rspace:0pt;vertical-align:top;}.outlook-com-only {display:none !important;font-size:0 !important;}#mso-one-whole {width:100% !important;}.border-outer,.border-middle,.border-inner {border:none !important;}.border-middle,.border-inner {width:100% !important;}.mso-border-outer,.mso-border-middle,.mso-border-inner {padding:1px;}.mso-border-outer {background-color:rgb(245,255,255);}.mso-border-middle {background-color:rgb(223,246,255);}.mso-border-inner {background-color:rgb(153,176,225);}</style>
<![endif]-->
<table class="container" lang="container" dir="ltr" border="0" cellpadding="0" cellspacing="0" valign="top" style="width:100%; margin-top:6px;">
<tr>
<td valign="top" class="message-wrapper" style="line-height: 1.31; color: #222; font-family: arial, sans-serif;">
<!--[if mso]><table width="590" border="0" cellpadding="0" cellspacing="0" valign="top" style="width:590px;border-collapse:separate;"><tr><td valign="top"><![endif]-->
<div style="max-width: 590px;">PS: in Matlab 2016 you can just use the autocorr() function for an autocorrelation plot with confidence intervals. </div><div style="max-width: 590px;"><br></div><div class="mixmax_signature" style="max-width: 590px;"><div style="max-width: 590px;"><font face="Arial, sans-serif" color="#222222"><br></font></div></div>
<!--[if mso]></td></tr></table><![endif]-->
</td>
</tr>
</table>
<div style="max-width:590px;">
<div style="max-width:590px;">
<p data-m-apply-default-font="true"><br></p>
<div class="gmail_extra">
<p data-m-apply-default-font="true"><br></p>
<div class="gmail_quote">
On Thu, Aug 25, 2016 5:13 PM, Tim Mullen <span dir="ltr"> <a href="mailto:mullen.tim@gmail.com" target="_blank">mullen.tim@gmail.com</a></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<!--[if (gte mso 9)|(IE)]>
<style>a,body {font-family:'Calibri',Arial,sans-serif;}img {border:none !important;-ms-interpolation-mode:bicubic;}td {mso-line-height-rule:exactly !important;}.mso-card-inner table {border-collapse:collapse !important;mso-table-lspace:0pt;mso-table-rspace:0pt;vertical-align:top;}.outlook-com-only {display:none !important;font-size:0 !important;}#mso-one-whole {width:100% !important;}.border-outer,.border-middle,.border-inner {border:none !important;}.border-middle,.border-inner {width:100% !important;}.mso-border-outer,.mso-border-middle,.mso-border-inner {padding:1px;}.mso-border-outer {background-color:rgb(245,255,255);}.mso-border-middle {background-color:rgb(223,246,255);}.mso-border-inner {background-color:rgb(153,176,225);}</style>
<![endif]-->
<table lang="container" dir="ltr" border="0" cellpadding="0" cellspacing="0" valign="top" style="width:100%; margin-top:6px;">
<tr>
<td valign="top" style="line-height: 1.31; color: #222; font-family: arial, sans-serif;">
<!--[if mso]><table width="590" border="0" cellpadding="0" cellspacing="0" valign="top" style="width:590px;border-collapse:separate;"><tr><td valign="top"><![endif]-->
<div style="max-width: 590px;">Ok. Yes, as you've surmised, the key trickiness in this sort of statistical problem is that you need to consider the autocorrelation in each time-series (and they are definitely autocorrelated here, since the causal estimates are obtained from a sliding window). Probably the worst thing you can do is perform a standard unpaired t-test, which has hugely inflated Type I error rate if samples are significantly autocorrelated.</div><div style="max-width: 590px;"><br></div><div style="max-width: 590px;">Perhaps you could try a method like this: </div><div>
<div style="height:4px; font-size:4px;"><br></div>
<!--[if mso]>
<table class="mso-card-v3" width="578" cellpadding="0" cellspacing="0" style="border:1px solid #f5ffff">
<tr>
<td style="border:1px solid #d5ecff; background-color:#99b0e1; padding:1px;">
<![endif]-->
<table id="" cellpadding="0" cellspacing="0" style="border:1px solid #f5ffff; border-radius:4px; width:100%; max-width:578px; mso-border-alt: none;">
<tr style="border:1px solid #d5ecff; mso-border-alt:none; display:block; border-radius: 3px;">
<td style="display:block; padding:8px; border-radius:2px; border:1px solid #99b0e1; font-size:0; vertical-align:top; background-color:white; mso-border-alt:none;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" valign="top" style="border-collapse:separate; text-align:left;">
<tr>
<td rowspan="2" valign="top" style=" width:134px;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" valign="top" style="border-collapse:separate; ">
<tr>
<td valign="top" style="padding: ">
<a href="http://www.ncbi.nlm.nih.gov/pubmed/26011524" target="_blank" style="display:block;"><img src="https://res.cloudinary.com/mixmax/image/fetch/w_800,h_600,c_fill,q_90,fl_progressive,g_faces:center/http%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fcoreutils%2Fimg%2Fpubmed256blue.png" width="120" style="display:block; width:120px; vertical-align:top;" alt="Preview image"></a>
</td>
</tr>
</table>
</td>
<td rowspan="" valign="top" style="font-size:13px; width:px;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" valign="top" style="border-collapse:separate; font-size:13px;">
<tr>
<td valign="top" style="padding: ">
<table cellpadding="0" cellspacing="0" valign="top" style="border-collapse:collapse">
<tr>
<td colspan="2" valign="top" style="min-width:100%; padding-bottom: 2px; font-size:16px; line-height:22px; font-weight:600; font-family:'proxima-nova', 'Avenir Next', 'Segoe UI', 'Calibri', 'Helvetica Neue', Helvetica, Arial, sans-serif;
">
<a href="http://www.ncbi.nlm.nih.gov/pubmed/26011524" target="_blank" style="text-decoration:none; display:block; color:#333; border:none;">
Performing T-tests to Compare Autocorrelated Time Series Data Collected from Direct-Reading Instruments.
</a>
</td>
</tr>
<tr>
<td colspan="2" valign="top" style="min-width:100%; padding-bottom: 4px; font-size:13px; line-height:17px; font-family:'Segoe UI', 'Helvetica Neue', Helvetica, 'Calibri', Arial, sans-serif;
">
<a href="http://www.ncbi.nlm.nih.gov/pubmed/26011524" target="_blank" style="text-decoration:none; display:block; color:#333; border:none;">
J Occup Environ Hyg. 2015;12(11):743-52. doi: 10.1080/15459624.2015.1044603.
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr><tr>
<td valign="bottom">
<table width="100%" border="0" cellpadding="0" cellspacing="0" valign="top" style="border-collapse:separate; ">
<tr>
<td valign="bottom" style="line-height:11px; font-family:'proxima-nova', 'Avenir Next', 'Segoe UI', 'Calibri', 'Helvetica Neue', Helvetica, Arial, sans-serif;
">
<a style="color:#aab; display:block; font-size:11px; margin:0; letter-spacing:1px; padding-left: 1px; text-decoration:none; text-transform:uppercase;" href="http://www.ncbi.nlm.nih.gov/pubmed/26011524" target="_blank">ncbi.nlm.nih.gov</a>
</td>
<td align="right" valign="bottom">
<a href="https://mixmax.com/r/T5KoXCt3bjAk6cadS" style="display:block; vertical-align:top; font-size:0;" target="_blank">
<img src="https://emailapps.mixmax.com/img/badge_mixmax.png" align="top" height="20" style="display:block;" alt="Mixmax" border="0">
</a>
</td>
</tr>
</table>
</td>
</tr>
</table></td></tr>
</table>
<!--[if mso]>
</td>
</tr>
</table>
<![endif]-->
<div style="height:4px; font-size:4px;"><br></div>
</div><div style="max-width: 590px;"><br></div><div style="max-width: 590px;">Alternately, one possibility might be to compute the autocorrelation function for each time-series and if it decays to non-significant amplitude after K lags, then you could just select every K+1th sample for subsequent analysis. The serial correlation should be minimal at that point (you could run a Durbin-Watson test to confirm). <a href="http://www.itl.nist.gov/div898/handbook/eda/section3/autocopl.htm">Here is an example</a> of how to use an autocorrelation plot for this. One potential issue here (there's always one) is that the analytic confidence bounds for the null hypothesis of zero autocorrelation generally rely on a Gaussianity assumption on the data. The granger-causal estimates are definitely not Gaussian (probably closer to gamma-distributed). You could try log-transforming them to render more Gaussian -- it's a monotonic transform so it won't affect the statistics for differences in means.</div><div style="max-width: 590px;"><br></div><div style="max-width: 590px;">There are other more complex approaches involving fitting ARMA models (and probably some more simple ones I'm not considering at the moment).</div><div style="max-width: 590px;"><br></div><div style="max-width: 590px;">Tim</div><div style="max-width: 590px;"><div style="max-width: 590px;"><font face="Arial, sans-serif" color="#222222"><br></font></div></div>
<!--[if mso]></td></tr></table><![endif]-->
</td>
</tr>
</table>
<div style="max-width:590px;">
<div style="max-width:590px;">
<p data-m-apply-default-font="true"><br></p>
<div>
<p data-m-apply-default-font="true"><br></p>
<div>
On Tue, Aug 23, 2016 11:38 PM, Winslow Strong <span dir="ltr"> <a href="mailto:winslow.strong@gmail.com" target="_blank">winslow.strong@gmail.com</a></span>
wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div dir="ltr">Only in a difference in means over the entire condition.</div><div><br><div>On Tue, Aug 23, 2016 at 11:00 PM, Tim Mullen <span dir="ltr"><<a href="mailto:mullen.tim@gmail.com" target="_blank">mullen.tim@gmail.com</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, skipping one or more trials may at least mitigate some of the autocorrelation effects. Are you only interested in whether there is a difference in means over the whole condition, or whether there are differences at specific points in time?<div><div><div><br><div>On Tue, Aug 23, 2016 at 4:17 PM, Winslow Strong <span dir="ltr"><<a href="mailto:winslow.strong@gmail.com" target="_blank">winslow.strong@gmail.com</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Tim,<div><br></div><div>Yes I was searching for some approximate test stats and p-vals generated by creating pseudotrials within each trial. I'll try this out. I'm thinking it might be wise to leave a gap between the pseudo trials (i.e. not make them contiguous EEG segments) to make them closer to independent. Leaving out every-other pseudotrial might be a reasonable tradeoff. One could get 2 test stats or just 2 sample variances this way: one from the even pseudotrials and one from the odds. </div><div><br></div><div>This is a bit hacky though, and I wonder if there are canonical methods to deal with the lack of independence. </div></div><div><div><div><br><div>On Mon, Aug 22, 2016 at 12:59 PM, Tim Mullen <span dir="ltr"><<a href="mailto:mullen.tim@gmail.com" target="_blank">mullen.tim@gmail.com</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Winslow, Makoto,</p>
<p dir="ltr">As a statistical principle, bootstrapping can only be used when you have multiple independent and identically distributed (i.i.d) observations available. The observations are resampled with replacement from the original set to construct an empirical probability distribution. </p>
<p dir="ltr">It is not possible to use bootstrapping to test for statistical differences between only two observations (i.e. two trials). In general, with any test, your statistical power will be extremely low if you have only one observation per condition. </p>
<p dir="ltr">You can try to mitigate this by segmenting your long continuous trials into short 'pseudo-trials' and then testing for differences in the pseudo-trial between conditions. Make sure that you average your causal measure over time within each trial before computing your stats. One concern is that the pseudotrials may be far from i.i.d within a condition, so if using bootstrap, your bootstrap distribution may not converge to the true distribution of the estimator and your stats will be biased. </p>
<p dir="ltr">Depending on your specific null hypothesis and protocol, however, there may be alternative parametric and nonparametric tests you can apply.</p>
<p dir="ltr">Otherwise try to collect data for more subjects (then you simply bootstrap across subjects e.g. using statcond with SIFT matrices) or more trials (run your experiment more than once per condition).</p><span><font color="#888888">
<p dir="ltr">Tim<br>
</p></font></span><div><div>
<div><br><div>On Aug 18, 2016 11:09 AM, "Makoto Miyakoshi" <<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>> wrote:<br type="attribution"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Winslow,<div><br></div><div>Yes, unfortunately the bootstrap seems to be designed for across trials.</div><div><br></div><div>Makoto</div><div><br><div>On Sat, Aug 13, 2016 at 4:57 PM, Winslow Strong <span dir="ltr"><<a href="mailto:winslow.strong@gmail.com" target="_blank">winslow.strong@gmail.com</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'd like to use a resampling technique (e.g. bootstrap) to get p-values and test stats for SIFT connectivity metrics for 1 subject across n conditions. <div><br></div><div>This is a steady-state condition study, hence there's only 1 trial per condition. I'm trying to analyze whether certain connectivity metrics (i.e. their averages over a condition) are statistically significantly different across the conditions. I was under the impression I could use SIFT's surrogate distribution generator to obtain the surrogate distribution for these calculations, but when I run that from the GUI for bootstrap, I get the error:</div><div><br></div><div>"Unable to compute bootstrap distributions for a single trial"</div><div><br></div><div>Is this surrogate function only designed to do boostrapping over trials? Or is there a way to do it over windows within a condition?</div></div>
<br>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/ee<wbr>glabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.uc<wbr>sd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.e<wbr>du</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/ee<wbr>glabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.uc<wbr>sd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.e<wbr>du</a><br></blockquote></div></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>