1. Pearson Pearson correlation coefficientPearson's correlation coefficient is also known as Pearson's correlation coefficient, which is used to reflect the statistical similarity between the two variables. Or to represent the similarity of two
The correlation coefficient of measurement correlation is many, the calculation method and characteristics of various parameters are different.Related indicators for continuous variables:At this time, the correlation coefficient of product
Both the user CF and the item CF rely on the similarity calculation, because only by measuring the similarity between the user or the item can the user's "neighbor" be found to complete the recommendation. The calculation of similarity is briefly
To sort out the recent Pearson similarity calculation in the collaborative filtering recommendation algorithm, incidentally learning the simple use of the next R language, and reviewing the knowledge of probability statistics.
I. Theory of
Suppose the data is as follows, where the row represents the user, and the column represents the rating item:
Let's look at the three formulas first.
Cosine similarity (cosine-based similarity):
Pearson coefficient (Pearson correlation):
To sort out the recent Pearson similarity calculation in the collaborative filtering recommendation algorithm, incidentally learning the simple use of the next R language, and reviewing the knowledge of probability statistics.I. Theory of
Similarity between vectors
There are many ways to measure the similarity between vectors. You can use the reciprocal of distance (various distances), vector angle, Pearson correlation coefficient, and so on.
Pearson correlation coefficient
Study on the correlation coefficient of Pearson's accumulated momentPearson correlation coefficients (Pearson Correlation coefficient) are often used when doing similarity calculations, so how do you understand the coefficients? What is its
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.