Formula for popularity? (based on likes, comments, opinions)

I have several pages on a website and I need to create an order based on "popularity" / "activity"

The options I should use are as follows:

  • page view
  • comments made on the page (there is a form below where use can make comments)
  • clicks made on the like icon

Are there any standards for a formula for popularity? (if opinions are not good either)

(initially I was thinking of submissions + 10 * comments + 10 * likeit)

+3
source share
5 answers

( ?)

, , , , . , 10, , .

(.. -X ), . , " " " ". , , .

+2

- YouTube - . , , , . , , , . , - , , , , , /, , .

, "", , . .

+2

(C*comments + L*likeit)*100/views

C L , . C = 1 L = 1.

, , "". , , ( ) .

, , . PS: "* 100", .

+1

:
http://www.evanmiller.org/how-not-to-sort-by-average-rating.html

"" "" , , " ".

:

=

. , 1927 . . : , , 95% "" - ? . (.. 5- ), -: enter image description here

( , /, .) - , zα/2 - (1-α/2) , n - . , Ruby:

require 'statistics2'

def ci_lower_bound(pos, n, confidence)
    if n == 0
        return 0
    end
    z = Statistics2.pnormaldist(1-(1-confidence)/2)
    phat = 1.0*pos/n
    (phat + z*z/(2*n) - z * Math.sqrt((phat*(1-phat)+z*z/(4*n))/n))/(1+z*z/n)
end

pos - , n - : 0.95, 95% , , 0.975 97,5% .. Z- , , , - , z. ( 1.96 0,95.)

, SQL:

SELECT widget_id, ((positive + 1.9208) / (positive + negative) - 
                   1.96 * SQRT((positive * negative) / (positive + negative) + 0.9604) / 
                          (positive + negative)) / (1 + 3.8416 / (positive + negative)) 
       AS ci_lower_bound FROM widgets WHERE positive + negative > 0 
       ORDER BY ci_lower_bound DESC;
+1

, ", . , ( 10 , ...)

Do you visit the time spent visiting? You can also use this, since a 2 second scan means less than 3 minutes.

0
source

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


All Articles