Lecture slides, tutorials, and notes developed over 15+ years of teaching at summer schools, workshop courses, and university courses. All slides are freely available. Topics span fMRI design and analysis, M/EEG signal processing and statistics, general linear modelling, robust statistics, and digital signal processing.


fMRI

Most of what you need to think about for fMRI is described in the OHBM MRI COBIDAS. Understanding the subtleties of design, QA, and statistics requires some basic knowledge of how MRI works — see the MRI physics lecture in the SPM archive below.

Standalone Lectures

Quality Assurance

Quantifying noise at every stage of the processing workflow is essential for reliable results. See:

Statistics Notes

Adaptive thresholding for single-subject maps. The distribution of voxel-level statistics at the subject level is not always central (mean ≠ 0). Standard fixed thresholds therefore over- or under-estimate effects. Modelling the distribution as a mixture of a non-central Gaussian (null) and positive/negative Gamma distributions for the tails identifies the crossing point that optimally separates signal from noise. Paper · SPMup code

Boosting beta estimates with HRF derivatives. When the haemodynamic response function is mis-specified (e.g. onset earlier than the standard model), adding the temporal derivative improves model fit but leaves the amplitude estimate biased. A correction step recovers the true amplitude. Tutorial paper · SPMup code

Computing percentage signal change. After convolving regressors with the HRF, the design matrix does not scale to 1, so raw beta values are not interpretable as % BOLD change without rescaling. The choice of reference (maximum of a single trial, maximum of the design) is arbitrary but must be consistent. Tutorial paper · SPMup code


M/EEG

Most of what you need for reproducible M/EEG research is described in the OHBM COBIDAS MEEG guidelines.

Standalone Lectures

Video Tutorials

A full video tutorial series on EEG data organisation and analysis with EEGLAB and BIDS is available on YouTube:

Statistics Notes

LIMO MEEG provides full sensor- or source-space hierarchical GLM for EEG and MEG data, 100% compatible with EEGLAB (GUI integration via the STUDY framework) and FieldTrip. See LIMO on GitHub and the Software page for details.

Multiple comparison corrections for M/EEG must account for the massive number of simultaneous tests across sensors, sources, and time. As part of LIMO, bootstrap-based corrections and cluster-level inference have been developed specifically for the M/EEG sensor–time space. See: Blog post on bootstrapping and multiple comparisons


Statistics & Signal Processing

General Linear Modelling

Neuroimaging is built on linear algebra: understanding matrix operations directly gives you the GLM, regression, ANOVA, and most of inferential statistics.

Robust Statistics

Ordinary Least Squares has a 0% breakdown point — a single outlier can dominate the solution. Trimmed means, robust correlations, and tests based on Winsorised estimates provide reliable alternatives that still have good power under normality.

Digital Signal Processing

Fourier analysis underlies most of what we do in signal processing, from band-pass filtering EEG to characterising the BOLD noise spectrum.


SPM Edinburgh Course Archive (2010–2019)

A curated archive of lectures from the Edinburgh SPM course, run annually from 2010 to 2019. Slides cover the full analysis pipeline from MRI physics to Bayesian inference.

Thank you to all colleagues who gave lectures over the years: Dr Devasuda Anblagan, Dr John Ashburner, Dr Roselyne Chauvin, Dr Ian Charest, Dr Justin Chumbley, Dr Jean Daunizeau, Dr Christian Gaser, Dr Nikolaus Kriegeskorte, Dr Daniele Marinazzo, Dr Martin McFarquhar, Dr Alexa Morcom, Dr Thomas Nichols, Dr Jean-Baptiste Poline, Dr Christophe Phillips, Dr Mohamed Seghier, Dr Jason Taylor & Dr Thomas Wolpers.

Thank you to the hundreds of colleagues and students who attended the course.

Foundations

Preprocessing

Experimental & fMRI Designs

Univariate Statistical Modelling

Multivariate Statistical Modelling

Statistical Inference & Visualisation

Bayesian Modelling & Inference