开发者

Pearson Correlation problem

开发者 https://www.devze.com 2023-03-04 05:16 出处:网络
I\'m not sure which figures to use below in a problem Im trying to solve that involves using the Pearson Correlation formula.

I'm not sure which figures to use below in a problem Im trying to solve that involves using the Pearson Correlation formula.

    A  B  C  D  E  F
Bob 4  5     4  2
Fra 2  2     2  3  2
Lee 2  4  3        5
Cha 5  4     4  1

"Describe a neighbourhood based approach using Pearson Correlation and weighted averages to generate a prediction for whether Bob will like "F". Your answer should outline the main steps in the neighbourhood based approach and show the steps required to generate the prediction"

So I want to find out if Bob wil开发者_如何学运维l like F... (5=Like 1=Dislike) I understand the Pearson Formula but I'm not sure what other 'User' to compare Bob with, or if I'm supposed to consider the views of all users.

I also understand how the answering of homework-like questions is discouraged but I have spent hours scouring the web trying to figure this out.

Any help would be appreciated, thanks in advance.


Probably need to see the specifics of the question to come up with the best answer for the question itself, but one approach that would seem viable would be to compute the correlation between Bob and each other peson (Fra, Lee, and Cha), and weight their scores for F by those correlations.

In this case, since you only have scores for F for Fra and Lee, just take (corr_(Bob, Fra) * 2 + corr_(Bob, Lee))/2

0

精彩评论

暂无评论...
验证码 换一张
取 消