Linear Algebra III: vector spaces Math Tools for Neuroscience (NEU - - PowerPoint PPT Presentation

linear algebra iii vector spaces
SMART_READER_LITE
LIVE PREVIEW

Linear Algebra III: vector spaces Math Tools for Neuroscience (NEU - - PowerPoint PPT Presentation

Linear Algebra III: vector spaces Math Tools for Neuroscience (NEU 314) Fall 2016 Jonathan Pillow Princeton Neuroscience Institute & Psychology. Lecture 4 (Tuesday 9/27) accompanying notes/slides Outline Last time: linear


slide-1
SLIDE 1

Math Tools for Neuroscience (NEU 314) Fall 2016 Jonathan Pillow

Princeton Neuroscience Institute & Psychology. accompanying notes/slides Lecture 4
 (Tuesday 9/27)

Linear Algebra III: vector spaces

slide-2
SLIDE 2

Outline

Last time:

  • linear combination
  • linear independence / dependence
  • matrix operations: transpose, multiplication, inverse

Topics:

  • matrix equations
  • vector space, subspace
  • basis, orthonormal basis
  • orthogonal matrix
  • rank
  • row space / column space
  • null space
  • change of basis
slide-3
SLIDE 3

inverse

  • If A is a square matrix, its inverse A-1 (if it exists) satisfies:

“the identity” (eg., for 4 x 4)

slide-4
SLIDE 4

The identity matrix

“the identity” (eg., for 4 x 4)

for any vector

slide-5
SLIDE 5

two weird tricks

  • inverse of a product
  • transpose of a product
slide-6
SLIDE 6

(Square) Matrix Equation

assume (for now) square and invertible left-multiply both sides by inverse of A:

slide-7
SLIDE 7

vector space & basis

1

v

1

v

2

v

2

v

1

v

  • vector space - set of all points that can be obtained by

linear combinations some set of vectors

  • basis - a set of linearly independent vectors that generate

(through linear combinations) all points in a vector space Two different bases for the same 2D vector space (subspace of R2) 1D vector space

slide-8
SLIDE 8

span - to generate via linear combination

1

v

1

v

2

v

2

v

1

v

  • vector space - set of all points that can be spanned

by some set of vectors

  • basis - a set of vectors that can span a vector space

Two different bases for the same 2D vector space (subspace of R2) 1D vector space

slide-9
SLIDE 9
  • rthonormal basis
  • basis composed of orthogonal unit vectors

1

v

2

v

2

v

1

v

  • Two different orthonormal bases

for the same vector space

slide-10
SLIDE 10

Orthogonal matrix

  • Square matrix whose columns (and rows) form an
  • rthonormal basis (i.e., are orthogonal unit vectors)

Properties: length- preserving

slide-11
SLIDE 11
  • 2D example: rotation matrix

1

^ e ) ^ ( 2 e

Ο

) ^ ( 1 e . .g e

2

^ e

=

Ο Ο Ο =

sin θ cosθ cosθ sin θ

] [

( )

Orthogonal matrix

slide-12
SLIDE 12

Rank

  • the rank of a matrix is equal to
  • the rank of a matrix is the dimensionality of the vector

space spanned by its rows or its columns

  • # of linearly independent columns
  • # of linearly independent rows

(remarkably, these are always the same) equivalent definition: for an m x n matrix A:

rank(A) ≤ min(m,n)

(can’t be greater than # of rows or # of columns)

slide-13
SLIDE 13

column space of a matrix W:

n × m matrix

vector space spanned by the columns of W

c1 cm

  • these vectors live in an n-dimensional space, so the

column space is a subspace of Rn

slide-14
SLIDE 14

row space of a matrix W:

n × m matrix

vector space spanned by the rows of W

  • these vectors live in an m-dimensional space, so the

column space is a subspace of Rm

r1 rn

slide-15
SLIDE 15

null space of a matrix W:

  • the vector space consisting of

all vectors that are orthogonal to the rows of W

  • the null space is therefore entirely orthogonal to the row

space of a matrix. Together, they make up all of Rm.

r1 rn

  • equivalently: the null space of W is the vector space of all

vectors x such that Wx = 0.

n × m matrix

slide-16
SLIDE 16

null space of a matrix W:

1

v

1 D v e c t

  • r

s p a c e s p a n n e d b y v 1 W = ( )

v1

n u l l s p a c e basis for null space

slide-17
SLIDE 17
  • Let B denote a matrix whose columns form an
  • rthonormal basis for a vector space W

Vector of projections of v along each basis vector

Change of basis