Covariance(协方差):
Cosine Similarity:
Pearson Corelattion Coefficient:
这篇文章写得不错:https://www.zhihu.com/question/20852004