Template:Charm table stats
Documentation
The Charm table template is used to provide a table with approximate values for the drop rate of charms, for any specific monster.
Based on Gaz Lloyd's Template:Charm table. The problem we were encountering there, was that for small sample sizes (killing fewer than 150 monsters), the values you get are going to be inaccurate due to the random nature of drops. This template expands Gaz's work by calculating the confidence interval - that is, given the sample size (# of monsters killed), and rate of "success" (specified drop), what can we say about what we would see if we killed 10x or 100x more monsters? The calculations give the confidence interval for a binomial proportion, see Binomial proportion confidence interval and http://davidmlane.com/hyperstat for more details.
Usage
{{Charm_table_stats |kills = Number of monsters killed in the sample |charms = How many charms the monster drops at once; leave field out if 1 |gold = Number of gold charms obtained in from sample |green = Number of green charms obtained in from sample |crimson = Number of crimson charms obtained in from sample |blue = Number of blue charms obtained in from sample }}
Examples
Input | Result | Original Template:Charm_table | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Charm_table_stats |kills = 100 |gold = 21 |green = 14 |crimson = 5 |blue = 1}} |
|
Based on a sample of 100 kills. 1 charm is dropped at once. | ||||||||||||
{{Charm_table_stats |kills = 121 |charms = 3 |gold = 6 |green = 81 |crimson = 21 |blue = 9 }} |
|
Based on a sample of 121 kills. 3 charms are dropped at once. | ||||||||||||
{{Charm_table_stats |kills = 10000 |charms = 3 |gold = 634 |green = 8123 |crimson = 2197 |blue = 911 }} |
|
Based on a sample of 10,000 kills. 3 charms are dropped at once. |