probability.range4CI

Parsed documentation:
View on GitHub
/**
*
* Computes probability from the **observed** count of successes (`successCount`) out of the total count (`totalCount`)
* along with its **range** for required level of Confidence Interval (CI)  i.e. `zscore` .
* The range is the minimum and maximum probability values for given `zscore` or CI.
*
* These computations are based on approach specified in the Wilson's *Notes on
* Probable Inference, The Law of Succession, and Statistical Inference*
* published in ASA's Journal.
*
* For quick reference, typical value of `zscore` for 90% and 95% CI is approximately
* 1.645 and 1.960 respectively.
*
* @memberof probability
* @param {number} successCount observed count of successes out of
* @param {number} totalCount the total count.
* @param {number} [zscore=1.645] for the required level of CI.
* @return {object} containing `probability`, `min` and `max`.
* @example
* range4CI( 1, 10 );
* // returns {
* //   probability: 0.18518871952479238,
* //   min: 0.02263232984000629,
* //   max: 0.34774510920957846
* // }
* range4CI( 10, 100 );
* // returns {
* //   probability: 0.1105389143431459,
* //   min: 0.06071598345043355,
* //   max: 0.16036184523585828
* // }
*/
No suggestions.
Please help! Open an issue on GitHub if this assessment is incorrect.