Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7662487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:48:55+00:00 2026-05-31T13:48:55+00:00

This question is with respect to the Recommendation part of Apache Mahout using Pearson’s

  • 0

This question is with respect to the Recommendation part of Apache Mahout using Pearson’s coefficient for measuring similarity between users. According to my understanding, here is how Pearson’s coefficient measures similarity between users.

Let’s say 2 users rate 5 items a, b, c, d and e. Let’s say their ratings are a1, b1, c1, d1, e1 and a2, b2, c2, d2, e2. Now, Pearson’s coefficient gives an estimate of the least square straight line fit considering the points (a1, a2), (b1, b2), (c1, c2), (d1, d2) and (e1, e2). I understand that the main purpose behind doing this (based on my reading elsewhere) is that you want to represent the accuracy of being able to predict the other user’s rating for any object, given the current user’s rating. Now if the points lie on a straight line, it means you can predict the other person’s rating given the current user’s rating. So, the coefficient would be 1. On the other hand, if the points don’t lie on a straight line, the least square fit is represented on a scale of -1 to 1, 0 being that they are totally offset and there is no relationship at all, and 1/-1 being a perfect fit.

Now, my question is that why only straight line? Why cannot we decide if they lie on a parabola for example and then calculate a similar coefficient accordingly (as to how well a parabola fits)? Why do we check only for a straight line fit?

Thanks
Abhishek S

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:48:56+00:00Added an answer on May 31, 2026 at 1:48 pm

    Well that’s just how the Pearson correlation coefficient is defined.

    It is one possible similarity metric and it is indeed measuring the degree to which two sets of preferences move together proportionally. If you believe that this assumption is appropriate for your data set, it will be a reasonable metric. If not, you’d use another metric.

    You could implement a similarity metric that defines similarity some other way, sure.

    But, in practice, why would another relationship make sense here? Similarity ought to be symmetric, and a two sets of preferences can’t each be proportional to the square of the other. I think the common linear relationship is the reasonable one to look for.

    Of course there are plenty of other similarity metrics, arguably better, that have nothing to do with evaluating a relationship like this, like the log-likelihood ratio.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is really basic. What is the performance difference between removing a UIView
This question is related to another question I wrote: Trouble using DOTNET from PHP.
This question is with respect to local host on my PC which is shared
I am new to Ruby . I have a question with respect to using
In answering this question, I came across this difference in behaviour with respect to
With respect to this question , is it always necessary to have perfectly concurrent-safe
With respect to this question, we can declare a function that returns pointer to
to be honest- ive asked (a part of this question) here but now i
With respect to this question , simply putting a jar into the /libs does
This question is directly related to this SO question I posed about 15 minutes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.