First of all, I really couldn't think of a right way to phrase the question title. Below, I have reduced the problem that I am trying to solve to a similar one that could be easily understood. I searched for similar questions on this forum but really couldn't find one that's close enough/similar to mine. Please help.
Let's say, for example, that I purchase camera on Amazon. I would rather purchase a camera with a 4.9 star (out of 5 star max.) rating by say, 100 people than purchase a 5 star rated camera by, say, 10 people.
In other words, I want the product with 4.9 star rating out of 100 people to be the winner than the one with 5 star by 10 people.
Could you please help me how can I achieve this mathematically? Is there subjective opinion involved here that would make it difficult to tackle the problem mathematically? While my mind understands what it wants, translating it into a problem which I could program a computer to do has been challenging me for quite some time now.