# ERPs analysis

**URL:** <https://mne.discourse.group/t/erps-analysis/2382>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [November 19, 2020, 3:45pm UTC](https://mne.discourse.group/t/erps-analysis/2382 "2020-11-19T15:45:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [November 19, 2020, 3:45pm UTC](https://mne.discourse.group/t/erps-analysis/2382/1 "2020-11-19T15:45:40Z")

</div>

External Email - Use Caution

Dear all,

I am using MNE python to analyse EEG data and we want to do an ERPs analysis. After visualizing the data (by plotting the participants' grand average of the evokeds for each condition), I need to extract the values of the amplitude (area under the curve) of specific potentials in specific time windows we selected. I am using the function np.trapz on the selected time intervals. However, I am not sure whether this approach is valid or whether there are other alternatives to be considered. Moreover, it seems like the pattern we find only by visualising the data, doesn't match the statistics we run on the data, thus we were wondering whether we are extracting the data in the right way (via the np.trapz function).

Thank you for your help.

Chiara  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20201119/85927ace/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201119/85927ace/attachment-0001.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [November 24, 2020, 7:56am UTC](https://mne.discourse.group/t/erps-analysis/2382/2 "2020-11-24T07:56:20Z")

</div>

External Email - Use Caution

hi Chiara,

I am using MNE python to analyse EEG data and we want to do an ERPs

> analysis. After visualizing the data (by plotting the participants' grand  
> average of the evokeds for each condition), I need to extract the values of  
> the amplitude (area under the curve) of specific potentials in specific  
> time windows we selected. I am using the function np.trapz on the selected  
> time intervals. However, I am not sure whether this approach is valid or  
> whether there are other alternatives to be considered.

I would have used scipy.integrate.quad but I doubt it would lead to a big  
difference.

it's hard to say more without looking at the data

HTH  
Alex

> Moreover, it seems like the pattern we find only by visualising the data,  
> doesn't match the statistics we run on the data, thus we were wondering  
> whether we are extracting the data in the right way (via the np.trapz  
> function).
> 
> Thank you for your help.
> 
> Chiara  
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Mne\_analysis mailing list  
> Mne\_analysis at nmr.mgh.harvard.edu  
> [https://secure-web.cisco.com/13UhVc7lXD0kciJbvExGSoWJJHYYCHWqYkZPgWw4gA1AFdvINK\_KQFVFJ\_GVK4yZH\_7wV5AnZiry3KtubneEmpHMvSoyHSdmB7AwKo9WwCVcga-6nD0ej1YcWI8Cfzh7mZIz64yvt0HcYFk1pmzJ9ubxwtRtpTXwsnWYVKQHQhj1R9wZeYdgF-zAri\_LDJMenCkjxVsqMVcQzFT7SNbg6603ninyDVPAJQzqPCxYfwoBrbvZsyFkvXiSpvPxuMEPaGbM9dmR95a7pdy77K7cOOw/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne\_analysis](https://secure-web.cisco.com/13UhVc7lXD0kciJbvExGSoWJJHYYCHWqYkZPgWw4gA1AFdvINK_KQFVFJ_GVK4yZH_7wV5AnZiry3KtubneEmpHMvSoyHSdmB7AwKo9WwCVcga-6nD0ej1YcWI8Cfzh7mZIz64yvt0HcYFk1pmzJ9ubxwtRtpTXwsnWYVKQHQhj1R9wZeYdgF-zAri_LDJMenCkjxVsqMVcQzFT7SNbg6603ninyDVPAJQzqPCxYfwoBrbvZsyFkvXiSpvPxuMEPaGbM9dmR95a7pdy77K7cOOw/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis)

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20201124/7ecf7ed1/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201124/7ecf7ed1/attachment.html)
