Presentation is loading. Please wait.

Presentation is loading. Please wait.

Contrasts & Statistical Inference

Similar presentations


Presentation on theme: "Contrasts & Statistical Inference"โ€” Presentation transcript:

1 Contrasts & Statistical Inference
Will Penny SPM Course London, May 2014

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

3 A mass-univariate approach
Time

4 Estimation of the parameters
i.i.d. assumptions: ๐œ€~๐‘(0, ๐œŽ 2 ๐ผ) ๐›ฝ = ( ๐‘‹ ๐‘‡ ๐‘‹) โˆ’1 ๐‘‹ ๐‘‡ ๐‘ฆ OLS estimates: ๐›ฝ 1 =3.9831 ๐›ฝ 2โˆ’7 ={0.6871, , , , , โˆ’ } ๐›ฝ ๐›ฝ 8 = ๐‘ฆ = +๐œ€ ๐œ€ = ๐œŽ 2 = ๐œ€ ๐‘‡ ๐œ€ ๐‘โˆ’๐‘ ๐›ฝ ~๐‘ ๐›ฝ, ๐œŽ 2 ( ๐‘‹ ๐‘‡ ๐‘‹) โˆ’1

5 Contrasts ๐‘ ๐‘‡ ๐›ฝ ~๐‘ ๐‘ ๐‘‡ ๐›ฝ, ๐œŽ 2 ๐‘ ๐‘‡ ( ๐‘‹ ๐‘‡ ๐‘‹) โˆ’1 ๐‘
A contrast selects a specific effect of interest. A contrast ๐‘ is a vector of length ๐‘. ๐‘ ๐‘‡ ๐›ฝ is a linear combination of regression coefficients ๐›ฝ. [ ] [ ] ๐‘= [ โ€ฆ] ๐‘‡ ๐‘ ๐‘‡ ๐›ฝ=๐Ÿร— ๐›ฝ 1 +๐ŸŽร— ๐›ฝ 2 +๐ŸŽร— ๐›ฝ 3 +๐ŸŽร— ๐›ฝ 4 +โ€ฆ = ๐œท ๐Ÿ ๐‘= [0 1 โˆ’1 0 โ€ฆ] ๐‘‡ ๐‘ ๐‘‡ ๐›ฝ=๐ŸŽร— ๐›ฝ 1 +๐Ÿร— ๐›ฝ 2 +โˆ’๐Ÿร— ๐›ฝ 3 +๐ŸŽร— ๐›ฝ 4 +โ€ฆ = ๐œท ๐Ÿ โˆ’ ๐œท ๐Ÿ‘ ๐‘ ๐‘‡ ๐›ฝ ~๐‘ ๐‘ ๐‘‡ ๐›ฝ, ๐œŽ 2 ๐‘ ๐‘‡ ( ๐‘‹ ๐‘‡ ๐‘‹) โˆ’1 ๐‘

6 Hypothesis Testing To test an hypothesis, we construct โ€œtest statisticsโ€. Null Hypothesis H0 Typically what we want to disprove (no effect). ๏ƒฐ The Alternative Hypothesis HA expresses outcome of interest. 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. Null Distribution of T

7 Hypothesis Testing u๏ก t ๐‘ ๐‘‡>๐‘ก| ๐ป 0 Significance level ฮฑ:
Acceptable false positive rate ฮฑ. ๏ƒฐ threshold uฮฑ Threshold uฮฑ controls the false positive rate ๏ก Null Distribution of T Conclusion about the hypothesis: We reject the null hypothesis in favour of the alternative hypothesis if t > uฮฑ 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. p-value Null Distribution of T ๐‘ ๐‘‡>๐‘ก| ๐ป 0

8 T-test - one dimensional contrasts โ€“ SPM{t}
Question: box-car amplitude > 0 ? = b1 = cTb> 0 ? cT = b1 b2 b3 b4 b5 ... Null hypothesis: H0: cTb=0 T = contrast of estimated parameters variance estimate Test statistic:

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

