Conversation started Jul 11, 2011 at 16:48.
RPM
RPM
Jul 11, 2011 16:48
Because the highest possible rating is either 5 or 10?
no, it's whatever the highest possible rating for $avg_rating and $this_rating is. If those are 5 stars, 10 thumbs up, 100 rotten tomatoes, whatever. They're all three the same scale.
RPM
RPM
So this problem would be the 3 out of 10? I still do not understand.
You know how movie ratings give two thumbs up (out of two possible thumbs), or 5 stars out of 5 stars on netflix, or on rotten tomatoes it's % (out of 100%)? Those all have units attached to them and tell you what the max is. Nothing in your question gave us the units or the means of deriving the units. We don't, and can't, know what the highest rating is without more information.
RPM
RPM
For this script, Can I factor in the highest possible rating? Or would it not work?
Why do you need to? You're making this harder than it is. What is the problem you are trying to solve?
RPM
RPM
Jul 11, 2011 16:48
I'm trying to aggregate reviews from multiple sources, and create a rating for each product
ok, and you've done that.
oh, but I think I see your problem. If the reviews are from different sources, then you might have a review of 4/5 and a review of 4/10, and one is a good review and one is a bad review.
RPM
RPM
Ok so if each review has a max value of 10, then the answer would be 3 out of 10
RPM
RPM
Each of the sources may have a max rating of 5 or 10. That is another problem.
right. so you need to normalize them before you put them together. You can't mix them first.
so everything coming in where the scale is out of 5, you just multiply by 2 so that they're both on a scale of 10.
THEN you do calculations that merge them.
RPM
RPM
Jul 11, 2011 16:53
Ok
So for each review that is out of 5, I will be multiply it by 2
right. you need to have the ratings all be on the same scale. 10 is an easy one because then some of your sources won't need to be adjusted. If you had picked 5 as your scale, then you would have to divide all the ratings out of 10 by 2, which would lose precision since you're rounding.
RPM
RPM
this makes perfect sense now
ok, good.
RPM
RPM
I appreciate your time
thanks
no problem. you're welcome
 
Conversation ended Jul 11, 2011 at 16:58.