What is 'Cosine Similarity'?

What is 'Cosine Similarity'?

Approach: Define similarity based on the angle between vectors.

A measure of similarity between two non-zero vectors of an inner product space. It measures the cosine of the angle between them, ranging from -1 to 1. It is independent of vector magnitude.

Follow-up: Why is it used in text mining?

Key concepts: dot product, magnitude, vectors.