SlideShare a Scribd company logo
1 of 58
SPM 12 practical course
by Volodymyr B. Bogdanov
vlabogd@yahoo.com
Kyiv 2015
Day 2: Event-related design first
(individual) level statistical
analysis and second (group)
level analysis
Model specification, Factor design and Review, Estimation,
Inference
Formula:
Y =Y = αα ++ ββ11 XX11 + …+ … ββnn XXnn ++ εε
Y – data
X – function (predictor, regressor)X – function (predictor, regressor)
αα – intercept (baseline)
ββ – parameter (slope)– parameter (slope)
εε – error (residuals)– error (residuals)
What is GLM?
Generalized Liner Model
data = response + noise + drift
+ +
X
Y
=
Matalb syntaxis:
glmfit( [X; drift; noise]’, Y)
ans =
-0.0000 (αα)
1.0000 (ββ for X)
1.0000 (ββ for drift)
1.0000 (ββ for noise)
drift noise
εε – error (residuals)– error (residuals)
Y – data X – function (predictor, regressor)X – function (predictor, regressor)
α – intercept (baseline)
ββ–parameter(slope)–parameter(slope)
glmfit(X, Y)
ans =
1.0093 (α)
1.0899 (β)
X
Y
εε – error (residuals)– error (residuals) X – function (predictor, regressor)X – function (predictor, regressor)
X
εε
Chapter 32
Face group fMRI data
Chapter 31
Face fMRI data
SPM12 Manual
C:spm12man
Functional images
Contrast images
(one individual)
Contrast images
(many individuals)
First level;
Fixed effects -
locally relevant
Second level;
Radom effects -
population relevant
Contrast images
(one group)
Briefly, this is a 2 factorial study with factors “fame”
and “repetition” where famous and non-famous faces were
presented twice against a checkerboard baselin.
The subject was asked to make fame judgements by making
key presses.
There are thus four event-types of interest; first and second
presentations of famous and non-famous faces, which we
denote N1, N2, F1 and F2.
Two independent factors:
“N”
Non-famous
“F”
Famous
“1” first
presentation
“2” second
presentation
Non-famous, first presentation: N1
Non-famous, second presentation: N2
Famous, first presentation: F1
Famous, second presentation: F2
Categorical 2 factor design Parametric 2 factor designCategorical 2 factor design Parametric 2 factor design
Preprocessing, event related design
(Chapter 31, Face fMRI data):
1. Reorientation
2. Realignment
3. Slice timing correction
4. Coregistration
5. Segmentation
6. Normalisation of functional images
7. Normalisation of the structural image
8. Smoothing
N=24 axial slices acquired with a TR=2s (time between the onset of the first slice of
one volume and the first slice of next volume).
TA is the time between the onset of the first and last slice of one volume
(i.e. TA = TR - TR/N) The most superior slice was sampled first.
But in the file the first slice (slice number 1) is the most inferior slice, making the slice
acquisition order [24 23 22 ... 1].
Slice timing correction: rationale
2 sec. delay!
After preprocessing is finished, it is time for statistical analysis.
I will try to cover following questions:
Categorical and parametric designs
Design matrix – how to read and understand it
Basis hemodynamic response function (HRF) and its time and
dispersion derivatives.
T and F contrast matrices
Two-factor factorial design specification. (from the SPM Manual)
Statistical inferences
Statistical table – how to read and understand it
Event-related peristimulus histogram (PSTH). (from the SPM Manual)
How to set different contrasts manually.
Parametric design model specification and plotting parametric
response. (from the SPM Manual)
Categorical design: what is it:
Modeling different features of the
stimuli as separate conditions, e.g. non-
famous and famous faces, or first and
second presentation of the same
image.
Category TD
Category UD
Category UE
Category TE
Categorical 2 factor design: resulting design matrix
N1 condition
Red – stimuli onsets
Blue – expected BOLD response
How to read design matrix?
The modeled responses to
different conditions are
arranged in columns.
Raws represent scans (2 sec
each in our case)
Scans (“images”), 2 seconds each.
Red – stimuli onsets
Blue – expected BOLD response
Expected BOLD responses to
two conditions
Blue – N1 condition
Red – F1 stimuli onsets
N1 t d Modeling time and dispersion derivatives of N1
Modeling time and dispersion derivatives of N1
What is time and dispersion derivatives and why
it is useful to include them in the model?
Combinations of canonical hemodynamic response function
(HRF) and its time derivative (t), correction for delay of response
HRF-tHRF+t
HRF-d
HRF+d
Combinations of canonical hemodynamic response function
(HRF) and its dispersion derivative (d), correction for
duration of response.
N1 t d N2 t d F1 t d F2 t d
motion parameters
What is T and F teststs?
T-test – one-directional effects (increase, decrease).
F-test – non-directional effects (either increase or decrease).
How to combine or compare different conditions (repressors,
predictors)?
T or F contrasts
Examples:
T-contrast [1]:
Condition has positive effect
F-contrast [1]:
Condition has positive or
negative effect
T-contrast [1 1]:
I total two conditions have
positive effect
F-contrast [1 1]:
In total two conditions have
positive or negative effect
T-contrast [1 0 0]:
First condition has positive effect
F-contrast [1 0 0]:
Condition has positive or negative effect
T-contrast [1 1 0]:
The first and second
conditions have positive
effect, controlled for any
effects of the third.
F-contrast [1 0 0; 0 1 0]:
Either first, or the second or both
conditions have either positive or
negative effect controlled for effect of
the third. If the first has positive and
the second has negative effect it still
works.
T-contrast [1 1 0]:
In total two conditions have positive effect,
controlled for the effect of the third
F-contrast [1 0 0; 0 1 0]
T-contrast [1 -1 0]:
First condition has greater
has positive effect than
the second, controlled for
effect of the third
F-contrast [1 -1 0]:
First condition has
somehow different effect,
than the second, controlled
for effect of the third
T-contrast [1 -0.5 -0.5]:
First condition has greater
has positive effect than two
other conditions.
F-contrast [1 -1 0; 0 1 -1]:
There is a difference of
effects between 3 conditions
F-contrast [1 -1 0]:
First condition has somehow different effect, than the
second, controlled for effect of the third
T-contrast [1 -1 0]:
First condition has greater has positive effect than the
second, controlled for effect of the third
What is factorial design?
It is a set of contrasts for complete combination of all levels of
all factors (2 factors in this case, factor “fame” and factor
“repetition”).
It can be set manually at the stage of contrast manager, but if
indicated in model specification proper contrasts are
generated automatically.
In current example Factorial design allows to estimate:
Effect of fame (controlled for repetition)
Effect of repetition (controlled for fame)
Interaction of two effects.
Category TD Category UD Category UECategory TE
Category TD Category UD Category UECategory TE
Effect of “easiness”:
vs
vs
Effect of “tastiness”:
Interaction of the two:
Category TD Category UE
Category UD Category TE
vs
Category TD Category UD Category UECategory TE
Effect of “easiness”:
vs
Consumption at the party
UD
UE
TD
TE
Preference among children
UD
UE
TD
TE
Category TD Category UD Category UECategory TE vs
Effect of “tastiness”:
Interaction of the two:
Category TD Category UE
Category UD Category TE
vs
For example Craving can be higher
for untasty difficult and tasty easy,
then for others.
UD
UE
TD
TE
The order of naming these factors is important - the factor to be
specified first is the one that “changes slowest”
In the list of conditions (1) N1, (2) N2, (3) F1, (4) F2 the factor
“repetition” changes every condition and the
factor “fame” changes every other condition.
So “Fame” changes slowest and is entered first.
Factor 1
(2 levels)
Fame
Factor 2
(2 levels)
Repetition
N1 0 0
N2 0 1
F1 1 0
F2 1 1
Always remeber the order of
conditions!
Important for settings of the
statistical contrasts.
Factor 1
(2 levels)
Repetition
Factor 2
(2 levels)
Fame
N1 0 0
F1 0 1
N2 1 0
F2 1 1
If the list of conditions is different (1) N1, (2) F1, (3) N2, (4) F2
the factor “Fame” changes every condition and the
factor “Repetition” changes every other condition.
So “Repetition” changes slowest and is entered first.
MIP – maximum
intensity projections
over glass-brain
Current contrast
(T-contrast)
[1 0 0 1 0 0 1 0 0 1]
Design matrix
Peak-level statistical threshold
Statistical results:
x, y, z (mm): coordinates in MNI space for each maximum.
Statistical results (table):
Peak-level: the chance (p) of finding (under the null hypothesis) a peak
with this or a greater height (T-statistic), uncorrected for search volume.
Peak-level: the chance (p) of finding (under the null hypothesis) a peak with
this or a greater height (T-statistic), corrected (FWE – familywise error)
(GOOD!)
Cluster is a number of voxels that reach the threshold, size of the
cluster (in voxels)
Cluster is a number of voxels that reach the threshold, size of the
cluster (in voxels)
Cluster-level: the chance (p) of finding a cluster with this many (ke) or a
greater number of voxels, corrected (FWE or FDR) / uncorrected for
search volume
Parametric design: what is it?
Modeling a feature of a condition as
continuous variable, e.g. the
interval between the first and the
second occurrence of the
presentation of the same face.
Parametric modulator –
weight of one unit
500 g
3000 g
200 g
100 g …
150 g
300 g
Parametric 2 factor design
Second level statistics – effect of faces in general (pulled
across conditions)
1. One canonical HRF
2. Informed set – canonical + 3 derivatives
3. Finite impulse response
Chapter 32
Face group fMRI data
SPM 12 practical course by Volodymyr B. Bogdanov (Kyiv 2015, Day 2)
SPM 12 practical course by Volodymyr B. Bogdanov (Kyiv 2015, Day 2)
SPM 12 practical course by Volodymyr B. Bogdanov (Kyiv 2015, Day 2)
SPM 12 practical course by Volodymyr B. Bogdanov (Kyiv 2015, Day 2)
SPM 12 practical course by Volodymyr B. Bogdanov (Kyiv 2015, Day 2)

