There are two separate probabilities involved:
- A person that is shopping for this type of product ends up buying this particular product.
- A person that bought this product leaves a positive review of it.
Assuming the products have been available for the same time, then the number of reviews (or purchases, if you track that) corresponds to 1., and the product quality corresponds to 2.
A product with good ratings but few purchases and reviews could be a product that is fit for very specific use-case, and the product description correctly indicates this.
What recommendation is best for a customer searching in this category?
Without further information, the probability of a good suggestion is P(1) ∩ P(2). For independent events, you can multiply the probabilities P(1) × P(2).
Assuming independence is a big assumption and can be distorted by e.g. affluent customers being more likely to buy expensive products and demand more of them. Often there is not enough data to make very detailed per-product estimates about such effects, but per-category some analysis could be performed.
If we count rating "5" as satisfied and anything less as unsatisfied, a rating average of 4.9 can be interpreted as P(2) = 90 %, and a rating average 4.5 as P(2) = 50 %. You could also count the number of 5-star reviews directly, but this way gives more weight to lower scores indicating "very dissatisfied".
From this simple model we would get 0.9 * 10 = 9 vs. 0.5 * 100 = 50, indicating that a random customer would benefit more from recommendation of the more popular product.
What recommendation is best for the shop?
The shop wants to keep their customers satisfied, but also wants to maximize the profit. Then the recommendation weight becomes P(1) × P(2) × Profit where the profit will vary between products.
Avoiding self-fulfilling bias
The most recommended products will get bought more and thus receive more reviews, leading to ever-increasing recommendation score.
To avoid this, you need to keep track of the number of times the product has been shown in search results and/or the number of times the product page has been opened.
It's a good idea to use the number of purchases for P(1) instead or in addition to the number of reviews.
Avoiding bias P(2) is not simple either, as not all satisfied customers leave a review. How likely they are to do so may vary by their wealth, amount of available time and the relevancy of any review perks offered. For positive reviews, a $1 discount on an expensive product is less effective than same perk for review of a cheap product. But if the customer is dissatisfied with an expensive product, they are much more likely to complain than for a cheap product.