如何实现贝叶斯平均算法二元评级制度 [英] How to implement the Bayesian average algorithm for a binary rating system
问题描述
我有一个系统,人们可以投票向上或向下投一个项目,我想显示的结果为5星评级。
I have a system where people can up vote or down vote an item and I want to display the results of that as a 5 star rating.
我一直在尝试使用贝叶斯评分算法在这里解释 和<一HREF =http://en.wikipedia.org/wiki/Bayesian_average相对=nofollow>此处没有成功。
I have been trying use the Bayesian Rating algorithm explained here and here with no success.
例如:我在数据库中有三个项目(A,B和C):
For example: I have three items (A, B and C) in my database:
A = 500向上和向下500票 B = 0 UP和1000向下票 C = 0向上和向下1000票
A = 500 UP and 500 down votes B = 0 UP and 1000 down votes C = 0 UP and 1000 down votes
我如何计算贝叶斯平均得分为每一个项目,使其具有的规模为1分至5?
How do i calculate the Bayesian average rating for each item so that it has a score on a scale of 1 to 5?
推荐答案
本博客文章,的如何不至按平均评分,准确地描述你的情况,以及如何使用威尔逊解决呢分数置信区间。书签交易用这个效果良好。
This blog post, How Not To Sort By Average Rating, describes exactly your situation, and how to solve it using a Wilson Score confidence interval. Reddit used this to good effect.
这篇关于如何实现贝叶斯平均算法二元评级制度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!