The rank is based on average rating except that the score is reduced a bit porportionately to the number of votes missing to reach the median number of votes among games (median, not average, so basically for the top half most voted games their average rating is used while the rating of further ones in rank of numbers of votes is reduced).