Description:
Rework the statistical analysis in getting_started.ipynb to use appropriate tests instead of basic t-tests on epoch-averaged PSDs.
Context:
The current tutorial computes PSDs averaged across epochs, then runs t-tests. This approach is statistically problematic because:
- Averaging across epochs loses trial-level variance information
- Simple t-tests don't account for the repeated-measures structure
- Multiple comparisons across channels/frequencies need proper correction
Current problematic code (in stats.py):
# averaging across frequencies (compute stats only in ch space)
power = np.mean(data, axis=2)
T_obs, p_values, H0 = mne.stats.permutation_t_test(power, n_permutations, tail=0)
Tasks:
-
Analysis & Documentation
-
Implementation
-
Tutorial
Acceptance Criteria:
References:
Description:
Rework the statistical analysis in
getting_started.ipynbto use appropriate tests instead of basic t-tests on epoch-averaged PSDs.Context:
The current tutorial computes PSDs averaged across epochs, then runs t-tests. This approach is statistically problematic because:
Current problematic code (in
stats.py):Tasks:
Analysis & Documentation
Implementation
stats.pyor create new moduleTutorial
Acceptance Criteria:
stats.pywith proper testsReferences:
scipy.stats.f_oneway,pingouinlibrary for ANOVA