[Eeglablist] One-sample cluster-based permutation test for identifying spatiotemporal ERP locus

Cedric Cannard ccannard at protonmail.com
Mon Jul 7 10:42:21 PDT 2025


Dear Uziel,

My 2 cents on this:

You are essentially describing the difference between a one-sample t-test and a paired t-test. A one-sample t-test compares the mean of a single condition to a known value (e.g., baseline or zero), while a paired t-test compares the means of two related conditions (e.g., two experimental conditions within the same subjects). Using a one-sample permutation test with sign-flipping to identify significant ERP activity within a single condition relative to baseline is valid and has been used in EEG studies. However, to ensure statistical validity, there are some important points to consider. The null hypothesis should be clearly defined as "no significant deviation from baseline," avoiding misinterpretation as no activity or variability within the condition. Temporal and spatial dependencies in EEG data should be preserved in the permutation procedure to prevent inflated error rates, and multiple comparisons should be corrected using methods like cluster-based permutation tests. Additionally, ensure the sign-flipping assumption is appropriate for your data (e.g., symmetric signals around zero) and that your baseline period is well-selected to represent a true "no-stimulus" state. When these considerations are addressed, this method is appropriate for identifying significant ERP activity within a single condition, without comparing multiple conditions.

Note that LIMO-EEG allows to do both from command line and GUI, with hierarchical linear modeling and spatiotemporal cluste corrections for type 1 error.

For more info on this topic, see:
https://urldefense.com/v3/__https://pubmed.ncbi.nlm.nih.gov/25128255/__;!!Mih3wA!C2uNse_wbh17SdaUG4bNKZa-ozsuI-UDvNEMRL7aXTiYyTEEvWys0LTntY9K_zYw97QbDiF_WEZqfADdBlrf4VfdOw$ 
https://urldefense.com/v3/__https://pubmed.ncbi.nlm.nih.gov/21403915/__;!!Mih3wA!C2uNse_wbh17SdaUG4bNKZa-ozsuI-UDvNEMRL7aXTiYyTEEvWys0LTntY9K_zYw97QbDiF_WEZqfADdBlqjsEpydw$ 

Maybe Cyril will comment on your question if he sees this. 

Hope this helps,

Cedric



On Wednesday, 2 July 2025 at 08:00, Uziel Miguel Rayas Hernandez via eeglablist <eeglablist at sccn.ucsd.edu> wrote:

> Hi everyone,
> 
> I'm working with EEG data in a within-subject design, where all participants completed two experimental conditions (each subject served as their own control). The preprocessing steps include re-referencing to the average, low-pass filtering, and ICA decomposition using ‘runica’.
> 
> My goal is to identify the spatiotemporal locus of ERP components. I'm following a two-level permutation approach inspired by Robinson et al. (2022), where the first level identifies the temporal locus and the second identifies the spatial locus.
> 
> In standard permutation tests, we typically shuffle condition labels during a t-test to generate a null distribution under the assumption that condition labels have no effect. However, our research interest is in analyzing each condition independently—we want to identify the spatiotemporal ERP patterns within each condition, without influence from the other. The idea is to treat each condition as its own population, rather than comparing them directly.
> 
> To do this, we considered applying a one-sample permutation test, where we would:
> 
> 
> * Flip the sign of each subject’s data randomly across permutations (within a condition),
> 
> 
> * Compare the observed ERP signal against zero or baseline activity.
> 
> This approach seems to make logical sense to us, as the null hypothesis here would be “no significant deviation from baseline,” and we could then test for consistent ERP activity within each condition separately.
> 
> However, I found a discussion in the FieldTrip mailing list (https://urldefense.com/v3/__https://mailman.science.ru.nl/pipermail/fieldtrip/2018-August/038192.htmlwhere__;!!Mih3wA!Hi5SLETHfOBcDLjDtl41-DqCMlrXnfER4L5w0eiF5SIG3XO7P0sTy_TuDqPPrTBwJwMBE1eXaPdIdln_poOqjpBk4k4b-9il5aA$ ) Eric Maris advised against this type of test, emphasizing that permutation tests are designed to compare two or more conditions, and that the null hypothesis is about the distribution of those conditions.
> 
> This raises my main question:
> 
> Is it valid to use a one-sample t-test in permutation test (with sign-flipping) to identify significant ERP activity within a single condition, relative to baseline or zero?
> And if so, are there precedents in the EEG literature where this method has been used to locate spatiotemporal ERP patterns within conditions (not between)?
> 
> We’d appreciate any insight or references to studies that have used this or a similar approach or any suggestion about other methods more adapted to our needs. Thank you very much in advance!
> 
> Best regards,
> Uziel Rayas
> _______________________________________________
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu or visit https://sccn.ucsd.edu/mailman/listinfo/eeglablist .


More information about the eeglablist mailing list