Once again we are back with Markov Chains inspired by a reddit thread! We’ll answer the question: “When’s the best time to switch loot box opening strategies?”

In this post we’ll go over:

- Setting up a large, sparse Markov Chain
- The perils of analyzing it with python’s built-in floating point capabilities
- Comparing simulation to Markov Chains
- Using NetworkX and decimal.Decimal to run a Markov Chain with very very very small probabilities

Let’s get to it!