Question: what is the cosine similarity between x and y?
Answer: Cosine similarity between two term-frequency vectors Then xt ⋅ y is the number of attributes possessed (i.e., shared) by both x and y, and |x||y| is the geometric mean of the number of attributes possessed by x and the number possessed by y.