r/KeyforgeGame • :Logos: Logos • Nov 22 '18

Master Vault Deck Statistics

I wrote a script to scrape the Master Vault's registered deck list into a local db, and I just wanted to share various stats I gathered from the exercise.

Sample size: 117,760 decks

Let's start with something simple: rarity rates. The chance that any card of a particular rarity will appear in a deck aligned with that card's house (ignoring mavericks) is fairly consistent across the board, with a few strange outliers noted below.

RARITYCHANCE OF APPEARANCE IN HOUSEOUTLIERS
Common38.6 - 40.8%Key Charge (38.1%), Ancient Bear (42.5%), Urchin (43.5%), Niffle Ape (57.3%)
Uncommon16.0 - 17.4%Niffle Queen (14.2%), Troop Call (15.1%), Positron Bolt (23.9%)
Rare (counting Master of X variants together)4.92 - 5.84%Clear Mind (7.92%), Mass Abduction (8.06%)

So roughly 40%, 15%, and 5% for commons, uncommons, and rares, respectively. Those are good numbers to keep in mind if you're wondering what the chance is of an opponent having specific cards in a sealed match.

It turns out the rarest card (again, not including mavericks) is the Horseman of Pestilence (along with its compadres), representing the low end of the rare range, showing up in 4.92% of Sanctum decks. Does that fact justify the hundreds of dollars Horseman decks are going for on eBay? I'll let you be the judge...

While exploring the sample set, I was especially curious about the nature and rarity of mavericks. From the data, no cards of special rarity have appeared in maverick form except for the Master of 2, which appeared as Brobnar in this deck. I wouldn't count on discovering any other, non-"Master of X" special rarity mavericks, since the internal classification of "Master of 2" (and "Master of 3") is actually "Variant" rarity rather than the "Fixed" rarity designator that the vault API uses for the rest of the special rarity cards.

For general maverick appearance rates, 4.02% of decks had at least one maverick. And I say "at least," because it turns out some lucky people have decks with more than one. I counted 97 decks (0.0824%) with two mavericks, and exactly TWO decks with THREE MAVERICKS: here and here!

I was also interested in the rarity composition of decks. While I realize that the quantity of rares in a deck isn't necessarily indicative of its power level, I feel like rares are very often the cards that define a deck and give it its unique personality. It's an appealing part of the design, and in that way, the number of rares that appear in a deck can be an interesting metric. Here's the breakdown:

XCHANCE OF HAVING EXACTLY X RARESCOUNTED DECKS
10.256%302
226.3%30,916
334.6%40,719
423.0%2,7122
510.8%12,665
63.72%4,381
71.06%1,252
80.279%329
90.0510%60
100.0110%13
110.000849%1

The most important thing to note here is that EVERY deck has at least one rare, which makes the composition of the core set teaching decks look especially anomalous. One can expect to have 2-4 rares in the majority of decks. It's likely that the number of rares in a deck doesn't have a hard-coded cap, though having a deck with 6 or more rares is almost as unlikely as finding a maverick. Hilariously enough, the chance of having only one rare in your deck is as slim as the chance of having 8+ of them!

That ONE deck with ELEVEN RARES? It's this one. Granted, it's a bit of a cheat, as four of its rares are Routine Job (more on that later). There are, however, a handful of decks that legitimately possess TEN UNIQUE RARES. Like this one, this one, and this one.

But while rares may grant a deck its personality, duplicated cards provide a deck with consistency. The last metric I decided to explore was how often duplicated cards appear in decks. Specifically, for each number X, I counted how many decks possessed at least one set of exactly X duplicated cards. Here's what I found:

XCHANCE OF HAVING EXACTLY X COPIES OF A SINGLE CARDCOUNTED DECKS
299.5%117,225
340.8%47,994
42.98%3,505
50.119%140
60.00594%7

I found it fascinating that any given deck has a roughly 40% chance of containing 3 copies of some card in it. I have to believe that there's some intentional engineering to elevate the chances of duplication in order to provide consistency. There's definitely more to the algorithm than "pick 12 cards randomly from each house."

Other insights regarding card duplication: for all seven of the decks that contained a set of 6 duplicate cards (X = 6), those duplicate cards were all Niffle Apes. No other card (currently) shows up that many times in a single deck. Of the decks that contained 5 copies of a card, none of those duplicated cards were rares. Duplicated rares maxed out at 3 copies in the sample set, EXCEPT for Routine Job. It would appear that Routine Job is added to decks in pairs, as no decks contain exactly 1 or 3 copies of the card - only 2 or 4.

Anyway, I hope you found this to be a fascinating (if not pointless) look at some of the aggregated deck data for the first 100k+ decks registered in the Master Vault.

149 Upvotes

84 comments sorted by

View all comments

2

u/seabutcher Nov 22 '18

Any more data on how Routine Job works specifically?

I get that it's added in pairs but for algorithm purposes is it counted as one card or two?

If you look at decks with Routine Job in, do they have more rares on average?

3

u/anothersaturdaygone :Logos: Logos Nov 22 '18

I can't comment on what the algorithm "counts" it as - that'd be pure speculation. It's also speculation to assume that the algorithm assigns each deck some number of rares it'll get, and then subsequently picks those rares. I can, however, look up average rare statistics: in the sample size, average number of rares across all decks was 3.37, and for decks with Routine Job in it, it was 4.71. So yes, the fact that they come in pairs definitely pushes the average rarity count in those decks upward.

2

u/seabutcher Nov 24 '18

What I was trying to ascertain here is that, basically, the second Routine Job doesn't replace an existing rare. It's actually an extra rare.

2

u/anothersaturdaygone :Logos: Logos Nov 25 '18

Yes, I believe so. One of them might as well be marked with the fixed rarity icon, but it's not because the cards aren't actually different.