Template:DropRate/HighBound

From Guild Wars 2 Wiki
Jump to navigationJump to search


Usage: {{Template:DropRate/HighBound|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, 5 drops 95% margin is 100%, calculates: 100%
5 tries, 0 drops 95% margin is 45.072...%, calculates: 45.07%
1000 tries, 400 drops 95% margin is 43.0694...%, calculates: 43.07%