General Linear Model & Classical Inference London, SPM-M/EEG course May 2016 Sven Bestmann, Sobell Department, Institute of Neurology, UCL

Slides:



Advertisements
Similar presentations
1 st Level Analysis: design matrix, contrasts, GLM Clare Palmer & Misun Kim Methods for Dummies
Advertisements

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
Topological Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course London, May 2014 Many thanks to Justin.
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.
Chapter Seventeen HYPOTHESIS TESTING
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.
1st level analysis: basis functions and correlated regressors
Lorelei Howard and Nick Wright MfD 2008
Methods for Dummies General Linear Model
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.
General Linear Model & Classical Inference
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.
Brain Mapping Unit The General Linear Model A Basic Introduction Roger Tait
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 & Inference - EEG & MEG Himn Sabir 1. Topics 1 st level analysis 2 nd level analysis Space-Time SPMs Time-frequency analysis Conclusion 2.
FMRI GLM Analysis 7/15/2014Tuesday Yingying Wang
Contrasts & Statistical Inference
Methods for Dummies Overview and Introduction
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.
The General Linear Model
The General Linear Model Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM fMRI Course London, May 2012.
SPM short – Mai 2008 Linear Models and Contrasts Stefan Kiebel Wellcome Trust Centre for Neuroimaging.
The general linear model and Statistical Parametric Mapping I: Introduction to the GLM Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B.
1 st Level Analysis Design Matrix, Contrasts and Inference, GLM Hassan Hawsawi and Lena Holderer 09 December 2015.
Contrasts & Statistical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course London, October 2008.
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 Short course on SPM for MEG/EEG Wellcome Trust Centre for Neuroimaging University College London May 2010 C.
Methods for Dummies M/EEG Analysis: Contrasts, Inferences and Source Localisation Diana Omigie Stjepana Kovac.
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
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:

General Linear Model & Classical Inference London, SPM-M/EEG course May 2016 Sven Bestmann, Sobell Department, Institute of Neurology, UCL Slides by C Phillips

Overview Introduction –ERP example General Linear Model –Definition & design matrix –Parameter estimation & interpretation –Contrast & inference –Correlated regressors Conclusion

Overview Introduction –ERP example General Linear Model –Definition & design matrix –Parameter estimation & interpretation –Contrast & inference –Correlated regressors Conclusion

Pre-processing: Converting Filtering Resampling Re-referencing Epoching Artefact rejection Time-frequency transformation … General Linear Model Raw EEG/MEG data Overview of SPM Image convertion Design matrix Parameter estimates Inference & correction for multiple comparisonsContrast: c’ = [-1 1] Statistical Parametric Map (SPM)

Statistical Parametric Maps mm time mm time frequency 3D M/EEG source reconstruction, fMRI, VBM 2D time-frequency 2D+t scalp-time 1D time time

ERP example Random presentation of ‘ faces ’ and ‘ scrambled faces ’ 70 trials of each type 128 EEG channels Question: is there a difference between the ERP of ‘ faces ’ and ‘ scrambled faces ’ ?

ERP example: channel B9 2-sample t-test: compare size of effect to its error standard deviation Focus on N170

Overview Introduction –ERP example General Linear Model –Definition & design matrix –Parameter estimation & interpretation –Contrast & inference –Correlated regressors Conclusion

Data modeling =   + + Error FacesScrambledData  =   ++ XX XX Y

Design matrix =+  =  +XY Data vector Design matrix Parameter vector Error vector  

N : # trials p : # regressors General Linear Model Y Y += X GLM defined by design matrix X error distribution, e.g.

General Linear Model The design matrix embodies all available knowledge about experimentally controlled factors and potential confounds. Applied to all channels & time points Mass-univariate parametric analysis –one sample t-test –two sample t-test –paired t-test –Analysis of Variance (ANOVA) –factorial designs –correlation –linear regression –multiple regression

Estimate parameters such thatminimal Residuals: Parameter estimation =+   If iid. error assumed: Ordinary Least Squares parameter estimate

Design space defined by X y e x1x1 x2x2 Residual forming matrix R Projection matrix P OLS estimates Geometric perspective

Mass-univariate analysis Voxel-wise GLM: Evoked response image Time 1.Transform data for all subjects and conditions 2.SPM: Analyse data at each voxel Sensor to voxel transform

Hypothesis Testing The Null Hypothesis H 0 Typically what we want to disprove (i.e. no effect). Alternative Hypothesis H A = outcome of interest.

Contrast : specifies linear combination of parameter vector: c´  ERP: faces < scrambled ? = - 1 x   + 1 x   > 0 ? = ^ ^ test H 0 : c´   > 0 ? ^ T = contrast of estimated parameters variance estimate T = s 2 c ’ (X ’ X) + c c’  c’  ^ Contrast & t-test   <   ? (   : estimation of   ) = ^^ ^ c’ = SPM-t over time & space

Hypothesis Testing The Null Hypothesis H 0 Typically what we want to disprove (i.e. no effect). Alternative Hypothesis H A = outcome of interest. The Test Statistic T summarises evidence about H 0. (typically) small in magnitude when H 0 is true and large when false. know the distribution of T under the null hypothesis. Null Distribution of T

t P-val Null Distribution of T  uu Hypothesis Testing Significance level α: Acceptable false positive rate α.  threshold u α, controls the false positive rate Observation of test statistic t, a realisation of T  Conclusion about the hypothesis: reject H 0 in favour of H a if t > u α  P-value: summarises evidence against H 0. = chance of observing value more extreme than t under H 0.

Contrast & T-test, a few remarks Contrasts = simple linear combinations of the betas T-test = signal-to-noise measure (ratio of estimate to standard deviation of estimate). T-statistic, NO dependency on scaling of the regressors or contrast Unilateral test: H0:H0: vs. H A :

Model comparison: Full vs. Reduced model? Null Hypothesis H 0 : True model is X 0 (reduced model) Test statistic: ratio of explained and unexplained variability (error) 1 = rank(X) – rank(X 0 ) 2 = N – rank(X) RSS RSS 0 Full model ? X1X1 X0X0 Or reduced model? X0X0 Extra-sum-of-squares & F-test

F-test & multidimensional contrasts Tests multiple linear hypotheses: H 0 : True model is X 0 Full or reduced model? X 1 (  3-4 ) X0X0 X0X c T = H 0 :  3 =  4 = 0 test H 0 : c T  = 0 ?

x1x1 x2x2 x2*x2* y x 2 orthogonalized w.r.t. x 1 only the parameter estimate for x 1 changes, not that for x 2 ! Correlated regressors explained variance shared between regressors Correlated and orthogonal regressors

Orthogonal regressors Variability in Y

Correlated regressors Shared variance Variability in Y

Correlated regressors Variability in Y

Correlated regressors Variability in Y

Correlated regressors Variability in Y

Correlated regressors Variability in Y

Correlated regressors Variability in Y

Inference & correlated regressors implicitly test for an additional effect only –be careful if there is correlation –orthogonalisation = decorrelation (not generally needed)  parameters and test on the non modified regressor change always simpler to have orthogonal regressors by design use F-tests in case of correlation, to see the overall significance. There is generally no way to decide to which regressor the « common » part should be attributed to. original regressors may not matter: it ’ s the contrast you are testing which should be as decorrelated as possible from the rest of the design matrix

Overview Introduction –ERP example General Linear Model –Definition & design matrix –Parameter estimation & interpretation –Contrast & inference –Correlated regressors Conclusion

1.Decompose data into effects and error 2.Form statistic using estimates of effects (of interest) and error Make inferences about effects of interest Why? How? Use any available knowledge Model? Modelling? Contrast: e.g. [1 -1 ] Contrast: e.g. [1 -1 ] model effects estimate error estimate statistic data Experimental effects

Thank you for your attention! Any question? Thanks to Christophe, Klaas, Guillaume, Rik, Will, Stefan, Andrew & Karl for the slides!