473,383 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Rating formula? Help apreciated!

I need a more advanced formula than just an average for calculating
items rating.

I have:

raitng value is on scale 1 to 10.

s - sum of all ratings for an item
n - number of rates (votes)

scenario 1)
s=12
n=2
12/2 = 6

scenario 2)
s=24
n=4
24/4 = 6

same average value, however what i would like to do is take into
account number of votes for an item. item in scenario 2 should have
higher rating that item 1, because it is more popular (viewed and rated
more often).

what kind of formula whould do this?

thanks!

Nov 19 '05 #1
2 2902
Hey Alex,
I think there's two main approaches:
1 - keep it as two separate values: Popularity and Rating. This is what
CodeProject and MSDN both do. I think this makes sense because the two items
tell very different things. One article with a 1000 0s should be rated lower
than another article with 10 5s.

2 - If you do need to combine them into a single value, then you need to
scale popularity. For example, you may say:
- Every 1000 hits = +1 Rating point. (i.e. s/n + n/k where k is your scalar).
- make it non-linear = (s + n/k)/n.

"alex" wrote:
I need a more advanced formula than just an average for calculating
items rating.

I have:

raitng value is on scale 1 to 10.

s - sum of all ratings for an item
n - number of rates (votes)

scenario 1)
s=12
n=2
12/2 = 6

scenario 2)
s=24
n=4
24/4 = 6

same average value, however what i would like to do is take into
account number of votes for an item. item in scenario 2 should have
higher rating that item 1, because it is more popular (viewed and rated
more often).

what kind of formula whould do this?

thanks!

Nov 19 '05 #2
Thanks Tim.

This approach althoug makes total sense will add another variable in
the formula.
Why 1000? Why not 10? How do I decide?

I just came across this:

"ShutterPoint has adopted the individual numeric rating normalization
method for calculation of the total rating for each photo. The method
is based on the true Bayesian estimate formula, commonly used in
statistics. The formula is:

Total rating (TR) = (V/(V+M)) * R + (M/(V+M)) * C

where:
R = mathematical average for the photo (mean);
V = number of received ratings for the photo;
M = minimum number of ratings required for calculation (1);
C = median of the rating scale (5.50)

This method allows photos that receive higher number of individual
numeric ratings to score a more representative total rating. Please
note that individual numeric ratings are not shown."

Looks liek there is a standart method in statistics for doing this type
of things. Will test both methods and see which results makes more
sence for my scenario.

Regards,
Alex



Tim Stall wrote:
Hey Alex,
I think there's two main approaches:
1 - keep it as two separate values: Popularity and Rating. This is what CodeProject and MSDN both do. I think this makes sense because the two items tell very different things. One article with a 1000 0s should be rated lower than another article with 10 5s.

2 - If you do need to combine them into a single value, then you need to scale popularity. For example, you may say:
- Every 1000 hits = +1 Rating point. (i.e. s/n + n/k where k is your scalar). - make it non-linear = (s + n/k)/n.

"alex" wrote:
I need a more advanced formula than just an average for calculating
items rating.

I have:

raitng value is on scale 1 to 10.

s - sum of all ratings for an item
n - number of rates (votes)

scenario 1)
s=12
n=2
12/2 = 6

scenario 2)
s=24
n=4
24/4 = 6

same average value, however what i would like to do is take into
account number of votes for an item. item in scenario 2 should have
higher rating that item 1, because it is more popular (viewed and rated more often).

what kind of formula whould do this?

thanks!


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Wim Smit | last post by:
I am trying to put the following math formula in php, but I know to little of math to do it I guess, maybe somebody can help me out. This is the formula: x = (-ln(1) - ln(y/100))*100*z The...
1
by: jeremy | last post by:
this is probably a simple sql solution, but i could use some help. i've got one table that has rows of documents, and another table with any number of ratings for each of the documents. The rating...
0
by: soma | last post by:
I have a rating system on a forum I'm building. Users can rate a topic either good or bad. For each Good rating, one point is added to the topic's score. For every Bad rating, one point is subtracted...
8
by: kp87 | last post by:
I am a little bit stuck .... I want to play a bunch of soundfiles randomly, but i want to give each soundfile a rating (say 0-100) and have the likelihood that the file be chosen be tied to its...
2
by: Baron Samedi | last post by:
I am looking for a simple rating script whcih does not require SQL. Thanks in advance for any help.
4
by: bp90210 | last post by:
If you have a few minutes, I would like to see if anyone can help me out. I'm trying to modify a rating script. Currently, It allows you to vote over and over. What I want to do is after you vote...
1
by: lamarant | last post by:
Hi...I'm trying to use the Rating Control in the Ajax Toolkit in a datalist. I have the control showing up in the list, with the logged in users current rating for each item in the list showing... ...
4
by: benbridle38 | last post by:
Hi, dont really know much about programming or anything like this. But basicly in my program i am trying to write the following formula: http://img8.imageshack.us/img8/4379/fomula.jpg...
1
pradeepjain
by: pradeepjain | last post by:
Hii guys , I have several products in my mysql database and i wanna allow the authorized users to rate the products !! i am clear till this point like it has to be done with the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.