Module 14
Module 14
GLM
A standard GLM can be written:
Y = X" + !
where
! ~ N (0, V )
&Y1 # &1 X 11 " X 1 p # & ) 0 # & (1 # ! $) ! $ ! $Y ! $1 X " X (2 ! 21 2p! $ 1 ! $ 2! = $ $ ' + ! ! ! $ ! ! $!! $ ! ! $! ! $ ! $ ! $ ! $1 X " X Y np np " % ) p " % n" % %( n "
fMRI Data
Design matrix
Noise
Regression coefficients
Design Matrix
! We has previously discussed various signal and nuisance components that can be included in the design matrix to improve the model.
! Temporal Basis functions
!! Allows for flexible HRF
! Parametric modulation
!! Allows for trial-specific variation in amplitude
! Motion parameters
!! Corrects for spin history artifacts
fMRI Noise
! Functional MRI data typically exhibit significant autocorrelation.
! Caused by physiological noise and low frequency drift, that has not been appropriately modeled. ! Typically modeled using either an AR(p) or an ARMA(1,1) process. ! Single subject statistics are not valid without an accurate model of the noise.
AR(1) model
! Serial correlation can be modeled using a first-order autoregressive model, i.e.
!t = "!t!1 + ut
ut ~ N (0, ! 2 )
! The error term !t depends on the previous error term !t-1 and a new disturbance term ut.
AR(1) model
! The autocorrelation function (ACF) for an AR(1) process at lag h:
" $ 1, if h = 0, ! (h ) = # |h| if h ! 0 $ % "
"=0.7
0.5 -1.0 -0.5 0.0 q 1.0
5 1:16
10
15
Error Term
! The format of V will depend on what noise model is used.
IID Case
" $ $ V !$ $ $ $ # 1 0 0 " 0 0 1 0 " 0 0 0 1 " 0 ! 0 % ' ! 0 ' ! 0 ' " ' ' ! 1 ' &
AR(1) Case
# 2 1 ! ! % % ! 1 ! % 2 V !% ! ! 1 % ! ! ! % n"1 ! n"2 ! n"3 % ! $ & ! ! n"1 ( ! ! n"2 ( ( n"3 ! ! ( ! ( ( ! 1 ( '
GLM Summary
model estimate
Y = X" + !
fitted values
!1 !1 !1 ! = ( X' V X) X' V Y
residuals
= X! Y
r = Y!Y
= (I ! (X ' V!1X )!1 X ' V!1 )Y
= RY
Estimating V
! In general the form of the covariance matrix is unknown, which means it has to be estimated. ! Estimating V depends on #s, and estimating #s depends on V. Need iterative procedure. ! Methods for estimating variance components:
! Method of moments ! Maximum likelihood ! Restricted maximum likelihood
Iterative Procedure
1.! Assume that V=I and calculate the OLS solution. 2.! Estimate the parameters of V using the residuals. 3.! Re-estimate the # values using the from step 2. estimated covariance matrix V 4.! Iterate until convergence.
Yule-Walker Estimates
! Assume !t is an AR(1) process, i.e.
!t = "!t!1 + ut
where ut ~ WN(0,$2)
t = 0,1,
MLE
! Maximum likelihood estimators (MLEs) are obtained by maximizing the log-likelihood:
T 1 1 l (! ) = ! log ( V ) ! Y ! X! V!1 Y ! X! 2 2 *
ReML
! Restricted maximum likelihood (ReML) requires maximizing the restricted loglikelihood:
T 1 1 1 T l (" ) = ! log( V ) ! log X VX ! Y ! X! V !1 Y ! X! 2 2 2 *
) (
ML vs ReML
! Maximum Likelihood
! Maximize likelihood of data y ! Used to estimate mean parameters ! ! But can produce biased estimates of variance
2 ML # =
1 ( yi " y ) 2 ! n
1 ( yi " y ) 2 ! n "1
Spatio-temporal Behavior
! The spatiotemporal behavior of these noise processes is complex.
Spatial maps of the model parameters from an AR(2) model estimated for each voxels noise data.
End of Module
@fMRIstats