More Related Content

Similar to SPM 12 practical course by Volodymyr B. Bogdanov (Kyiv 2015, Day 2)

Ch 12 Slides.doc. Introduction of science of business
Ch 12 Slides.doc. Introduction of science of businessCh 12 Slides.doc. Introduction of science of business
Ch 12 Slides.doc. Introduction of science of businessohenebabismark508
 
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...Chiheb Ben Hammouda
 
Admissions in India 2015
Admissions in India 2015Admissions in India 2015
Admissions in India 2015Edhole.com
 
Lecture 2-Filtering.pdf
Lecture 2-Filtering.pdfLecture 2-Filtering.pdf
Lecture 2-Filtering.pdfTechEvents1
 
SIAM SEAS Talk Slides
SIAM SEAS Talk SlidesSIAM SEAS Talk Slides
SIAM SEAS Talk SlidesRyan White
 
Cointegration analysis: Modelling the complex interdependencies between finan...
Cointegration analysis: Modelling the complex interdependencies between finan...Cointegration analysis: Modelling the complex interdependencies between finan...
Cointegration analysis: Modelling the complex interdependencies between finan...Edward Thomas Jones
 
IRJET- Analytic Evaluation of the Head Injury Criterion (HIC) within the Fram...
IRJET- Analytic Evaluation of the Head Injury Criterion (HIC) within the Fram...IRJET- Analytic Evaluation of the Head Injury Criterion (HIC) within the Fram...
IRJET- Analytic Evaluation of the Head Injury Criterion (HIC) within the Fram...IRJET Journal
 
