Supermechs Optimal Box Opening Simulation


#1

Supermechs Optimal Box Opening Simulation

Preface

Players often ask which type of box is best to buy. While the expected Token cost per mythical item is lowest with Gold boxes, there is a possibility of receiving no mythical items. In comparison, the appeal of Mythical and Ultra Mythical boxes is the certainty of mythical items and with a increased chance of receiving a mythical item which the player does not yet own. In considering the power of mythical items, an optimal player may wonder at which point it is more beneficial to buy mythical boxes?

In other words, what is the smallest number of tokens that a player should expect to spend to acquire the most number of mythical items?

##1) Introduction
There are four types of Token boxes (1) Silver boxes, (2) Gold boxes, (3) Mythical boxes, (4) Ultra Mythical boxes. I assume that box opening takes place during a special event (75 percent discounted price and double the chance of a mythical item). Then, each of the five cards in a Silver (Gold) box has a 14 percent (30 percent) chance of being a mythical item. Since the price a discounted Silver box is 68T and the price of a discounted Gold box is 120T, clearly it is never optimal to buy Silver boxes. Similarly, if one is to buy mythical boxes, it is strictly better to buy Ultra Mythical boxes rather than Mythical boxes. Thus, we can restrict the type of boxes to Gold and Ultra Mythical boxes.

###1.1) Box Opening Strategy
With zero mythical items owned, clearly, choosing a Gold box is the optimal strategy. On the other hand, if the player has all but one mythical item, buying a Ultra Mythical box is the optimal strategy. So, the question can be framed as:

What is the optimal number of Gold boxes one should open before opening Ultra Mythical boxes to minimize costs?

Assumptions

Unless I counted wrong, there are currently 145 mythical items available. I assume that the all mythical items are drawn with equal probability. While this may not be true, it is a necessary assumption.

##2) Simulation Approach

Let the number of Gold boxes opened be Ngb. The simulation experiment is simple. Fix a value of Ngb

  1. Open Ngb Gold boxes
  2. Open Ultra Mythical Boxes until the player has at the target number of unique mythical items. Let the number of Ultra Mythical boxes opened be Num
  3. Then, the Token cost as a function of Ngb (and Num which is a function of Ngb) is T(Ngb) = 120*Ngb + 450*Num.

Steps (1)-(3) are repeated 200 times to approximate average Token cost given a fixed value Ngb.

From the argument given in Section 1.1, T() is convex in Ngb so a minimum Ngb* exists.

###2.1) Gold Boxes VS Ultra Mythical Boxes

Recall that each Ultra Mythical box guarantees three mythical items where each mythical item has a 30 percent chance to not be from your inventory. The number of unique mythical items (unique meaning not already owned) follows a hypergeometric distribution with parameters N=145 (number of possible mythical items), n=3 (number of draws), and K (number of mythical items not yet owned). The expected number of unique mythical items from any individual Ultra Mythical box is given by n*(K/N) which depends on k. This quantity decreases in the number of unowned mythical items.

For Gold boxes, while the probability that any item is mythical is 30 percent. If we we have exactly 70 percent of the possible mythical items, then a single item from a Gold Box has approximately 30 percent chance of being an unowned mythical item. The expected benefit of Gold vs Ultra Mythical boxes in the objective of owning every mythical item while minimizing Token cost is then characterized by the proportion of unowned mythical items remaining before opening Ultra Mythical boxes. Some considerations

  1. The number of mythical items follows a binomial distribution with parameters p=.3 and n=5 (number of draws), the expected number of mythical items is then given by n*p = 1.5
  2. Token per mythical item differs between boxes

If we consider again the scenario where the player owns exactly 70 percent of the possible mythical items, then the expected price of a single unowned mythical item is lower when buying a Gold box, so the critical value of unowned mythical items K* must be less than 1450.3. The exact value of K (and thereby proportion of unowned/unowned mythical items) depends on points 1) and 2) above and may or may not be hard to find, however, I was unable to find an exact solution, however a reasonable conjecture would be that the optimal proportion of unique mythical items owned before opening Ultra Mythical boxes is a multiple of 0.7. Simulation suggests that the multiple is 1.16. So it is more profitable to open Ultra Mythical boxes when one owns at least 81 percent of the possible mythical items.

Simulation Results

First lets look at Token cost following the procedure in Section 2. The X-axis is a fixed value of Ngb which admits a value of Num(Ngb) or, the number of Ultra Mythical boxes required to open before owning at least one of each mythical item. Given the values Ngb and Num, we can compute the total Token cost. Again, prices are assumed to be the regular discounted prices (120T,450T). The dots represent individual simulations and the solid line represents the average over simulations. Following the rule for Ngb* = 145*1.16, the minimum average one can expect to spent just under 35,000T in pursuit of owning every mythical item.

The associated number of Ultra Mythical boxes given Ngb is given by:

