Template:Statrate

From Twilight Heroes Wiki
Revision as of 07:30, 9 September 2009 by Muhandes (talk | contribs) (New page: <includeonly>({{#expr: (100 * {{{occurrences}}} / {{{samples) round 1}}% ± {{#expr: (2 * {{sqrt|({{{occurrences}}} / {{{samples}}} ) * (1 - ({{{occurrences}}} / {{{samples}}} )) / {{{sa...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Template for reporting the rate of something from statistical sampling. It will display a 95% confidence interval using the equation for confidence interval for proportion, 2 * Sqrt (p(1-p)/n)).

Usage

{{statrate||occurrences}}

Example

You adventured 3000 times and got an action 350 of those:

{{statrate|3000|350}}

({{#expr: (100 * {{{occurrences}}} / {Template:Samples) round 1% ± Expression error: Unexpected < operator.%)