Need help with rating equation

Discussion in 'Programming' started by smellocity, Mar 9, 2010.

  1. #1
    So i have a table with ratings including total votes, and total value. total votes is how many times everything has voted and total value is the value of all the votes added together. If i use total value / total / votes i get an average but sometimes it does not work because a rating with higher total but lower votes can be higher. Is there a special algorithm that works for rating sites like this ?
     
    smellocity, Mar 9, 2010 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The ratio for each category is calculated as "total votes / total value", isn't it?
    In this way, since total value is always higher than total votes, it will work for all cases.
    If I have misunderstood, pls explain more about the problem.
     
    NeoCambell, Mar 10, 2010 IP
  3. smellocity

    smellocity Active Member

    Messages:
    155
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    #3
    did you read my post? that doesnt work.
     
    smellocity, Mar 10, 2010 IP
  4. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes. but your explanations wasn't much clear to me. According to what I have understood I have added my comments.
    Note that you used "total value / total / votes" and what I have suggested was total votes / total value

    Also, I expect the two variables are defined as floating point and the ratio is taken as ((total votes * 100) / total value) %
     
    NeoCambell, Mar 10, 2010 IP
  5. plog

    plog Peon

    Messages:
    298
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Provide some field names along with sample data, what the results should be and what the results are. Everyone's explanation and assumptions are making this hard to understand.
     
    plog, Mar 10, 2010 IP
  6. smellocity

    smellocity Active Member

    Messages:
    155
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    #6
    looks at this site.. http://cologneandperfumez.com/ - you can see top rated column. the first one of 4. because the average isnt as high as the 5 below it, bc its 1 five rating which average is 5. and the two 4 ratings average is 4.
     
    smellocity, Mar 10, 2010 IP
  7. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    NeoCambell, Mar 10, 2010 IP