Definition 3.25 Angular Distance and Cosine Similarity.
Let \(\mathbf u\) and \(\mathbf v\) be two nonzero vectors. Their angular distance is the angle \(\theta\) between them, obtained from (3.4),
\begin{equation}
d_A(\mathbf u,\mathbf v) = \theta
= \cos^{-1}\left(\frac{\mathbf u \cdot \mathbf v}{\|\mathbf u\|\|\mathbf v\|}\right).\tag{3.12}
\end{equation}
The quantity \(\dfrac{\mathbf u \cdot \mathbf v}{\|\mathbf u\|\|\mathbf v\|} = \cos\theta\) appearing inside is called the cosine similarity of \(\mathbf u\) and \(\mathbf v\text{.}\) The smaller the angular distance, the more similar the two vectors.