RNGesus and You: Ponies, Pigeons, ‘Polis, and Probabilities

As everyone who plays FFXIV knows, the designers have a rather unfortunate (IMHO) fascination with awarding loot by random drops.  I’ll credit the team for starting to move away from this misfeature by introducing mechanics such as the Primal Ex tokens and the Pages that drop in Savage, but there are still many mechanics in FFXIV that rely on random luck.  This isn’t such a good thing.


I want to talk a little about some of these mechanics and how to think in a mathematical way about questions such as:

  1. If the chance of getting a pony drop on Fridays is 10% per run, that means we can expect to get roughly one pony drop every ten runs, right?
  2. How about pigeons? We should expect one Lanner to drop every 20 runs, right, since it’s a 5% chance?
  3. If I have a 33% chance to overmeld a materia, how many materia should I expect to waste on this before I get a success?
  4. How likely is it that we’ll get to the Seventh Floor of the Aquapolis on any single map?
  5. For gatherers:  If I have two 30% chances to proc a Discerning Eye off Impulsive Appraisal, why does it seem like getting them both to proc seems to happen way less often than it should?

Never tell me the odds.jpg

Q. We went ten runs last Friday without getting a Pony to drop.  That means our luck was really terrible, right? 

A. Not really.  Here’s why.

Sure, the chance to get a pony on any one run is 10%.  But that doesn’t mean that it’s rare to go ten runs without a pony.  It’s not all that rare.

Here’s how to figure it, using two very basic rules of probability.

Rule One:  If you have two random events that are independent (that is, the outcome of the first event doesn’t affect the odds of the second event happening), the odds of having both events happen is found by multiplying the odds of each event together.  So if you’re flipping a coin, assuming it isn’t loaded, and you flip it twice, what are the odds of getting heads both times?  Well the odds of getting heads the first time is 1/2, and the odds of getting heads the second time are 1/2, so the odds of getting both heads is (1/2) x (1/2), or 1/4.

Rule Two: If two events are mutually exclusive, the odds of either of them happening add up to 100%.  That is, when you flip a coin, there are two possible outcomes: heads and tails.  The odds of each of them happening is 50%;  50% plus 50% = 100%.

This also applies to larger numbers of events, as long as they are all mutually exclusive and all possibilities are covered. If you have four colored marbles in a jar — white, black, blue, and red — and you close your eyes and pick out a marble, the odds that you picked the blue marble are 25%, and the odds that you picked either a white, black, or red marble instead are 75%.  The odds of picking a blue marble and the odds of not picking a blue marble add up to 100%: 25% + 75% = 100%.

Many times when calculating probabilities, it’s easier to find the odds of something not happening, and then subtract that from 100% to find that odds that it will happen. I’ll be using this trick a lot.

So back to the pony question.  Instead of asking, “What are the odds of getting a pony in ten runs?”, let’s ask the opposite question: “What are the odds of not getting a pony in ten runs?”   This is easier to calculate, because there are many different ways to get a pony in ten runs — the first run, the fifth run, the eight run — but only one way to not get a pony in ten runs.  Let’s look at that.

If the odds of getting a pony in a run are 10%, then the odds of not getting a pony are 90%.  Now we use Rule one, and ask, “What are the odds that in two runs we will not get a pony?”  Well, that’s 90% x 90%, or  (.9) x (.9), which is 0.81, or 81%.  Just continue this for however many runs you want to consider. What are the odds of not getting a pony in five runs?  (.9) x (.9) x (.9) x (.9) x (.9)  or  (.9)^5  (That’s .9 raised to the fifth power since this text editor won’t do proper math notation.) The odds of not getting a pony after five runs is 59%.

So what are the odds of not getting a pony in 10 runs?  It’s (0.9)^10, which is  0.35 (rounded off), or 35%.  Yeah, that’s right — the odds are that when you run 10 pony runs, more than one third of the time, you’ll get zero ponies.  The other 65% of the time you will get one or more ponies, but 35% of the time, there will be no mount drop. (I’m leaving out the possibility of getting Nightmare, which is an independent event; I don’t know what the base chance of Nightmare falling is, especially since he only falls from the first three Primals.) In fact, in order to reduce your Fail Chance to 10%, you need to run 22 Pony runs!  And of course that’s no guarantee of getting at least one pony — it just means that if you run 22 pony runs, your odds of getting at least one pony are 90%.  You need 29 runs to reduce the Complete Fail Chance to 5%, and 40 runs to reduce the Complete Fail Chance to 1%.

Now let’s talk about Pigeons — that is, Lanners, the flying mounts that drop from Heavensward Primal Ex fights.  Supposedly the odds of getting a bird in a single run are 5%, which is to say 1/20 or 0.05. This means the chance to not get a bird is 95%, or 0.95.