Spillover Dynamics for Systemic Risk Measurement Using Spatial Financial Time...
Spillover Dynamics for Systemic Risk Measurement Using Spatial Financial Time...Spillover Dynamics for Systemic Risk Measurement Using Spatial Financial Time...
Spillover Dynamics for Systemic Risk Measurement Using Spatial Financial Time...SYRTO Project
 
reliability workshop
reliability workshopreliability workshop
reliability workshopGaurav Dixit
 
Numerical Smoothing and Hierarchical Approximations for E cient Option Pricin...
Numerical Smoothing and Hierarchical Approximations for E cient Option Pricin...Numerical Smoothing and Hierarchical Approximations for E cient Option Pricin...
Numerical Smoothing and Hierarchical Approximations for E cient Option Pricin...Chiheb Ben Hammouda
 
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...Chiheb Ben Hammouda
 
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptxL-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptxRiyadhJack
 

Similar to SPM 12 practical course by Volodymyr B. Bogdanov (Kyiv 2015, Day 2) (20)

Ch 12 Slides.doc. Introduction of science of business
Ch 12 Slides.doc. Introduction of science of businessCh 12 Slides.doc. Introduction of science of business
Ch 12 Slides.doc. Introduction of science of business
 
How to use statistica for rsm study
How to use statistica for rsm studyHow to use statistica for rsm study
How to use statistica for rsm study
 
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
MCQMC 2020 talk: Importance Sampling for a Robust and Efficient Multilevel Mo...
 
