davidje13 / Raffle

Calculates odds of winning prizes in a raffle
https://davidje13.github.io/Raffle/
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Calculate median and percentiles #6

Closed davidje13 closed 6 years ago

davidje13 commented 6 years ago

Current Results lookup functions take a value and produce a probability, but since cumulative probability is also strictly increasing with value, it would be just as easy to reverse this and perform a probability -> value lookup (giving percentiles). From this, the median can be found at p=0.5.