Vector Projection: The Story of a Shadow
Understand how to decompose vectors into orthogonal components by visualizing them as shadows.
Imagine you have two vectors, a and b. The vector projection of a onto b is like finding the "shadow" that vector a would cast on the line defined by vector b if there were a light source shining from directly above.
This "shadow" vector, denoted as projb(a), has two key properties:
- It points in the exact same (or opposite) direction as vector b.
- The line connecting the tip of vector a to the tip of the projection vector is perpendicular (orthogonal) to vector b.
To calculate it, we first find a scalar value that tells us how long the shadow is relative to b. This scalar is found by calculating the dot product of a and b, and then dividing by the squared length of b.
Once we have this scalar, we simply multiply it by vector b to get the final projection vector.
Practice problems coming soon.
In finance, projecting a stock's returns onto the market's returns is a key part of calculating its beta in the Capital Asset Pricing Model (CAPM).