10 T-test: a simple example
Passive word listening versus rest cT = [ ] Q: activation during listening ? 1 Null hypothesis: SPMresults: Height threshold T = {p<0.001} voxel-level p uncorrected T ( Z ) mm mm mm 13.94 Inf 0.000 12.04 11.82 13.72 12.29 9.89 7.83 7.39 6.36 6.84 5.99 5.65 6.19 5.53 5.96 5.36 5.84 5.27 5.44 4.97 5.32 4.87 ๐‘ก= ๐‘ ๐‘‡ ๐›ฝ var ๐‘ ๐‘‡ ๐›ฝ

11 T-test: summary T-test is a signal-to-noise measure (ratio of estimate to standard deviation of estimate). H0: vs HA: Alternative hypothesis: 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.

12 Scaling issue [ ] / 4 Subject 1 The T-statistic does not depend on the scaling of the regressors. The T-statistic does not depend on the scaling of the contrast. Contrast depends on scaling. [ ] / 3 Be careful of the interpretation of the contrasts themselves (eg, for a second level analysis): sum โ‰  average Subject 5

13 F-test - the extra-sum-of-squares principle
Model comparison: Null Hypothesis H0: True model is X0 (reduced model) X1 X0 X0 Test statistic: ratio of explained variability and unexplained variability (error) RSS RSS0 ๏ฎ1 = rank(X) โ€“ rank(X0) ๏ฎ2 = N โ€“ rank(X) Full model ? or Reduced model?

14 F-test - multidimensional contrasts โ€“ SPM{F}
Tests multiple linear hypotheses: H0: True model is X0 H0: b4 = b5 = ... = b9 = 0 test H0 : cTb = 0 ? SPM{F6,322} X0 X1 (b4-9) X0 cT = Full model? Reduced model?

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

16 F-test example: movement related effects
Design matrix 2 4 6 8 10 20 30 40 50 60 70 80 contrast(s) Design matrix 2 4 6 8 10 20 30 40 50 60 70 80 contrast(s)

17 F-test: summary 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.

18 Orthogonal regressors
Variability described by ๐‘‹ 1 Variability described by ๐‘‹ 2 Testing for ๐‘‹ 1 Testing for ๐‘‹ 2 Variability in Y

19 Correlated regressors
Shared variance Variability described by ๐‘‹ 1 Variability described by ๐‘‹ 2 Variability in Y

20 Correlated regressors
Testing for ๐‘‹ 1 Variability described by ๐‘‹ 1 Variability described by ๐‘‹ 2 Variability in Y

21 Correlated regressors
Testing for ๐‘‹ 2 Variability described by ๐‘‹ 1 Variability described by ๐‘‹ 2 Variability in Y

22 Correlated regressors
Variability described by ๐‘‹ 1 Variability described by ๐‘‹ 2 Variability in Y

23 Correlated regressors
Testing for ๐‘‹ 1 Variability described by ๐‘‹ 1 Variability described by ๐‘‹ 2 Variability in Y

24 Correlated regressors
Testing for ๐‘‹ 2 Variability described by ๐‘‹ 1 Variability described by ๐‘‹ 2 Variability in Y

25 Correlated regressors
Testing for ๐‘‹ 1 and/or ๐‘‹ 2 Variability described by ๐‘‹ 1 Variability described by ๐‘‹ 2 Variability in Y

26 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. 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.

27 Correlated regressors: summary
We implicitly test for an additional effect only. When testing for the first regressor, we are effectively removing the part of the signal that can be accounted for by the second regressor: ๏ƒฐ implicit orthogonalisation. Orthogonalisation = decorrelation. Parameters and test on the non modified regressor change. Rarely solves the problem as it requires assumptions about which regressor to uniquely attribute the common variance. ๏ƒฐ change regressors (i.e. design) instead, e.g. factorial designs. ๏ƒฐ use F-tests to assess overall significance. 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 x2 x2 x2 x^ 2 x^ = x2 โ€“ x1.x2 x1 x1 2 x1 x1 x^ 1

28 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.


Download ppt "Contrasts & Statistical Inference"

Similar presentations


Ads by Google