Skip to content

Instantly share code, notes, and snippets.

@voleoo
Created March 25, 2014 12:17
Show Gist options
  • Save voleoo/9760731 to your computer and use it in GitHub Desktop.
Save voleoo/9760731 to your computer and use it in GitHub Desktop.
sqrt - square root
up = good +(fair/2 )
down =poor +(fair/2 )
n = up + down (count voice )
z = 1.64485; //1.0 = 85%, 1.6 = 95% constant
phat = up / n; (good / count voice(n))
(phat+z*z/(2*n)-z*sqrt((phat*(1-phat)+z*z/(4*n)/n))/(1+z*z/n);
doc http://habrahabr.ru/company/darudar/blog/143188/#habracut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment