Template:Statrate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>({{#expr: (100 * {{{2}}} / {{{1}}}) round 1}}% ± {{#expr: (2 * {{sqrt|({{{2}}} / {{{1}}} ) * (1 - ({{{2}}} / {{{1}}} )) / {{{1}}} }}) round 1}}%)</includeonly> | <includeonly>({{#expr: (100 * {{{2}}} / {{{1}}}) round 1}}% ± {{#expr: (2 * {{sqrt|10000 * ({{{2}}} / {{{1}}} ) * (1 - ({{{2}}} / {{{1}}} )) / {{{1}}} }}) round 1}}%)</includeonly> | ||
<noinclude> | <noinclude> | ||
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)). | 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)). |
Revision as of 07:32, 9 September 2009
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}}
(11.7% ± 1.2%)