GuildWiki

GuildWiki has been locked down: anonymous editing and account creation are disabled. Current registered users are unaffected. Leave any comments on the Community Portal.

READ MORE

GuildWiki
(Created page with "<includeonly>{{#switch: {{{hits|1}}} | 0 = 0 |{{{tries}}} = {{#expr: (100 - {{Template:DropRates/NoDrop|tries={{{tries|5}}}|margin={{{margin|.95}}} }} )}} |#default = {{#ifexpr: ...")
 
m (Axe the percent sign. Makes for easier maths on the result)
 
Line 3: Line 3:
 
|{{{tries}}} = {{#expr: (100 - {{Template:DropRates/NoDrop|tries={{{tries|5}}}|margin={{{margin|.95}}} }} )}}
 
|{{{tries}}} = {{#expr: (100 - {{Template:DropRates/NoDrop|tries={{{tries|5}}}|margin={{{margin|.95}}} }} )}}
 
|#default = {{#ifexpr: {{Template:DropRates/AdjWaldLower|hits={{{hits|1}}}|tries={{{tries|2}}}|zscore={{{zScore|1.96}}} }} < 0 | 0 |
 
|#default = {{#ifexpr: {{Template:DropRates/AdjWaldLower|hits={{{hits|1}}}|tries={{{tries|2}}}|zscore={{{zScore|1.96}}} }} < 0 | 0 |
{{#expr: {{Template:DropRates/AdjWaldLower|hits={{{hits|1}}}|tries={{{tries|2}}}|zscore={{{zScore|1.96}}} }} round ( 4 - (ln {{Template:DropRates/AdjWaldLower|hits={{{hits|1}}}|tries={{{tries|2}}}|zscore={{{zScore|1.96}}} }} / ln 10)) }} }} }}%</includeonly><noinclude>
+
{{#expr: {{Template:DropRates/AdjWaldLower|hits={{{hits|1}}}|tries={{{tries|2}}}|zscore={{{zScore|1.96}}} }} round ( 4 - (ln {{Template:DropRates/AdjWaldLower|hits={{{hits|1}}}|tries={{{tries|2}}}|zscore={{{zScore|1.96}}} }} / ln 10)) }} }} }}</includeonly><noinclude>
   
 
Usage: <nowiki>{{Template:DropRates/DropRateLowBound|hits=1|tries=5|zScore=1.96|margin=0.95}}</nowiki><br>
 
Usage: <nowiki>{{Template:DropRates/DropRateLowBound|hits=1|tries=5|zScore=1.96|margin=0.95}}</nowiki><br>

Latest revision as of 00:14, 17 December 2010


Usage: {{Template:DropRates/DropRateLowBound|hits=1|tries=5|zScore=1.96|margin=0.95}}
Used to find the upper bound in the Adjusted Wald Interval for an estimated binomial rate.
z = z-score to use. 1.960 -> 95% margin
margin -> ties should correspond to the z-score. This routine uses both but does not have the smarts to convert between the two.
z score defaults to 1.960, and margin defaults to the matching 0.95 (95%), so unless the confidence level needs changing they can be omitted.



Some samples 5 tries, 0 drops 95% margin is 0%, calculates: 0%
5 tries, 5 drops 95% margin is 54.928...%, calculates: 54.93%
1000 tries, 400 drops 95% margin is 37.0072%, calculates: 37.01%