Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. "Top Rated Video" Sorting algorithm

"Top Rated Video" Sorting algorithm

Scheduled Pinned Locked Moved Web Development
algorithms
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Siddarth Gaonkar
    wrote on last edited by
    #1

    hi, I am looking for a algorithm that will sort the videos by top-rated. One of the things to consider is that if the average rating for a video that is rated 200 times is 4.7 should be higher than a video that has an average rating of 5 which has been rated only once. Regards, Siddarth

    Siddarth Gaonkar

    H M 2 Replies Last reply
    0
    • S Siddarth Gaonkar

      hi, I am looking for a algorithm that will sort the videos by top-rated. One of the things to consider is that if the average rating for a video that is rated 200 times is 4.7 should be higher than a video that has an average rating of 5 which has been rated only once. Regards, Siddarth

      Siddarth Gaonkar

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Question: How many additional times must the 5 voted video be voted 5 for before it is higher rated than the 4.7 video?

      Henry Minute If you open a can of worms, any viable solution *MUST* involve a larger can.

      S 1 Reply Last reply
      0
      • H Henry Minute

        Question: How many additional times must the 5 voted video be voted 5 for before it is higher rated than the 4.7 video?

        Henry Minute If you open a can of worms, any viable solution *MUST* involve a larger can.

        S Offline
        S Offline
        Siddarth Gaonkar
        wrote on last edited by
        #3

        that is the question i have. I can accept any algorithm that will have some logic around the idea that a video that has been rated high many times is higher than a video that is rated higher only by a few number of users. also, what is the effect of age of the video on this.

        Siddarth Gaonkar

        H 1 Reply Last reply
        0
        • S Siddarth Gaonkar

          that is the question i have. I can accept any algorithm that will have some logic around the idea that a video that has been rated high many times is higher than a video that is rated higher only by a few number of users. also, what is the effect of age of the video on this.

          Siddarth Gaonkar

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          Siddarth Gaonkar wrote:

          I can accept any algorithm that will have some logic around the idea that a video that has been rated high many times is higher than a video that is rated higher only by a few number of users.

          I think you need to get that part sorted out before you move on to the sorting part and I'm not sure that this is the right place to get the info you want. You might try googling 'Ranking System algorithms' or something like that. If you can find an answer out there, by all means come back here for the sorting part. You'll find lots of opinions on that.

          Henry Minute If you open a can of worms, any viable solution *MUST* involve a larger can.

          1 Reply Last reply
          0
          • S Siddarth Gaonkar

            hi, I am looking for a algorithm that will sort the videos by top-rated. One of the things to consider is that if the average rating for a video that is rated 200 times is 4.7 should be higher than a video that has an average rating of 5 which has been rated only once. Regards, Siddarth

            Siddarth Gaonkar

            M Offline
            M Offline
            Member 4501940
            wrote on last edited by
            #5

            To be honest, you have to lie! You could assume that every video has the same number of votes. The votes that are not 'real' would be neutral or average. If your scale is 1-5 and every video has the same number of votes then the video with the one vote at 5 also has 199 at 2.5. ((199*2.5)+(1*5))/200 video 2 needs 176 votes at 5 to equal video 2's rating better still assume all videos have 1000 votes (or whatever) - still works out the same video 1 with 200 votes at 4.7 (200*4.7+800*2.5)/1000=2.94 video 2 with 1 vote at 5 (1*5+999*2.5)/1000=2.503 video 2 with 176 votes at 5 (176*5+(1000-176)*2.5)/1000=2.94

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups