antirez / lamernews

Lamer News -- an HN style social news site written in Ruby/Sinatra/Redis/JQuery
http://lamernews.com
Other
1.35k stars 199 forks source link

Comment score using Wilson score interval #107

Open nremond opened 12 years ago

nremond commented 12 years ago

Hi,

I think we can easily improve the computation of the comment score. It should be based on the Wilson score interval as explain by Evan Miller here : http://www.evanmiller.org/how-not-to-sort-by-average-rating.html

Thus, I would suggest to patch your compute_score_comment() method as follow : https://gist.github.com/1343554

What do you think ?

jellomaster commented 12 years ago

Yes I think this is a good idea.

nremond commented 12 years ago

About the news sorting, I found this interesting blog entry : http://blog.linkibol.com/2010/05/07/how-to-build-a-popularity-algorithm-you-can-be-proud-of/

The formula here : http://blog.linkibol.com/resource/linkibol.PNG could correspond to what antirez is expecting when he put this comment in the code :

FIXME: For now we are doing a naive sum of votes, without time-based filtering, nor IP filtering.

antirez commented 11 years ago

This change looks great! I'll merge it in the next days. Thanks.