Jump to content

User:Markkawika/Mathfoo

From Wikipedia, the free encyclopedia

WoW

[edit]

If a WoW mob drops a desired item with a drop rate of (a real number between and , how many runs, on average, must a player make before he sees the given item drop?

First, we must establish that this is a short-circuiting procedure. In other words, as soon as the player sees the item drop, he stops trying to get the item (this assumes, of course, that the player wins the roll for the item). This means it makes more sense to calculate the failure chance than the success chance of an item dropping.

The math for this is easy. If the drop rate is , then the failure chance in one run is . Thus, the failure rate after runs is:

Thus the chance of successfully seeing the desired item drop after runs is:

But we want to know the average number of runs a player will have to make before seeing the item drop. Thus, we want to know what value of will get the success rate to at least 0.5 (50%). We need to solve the following equation for :

This tells us what exact number R must be to get the chances of success to exactly 0.5. This isn't reasonable, though, because R is a real number and we can only make an integer number of runs (how do you run Baron 6.973 times?). Thus, we must take the ceiling of the right-hand-side to tell us the average number of times a player must kill a mob in order to see a given item drop.

This gives us our final answer:

Thorkran

[edit]

More fun:

What's the likelihood that, using a d20, you will roll a 1-4, followed by a natural 20, after N rounds? The formula is given by P(N), where N is the number of rounds, and P(N) is the likelihood that it has occurred after N rounds.

Carrying out the calculation, then (23-Oct-2018, when I have no idea why I wanted to know at the time):

Therefore, on average, it will take Thorkran 19 rounds before he rolls a 1-4 on a d20 followed by a crit. I don't know why I needed to know that, but now, finally, I have the answer.

In fact, this generalizes to any "roll <this> after <that>" question.

If is the probability of the first thing happening (and is the probability it will not happen), and is the probability of the second thing happening, then the probability , after rounds, of the first thing happening at some point, followed by the second thing happening, is: