title: Summarizing Bayesian rating formula
body: <p>Based on this url i found <a href="http://www.thebroth.com/blog/118/bayesian-rating" rel="nofollow noreferrer">Bayesian Rating</a>, which explains the rating model very well, i wanted to summarize the formula to make it much easier for anyone implementing an SQL statement. Would this be correct if i summarized the formula like this?</p>
  
  <pre><code>avg_num_votes  = Sum(votes)/Count(votes) * Count(votes)
  
  avg_rating     = sum(votes)/count(votes)
  
  this_num_votes = count(votes)
  
  this_rating    = Positive_votes - Negative_votes
  </code></pre>
  
  <p>Gath</p>