Weighted Average and Ratings

Math is not my forte, and I am in difficulty here.

Basically, all I need is a simple formula that gives a weighted rating on a scale of 1 to 5. If the votes are very small, they have less influence, and the rating print is larger on average (in this case I want it to be 3, not the average of all other ratings).

I tried several different Bayesian implementations, but they did not work. I believe that the graphic representation I'm looking for can be shown as:

     ___
    /
___/

Greetings

+3
source share
3 answers

I would do it this way

1*num(1) + 2*num(2) + 3*num(3) + 4*num(4) + 5*num(5) + A*3
-----------------------------------------------------------
      num(1) + num(2) + num(3) + num(4) + num(5) + A

num (i) - i.
A - . . , " ". , A , , , 3, A , , , 3.

, 5 - " ", A = 5.

, A 3 .

, .

+4
(sum(ratings) / number(ratings)) * min(number(ratings), 10)/max(number(ratings), 10)

- . 5, 10. , , , -, . , , - ( ).

+1

, . , - , , ?

0

Source: https://habr.com/ru/post/1739778/


All Articles