ICCF_2022_talk.pdf
ICCF_2022_talk.pdfICCF_2022_talk.pdf
ICCF_2022_talk.pdf
 
Admissions in India 2015
Admissions in India 2015Admissions in India 2015
Admissions in India 2015
 
Lecture 2-Filtering.pdf
Lecture 2-Filtering.pdfLecture 2-Filtering.pdf
Lecture 2-Filtering.pdf
 
PhD defense talk slides
PhD  defense talk slidesPhD  defense talk slides
PhD defense talk slides
 
SIAM SEAS Talk Slides
SIAM SEAS Talk SlidesSIAM SEAS Talk Slides
SIAM SEAS Talk Slides
 
Cointegration analysis: Modelling the complex interdependencies between finan...
Cointegration analysis: Modelling the complex interdependencies between finan...Cointegration analysis: Modelling the complex interdependencies between finan...
Cointegration analysis: Modelling the complex interdependencies between finan...
 
IRJET- Analytic Evaluation of the Head Injury Criterion (HIC) within the Fram...
IRJET- Analytic Evaluation of the Head Injury Criterion (HIC) within the Fram...IRJET- Analytic Evaluation of the Head Injury Criterion (HIC) within the Fram...
IRJET- Analytic Evaluation of the Head Injury Criterion (HIC) within the Fram...
 
Spillover Dynamics for Systemic Risk Measurement Using Spatial Financial Time...
Spillover Dynamics for Systemic Risk Measurement Using Spatial Financial Time...Spillover Dynamics for Systemic Risk Measurement Using Spatial Financial Time...
Spillover Dynamics for Systemic Risk Measurement Using Spatial Financial Time...
 
reliability workshop
reliability workshopreliability workshop
reliability workshop
 
D040101030040
D040101030040D040101030040
D040101030040
 
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
 
Ch14_slides.pdf
Ch14_slides.pdfCh14_slides.pdf
Ch14_slides.pdf
 
Numerical Smoothing and Hierarchical Approximations for E cient Option Pricin...
Numerical Smoothing and Hierarchical Approximations for E cient Option Pricin...Numerical Smoothing and Hierarchical Approximations for E cient Option Pricin...
Numerical Smoothing and Hierarchical Approximations for E cient Option Pricin...
 
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
Seminar Talk: Multilevel Hybrid Split Step Implicit Tau-Leap for Stochastic R...
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptxL-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
 
Demand forecasting 3 gp
Demand forecasting 3 gpDemand forecasting 3 gp
Demand forecasting 3 gp
 

More from Volodymyr Bogdanov

Pupillometry tutorial: from A to Z
Pupillometry tutorial: from A to ZPupillometry tutorial: from A to Z
Pupillometry tutorial: from A to ZVolodymyr Bogdanov
 
Peripersonal space journal club, Lyon, CRNL 2019
Peripersonal space journal club, Lyon, CRNL 2019Peripersonal space journal club, Lyon, CRNL 2019
Peripersonal space journal club, Lyon, CRNL 2019Volodymyr Bogdanov
 
Bufacchi 2018 journal_club_short
Bufacchi 2018 journal_club_shortBufacchi 2018 journal_club_short
Bufacchi 2018 journal_club_shortVolodymyr Bogdanov
 
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Lyon/Kyiv 2018...
Psychtoolbox (PTB) practical course  by Volodymyr B. Bogdanov, Lyon/Kyiv 2018...Psychtoolbox (PTB) practical course  by Volodymyr B. Bogdanov, Lyon/Kyiv 2018...
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Lyon/Kyiv 2018...Volodymyr Bogdanov
 
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 2
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 2Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 2
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 2Volodymyr Bogdanov
 
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 1
Psychtoolbox (PTB) practical course  by Volodymyr B. Bogdanov, Kyiv 2017, Day 1Psychtoolbox (PTB) practical course  by Volodymyr B. Bogdanov, Kyiv 2017, Day 1
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 1Volodymyr Bogdanov
 

More from Volodymyr Bogdanov (6)

Pupillometry tutorial: from A to Z
Pupillometry tutorial: from A to ZPupillometry tutorial: from A to Z
Pupillometry tutorial: from A to Z
 
Peripersonal space journal club, Lyon, CRNL 2019
Peripersonal space journal club, Lyon, CRNL 2019Peripersonal space journal club, Lyon, CRNL 2019
Peripersonal space journal club, Lyon, CRNL 2019
 
Bufacchi 2018 journal_club_short
Bufacchi 2018 journal_club_shortBufacchi 2018 journal_club_short
Bufacchi 2018 journal_club_short
 
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Lyon/Kyiv 2018...
Psychtoolbox (PTB) practical course  by Volodymyr B. Bogdanov, Lyon/Kyiv 2018...Psychtoolbox (PTB) practical course  by Volodymyr B. Bogdanov, Lyon/Kyiv 2018...
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Lyon/Kyiv 2018...
 
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 2
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 2Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 2
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 2
 
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 1
Psychtoolbox (PTB) practical course  by Volodymyr B. Bogdanov, Kyiv 2017, Day 1Psychtoolbox (PTB) practical course  by Volodymyr B. Bogdanov, Kyiv 2017, Day 1
Psychtoolbox (PTB) practical course by Volodymyr B. Bogdanov, Kyiv 2017, Day 1
 

Recently uploaded

BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxBREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxPABOLU TEJASREE
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxFarihaAbdulRasheed
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxpriyankatabhane
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Forest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantForest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantadityabhardwaj282
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentationtahreemzahra82
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)riyaescorts54
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxmalonesandreagweneth
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxpriyankatabhane
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real timeSatoshi NAKAHIRA
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxNandakishor Bhaurao Deshmukh
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPirithiRaju
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Patrick Diehl
 
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...lizamodels9
 
Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2John Carlo Rollon
 

Recently uploaded (20)

BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxBREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptx
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
 
Hot Sexy call girls in Moti Nagar,🔝 9953056974 🔝 escort Service
Hot Sexy call girls in  Moti Nagar,🔝 9953056974 🔝 escort ServiceHot Sexy call girls in  Moti Nagar,🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Moti Nagar,🔝 9953056974 🔝 escort Service
 
Forest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantForest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are important
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentation
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real time
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdf
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?
 
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
 
Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2
 
Engler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomyEngler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomy
 

SPM 12 practical course by Volodymyr B. Bogdanov (Kyiv 2015, Day 2)

  • 1. SPM 12 practical course by Volodymyr B. Bogdanov vlabogd@yahoo.com Kyiv 2015 Day 2: Event-related design first (individual) level statistical analysis and second (group) level analysis Model specification, Factor design and Review, Estimation, Inference
  • 2. Formula: Y =Y = αα ++ ββ11 XX11 + …+ … ββnn XXnn ++ εε Y – data X – function (predictor, regressor)X – function (predictor, regressor) αα – intercept (baseline) ββ – parameter (slope)– parameter (slope) εε – error (residuals)– error (residuals) What is GLM? Generalized Liner Model
  • 3. data = response + noise + drift + + X Y = Matalb syntaxis: glmfit( [X; drift; noise]’, Y) ans = -0.0000 (αα) 1.0000 (ββ for X) 1.0000 (ββ for drift) 1.0000 (ββ for noise) drift noise
  • 4. εε – error (residuals)– error (residuals) Y – data X – function (predictor, regressor)X – function (predictor, regressor) α – intercept (baseline) ββ–parameter(slope)–parameter(slope) glmfit(X, Y) ans = 1.0093 (α) 1.0899 (β) X Y
  • 5. εε – error (residuals)– error (residuals) X – function (predictor, regressor)X – function (predictor, regressor) X εε
  • 6. Chapter 32 Face group fMRI data Chapter 31 Face fMRI data SPM12 Manual C:spm12man Functional images Contrast images (one individual) Contrast images (many individuals) First level; Fixed effects - locally relevant Second level; Radom effects - population relevant Contrast images (one group)
  • 7. Briefly, this is a 2 factorial study with factors “fame” and “repetition” where famous and non-famous faces were presented twice against a checkerboard baselin. The subject was asked to make fame judgements by making key presses.
  • 8. There are thus four event-types of interest; first and second presentations of famous and non-famous faces, which we denote N1, N2, F1 and F2. Two independent factors: “N” Non-famous “F” Famous “1” first presentation “2” second presentation
  • 9. Non-famous, first presentation: N1 Non-famous, second presentation: N2 Famous, first presentation: F1 Famous, second presentation: F2
  • 10. Categorical 2 factor design Parametric 2 factor designCategorical 2 factor design Parametric 2 factor design
  • 11. Preprocessing, event related design (Chapter 31, Face fMRI data): 1. Reorientation 2. Realignment 3. Slice timing correction 4. Coregistration 5. Segmentation 6. Normalisation of functional images 7. Normalisation of the structural image 8. Smoothing
  • 12. N=24 axial slices acquired with a TR=2s (time between the onset of the first slice of one volume and the first slice of next volume). TA is the time between the onset of the first and last slice of one volume (i.e. TA = TR - TR/N) The most superior slice was sampled first. But in the file the first slice (slice number 1) is the most inferior slice, making the slice acquisition order [24 23 22 ... 1]. Slice timing correction: rationale 2 sec. delay!
  • 13. After preprocessing is finished, it is time for statistical analysis. I will try to cover following questions: Categorical and parametric designs Design matrix – how to read and understand it Basis hemodynamic response function (HRF) and its time and dispersion derivatives. T and F contrast matrices Two-factor factorial design specification. (from the SPM Manual) Statistical inferences Statistical table – how to read and understand it Event-related peristimulus histogram (PSTH). (from the SPM Manual) How to set different contrasts manually. Parametric design model specification and plotting parametric response. (from the SPM Manual)
  • 14. Categorical design: what is it: Modeling different features of the stimuli as separate conditions, e.g. non- famous and famous faces, or first and second presentation of the same image.
  • 15.
  • 17. Categorical 2 factor design: resulting design matrix
  • 18. N1 condition Red – stimuli onsets Blue – expected BOLD response How to read design matrix? The modeled responses to different conditions are arranged in columns. Raws represent scans (2 sec each in our case)
  • 19. Scans (“images”), 2 seconds each. Red – stimuli onsets Blue – expected BOLD response
  • 20. Expected BOLD responses to two conditions Blue – N1 condition Red – F1 stimuli onsets
  • 21. N1 t d Modeling time and dispersion derivatives of N1
  • 22. Modeling time and dispersion derivatives of N1 What is time and dispersion derivatives and why it is useful to include them in the model?
  • 23.
  • 24. Combinations of canonical hemodynamic response function (HRF) and its time derivative (t), correction for delay of response HRF-tHRF+t
  • 25. HRF-d HRF+d Combinations of canonical hemodynamic response function (HRF) and its dispersion derivative (d), correction for duration of response.
  • 26. N1 t d N2 t d F1 t d F2 t d motion parameters
  • 27. What is T and F teststs? T-test – one-directional effects (increase, decrease). F-test – non-directional effects (either increase or decrease). How to combine or compare different conditions (repressors, predictors)? T or F contrasts Examples: T-contrast [1]: Condition has positive effect F-contrast [1]: Condition has positive or negative effect T-contrast [1 1]: I total two conditions have positive effect F-contrast [1 1]: In total two conditions have positive or negative effect
  • 28. T-contrast [1 0 0]: First condition has positive effect
  • 29. F-contrast [1 0 0]: Condition has positive or negative effect
  • 30. T-contrast [1 1 0]: The first and second conditions have positive effect, controlled for any effects of the third. F-contrast [1 0 0; 0 1 0]: Either first, or the second or both conditions have either positive or negative effect controlled for effect of the third. If the first has positive and the second has negative effect it still works.
  • 31. T-contrast [1 1 0]: In total two conditions have positive effect, controlled for the effect of the third
  • 32. F-contrast [1 0 0; 0 1 0]
  • 33. T-contrast [1 -1 0]: First condition has greater has positive effect than the second, controlled for effect of the third F-contrast [1 -1 0]: First condition has somehow different effect, than the second, controlled for effect of the third T-contrast [1 -0.5 -0.5]: First condition has greater has positive effect than two other conditions. F-contrast [1 -1 0; 0 1 -1]: There is a difference of effects between 3 conditions
  • 34. F-contrast [1 -1 0]: First condition has somehow different effect, than the second, controlled for effect of the third
  • 35. T-contrast [1 -1 0]: First condition has greater has positive effect than the second, controlled for effect of the third
  • 36. What is factorial design? It is a set of contrasts for complete combination of all levels of all factors (2 factors in this case, factor “fame” and factor “repetition”). It can be set manually at the stage of contrast manager, but if indicated in model specification proper contrasts are generated automatically. In current example Factorial design allows to estimate: Effect of fame (controlled for repetition) Effect of repetition (controlled for fame) Interaction of two effects.
  • 37. Category TD Category UD Category UECategory TE Category TD Category UD Category UECategory TE Effect of “easiness”: vs vs Effect of “tastiness”: Interaction of the two: Category TD Category UE Category UD Category TE vs
  • 38. Category TD Category UD Category UECategory TE Effect of “easiness”: vs Consumption at the party UD UE TD TE
  • 39. Preference among children UD UE TD TE Category TD Category UD Category UECategory TE vs Effect of “tastiness”:
  • 40. Interaction of the two: Category TD Category UE Category UD Category TE vs For example Craving can be higher for untasty difficult and tasty easy, then for others. UD UE TD TE
  • 41. The order of naming these factors is important - the factor to be specified first is the one that “changes slowest” In the list of conditions (1) N1, (2) N2, (3) F1, (4) F2 the factor “repetition” changes every condition and the factor “fame” changes every other condition. So “Fame” changes slowest and is entered first. Factor 1 (2 levels) Fame Factor 2 (2 levels) Repetition N1 0 0 N2 0 1 F1 1 0 F2 1 1 Always remeber the order of conditions! Important for settings of the statistical contrasts.
  • 42. Factor 1 (2 levels) Repetition Factor 2 (2 levels) Fame N1 0 0 F1 0 1 N2 1 0 F2 1 1 If the list of conditions is different (1) N1, (2) F1, (3) N2, (4) F2 the factor “Fame” changes every condition and the factor “Repetition” changes every other condition. So “Repetition” changes slowest and is entered first.
  • 43. MIP – maximum intensity projections over glass-brain Current contrast (T-contrast) [1 0 0 1 0 0 1 0 0 1] Design matrix Peak-level statistical threshold Statistical results:
  • 44. x, y, z (mm): coordinates in MNI space for each maximum. Statistical results (table):
  • 45. Peak-level: the chance (p) of finding (under the null hypothesis) a peak with this or a greater height (T-statistic), uncorrected for search volume.
  • 46. Peak-level: the chance (p) of finding (under the null hypothesis) a peak with this or a greater height (T-statistic), corrected (FWE – familywise error) (GOOD!)
  • 47. Cluster is a number of voxels that reach the threshold, size of the cluster (in voxels)
  • 48. Cluster is a number of voxels that reach the threshold, size of the cluster (in voxels)
  • 49. Cluster-level: the chance (p) of finding a cluster with this many (ke) or a greater number of voxels, corrected (FWE or FDR) / uncorrected for search volume
  • 50. Parametric design: what is it? Modeling a feature of a condition as continuous variable, e.g. the interval between the first and the second occurrence of the presentation of the same face.
  • 51. Parametric modulator – weight of one unit 500 g 3000 g 200 g 100 g … 150 g 300 g
  • 53. Second level statistics – effect of faces in general (pulled across conditions) 1. One canonical HRF 2. Informed set – canonical + 3 derivatives 3. Finite impulse response Chapter 32 Face group fMRI data