FMRI: Biological Basis and Experiment Design Lecture 22: GLM 101 Which linear equations? Design matrix Solution assuming HIRF, single voxel  +==+

Slides:



Advertisements
Similar presentations
Example 1 Matrix Solution of Linear Systems Chapter 7.2 Use matrix row operations to solve the system of equations  2009 PBLPathways.
Advertisements

The General Linear Model Or, What the Hell’s Going on During Estimation?
Solving Equations = 4x – 5(6x – 10) -132 = 4x – 30x = -26x = -26x 7 = x.
Example 1 Solve ax b c for x. Then use the solution to solve Solve a literal equation + = += 2x SOLUTION STEP 1 Solve ax b c for x. += ax b c Write.
FMRI: Biological Basis and Experiment Design Lecture 23: GLM in multiple voxels Errata Final project review Keeping track of space Multi-voxel GLM Before.
FMRI: Biological Basis and Experiment Design Lecture 17: Baselines, SNR & CNR Visualizing data Trial triggered average Baselines SNR and CNR –Block vs.
Chapter 2 Section 2 Solving a System of Linear Equations II.
Math 015 Section 6.1 Equations. Many students like to remember the process for solving linear equations as: any algebra expressions on each side variable.
FMRI: Biological Basis and Experiment Design Lecture 24: GLM in all its glory.
EXAMPLE 2 Solve a matrix equation SOLUTION Begin by finding the inverse of A = Solve the matrix equation AX = B for the 2 × 2 matrix X. 2 –7 –1.
Section 8.3 – Systems of Linear Equations - Determinants Using Determinants to Solve Systems of Equations A determinant is a value that is obtained from.
Write and graph a direct variation equation
7 = 7 SOLUTION EXAMPLE 1 Check the intersection point Use the graph to solve the system. Then check your solution algebraically. x + 2y = 7 Equation 1.
Solve Systems of Equations By Graphing
3.2 Solving Systems Algebraically
CHAPTER 7-1 SOLVING SYSTEM OF EQUATIONS. WARM UP  Graph the following linear functions:  Y = 2x + 2  Y = 1/2x – 3  Y = -x - 1.
WARM UP LINEAR EQUATIONS Solve the equation (Lesson 3.1, 3.4) 1.5(2x + 4) = 2(10 + 5x) 2.2x + 6(x + 1) = -2 3.
Unit 1 Test Review Answers
Advanced Algebra Notes
Solving Systems Using Elimination
Section 7.1 Solving Linear Systems by Graphing. A System is two linear equations: Ax + By = C Dx + Ey = F A Solution of a system of linear equations in.
Advanced Algebra - Trigonometry Objective: SWBAT solve linear equations. 1.
Linear Inequalities And Absolute Value Solving Inequalities Multiplication/Division “ALGEBRA SWAG” “ALGEBRA SWAG” -
3.6 Solving Absolute Value Equations and Inequalities
Copyright © 2011 Pearson, Inc. P.3 Linear Equations and Inequalities.
Linear Algebra Diyako Ghaderyan 1 Contents:  Linear Equations in Linear Algebra  Matrix Algebra  Determinants  Vector Spaces  Eigenvalues.
1 ECE 1304 Introduction to Electrical and Computer Engineering Section 1.7 Linear Algebra with MATLAB.
Solving by Substitution Method or Elimination (Addition) Method
§ 2.2 The Addition Property of Equality. Angel, Elementary Algebra, 7ed 2 Linear Equations A linear equation in one variable is an equation that can be.
1 Beginning & Intermediate Algebra – Math 103 Math, Statistics & Physics.
Algebra 7.5 Special Types of Linear Systems. Solve the Linear System -4x + 2y = 6 -2x + y = 3 4x - 2y = -6 0 = 0 0 = 0 What does this mean? The final.
One Answer, No Answers, or an Infinite Number of Answers.
3.1 – Solve Linear Systems by Graphing A system of two linear equations in two variables x and y, also called a linear system, consists of two equations.
Linear Algebra Diyako Ghaderyan 1 Contents:  Linear Equations in Linear Algebra  Matrix Algebra  Determinants  Vector Spaces  Eigenvalues.
GUIDED PRACTICE for Example – – 2 12 – 4 – 6 A = Use a graphing calculator to find the inverse of the matrix A. Check the result by showing.
EXAMPLE 4 Solve linear systems with many or no solutions Solve the linear system. a.x – 2y = 4 3x – 6y = 8 b.4x – 10y = 8 – 14x + 35y = – 28 SOLUTION a.
Notes Over 3.1 Solving a System Graphically Graph the linear system and estimate the solution. Then check the solution algebraically.
EXAMPLE 1 Solve a system graphically Graph the linear system and estimate the solution. Then check the solution algebraically. 4x + y = 8 2x – 3y = 18.
Algebra Review. Systems of Equations Review: Substitution Linear Combination 2 Methods to Solve:
Algebra 1 Section 4.2 Graph linear equation using tables The solution to an equation in two variables is a set of ordered pairs that makes it true. Is.
2( ) 8x + 14y = 4 -12x – 14y = x = x = 4 8x + 14y = 4 8(4) + 14y = y = y = -28 ___ ___ y = -2 The solution is (4, -2)
PreCalculus Section 14.3 Solve linear equations using matrices
Algebra 1 Section 6.5 Graph linear inequalities in two variables.
Review Problems Matrices
10.8 Systems of Second-Degree Equations and Inequalities
Solve a literal equation
Solving Linear Equations
The General Linear Model (GLM): the marriage between linear systems and stats FFA.
Notes Over 9.6 An Equation with One Solution
Algebra: Equations and Inequalities
Preview Linear Systems Activity (on worksheet)
Solving Linear Systems Algebraically
Solve a system of linear equation in two variables
Solving Equations with variables on each side
Find 4 A + 2 B if {image} and {image} Select the correct answer.
Use Inverse Matrices to Solve Linear Systems
Linear Algebra Lecture 3.
Click the problem to show the answers.
SECTION 2-4 : SOLVING EQUATIONS WITH THE VARIABLE ON BOTH SIDES
Objectives Identify solutions of linear equations in two variables.
SYSTEMS OF LINEAR EQUATIONS
Solving Linear Equations by Graphing
Linear Algebra Lecture 6.
Systems of Equations Solve by Graphing.
Algebra 1B – Name: _________________________
Objective: Students will solve systems by graphing
Solving a System of Linear Equations
ALGEBRA I - REVIEW FOR TEST 2-1
Linear Algebra Lecture 28.
Warm- Up: Solve by Substitution
Presentation transcript:

