Lukas' Notes

Definition

Cosine Similarity

Let be non-zero vectors. Their cosine similarity is the inner product normalised by the product of their norms:

If is the angle between and , then

Thus means the vectors point in the same direction, means they are orthogonal, and means they point in opposite directions. Cosine similarity compares direction while ignoring scale.