math - A simple vote aggregation function -
i want evaluate acceptance rate of proposal, proposal can receive 2 types of votes: namely positive , negative.
so simplest function comes mind follows:
p + n / p + n + \epsilon
however come more sophisticated function satisfy following 2 properties.
the ratio of positive votes total amount of votes should take precedence.
p1 = 5, n1 = 0, p2 = 99, n2 = 1
function should calculate higher acceptance rate first one.when ratios equal, function should return higher acceptance rate 1 higher number of total votes. in following case
p1 = 1000, n1 = 0, p2 = 10, n2 = 0
again first 1 should have higher acceptance rate.
another idea concerning function following:
w * [p / (p + n)] + (1 - w) * [(p + n) / maxv]
where maxv maximum number of votes proposal received , w real number in [0..1]
.
this function satisfy second condition whereas guarantee not extend first one. finding value w satisfy system cumbersome i'm searching better solution.
Comments
Post a Comment