<div dir="ltr">Dear Michael,<div><br></div><div>> For a single trial, is it correct that one averages the spectra during the baseline window (across time) to get the baseline spectrum that is in the ratio denominator (or used as the baseline subtraction, same thing) for ERSP calculation?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Interesting quesiton. I actually tested it few years ago. I found that unless you use very high number of cycles (say above 15-20) you don't get as sharp spectrum curve as that generated by spectopo(). If you are analyzing a resting state data or something continuous and don't mind using a long sliding window, it may worth trying. However, I recommend you compare the averaged curve over the time with that obtained from spectopo() to make sure.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Frequency spectrum is a strange thing. If you use Matlab sample code to compute spectrum, the result looks quite different from that of spectopo(), but if you use Weltch's method the result is identical (because that's the method EEGLAB uses).</div><div class="gmail_extra"><br></div><div class="gmail_extra">Makoto</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 22, 2015 at 3:53 PM, Michael Boyle <span dir="ltr"><<a href="mailto:mrboyle@live.unc.edu" target="_blank">mrboyle@live.unc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hey everyone,<br><br></div>I had a quick question about ERSP calculations. Lets assume my EEG time series are simple trials with a baseline period and a period of interest, and have been time-frequency transformed through some method of choice and the result is a complex spectrogram, from which we extract the amplitude spectrogram by simply taking the magnitude. For a single trial, is it correct that one averages the spectra during the baseline window 
(across time) to get the baseline spectrum that is in the ratio denominator (or used as the baseline subtraction, same thing) 
for ERSP calculation? <br><br> If so, then is it preferred to work with amplitude spectrograms/spectra and get dB power by taking 10*log10(amplitude^2/avgBaselineAmplitude^2) or to work with power spectrograms/spectra and get dB by taking 10*log10(power/avgBaselinePower). These two expressions aren't equivalent because mean(baselineAmplitudes)^2 is typically not equal to mean(baselineAmplitudes^2) (sometimes very different even), nor is mean(baselineAmplitudes)^2/mean(baselineAmplitudes^2) constant, so you don't just get a difference of a constant when considering the two results. <br><br></div>Thanks!<span class=""><font color="#888888"><br></font></span></div><span class=""><font color="#888888">Michael<br></font></span></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="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>