Skip to content

Instantly share code, notes, and snippets.

Hotel 1: 3 reviews with rating 4,4,5
Hotel 2: 3 reviews with rating 3,3,3
Avg Rating Hotel 1: 4+4+5/3 = 13/3 = 4.33
Avg Rating Hotel 2:3+3+3/3 = 9/3 = 3.00
Simple Average: Avg Rating Hotel 1 + Avg Rating Hotel 2 / 2 = 4.33 + 3.00 / 2 = 7.33/2 = 3.66
Weighted Average: Sum of Ratings of both Hotels / Total Reviews = 4+4+5+3+3+3/ 6 = 21/6 = 3.50