How to drops work in RMMV?

I have an enemy that the player can farm in an optional dungeon. Upon defeat, it can drop an item of one of 3 elements:

Fire, Ice and Thunder.

I made those items each have a 1/3 chance of dropping. Maxing out the base amount of drops for a single enemy. But upon battle testing, not even a single one dropped. (This has happened multiple times.)

This doesn't make any sense, basic math tells me that AT LEAST one elemental item would drop. And an exponentially decreasing chance for multiple drops.

So how does the drop system work? As it clearly isn't simple as "1/3 chance to drop."
each chance is rolled independently, so with 3 different items of 33% each the possibilities are:

all three items 3.6% of all times
two of three items 22% of all times
one of the three items 43% of all times
no item 29% of all times.

so yes, with a bit of bad luck it is quite possible to get no item several times in a row, because by default you get no item about 3/10 cases.
Hi @BreadCrumb,

Unfortunately by default, that's not quite how it works. 1/3 drop means that this particular item has 33% chance of dropping.

Probably the easiest way to make sure at least ONE of the 3 items drops is through a plugin like this one:

You can randomize a variable (Variable 1) between 1 and 3 on Turn 0 of a Troop Event. And then add the notetag to your Enemy, something similar to this:

Code:
<Conditional Item 1 Drop>
Variable 1 === 1: +100%
Variable 1 !=1: -100%
</Conditional Item 1 Drop>

<Conditional Item 2 Drop>
Variable 1 === 2: +100%
Variable 1 !=2: -100%
</Conditional Item 2 Drop>

<Conditional Item 3 Drop>
Variable 1 === 3: +100%
Variable 1 !=3: -100%
</Conditional Item 3 Drop>
Stats time. Each item is decided independently so you would need the binomial distribution to find the probability of x drops out of 3. The probability of 0 drops is 0.67 to the 3rd power (the probability each doesnt drop, to the power number of drops).

And the probability that all 3 drop is 0.33 to the 3rd power.

Andar got both probabilities up above very close, so see their post for the answers to those if curious.

What you computed was the mean, as the average number of drops if all are set to 1/3 is 0.33 * number of drops. But it is an *average* you can roll less or more than it and often will.

More detailed stats if curious:
Spoiler
Mean when all items are independent: n * p, n number of items, p probability of each item

Standard deviation when all items are independent: square root of (n * p * (1-p)), where n is number of items, p probability of each item in decimal form (it will fail in percent form).

Probability of x drops when each individual drop has chance p to drop.

ncx * p^x * (1-p)^(1-x)

ncx is combination n choose x (to cover how to find that would make this even longer, but most use a calculator with that button these days), n number of total drops, x number of drops you want. p is probability of each drop.
What you computed was the mean
I think the OP was thinking that it worked like a loot table - roll 1-33, get this item, 34-66 get this one, 67-99 is the third. So setting three items at 1/3 chance would have a guaranteed drop every fight.
That might be it too, but I see that error all the time with the mean so people think it is 'due' to drop. Sadly that is a common fallacy called the gambler's fallacy. Nothing is 'due' when random chances get involved. You can miss 20x in a row and still miss the 21st time.
I see! Thanks for the help!
@BreadCrumb In addition to Yanfly's Extra Enemy Drops, there's an actual loot table plugin somewhere on the forums if that's the kind of system you want. I forget who wrote it, but it should come right up in a search.

@bgillisp You don't have to be so mean about it 😉
Would you rather I...deviate? (mic drop)

Sorry, couldn't resist.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-drops-work-in-rmmv.160199/