Let’s use the same calculation we did for the Ponies and ask: If we run 10 of these fights, what are the odds we get no bird?  That’s (0.95)^10, or  a dismal 60%.  Yes, that’s right: if you run 10 of these fights, the odds you will get no bird at all are better than half — 3/5ths of the time, to be precise.    After 20 of these fights, the odds of getting no bird at all drop to 36% — better, yet still: more than 1/3rd of the time, 20 fights will see no bird drop.  At 31 runs it drops to 20% chance of complete failure; to get the Fail Chance down to 10% takes 44 runs; to reach 5% fail chance, it’s 57 runs.

This is why I’m not in favor of switching to Pigeon Farming just yet. The odds are good it’ll make for a lot of long frustrating Friday nights without any drops.

I’ve used these calculations in the past to give me a rough idea of how many materia I can expect to blow up before I get one successfully overmelded. Overmelding chance is not dependent on the crafter’s skill or stats; it’s a straight percentage chance based on the level of the materia and how many other materia are already melded to the gear.  Let’s say an overmeld has a 33% chance of succeeding.  If I try with ten materia, what are the odds I will not get the materia affixed before I run out? It’s (0.67)^10, or 2% fail chance — excellent odds.

Of course, having excellent odds doesn’t stop you from getting hit with what poker players call a “bad beat,” like this overmeld attempt I did one day at 33% chance of success:

RNGEsus hates me.jpg

That’s 25 straight failures on a 33% chance of success. The odds of that happening are 0.0045 % according to my spreadsheet. Hooray for random numbers!

Sarcasm detector.jpg

This is why I hate random numbers as determiners of success in video game design.  Get enough people trying things when the results are random, and sooner or later some unlucky player will wind up on the extremely short end of the probability stick.  It’s guaranteed (well, probably.)

Now let’s take a look at the Aquapolis!  This is a cool new feature in patch 3.3 wherein some Timeworn Dragonskin Maps open up mini-dungeons.  You enter the first room of the dungeon, fight off some monsters, collect your treasure, and then you have a choice between two doors. One leads to another treasure room, and the other gets you kicked out of the dungeon.  There are seven floors.  What are the odds of getting to the seventh floor from any map?

First, the odds of getting a map to open the portal are 1/2 — a 50% chance.  Then, the odds of getting from room 1 to room 2 are also 1/2 or 50%.  So the odds of making it to the second room for any map are 1/4.  Just keep this going:

  • Odds of getting to the third room: 1/8
  • Odds of getting to the fourth room: 1/16
  • Fifth room: 1/32
  • Sixth room: 1/64
  • Seventh room: 1/128.

If you leave out the odds of the portal appearing and just consider the maps where we have already gotten a portal, you just move everything back one step. The odds of making it to the second room are 1/2; the third room, 1/4, and so on.  The odds of making it all the way to the seventh room are 1/64.

Given the 10 or 12 maps we did on our first attempt(6/8/2016), we did pretty well to get to the fifth room twice in one night!  We beat the odds by a decent amount. Vegas trip!

Now, a quick calculation for gatherers that I did just to appease my own frustration at how rarely I seemed to get a double-proc collectible gathering node.  For those not familiar with this mechanic,  your ability to get a decent number of collectible gathered items from a single timed node is largely dependent on a random mechanic — the free “proc” (activation) of an ability called Discerning Eye.  You have two chances to for this ability to activate, and the chance of it activating is 30% each time.

Given these numbers:

  1. How often could a gatherer expect a double proc per node?
  2. A single proc?
  3. No procs?

The chance of getting a proc is 30% or 0.3, which means the chance of not getting a proc is 70% or 0.7   Therefore, the chance of getting a double proc is (0.3) x (0.3), or .09 — which is 9% of the time.  Less than one in ten gathering attempts will give you the coveted double proc. Yeah, that explains why I so rarely seemed to see those — it’s going to happen, on average, only once out of 11 times, if RNGesus is feeling average and not vindictive (see: overmelding, above.)

The odds of getting no procs at all, on the other hand, is (0.7) x (0.7), or .49 — 49%. Half the time, this ability won’t fire at all.  Yeah, that seems about right too.

Adding 9% and 49% together gives us 58%, which means the only remaining possibility — getting a single proc — is what’s left over, or 42%.  The alternate way to calculate the odds of one proc is to say that there are two possible ways to get a single proc:  a success and a fail, or a fail and a success. The odds of the first combo are (0.3) x (0.7), or .21, 21%.  The odds of the second combo are (0.7) x (0.3), or .21, 21% again. Add these two possibilities together and you get 42%.

That’s the end of the lesson! I hope you took good notes, because there will be a quiz next week.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s