1 / 36

Contrasts & Statistical Inference

Contrasts & Statistical Inference. Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London. SPM Course London, October 2008. Image time-series. Statistical Parametric Map. Design matrix. Spatial filter. Realignment. Smoothing. General Linear Model.

mahon
Download Presentation

Contrasts & Statistical Inference

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Contrasts & Statistical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course London, October 2008

  2. Image time-series Statistical Parametric Map Design matrix Spatial filter Realignment Smoothing General Linear Model StatisticalInference RFT Normalisation p <0.05 Anatomicalreference Parameter estimates

  3. Model specification Parameter estimation Hypothesis Statistic Voxel-wise time series analysis Time Time BOLD signal single voxel time series SPM

  4. Overview • A recapitulation of model specification and parameters estimation • Hypothesis testing • Contrasts and estimability • T-tests • F-tests • Design orthogonality • A first example • A second example

  5. = + y Model Specification: The General Linear Model Sphericity assumption: Independent and identically distributed (i.i.d.) error terms N: number of scans, p: number of regressors • The General Linear Model is an equation that expresses the observed response variable in terms of a linear combination of explanatory variables X plus a well behaved error term. Each column of the design matrix corresponds to an effect one has built into the experiment or that may confound the results.

  6. Parameter Estimation: Ordinary Least Squares • Find β that minimize • The Ordinary Least Estimates are: • Under i.i.d. assumptions, the Ordinary Least Squares estimates are Maximum Likelihood.

  7. Null Distribution of T Hypothesis Testing To test an hypothesis, we construct “test statistics”. • The Null Hypothesis H0 Typically what we want to disprove (no effect).  The Alternative Hypothesis HA expresses outcome of interest. • The Test Statistic T The test statistic summarises evidence about H0. Typically, test statistic is small in magnitude when the hypothesis H0 is true and large when false.  We need to know the distribution of T under the null hypothesis.

  8. Hypothesis Testing u • Type I Error α: Acceptable false positive rate α. Level  threshold uα Threshold uα controls the false positive rate  Null Distribution of T Observation of test statistic t, a realisation of T • P-value: A p-value summarises evidence against H0. This is the chance of observing value more extreme than t under the null hypothesis. t P-val • The conclusion about the hypothesis: We reject the null hypothesis in favour of the alternative hypothesis if t > uα Null Distribution of T

  9. One cannot accept the null hypothesis (one can just fail to reject it) • Absence of evidence is not evidence of absence.

  10. Contrasts • We are usually not interested in the whole β vector. • A contrast select a specific effect of interest: a contrast c is a vector of length p.  cTβis a linear combination of regression coefficients β. cT = [1 0 0 0 0 …] cTβ = 1xb1 + 0xb2 + 0xb3 + 0xb4 + 0xb5 + . . . = b1 cT = [0 -1 1 0 0 …] cTβ = 0xb1+-1xb2 + 1xb3 + 0xb4 + 0xb5 + . . . = b3 - b2 • Under i.i.d assumptions:

  11. 1 2 Factor Factor Mean images parameters parameter estimability ® not uniquely specified) (gray b Estimability of a contrast • If X is not of full rank then we can have Xb1 = Xb2 with b1≠b2 (different parameters). • The parameters are not therefore ‘unique’, ‘identifiable’ or ‘estimable’. • For such models, XTX is not invertible so we must resort to generalised inverses (SPM uses the pseudo-inverse). One-way ANOVA(unpaired two-sample t-test) 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 Rank(X)=2 • Example: [1 0 0], [0 1 0], [0 0 1] are not estimable. [1 0 1], [0 1 1], [1 -1 0], [0.5 0.5 1] are estimable.

  12. contrast ofestimatedparameters T = varianceestimate T-test - one dimensional contrasts – SPM{t} box-car amplitude > 0 ? = b1 = cTb> 0 ? Question: cT = 1 0 0 0 0 0 0 0 b1b2b3b4b5 ... H0: cTb=0 Null hypothesis: Test statistic:

  13. T-contrast in SPM • For a given contrast c: ResMS image beta_???? images spmT_???? image con_???? image SPM{t}

  14. Statistics: 1 p-values adjusted for search volume set-level cluster-level voxel-level mm mm mm p c p k p p p T Z p ( ) corrected E uncorrected FWE-corr FDR-corr uncorrected º 0.000 10 0.000 520 0.000 0.000 0.000 13.94 Inf 0.000 -63 -27 15 SPMresults: 0.000 0.000 12.04 Inf 0.000 -48 -33 12 0.000 0.000 11.82 Inf 0.000 -66 -21 6 10 Height threshold T = 3.2057 {p<0.001} 0.000 426 0.000 0.000 0.000 13.72 Inf 0.000 57 -21 12 0.000 0.000 12.29 Inf 0.000 63 -12 -3 voxel-level 0.000 0.000 9.89 7.83 0.000 57 -39 6 20 mm mm mm 0.000 35 0.000 0.000 0.000 7.39 6.36 0.000 36 -30 -15 T Z p ( ) 0.000 9 0.000 0.000 0.000 6.84 5.99 0.000 51 0 48 uncorrected º 0.002 3 0.024 0.001 0.000 6.36 5.65 0.000 -63 -54 -3 0.000 8 0.001 0.001 0.000 6.19 5.53 0.000 -30 -33 -18 30 13.94 Inf 0.000 -63 -27 15 0.000 9 0.000 0.003 0.000 5.96 5.36 0.000 36 -27 9 0.005 2 0.058 0.004 0.000 5.84 5.27 0.000 -45 42 9 12.04 Inf 0.000 -48 -33 12 0.015 1 0.166 0.022 0.000 5.44 4.97 0.000 48 27 24 40 11.82 Inf 0.000 -66 -21 6 0.015 1 0.166 0.036 0.000 5.32 4.87 0.000 36 -27 42 13.72 Inf 0.000 57 -21 12 12.29 Inf 0.000 63 -12 -3 50 9.89 7.83 0.000 57 -39 6 7.39 6.36 0.000 36 -30 -15 60 6.84 5.99 0.000 51 0 48 6.36 5.65 0.000 -63 -54 -3 70 6.19 5.53 0.000 -30 -33 -18 5.96 5.36 0.000 36 -27 9 80 5.84 5.27 0.000 -45 42 9 5.44 4.97 0.000 48 27 24 0.5 1 1.5 2 2.5 5.32 4.87 0.000 36 -27 42 Design matrix T-test: a simple example • Passive word listening versus rest cT = [ 1 0 ] Q: activation during listening ? Null hypothesis:

  15. 0.4 n =1 0.35 n =2 n • Unilateral test: =5 0.3 n =10 n ¥ = H0: vs HA: 0.25 0.2 0.15 0.1 0.05 0 -5 -4 -3 -2 -1 0 1 2 3 4 5 Probability Density Function of Student’s t distribution T-test: a few remarks • T-test is a signal-to-noise measure (ratio of estimate to standard deviation of estimate). • T-contrasts are simple combinations of the betas; the T-statistic does not depend on the scaling of the regressors or the scaling of the contrast.

  16. X0 X0 X1 RSS RSS0 Or Reduced model? F-test - the extra-sum-of-squares principle • Model comparison: Full vs. Reduced model? Null Hypothesis H0: True model is X0 (reduced model) Test statistic: ratio of explained variability and unexplained variability (error) 1 = rank(X) – rank(X0) 2 = N – rank(X) Full model ?

  17. H0: b3 = b4 = ... = b9 = 0 test H0 : cTb = 0 ? 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 cT = SPM{F6,322} F-test - multidimensional contrasts – SPM{F} • Tests multiple linear hypotheses: H0: True model is X0 X0 X0 X1 (b3-9) Full model? Reduced model?

  18. F-contrast in SPM ResMS image beta_???? images ess_???? images spmF_???? images ( RSS0 - RSS) SPM{F}

  19. F-test example: movement related effects • To assess movement-related activation: • There is a lot of residual movement-related artifact in the data (despite spatial realignment), which tends to be concentrated near the boundaries of tissue types. • Even though we are not interested in such artifact, by including the realignment parameters in our design matrix, we “covary out” linear components of subject movement, reducing the residual error, and hence improve our statistics for the effects of interest.

  20. Slightly more complicated… Think of it as constructing 3 regressors from the 3 differences and complement this new design matrix such that data can be fitted in the same exact way (same error, same fitted data).

  21. F-test: a few remarks • F-tests can be viewed as testing for the additional variance explained by a larger model wrt a simpler (nested) model  Model comparison. • F tests a weighted sum of squares of one or several combinations of the regression coefficients b. • In practice, we don’t have to explicitly separate X into [X1X2] thanks to multidimensional contrasts. • Hypotheses: • In testing uni-dimensional contrast with an F-test, for example b1 – b2, the result will be the same as testing b2 – b1. It will be exactly the square of the t-test, testing for both positive and negative effects.

  22. Design orthogonality • For each pair of columns of the design matrix, the orthogonality matrix depicts the magnitude of the cosine of the angle between them, with the range 0 to 1 mapped from white to black. • The cosine of the angle between two vectors a and b is obtained by: • If both vectors have zero mean then the cosine of the angle between the vectors is the same as the correlation between the two variates.

  23. Shared variance Independent contrasts

  24. Shared variance Testing for the green: Correlated regressors, for example: green: subject age yellow: subject score

  25. Shared variance Testing for the red: correlated contrasts

  26. Shared variance Testing for the green: Entirely correlated contrasts ?  Non estimable !

  27. Shared variance Testing for the green and yellow If significant ? Could be G or Y ! Entirely correlated contrasts ? Non estimable !

  28. True signal and observed signal (--) Model (green, pic at 6sec) TRUE signal (blue, pic at 3sec) Fitting (b1 = 0.2, mean = 0.11) Residual(still contains some signal) A “not so good” model  Test for the green regressor not significant

  29. A “not so good” model b1= 0.22 b2= 0.11 Residual Var.= 0.3 p(Y|b1= 0) p-value = 0.1 (t-test) p(Y|b1= 0)p-value = 0.2 (F-test) = + Y X b e

  30. True signal + observed signal Model (green and red) and true signal (blue ---) Red regressor : temporal derivative of the green regressor Global fit (blue) and partial fit (green & red) Adjusted and fitted signal Residual (a smaller variance) A “better” model t-test of the green regressor significant F-test very significant t-test of the red regressor very significant

  31. A “better” model b1= 0.22 b2= 2.15 b3= 0.11 Residual Var. = 0.2 p(Y|b1= 0)  p-value = 0.07 (t-test) p(Y|b1= 0, b2= 0)  p-value = 0.000001 (F-test) = + Y X b e

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

  33. Correlation between regressors b1 = 0.79 b2 = 0.85 b3 = 0.06 Residual var. = 0.3 p(Y|b1= 0)  p-value = 0.08 (t-test) P(Y|b2= 0)  p-value = 0.07 (t-test) p(Y|b1= 0, b2= 0)  p-value = 0.002 (F-test) = + Y X b e 1 2 1 2

  34. Model (green and red) red regressor has been orthogonalised with respect to the green one  remove everything that correlates with the green regressor Fit Residual Correlation between regressors True signal

  35. 1 2 Correlation between regressors b1 = 1.47 b2 = 0.85 b3 = 0.06 (0.79) (0.85) (0.06) Residual var. = 0.3 p(Y|b1= 0) p-value = 0.0003 (t-test) p(Y|b2= 0) p-value = 0.07 (t-test) p(Y|b1= 0, b2= 0) p-value = 0.002 (F-test) = + Y X b e 1 2

  36. Bibliography: • Statistical Parametric Mapping: The Analysis of Functional Brain Images. Elsevier, 2007. • Plane Answers to Complex Questions: The Theory of Linear Models. R. Christensen, Springer, 1996. • Statistical parametric maps in functional imaging: a general linear approach. K.J. Friston et al, Human Brain Mapping, 1995. • Ambiguous results in functional neuroimaging data analysis due to covariate correlation. A. Andrade et al., NeuroImage, 1999. • Estimating efficiency a priori: a comparison of blocked and randomized designs. A. Mechelli et al., NeuroImage, 2003. With many thanks to J.-B. Poline, Tom Nichols, S. Kiebel, R. Henson for slides!

More Related