Jump to content
BrainDen.com - Brain Teasers
  • 0

Digging Probabilities


flamebirde
 Share

Question

So the other day I was watching a speedrun of the Legend of Zelda: Ocarina of Time (a speedrun is a playthrough of a game with the intent of beating the game as fast as possible). In one particular part of the game, the player is forced to follow around a gravedigger as he digs up various holes. There is one particular outcome that is desired (the "jackpot" of the game, essentially): a permanent health upgrade. There are also three undesirable outcomes that only give out money: a green rupee (the least valuable prize, pretty much $1), a blue rupee (a fairly desirable prize, say about $5), and a red rupee (a very desirable prize, say $20).

Here are the rules:

The chances of digging up a green rupee is 40%, a blue rupee 30%, a red rupee 20%, and the health upgrade 10%.

If the gravedigger has dug up eight green rupees already, and he would dig up a ninth green rupee this time around, he will instead dig up the health upgrade.

If the gravedigger has dug up four blue rupees already and he would dig up a fifth this time around, he will instead dig up a green rupee.

If the gravedigger has dug up two red rupees already and he would dig up a third this time around, he will instead dig up a blue rupee.

As a result, the maximum number of attempts to dig up the health upgrade is fifteen.

Example: four blue rupees and two red rupees have been dug up. If the gravedigger hit the 20% chance to dig up a red rupee on his seventh total attempt, he would instead dig up a blue rupee. However, four blue rupees have already been dug up, so he would actually dig up a green rupee.

After digging up the health upgrade, the game is over.

 

Three questions:

One: what is the probability that it will take a player the maximum number of tries to dig up the most desirable outcome (the health upgrade)?

Two: What is the expected average number of tries for the health upgrade?

Three: There exists two methods to play this minigame. First is the method described above. Second is that after the first dig, the player exits and reenters the area. This resets the green/blue/red rupee counter, but also allows the player to try another dig far faster. This introduces the potential for an infinite number of tries (the world record currently sits at about 100, which is pretty unlucky to say the least). Say it takes a player ten seconds between digs using the first method, and five seconds between digs using the second method. On average, which one will get you the health upgrade the fastest?

 

Disclaimer: I've got an answer to the first question and maybe the second, but I've got no clue for the third.

Edited by flamebirde
Spelling.
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

My understanding of the puzzle

  Reveal hidden contents

If that's all true, then

Q1:

  Reveal hidden contents

Q2:

  Reveal hidden contents

Q3:

  Reveal hidden contents

 

 

Link to comment
Share on other sites

  • 0
  On 1/19/2018 at 7:33 AM, bonanova said:

My understanding of the puzzle

  Reveal hidden contents

If that's all true, then

Q1:

  Reveal hidden contents

Q2:

  Reveal hidden contents

Q3:

  Reveal hidden contents

 

 

Expand  

Question 1:

  Reveal hidden contents

Questions 2 and 3 are correct! Followup question: What are the chances I get the health from the 14th dig versus the 15th dig? Do they differ significantly?

Link to comment
Share on other sites

  • 0
  On 1/20/2018 at 2:05 AM, flamebirde said:

Followup question: What are the chances I get the health from the 14th dig versus the 15th dig? Do they differ significantly?

Expand  

Assuming your interest is in Method 1:

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

No spoiler needed:

There are only three no-win-after-13-digs possibilities:

  1. BBBB BBB GGGG RR  Win on dig 14 with G or R or H = 60%.  Win on dig 15 with B = 40%
  2. BBBB BBBB GGG RR  Win on dig 14 with R or H = 30%.         Win on dig 15 with B or G = 70%
  3. BBBB BBBB GGGG R  Win on dig 14 only with H = 10%.         Win on dig 15 with B or G or R = 90%.

Their relative occurrences were not saved in the simulations, so it's a bit uncertain how weight these cases when taking an average. But if they are equally likely, the relative dig-14 and dig-15 wins would be exactly 33.33...% and 66.66...% That is, Win 15 would be twice as likely as Win 14.

For the simulations, the last few probability estimates are the least precise, because they are averages of fewer cases. In particular, the probability of going beyond 13 digs is only 5.6%, so that out of 2 million total cases, only about 112,000 14-digs or 15-digs cases were averaged. Those relative win probabilities are 35.7% and 64.3% respectively.

I'll point out that the proportions of needed B G R and H (8 4 2 1) are similar to their occurring probabilities ( 40% 30% 20% 10% ). That partially justifies an equal-likelihood assumption. But the proportions do differ, somewhat. In particular, B is needed 8/15 of the time but occurs only 40/100 = 4/10 = 6/16 of the time. This fact might well make a missing-B-after-13-moves (Case 1) the most likely case of the three. That case has the highest win-14 probability. So we might expect an upward bias on the win-14 probability. The simulation suggests that is the case.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...