Перейти к основному содержанию

Calculation Conditions

  • A minimum of 3 ratings is required to calculate the rating
  • If the number of ratings is less than the minimum threshold, the rating is not calculated

Calculation Formula

  1. The arithmetic mean of all package ratings is calculated.
  2. The Bayesian average formula is applied:
    const rating = (avg × count + 3.5 × 10) / (count + 10)
    
  3. The result is rounded to 2 decimal places

Formula Features

The Bayesian average formula adds 10 “virtual” ratings with a value of 3.5 to the actual ratings. This allows:
  • Stabilize the rating of packages with a small number of ratings
  • Prevent overestimation or underestimation of ratings for new packages
  • Ensure smoother changes in rating as ratings accumulate
As the number of real ratings increases, the influence of virtual ratings decreases, and the rating increasingly approaches the arithmetic mean of the actual ratings.