From bef55b9a5ea6ca50806f00f258f3394930275d28 Mon Sep 17 00:00:00 2001 From: Mahmoud Ali Date: Sat, 2 Jul 2016 22:58:58 -0300 Subject: [PATCH] Update docs with correct confidence levels --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f37740..0ec6232 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ var wilson = require('wilson-score') - `total` - the total number of votes - `z-score` - the z-score of the interval. By default, it's ~2.3 which corresponds to a 99% confidence interval. - Use `1.644853` for 95%. + Use `1.644853` for 90% or `1.96` for 95%. Instead of calculating the average as `up / total`, calculate the wilson score via `wilson(up, total)`.