Construct cognitive paradigm timelines, convolve stimulus events with the canonical Hemodynamic Response Function (HRF) to build the Design Matrix (X), inject noise and drift, and solve the General Linear Model (Y = Xβ + ε) in real time.
Core Concepts of the fMRI General Linear Model (GLM):
1. Convolution with the HRF: Neural events induce metabolic activity that triggers a sluggish, delayed blood-oxygenation response peaking 5–6 seconds later, followed by an undershoot. We convolve our stimulus timing vectors u(t) with the canonical double-gamma Hemodynamic Response Function h(t) to predict what the BOLD response should look like: Xi(t) = (ui ∗ h)(t).
2. Detection Power vs. Estimation Efficiency: Block designs create massive cumulative signal swings by stringing events together, yielding very high statistical detection power (large t-statistics). However, they cannot isolate the shape of single events. Jittered event-related designs separate events with variable intervals, allowing the HRF to be estimated accurately (high estimation efficiency) at the cost of reduced overall raw signal amplitude.
3. Multicollinearity & Variance Inflation (VIF): When two conditions always occur in rapid succession (e.g. in the Collinear preset where Task B immediately follows Task A), their convolved regressors become heavily correlated (r → 1). In the GLM, high collinearity blows up the covariance matrix (XTX)−1, inflating the standard error of parameter estimates (β̂) and destroying our statistical ability to distinguish Task A from Task B!
4. Nuisance Regressors: Real MRI scans suffer from low-frequency hardware drifts and heating. By including a linear drift column in the design matrix X, the GLM separates baseline drifts from true task-related neural activations.