0todd0000 / spm1d

One-Dimensional Statistical Parametric Mapping in Python
GNU General Public License v3.0
61 stars 21 forks source link

One- vs. two-tailed inference in simulation / numerical validation #204

Closed 0todd0000 closed 2 years ago

0todd0000 commented 2 years ago

(This issue is paraphrased from online workshop feedback)


The screenshot below shows three windows:

  1. Two-sample t-test for 0D (simple scalar) data
  2. Two-sample t-test for relatively smooth 1D data
  3. Two-sample t-test for relatively rough 1D data

In each window:



Screen Shot 2022-01-20 at 16 24 30



The paraphrased question is:

In the first window (with 0D data), both negative and positive t-values are shown in the distribution, but for the second and third windows (for 1D data), only positive t-values are shown. Thus it seems that the 0D analysis is two-tailed and the 1D analysis is one-tailed. Furthermore, the distribution curves are very similar between 0D and 1D, but the latter is cut-off at 0. However, it looked like that if the maximum absolute t-value was used for 1D, the distribution curves would have been exactly the same.

0todd0000 commented 2 years ago

Apologies for the confusion! I can see why these results appear confusing, and that was due to a poorly conceived presentation, sorry about that! Here are some points to consider: