Professional Documents
Culture Documents
x1
x 2
x3
e.g. X(2,3) = 6 1 1
• ones(2) =
1 1
X(3, :) = 7 8 9
8 1 6
X( [2 3], 2) = 5 • magic(3) = 3 5 7
4 9 2
8
Y
ve ta
ct
or
=
=
X
m es i g
at n
ri
x
pa
= r
am
( h he t et
er
er b s
+
+
e : et
Design matrix
1 as
to
9)
er
ve ror
ct
or
Transposition
1 3
b 1 dT 4
bT 1 1 2 d 3 4 9
2 9
column row row column
1 2 3 1 5 6
A 5 4 1 AT 2 4 7
6 7 4 3 1 4
2 4 1 0 2 1 4 0 3 4
AB
2 5 3 1 2 3 5 1 5 6
Subtraction
- By adding a negative matrix
A1 A 2 A 3 B13 B14
m A4 A 5 A 6 x B15 B16 k = m x l matrix
A7 A 8 A 9 B17 B18
A10 A11 A12
det(A) =
[ ]
a
c
b
d
= ad - bc
b
If a 0 then x a 1b thus there is single solution
a
If a 0 , b 0 then the equation ax b becomes 0 0
and any value of x will do
X =A-1B
Linear Algebra & Matrices, MfD 2009
• X =A-1B
• To find A-1 1 1 d b
A
det(A) c a
• Need to find determinant of matrix A
a b
det( A) ad bc
c d
• From earlier
2 3
1 2 (2 -2) – (3 1) = -4 – 3 = -7
• So determinant is -7
1 x a 1b
if B is 4
1 2 3 1 1 14 2
X
7 1 2 4 7 7 1
So
Statistical RFT
Normalisation Inference
Anatomical p <0.05
reference Parameter estimates
Model
Model
specification
specification
Parameter
Parameter
estimation
estimation
Time
Hypothesis
Hypothesis
Statistic
Statistic
Ti
m
e
BOLD signal
single
singlevoxel
voxel
time SPM
timeseries
series SPM
Linear Algebra & Matrices, MfD 2009
How are matrices relevant to fMRI data?
GLM equation
s
er
et
at n
ve ror
ve ta
m es i g
am
or
or
x
da
er
ri
ct
ct
r
d
pa
= +
Y = X +
Preprocessing .
..
Response variable
Y
e.g BOLD signal at a particular
voxel
Time
me
Ti
A single voxel sampled at successive time
points.
Each voxel is considered as independent
observation.
Intens
ity
Y
Y= X.β +ε
Linear Algebra & Matrices, MfD 2009
How are matrices relevant to fMRI data?
s
er
Explanatory variables
et
at n
m s ig
am
x
ri
de
r
pa
– These are assumed to be
measured without error.
– May be continuous;
– May be dummy, indicating
levels of an experimental
factor.
Solve equation for β – tells us how
much of the BOLD signal is
explained by X
X Y= X.β +ε
Linear Algebra & Matrices, MfD 2009
In Practice
• Estimate MAGNITUDE of signal changes
• MR INTENSITY levels for each voxel at
various time points
• Relationship between experiment and voxel
changes are established
• Calculation and notation require linear algebra
Y = X . β + ε
Observed = Predictors * Parameters + Error
BOLD = Design Matrix * Betas + Error