SPM short – Mai 2008 Linear Models and Contrasts Stefan Kiebel Wellcome Trust Centre for Neuroimaging.

Slides:



Advertisements
Similar presentations
SPM short course – Mai 2007 Linear Models and Contrasts
Advertisements

Statistical Inference
SPM 2002 C1C2C3 X =  C1 C2 Xb L C1 L C2  C1 C2 Xb L C1  L C2 Y Xb e Space of X C1 C2 Xb Space X C1 C2 C1  C3 P C1C2  Xb Xb Space of X C1 C2 C1 
Outline What is ‘1st level analysis’? The Design matrix
Classical inference and design efficiency Zurich SPM Course 2014
Statistical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course Zurich, February 2009.
Classical (frequentist) inference Methods & models for fMRI data analysis in neuroeconomics April 2010 Klaas Enno Stephan Laboratory for Social and Neural.
The General Linear Model (GLM) Methods & models for fMRI data analysis in neuroeconomics November 2010 Klaas Enno Stephan Laboratory for Social & Neural.
The General Linear Model (GLM)
The General Linear Model (GLM) SPM Course 2010 University of Zurich, February 2010 Klaas Enno Stephan Laboratory for Social & Neural Systems Research.
Statistical Inference
Classical (frequentist) inference Methods & models for fMRI data analysis in neuroeconomics 14 October 2009 Klaas Enno Stephan Laboratory for Social and.
Classical (frequentist) inference Methods & models for fMRI data analysis 11 March 2009 Klaas Enno Stephan Laboratory for Social and Neural System Research.
Classical (frequentist) inference Methods & models for fMRI data analysis 22 October 2008 Klaas Enno Stephan Branco Weiss Laboratory (BWL) Institute for.
Multiple comparison correction Methods & models for fMRI data analysis 29 October 2008 Klaas Enno Stephan Branco Weiss Laboratory (BWL) Institute for Empirical.
1st level analysis: basis functions and correlated regressors
SPM short course – May 2003 Linear Models and Contrasts The random field theory Hammering a Linear Model Use for Normalisation T and F tests : (orthogonal.
1st Level Analysis Design Matrix, Contrasts & Inference
General Linear Model & Classical Inference
The General Linear Model and Statistical Parametric Mapping Stefan Kiebel Andrew Holmes SPM short course, May 2002 Stefan Kiebel Andrew Holmes SPM short.
General Linear Model & Classical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM M/EEGCourse London, May.
With many thanks for slides & images to: FIL Methods group, Virginia Flanagin and Klaas Enno Stephan Dr. Frederike Petzschner Translational Neuromodeling.
Contrasts (a revision of t and F contrasts by a very dummyish Martha) & Basis Functions (by a much less dummyish Iroise!)
General Linear Model & Classical Inference London, SPM-M/EEG course May 2014 C. Phillips, Cyclotron Research Centre, ULg, Belgium
Classical (frequentist) inference Methods & models for fMRI data analysis November 2012 With many thanks for slides & images to: FIL Methods group Klaas.
SPM short course – Oct Linear Models and Contrasts Jean-Baptiste Poline Neurospin, I2BM, CEA Saclay, France.
Contrasts & Statistical Inference
Statistical Inference Christophe Phillips SPM Course London, May 2012.
FMRI Modelling & Statistical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course Chicago, Oct.
Idiot's guide to... General Linear Model & fMRI Elliot Freeman, ICN. fMRI model, Linear Time Series, Design Matrices, Parameter estimation,
The General Linear Model
The General Linear Model Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM fMRI Course London, May 2012.
1 st level analysis: Design matrix, contrasts, and inference Stephane De Brito & Fiona McNabe.
The general linear model and Statistical Parametric Mapping I: Introduction to the GLM Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B.
Contrasts & Statistical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course London, October 2008.
SPM and (e)fMRI Christopher Benjamin. SPM Today: basics from eFMRI perspective. 1.Pre-processing 2.Modeling: Specification & general linear model 3.Inference:
The general linear model and Statistical Parametric Mapping II: GLM for fMRI Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B Poline.
The General Linear Model Christophe Phillips SPM Short Course London, May 2013.
The General Linear Model Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM fMRI Course London, October 2012.
SPM short course – Mai 2008 Linear Models and Contrasts Jean-Baptiste Poline Neurospin, I2BM, CEA Saclay, France.
General Linear Model & Classical Inference London, SPM-M/EEG course May 2016 Sven Bestmann, Sobell Department, Institute of Neurology, UCL
General Linear Model & Classical Inference Short course on SPM for MEG/EEG Wellcome Trust Centre for Neuroimaging University College London May 2010 C.
The General Linear Model (GLM)
Group Analyses Guillaume Flandin SPM Course London, October 2016
The General Linear Model (GLM)
General Linear Model & Classical Inference
The general linear model and Statistical Parametric Mapping
The General Linear Model
Statistical Inference
Design Matrix, General Linear Modelling, Contrasts and Inference
Statistical Inference
SPM short course at Yale – April 2005 Linear Models and Contrasts
Wellcome Trust Centre for Neuroimaging University College London
and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B Poline
Statistical Inference
The General Linear Model (GLM)
Contrasts & Statistical Inference
The General Linear Model
The general linear model and Statistical Parametric Mapping
The General Linear Model
The General Linear Model (GLM)
Statistical Inference
SPM short course – May 2009 Linear Models and Contrasts
Contrasts & Statistical Inference
The General Linear Model
The General Linear Model (GLM)
Statistical Inference
The General Linear Model
The General Linear Model
Contrasts & Statistical Inference
Presentation transcript:

SPM short – Mai 2008 Linear Models and Contrasts Stefan Kiebel Wellcome Trust Centre for Neuroimaging

realignment & coregistration smoothing normalisation Corrected p-values images Adjusted data Design matrix Anatomical Reference Spatial filter Random Field Theory Your question: a contrast Statistical Map Uncorrected p-values General Linear Model

w t- and F-tests w Improving your model Overview w An example w General linear model revisited w Correlations

w t- and F-tests w Improving your model Overview w An example w General linear model revisited w Correlations

Temporal series fMRI Statistical image (SPM) voxel time course One voxel = One test (t, F,...) amplitude time General Linear Model Üfitting Üstatistical image

Regression example = ++ voxel time series       box-car reference function   Mean value Fit the GLM

RegressorsRegressors =  + + ss =++ Y error   11 22  f(t)

Matrix/vector form   =+  =  +YX data vector (voxel time-series) design matrix parameters error vector    

Add more regressors (high-pass filter) Discrete cosine transform basis functions

Design matrix =  +  =  + Y X data vector design matrix Parameters (the ‘betas’) error vector   

Fitting the model raw fMRI time series adjusted for low frequency effects residuals fitted “high-pass filter” fitted box-car the squared values of the residuals 

w Regressorsin the model describe our knowledge about the signal variation over time. These regressors can be ‘of interest’ or of ‘no interest’. w Regressors in the model describe our knowledge about the signal variation over time. These regressors can be ‘of interest’ or of ‘no interest’. Summary (1) w Coefficients (= parameters) are estimated using the Ordinary Least Squares (OLS) or Maximum Likelihood (ML) estimator. w The estimated parameters depend on the scaling of the regressors. SPM takes care of their normalisation and ensures comparability. w The resulting tests (t,F), do not depend on the scaling of the regressors.

w t- and F-tests w Improving your model Overview w An example w General linear model revisited w Correlations

least squares estimates c T = t-test - one dimensional contrasts - SPM{t} Test: Boxcar amplitude > 0?

Tests multiple linear hypotheses : Does X 1 model anything ? F-test (SPM{F}) Full model X H 0 : True (reduced) model is X 0 X1X1 X0X0 Reduced model X0X0 F = error variance estimate additional variance accounted for by tested effects with

SPM{F} Question : does DCT set model anything? F-test (SPM{F}) : multi-dimensional contrasts test H 0 : H 0 :  3:9 = ( ) X1X1 X0X0 Full modelReduced model H 0 : True model is X 0 X0X0

In theory, an F-test (and t-test) proceeds as follows: 1.Fit reduced model to data and compute 2.Fit X 1 model to residuals and compute 3.Compute t- or F-statistic F- and t-tests are ‘sequential tests’ Full X1X1 X0X0 Reduced X0X0 Disadvantage of this procedure: New hypothesis  new reduced model  new estimation

Using contrasts, SPM proceeds as follows: 1.Fit full model to data (once only)  ResMS-file 2.Get user-specified contrast vector/matrix c 3.Compute t- or F-statistic Use contrasts! Full X Reduced X0X0 Mathematically identical to ‘sequential test’, but only one estimation necessary c0c0

« Additional variance » : Again Independent contrasts

« Additional variance » : Again correlated regressors, for example green: subject age yellow: subject score Testing for the green

« Additional variance » : Again correlated contrasts Testing for the red

« Additional variance » : Again Entirely correlated contrasts? Empty brain! Testing for the green

« Additional variance » : Again If F-test significant?  Could be green or yellow Testing for the green and yellow

w t- and F-tests w Improving your model Overview w An example w General linear model revisited w Correlations

Example Example Factorial design with 2 factors : modality and category 2 levels for modality (Visual/Auditory) 3 levels for category (3 categories of words) Experimental DesignDesign Matrix V A C1 C2 C3 C1 C2 C3 V A C 1 C 2 C 3

Some contrasts V A C 1 C 2 C 3 Design Matrix not orthogonal Interactions ‘Mod x Cat’ are not modelled Test C 1 > C 2 : c = [ ] Test V > A : c = [ ] [ ] Test C1,C2,C3 ? (F-test) c = [ ] [ ] But: How to test the interaction ‘Mod x Cat’?

Modelling the interactions

New contrasts V A V A V A Test C1 > C2 : c = [ ] Test V > A : c = [ ] Test for differences among categories (F-test): [ ] c =[ ] [ ] Test the interaction Mod x Cat (F-test) : [ ] c =[ ] [ ] Design Matrix orthogonal All contrasts are estimable Interactions Mod x Cat modelled C 1 C 1 C 2 C 2 C 3 C 3

Adding temporal derivatives V A V A V A Test C1 > C2 ? t-test using: c = [ ] Test C1 different from C2 ? F-test using: c = [ ] [ ] C 1 C 1 C 2 C 2 C 3 C 3 Test V > A ? c = [ ]

w t- and F-tests w Improving your model Overview w An example w General linear model revisited w Correlations

An inappropriate model... True signal and observed data (---) Model (green: HRF peaks at 6sec) True signal (blue, peaks at 3sec) Fitting (b1 = 0.2, mean = 0.11) => Test for the green regressor not significant Residual (still contains some signal)

 =+ Y X   1 = 0.22  2 = 0.11 An inappropriate model... Residual Variance = 0.3 P(Y|  1 = 0): p-value = 0.1 (t-test) P(Y|  1 = 0): p-value = 0.2 (F-test)

A better model True signal + observed data Total fit (blue) and partial fit (green & red) => t-value of the green regressor bigger => F-test very significant => t-test of the red regressor very significant Residuals (with smaller variance) Model (green and red) and true signal (blue ---) Red regressor : temporal derivative of the green regressor

A better model...  =+ Y X   1 = 0.22  2 = 2.15  3 = 0.11 Residual Var = 0.2 P(Y|  1 = 0): p-value = 0.07 (t-test) P(Y|  1 = 0,  2 = 0): p-value = (F-test)

wThe temporal derivative can model shifts up to one second w the canonical HRF and their two derivatives (time and dispersion) are usually appropriate models. w Play around with different models Summary (2)

w t- and F-tests w Improving your model Overview w An example w General linear model revisited w Correlations

True signal Correlation between regressors Fit (blue : total fit) Residual Model (green and red)

 =+ Y X   1 = 0.79  2 = 0.85  3 = 0.06 Correlation between regressors Residual var. = 0.3 P(Y|  1 = 0): p-value = 0.08 (t-test) P(Y|  2 = 0): p-value = 0.07 (t-test) P(Y|  1 = 0,  2 = 0): p-value = (F-test)

Design orthogonality : « explore design » However: when there are more than 2 regressors (C1,C2,C3,...), you may think that there is little correlation (light grey) between them, but C1 + C2 + C3 may be correlated with C4 + C5 Black = correlated White = orthogonal Corr(1,1)Corr(1,2)

w SPM tests for an additional effect  loss of sensitivity if there is correlation between regressors. Summary (3) w In case of correlation, use F-tests over correlated regressors. However, F-tests can make interpretation difficult. w When designing the experiment, take care that contrasts of interest are not correlated with their reduced models.

Conclusions w Contrast vectors/matrices are used to test for specific effects w Ensure that you’re not losing sensitivity because of unnecessary correlations in your design.  see talk on ‘event-related fMRI’ w The contrast weights specify a sequential test of two different models (reduced and full)  model comparison

Thanks to Jean-Baptiste Poline