Is the imposter selection in Among Us truly random?

I played "Among Us" with a group of seven friends last night. At one point, I was the imposter FIVE straight times. This seemed crazy, and started a lot of conspiracy-theory discussion about how the game takes ping into account when choosing imposter, takes winning into account, on and on. After browsing reddit about imposter selection in this game, it sounds like there are LOTS of anecdotal complaints about this kind of thing:

I watched a GREAT slide deck on "Stats for Hackers," and decided that this would be an excellent opportunity to run a simple simulation and see just how probable it is, in a night of gaming, for someone to be the imposter so many times in a row, for someone to never be imposter, etc.

My plan is to run a simulation of imposter selection a represetative amount of times (probably 10k at least) and collect some statistics each time. We played about 20 games last night, so this means I will choose 20 imposters, 100k times, and keep track of the following:

  1. The longest unbroken string of being the imposter (was someone imposter 3 times in a row? 4?). How likely is it that someone would get to be imposter so many times in a row?
  2. The person who was the imposter the most times, not necessarily in a row. Is it statistically crazy that someone might be imposter 10 times in a 20 game session?
  3. The person who was the imposter the least times. How likely is it that someone doesn't get to be imposter at all?
  4. The median imposter number. This is boring, but doing stats on this will give us some idea of the distribution.

Let's get cracking!

The above dataframe looks right - the cum sums all end at 1 and the one-sided p values all go to 0. It will be easier to assess these results by plotting them.

The above plot is why I started this notebook. If you hover your mouse over the bar for 5 straight games, you will see the p-value of someone being the imposter 5 or more times is a smidge more than 0.5% (0.005). So, about 1 in 200. To me, this sounds like while it is unlikely that smeone gets to be imposter so many times in a row, it's not THAT crazy. Seeing someone be the imposter 4 or more times blasts that probability to 5%, which is really fairly common, and 3 times in a row is a colossal 29%. These events are really rather common.

An interesting side question might be "how many times do I need to play Among Us to see someone be the imposter 5 times in a row, given there is a 1/200 chance of it happening on any given gaming session (assuming you play 20 games per session, about 90 minutes worth). We can run a quick little side simulation to calculate this:

The above visual is showing us that, if you play A LOT of Among Us, you will certainly eventually see someone get to be the imposter 5 straight times. At 20 sessions worth of gaming (playing every other night for 2 months-ish), there is a 10% chance that you will see this event occur. So, again, while someone being the imposter 5 straight times is definitely a rare event, it's not a "get struck by lightning while ALSO being attacked by a shark" sort of thing.

Max times that someone in a party of 7 will get to be the imposter, over 20 games. This is another interesting plot, since almost always someone is claiming that so-and-so is ALWAYS the imposter. The p-calue for 7 or more times is about 0.12, so it is nearly a dice-roll's chance that someone will be the imposter 7 or more times. Again, this is a pretty likely event.

I think this is the most interesting finding here. With 7 players, there is a whopping 30% chance that someone NEVER gets to be the imposter!! And a 8% chance that someone only gets to be the imposter once or never! This seems to be a very common complaint from people, and I believe this is why many people accuse the game of not actually having random selection. Alas, probability is harsh and cruel.

Interestingly, the above visual is VERY sensitive to player count. If you lower the amount of players by 1, you have a much smaller chance of "screwing" someone out of being the imposter:

Yes, just removing one player almost doubles the chance that everyone gets to be imposter at least once.

Moving on to the median statistics...

This is not so suprising - 20 / 7 is almost 3, so you would expect 3 times-ish per person. One possible takeaway is that with the p-value of 3 being about 70%, more often than not half the players playing don't really get to be imposter that much. So, on average, you shuoldn't expect to be imposter all that often.

What's the big takeaway?

The biggest thing is that random chance does not mean "uniform opportunity." While it may be tempting to call imposter selection in Among Us complete BS sometimes, it's really not uncommon for the same people to be imposter over and over, or for someone to never get a chance.

Additionally, it is important to distiniguish between SOMEONE having a rare event and YOU having a rare event. The cool "Among Us Odds Calculator" can show you the chances of certain things occurring (like YOU being the imposter 5 out of 20 games), but this doesnt report on the likelihood of it happening to SOMEONE in that game. Again, it is HIGHLY likely that SOMEONE is going to have something strange happen, they talk about it, and then everyone's perception is that the game has a weird random selection algorithm.

You may notice that I never used any fancy statistical equations here - no poisson distributions, no t-tests, nothing. This was all inspired by "Stats for Hackers,", and I encourage everyone to check it out!

If you want to play with this code, you can get the source jupyter notebook here: amongus_stats.ipynb. You will need to pip install pandas for the dataframes, and altair to make the visuals.

Thanks for reading!

-PBG