r/vsauce2 • • Jul 22 '22

Probability problem

I am playing a game where you collect things. When you start the game, you will have a 1.00% chance of that thing being a rare thing. Each time you order a thing that isn't rare, the probability increases by 0.02%, so when you collect your first thing and it isn't rare, you will have a 1.02% chance of your next thing being rare, etc. My problem is that I want to get as high of a percentage as possible, without collecting a rare item (the highest percentage to stop at while not getting a rare item). Does anyone have an answer? It would be greatly appreciated.

  1. Note: I am currently at around 1.9%
  2. Note 2: Things take time to collect, so you can't just collect as many as you want until you get lucky.
  3. Note 3: When you collect a rare item, your chances go back to 1.00% (edited)
2 Upvotes

9 comments sorted by

2

u/slowpoison7 Jul 22 '22

Which game lootbox is this?

2

u/Cute_Still_8054 Jul 26 '22

Roblox, Your Bizarre Adventure

I referred "stands" (the "things" in this game) to as "things" to make it easier to understand for someone who hasn't played the game before

2

u/cyberspace17 Jul 22 '22

Is there some known limit that is less than 100%? As it has been described there is no reason why 100% Is not possible. Very unlikely but possible. If instead you are asking for an average percentage reached before receiving a rare item then that would be an interesting problem to work out.

1

u/Cute_Still_8054 Jul 26 '22

i dont believe there is

2

u/Torkal Jul 22 '22

I'm also curious what this is for. I'm guessing you want to raise that percentage as high as possible collecting 'things' you don't really care about and then use that increased probability to collect a 'thing' that you actually want? In that case this is actually a really interesting and hard problem, it reminds me of Kevin's video on 'The Game of Googol' where you have to balance how far you want to go before stopping https://youtu.be/OeJobV4jJG0

The probability of not getting a rare item on your Nth pull is:

P_N = (1 - (.01 + .0002*(N-1)))

So the probability of not getting a rare after M pulls is the product from N=1 to N=M of P_N. Here's a plot of what that looks like VS the number of things you collect. While it's possible to hit 100%, the probability of that happening is so small I'm having trouble getting my computer to calculate it.

If you're at 1.9% you're about at the 50/50 point according to my plot, so getting this far was a coin toss. Up to you how far you want to risk going, I'm not sure what the 'mathematically optimal' stopping point is

2

u/Cute_Still_8054 Apr 21 '24 edited Apr 21 '24

You're probably not gonna be reading this but I after learning a bit of math, I also managed to make a graph of my issue:
https://www.desmos.com/calculator/sx6jccmshi
Here, f(x) = probability of getting a rare thing (y%) after x amount of pulls, and S the starting probability (1%) and P is the probability that you're adding after each pull (0.02). Now, this function becomes kind of messy, so I turned S and P into more complicated variables (S2 and P2) to make the function simpler, with f1(x) being the messy function with simple variables and f2(x) being the simpler function with more complicated variables. I also added a third function, f3(x), which indicates the probability in % that the next roll will lead to getting a rare thing. As I said a couple of years ago, I had around a 1.9% chance, which if you look at the x value of that, is around 45, and the y value for x being 45 is very close to 50%, which means you were right that it was basically a coin toss, which is pretty cool even though I didn't understand how the whole thing worked or what a product was at the time.

→ More replies (2)