Earlier quoted context omitted.
Let's say you roll a dice with 100 sides. If you roll a 1, you die. If you roll anything else, you live. We want to know the probability you will die if you roll the dice 100 times. One way we could do this is look at the probability you'll roll it on the first roll... then the probability you won't roll it on the first roll but you will on the second roll... and so on. But that's a lot of math. The probability of an…
Counter question. How to calculate how many tries it would take to reach a specific probability for an outcome? For example, how many times do I have to roll the dice to have 90% chance of death? Due to my field of work, I'd solve everything by bruteforce, but I wonder what a more elegant solution could be.
0.99^n = (1-0.9)
n*log(0.99) = log(0.1)
n = log(0.1)/log(0.99) = ~229