So that’s a lot of Tokens right? The prudent Supermech pilot may then ask: what is the relationship between opening boxes and the number of different mythical items? The next figure explores this relationship. The figure plots the proportion of mythical items owned against the number of boxes opened where boxes opened before the Ngb-th (or 168th) box are Gold boxes and the ones opened after are Ultra Mythical boxes. Individually, the segments before and after Ngb are decreasing since each new mythical item owned means the pool of unowned mythical items is smaller. After the strategy transitions to opening Ultra Mythical boxes, there is a dramatic increase in the marginal proportion ownership. This instantaneous increase is followed by a decreasing trend for the same reasons as with the Gold boxes.

The last graph also reveals the average performance of a dedicated but not necesarrily dollar-paying-player. If we count up all sources of equivalent gold boxes (daily missions, campaign Tokens, campaign mythicals, achievements, and free Gold boxes from special events), the player reasoanble has access to 20 to 40 percent of the possible mythical items.

That means that, following the assumptions about equiprobability draws, then the expected number of unique mythical items by category is

##3) TL;DR

  1. Only open Gold and Mythical boxes.
  2. Open Gold boxes until the proportion of unique mythical items you own exceeds 0.7*1.16, then open Ultra Mythical boxes.
  3. Since this works out to over 150 Gold Boxes, an easier to remember rule would be to never open Ultra Mythical boxes.

and most importantly

  1. This is a guideline which hinges on lots of assumptions. At the end of the day, this is a game, so do what makes you happy. I admit I’ve opened Silver boxes (due to impatience and belief that This Time Will be Lucky! and Time is Running out on the Sale!) and I’ve also opened an Ultra Mythical box when I owned next to no mythical items because its ULTRA.

##4) FAQ
Q: Y u do dis?
A: Because I’m a jelly scrub who has a grand total of zero God Modes, zero Lava Sprays, zero of any of the God Mode legs, and zero of many more notable mythical items and wanted to rationalize my failures in the Arena.

Q: You’re wrong!
A: I might be! I did this in a night and I make mistakes (just like how I make mistakes in the Arena - hah) so feel free to point them out!

Q: Is the code available?
A: Yes, it is written in Matlab. If you’re interested, hit me up and Ill send it to you.

Q: Why is this in Fanart?
A: What is art?


#2

You seem to be very smart… Which maths have you studied?
I can only do like hyperbolic geometry and algebra…

Also, great job on this post. But with my common sense I already knew that gold boxes were the way to go :wink: It just seemed to obvious that it would be, right?


#3

Glad you liked the post EchoNox!

I lean more towards the applied side and stats so this was right up my alley.

Intuition told me gold boxes were the way to go as well, however we were discussing when when one might want to open ultra mythical instead and that obviously depends on the added value of the 30% not in inventory condition. So, realizing that if you had only one of the 145 missing, a ultra myth box is very reasonable. Then, the next question I had was: at which point is it better to open ultra mythical boxes? I played with the idea a bit and knew that the critical point was somewhere above 70% mythical ownership but wasn’t sure exactly where so I had to find out lol.

And that lead to this post!


#4

come on, i teach mathematics in a college. but i am not that crazy to drive that into a game; drains away the fun part. afterall a game loses its beauty if you approach it scientifically(imagine a soccer team which has all the scientific advantage than rest of the teams, they always doing precise shots , winning all the matches; where is the fun in that ) i won several matches lost many too; forces you to change your strategy

try this non-mythical combination for a change(hope your experience level in campaign is near 30)
2 weapons of 60-70 damge(heat desolver,heat penetrator,energy dissover, energy penetrator,caseus,yellow beam,yellow ,etc etc) in 2-4 range
a weapon with 1-3 range and 1-2 knockback
a weapon with 1 pull
try it and let’s see what happens


#5

My points about being salty about my equipment was totally a joke! Surely as one who teaches math, you can appreciate the curiosity of the question? This is why this is posted in Fan Art, because this question individualistically appeals to me. To me, Emcee MC is fun..

What drives you (hah the mech driver) may be something different than what me. At the time of writing, I needed to know the answer. Today, my goal is to build the most beautiful looking mech (to me). This is a future fan art post.

I’m currently rank 1 with one or two off from full stars so I’d like to say I am both reasonably accustomed to getting rekted and wrecking other mechs, though you could say at a lower level than another player who is Top x on the ladder.


#6

I for one think it’s very cool that someone took the time and effort to calculate these things out and show them so visually :slight_smile:


#7

How can i give 100 likes to this guy?


#8

@whichshouldnotbe you sir, are a scholar and a gentleman; Thank you for the in-depth analysis.


#9

Glad y’all enjoyed this!

@KilliN, one like is enough, but I will cherish it as if it were 100.


#11

Kudos to you! This is pretty awesome.


#12

Hmmmm Good and Nerdy one !!!

Can you do the simulation on those too?

http://community.tacticsoft.net/t/campaign-grinding-sm-spending-guide-maximized-for-fusion/1261?u=pirpisgr