Skip to content

An iOS app that calculates two score between 0 to 1 based on the Wilson's score interval and average. The app takes two inputs: total number of positive ratings and total number of negative ratings.

Notifications You must be signed in to change notification settings

bt1/RankingComparisonApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

RankingComparisonApp

An iOS app that calculates two score between 0 to 1 based on the Wilson's score interval and average. The app takes two inputs: total number of positive ratings and total number of negative ratings. The algorithms are as follows:

Lower bound of Wilson's score interval:
ScreenShot

Average:
(positive)/(positive+negative)

I created this app because it's a good way to demonstrate the problems of ranking based on quantity. Often times, search results on the websites rank items based on their overall rating, never taking into consideration of how many ratings they have. For example, item A has 1 positive rating and 0 negative rating. Item B has 10000 positive ratings and 100 negative ratings.
Plugging in the values for item A, we get:
ScreenShot
Plugging in the values for item B, we get:
screenshot
For item A, we can see the average score is a 1.0 while the wilson score is a 0.05. For item B, we can see the two scores are about the same. The latter score is fine because there are lots of ratings; however, in item A, we can clearly see that the average algorithm does not consider the number of ratings (it would rank item A higher than item B). In most cases where the quantity and quality of the ratings should come into play, the wilson's score interval should be used instead of average.


Real world example: http://officialblog.yelp.com/2011/02/the-most-romantic-city-on-yelp-is.html

About

An iOS app that calculates two score between 0 to 1 based on the Wilson's score interval and average. The app takes two inputs: total number of positive ratings and total number of negative ratings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published