0 - Special Topic: Gram-Schmidt Process Flashcards
What does normalizing a vector do, and how do we calculate it?
Normalizing a vector shrinks or scales it to its unit vector form. This is done by normalizing or dividing the vector’s components by its magnitude. The magnitude is found by taking the square root of the squares of the components.
ex) u1 = v1 / ||v1||
= v1 / sqrt( a2 + b2 )
…where a and b are vector v’s components
Define the “dot” product”.
Dot Product = “Scalar” Product
= “Sum of Products”
= component-wise multiplication, then add them all up
How do you calculate a…
…projb(a) = projection onto b of a?
…proja(b) = projection onto a of b?
projb(a) = projection onto b of a
= some scaled value of the vector b
= ( scalar ) x vector b
= (dot product of a • b) x vector b
= (a • b) x b
…and the reverse for proja(b)
What is the Gram-Schmidt Process in math terms?
The Gram-Schmidt Process is a method of turning a given set of vectors into a set of orthonormal vectors that spans the original entire set.
You can think of it as a 3 part process:
- Pick any arbitrary vector to be our first vector and then normalize that vector by its magnitude. This will give us our first unit vector, u1
u1 = v1 / ||v1|| - Then take our next vector and subtract out its projection onto the first vector of this second vector. Then normalize this vector by its magnitude.
u2 = ( v2 - proju1(v2) ) / ||v2|| - Take our next vector and subtract out its projections onto the first and second vectors. Then normalize this by its magnitude.
u3 = ( v3 - proju1(v3) - proju2(v3) ) / ||v3|| - Repeat step 3 for the rest of the vectors.
u4 = ( v4 - proju1(v4) - proju2(v4) - proju3(v4) - … ) / ||v<span>4</span>||
What is the Gram-Schmidt Process in words?
The Gram-Schmidt Process is a method of turning a given set of vectors into a set of orthonormal vectors that spans the original entire set.
You can think of it as a 3 part process:
- Pick any arbitrary vector to be our first vector and then normalize that vector by its magnitude.
- Then take our next vector and subtract out its projection onto the first vector of this second vector. Then normalize this vector by its magnitude.
- Take our next vector and subtract out its projections onto the first and second vectors. Then normalize this by its magnitude.
- Repeat step 3 for the rest of the vectors.
When you have two vectors a, b with their tails glued at the origin and pointing in different directions, how do you calculate the vertical component of vector a?
= vertical component of a
= entire vector a - the horizontal component of a
= a - projb(a)
What does it mean to be orthogonal?
What does it mean to be orthonormal?
Orthogonal = vectors are 90 degrees from each other = perpendicular
Orthonormal = vectors are orthogonal AND normalized
(ie - they are the unit vectors making up the fundamental directions)