Answer the question
In order to leave comments, you need to log in
How to make a rating based on article views?
Good afternoon!
There is an article with views, but it is not foreseen that the rating would be put down by adding a comment. How can I make a rating based on the number of views of an article, maybe there is some kind of calculation formula?
Answer the question
In order to leave comments, you need to log in
There is no special formula.
But if you think a little, then 2 options emerge and it all depends on what you need the rating for.
1 If you just need to answer somewhere which article is cooler than which, then you can stupidly compare views, because no matter what derivative you take from this N, as a rule, the article with more views will still have more. Well, let's say if your rating is the square root of the number of views, the order of the articles above will not change.
Total - if you just need to compare articles - stupidly compare the number of views on the forehead.
2 If you need to determine HOW one article is cooler than another, then you will have to determine how this relates to views, because 2 times more views may not mean that the article is 2 times cooler. Some kind of power function is likely to work here - choose not to your taste, but as a rule, the square root is usually the best solution. Thus, the article will be 2 times cooler if it gets 4 times more views.
3 (yes, it is also included in these two options) If you are going to use the rating to display articles on the main page, for example, you will have to think very carefully about the display method. The fact is that let your articles be shown randomly if they have the same rating, one on the main page and only two articles. After the third person clicks on the article and they get a total of 3 views, one of them will have a rating 2 times higher and only she will start showing on the main page, as a result, she will start gaining views and her rating will skyrocket, and it will display not the quality of the article, but the work of the random number generator.
Therefore, here you need to come up with a way to display. It's a good idea to display high ranking articles + a few random articles. And the rating itself is better to take the power as in option 2. Intuitively, it seems like a good idea to display on the main page N randomly selected articles + kN with a high rating of articles where k == powers of the root.
4 (also of these two) If you want to evaluate the quality of the article itself, and not the title and picture for it, then I would not take into account views at all, but only views over a certain time for which you can read the article. Otherwise, it may turn out that the majority just came to look at the boobs, and they didn’t read the article at all, but her rating is sky high.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question