#calculate the pearson correlation between two users, x and y Sxx = sum([i**2 for i in tempRatingList]) - pow(sum(tempRatingList),2)/float(nRatings) Syy = sum([i**2 for