Discover the mathematical concepts and calculations that power our case opening simulator
The expected value of opening a case is calculated using probability theory and represents the average amount you would receive if you opened the case an infinite number of times.
probabilityi
= chance of getting item i
valuei
= market value of item i
For Case Hardened items that can be Blue Gems, we adjust the expected value calculation to account for pattern probabilities:
non_blue_patterns
= number of non-blue gem patterns (out of 1000)
tier_patternsi
= number of patterns in tier i
tier_valuei
= value of blue gems in tier i
To understand the risk and calculate required bankrolls, we need to know how much the returns can vary from the expected value.
The required bankroll is calculated to ensure you have enough money to avoid bankruptcy with a specified confidence level.
μ
= net expected value per case
σ
= standard deviation per case
n
= number of cases
z
= z-score for confidence level C
Given a user's bankroll, we calculate the probability they won't go bankrupt.
Each item has a float value (wear) that affects its price. We calculate average prices by considering the distribution of possible float values and their corresponding price impacts.
sharei
= probability of wear category i
midpointi
= middle float value in category i
price()
= price function based on item type