fMRI: Biological Basis and Experiment Design Lecture 22: GLM 101 Which linear equations? Design matrix Solution assuming HIRF, single voxel  +==+

Linear algebra A 1 x 1 + A 2 x 2 + A 3 x 3 + A 4 x 4 = y Ax = y is the same as where A =x = A 1 A 2 A 3 A 4 x1x2x3x4x1x2x3x4

Linear algebra A 1,1 x 1 + A 2,1 x 2 + A 3,1 x 3 + A 4,1 x 4 = y 1 A 1,2 x 1 + A 2,2 x 2 + A 3,2 x 3 + A 4,2 x 4 = y 2 A 1,3 x 1 + A 2,3 x 2 + A 3,3 x 3 + A 4,3 x 4 = y 3 A 1,m x 1 + A 2,m x 2 + A 3,m x 3 + A 4,m x 4 = y m A 1,1 A 2,1 A 3,1 A 4,1 A 1,2 A 2,2 A 3,2 A 4,2 A 1,3 A 2,3 A 3,3 A 4,3 A 1,m A 2,m A 3,m A 4,m A = x = x1x2x3x4x1x2x3x4 y = y1y2y3ymy1y2y3ym stimulus 1 at t=2 response to stimulus 2 time stimulus type

A 1,1 A 2,1 A 3,1 A 4,1 A 1,2 A 2,2 A 3,2 A 4,2 A 1,3 A 2,3 A 3,3 A 4,3 A 1,m A 2,m A 3,m A 4,m Linear model for BOLD in a voxel A = x = x1x2x3x4x1x2x3x4 y = y1y2y3ymy1y2y3ym Ax = y Design matrix, [m x n] - m time-points - n stimulus types Data [m x 1] - response through time Responses [n x 1] - for each stimulus, a scalar (single number) representing how well that voxel responds to that stimulus

Design matrix stim 1stim 2stim 3 stim 1 stim 2 stim 3 Matrix form for GLM

Design matrix: assuming shape of HIRF stim 1stim 2stim 3stim 1stim 2stim 3  = time

Design matrix: modeling data A x  = stim 1 stim 2 stim 3 BOLD

Solving linear model for BOLD in a voxel Ax = y A 1,1 A 2,1 A 3,1 A 4,1 A 1,2 A 2,2 A 3,2 A 4,2 A 1,3 A 2,3 A 3,3 A 4,3 A 1,m A 2,m A 3,m A 4,m A = x = x1x2x3x4x1x2x3x4 y = y1y2y3ymy1y2y3ym Design matrix, [m x n] - m time-points - n stimulus types Data [m x 1] - response through time Responses [n x 1] - for each stimulus, a scalar (single number) representing how well that voxel responds to that stimulus measured known... the answer

Solving linear model for BOLD in a voxel Ax = y A T Ax = A T y (A T A) -1 (A T A)x = (A T A) -1 A T y x = (A T A) -1 A T y

Solving linear model for BOLD in a voxel x = (A T A) -1 A T y x = (A T A) -1 A T y =

Linear model for BOLD in a voxel, with noise A(x +  ) = y +  where A = design matrix [nTimepoints x nStimTypes ], x = concatenated responses [nStimTypes x 1], y = true response [nTimepoints x 1]  = noise in data [nTimepoints x 1]  = error in estimating response [nStimTypes x 1] Solution: x est = x +  = (A T A) -1 A T (y +  ), so  = (A T A) -1 A T 

A(x +  ) = y +  x est = x +  = (A T A) -1 A T (y +  ) A*x est y +  x est = x =

Example: block design with linear trend Design matrix:Solution: x = [ 1 ; 0.2]; x est = [ 1.01 ; 0.24 ]

Example: block design with linear trend Design matrix:Solution: x = [ -0.5 ; 0.2]; x est = [ ; 0.25 ]