10.5: Exercise- Simplifying the Statistical Analysis

Applied Event-Related Potential Data Analysis 2e · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-NC 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    10.5: Exercise- Simplifying the Statistical Analysis

    Most recent studies of the LRP (and other lateralized components, such as N2pc and CDA) obtain amplitude and latency scores from contralateral-minus-ipsilateral difference waves (like those shown in Screenshot 10.4). This has two advantages. First, it isolates the component of interest from all of the overlapping ERP components. Second, it reduces the number of factors in the statistical analysis.

    Let’s see how this works. Click the Clear All button in the ERPsets panel to clear all the ERPsets from memory, and then load the 40 ERPsets in the Chapter_10 > Data > ERPsets_CI_Diff folder. These ERPsets have been processed into contralateral-ipsilateral difference waves, one for compatible trials (bin 1) and one for incompatible trials (bin 2). Now go to the Measurement Tool panel, and set it up as shown in Screenshot 10.8. We're measuring from bins 1 and 2 (Compatible and Incompatible) in channel 5 (C3/C4), with mean_amplitude_CI_Diff.txt as the name of the output file.

    Measurement Tool for Difference Waves

    Screenshot 10.8

    Click Preview and make sure that the measurements look reasonable given the waveforms. You'll see that we have only two bins and one channel, and you can overlay the waveforms for all 40 participants (see Screenshot 10.9). 

    Preview Difference Waves

    Screenshot 10.9

    Once you've finished looking at the waveforms, click Close to go back to the Measurement Tool panel, and then click Save measures to save the scores. If you open mean_amplitude_CI_Diff.txt, you'll again see that we now have only two scores per participant, one for the Compatible condition and one for the Incompatible condition.

    Now let’s do a statistical analysis on these scores. Start by doing a paired t test comparing the Compatible and Incompatible conditions. You should get a statistically significant t value of -5.885 (or +5.885, depending on which condition came first). And here’s something very important: This t test is exactly equivalent to the three-way interaction between Hemisphere, Hand, and Compatibility in the three-way ANOVA from the previous exercise. That is, it tests exactly the same null hypothesis, and it yields exactly the same p value (except for possible rounding error). The t value for this paired t test corresponds exactly to the F value from the three-way interaction once you realize that F is the same as t2. If we square 5.885, we get 34.63, which is the same (except for rounding error) as the F value for the three-way interaction in Table 10.1. So, a t test on difference scores can be a simpler and more convenient way of testing for an interaction, and it doesn’t cause a proliferation of p values.

    Fixing a Problem

    When I first loaded the data from mean_amplitude_CI_Diff.txt into JASP, all the scores ended up in a single column. After spending a few minutes trying to figure out what was causing this, I realized that the problem was that the column labels in the first row had commas in them, which confused JASP. When I replaced the commas with underscores, everything worked fine.

    Now let’s ask whether we have a statistically significant negativity for the Compatible condition and a statistically significant positivity for the Incompatible condition. This just involves performing separate one-sample t tests for each of these conditions (comparing the means to zero). When I did that, I obtained a significant negativity for the Compatible condition (t(39) = -6.107, p < .001) and a significant positivity for the Incompatible condition (t(39) = 3.605, p < .001).

    Isn’t this approach a lot simpler and more direct than a three-way ANOVA followed by a bunch of contrasts? We really have three primary hypotheses: 1) that the compatible and incompatible conditions are different; 2) that the contra-minus-ipsi voltage is negative for the compatible condition in this time range; and 3) that the contra-minus-ipsi voltage is positive for the incompatible condition in this time range. With this approach, we have one simple test for each hypothesis.


    This page titled 10.5: Exercise- Simplifying the Statistical Analysis was last modified on Thu, 01 Oct 2026 18:52:33 GMT and is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Steven J Luck directly on the LibreTexts platform.