It is indeed quite similar to the Monty hall problem.
However, I cannot see any way that you could possibly derive a greater than 50% probability that the remaining bill is a $1. That's why I was curious to see your reasoning there.
It is indeed quite similar to the Monty hall problem.
The switcheroo has already occurred, the prob cannot be the obvious 50%.Flannel Jesus wrote: ↑Sat Jul 16, 2022 6:34 pmIt is indeed quite similar to the Monty hall problem.
However, I cannot see any way that you could possibly derive a greater than 50% probability that the remaining bill is a $1. That's why I was curious to see your reasoning there.
I think the $100 does give us (incomplete, imperfect, probabilistic) information about which box we initially selected. If I make a more extreme example, I think you'll agree.
In this case the bag with the 49 red balls no longer offers a 1/2 and 1/2 probability as in the previous case.Flannel Jesus wrote: ↑Sat Jul 16, 2022 9:49 pmI think the $100 does give us (incomplete, imperfect, probabilistic) information about which box we initially selected. If I make a more extreme example, I think you'll agree.
Instead of two boxes with two bills each, imagine I had two bags with 50 coloured balls each. One of the bags has 50 blue balls. The other bag has 1 blue ball, and 49 red balls. I present you the two bags, you don't know which one is which, so you choose one bag at random. Then you stick your hand in and pick out one ball at random. The one ball you picked out is blue.
Does the fact that you selected a blue ball give you any possible information about what bag you selected? Are you more likely to have selected the bag full of blue balls, once you see that you've selected a blue ball? Or are you just as likely to have selected the bag with 49 red balls?
Code: Select all
from random import shuffle
from copy import deepcopy
boxes = [ [100,100], [100,1]]
other_note_was_1=0
other_note_was_100=0
# Perform the experiment a million times
for _ in range(1000000):
shuffle(boxes) # Shake!
shuffle(boxes[0]) # Shake!
shuffle(boxes[1]) # Shake!
box = boxes[0] # Grab one of the two boxes
note = box[0] # Grab one of the two notes in the box
if note==100:
# If the note is 100 observe the other note and keep count of its denomination.
if box[1] == 1:
other_note_was_1 +=1
else:
other_note_was_100 += 1
else:
# Challenge doesn't tell us what to do here.
pass
probability = float(other_note_was_100) / (other_note_was_100 + other_note_was_1)
print(probability)Yes,Flannel Jesus wrote: ↑Sat Jul 16, 2022 11:30 pm Right, the fact that you drew a blue ball gives you imperfect information about what bag you're likely to have chosen. Imperfect because you still MIGHT have chosen the bag with 49 red balls, and then just lucked into hitting the only blue ball in that bag -- that's still a realistic posssibility. But, we can easily recognize that it's less probable, and that it's more probably the case that you chose the bag completely full of blue balls.
The same principle, in my opinion, applies to the original question. The fact that you selected a $100 bill gives you a slight probabilistic inclination to think that you likely did choose the box with 2x $100, and less probable that you chose the box that only has 1x $100 and 1x $1.
What extraction? You mean the fact that you selected the $100 bill changes nothing? Of course it does, it changes everything. The alternative is that the first bill you selected was a $1, in which case you'd be guaranteed that the remaining bill is $100
Oh my mistake, you saying that you "don't have any extra box related knowledge" made me think you were saying 50/50. This happens to be correct, it's a 1/3 chance to select a 1 and a 2/3 chance to select a 100bobmax wrote: what I was trying to say is that the probability of taking a $ 100 bill out of the box with two $ 100 is twice that of taking it out of the other box.
I appreciate this approach. I don't think figuring it out analytically is boring, but I admire the experimental approach just as well. You are correct, you've approximated the probability very closely.Skepdick wrote: ↑Sun Jul 17, 2022 12:34 am The probability is ≈0.666663 (n=1000000)
How do I know? Empirically. I did the experiment a million times and kept score.
Or you could just do the boring thing and use the formulas for conditional probability.Code: Select all
from random import shuffle from copy import deepcopy boxes = [ [100,100], [100,1]] other_note_was_1=0 other_note_was_100=0 # Perform the experiment a million times for _ in range(1000000): shuffle(boxes) # Shake! shuffle(boxes[0]) # Shake! shuffle(boxes[1]) # Shake! box = boxes[0] # Grab one of the two boxes note = box[0] # Grab one of the two notes in the box if note==100: # If the note is 100 observe the other note and keep count of its denomination. if box[1] == 1: other_note_was_1 +=1 else: other_note_was_100 += 1 else: # Challenge doesn't tell us what to do here. pass probability = float(other_note_was_100) / (other_note_was_100 + other_note_was_1) print(probability)
I would like to challenge you to apply your logic to a second, similar but different puzzle:bobmax wrote: ↑Sat Jul 16, 2022 9:40 pm The difficulty comes from assuming that you know what you don't really know.
In fact, we only know that a $ 100 bill was pulled from one of the two boxes.
Nothing more is known.
Because the $ 100 bill doesn't add any other box-related knowledge.
Which remain equivalent.
A $ 1 bill would have been different.
The two boxes remain in the game.
The remaining bills are two $ 100 and one $ 1. All with equal probability.
1/2Flannel Jesus wrote: ↑Sun Jul 17, 2022 8:58 amI would like to challenge you to apply your logic to a second, similar but different puzzle:bobmax wrote: ↑Sat Jul 16, 2022 9:40 pm The difficulty comes from assuming that you know what you don't really know.
In fact, we only know that a $ 100 bill was pulled from one of the two boxes.
Nothing more is known.
Because the $ 100 bill doesn't add any other box-related knowledge.
Which remain equivalent.
A $ 1 bill would have been different.
The two boxes remain in the game.
The remaining bills are two $ 100 and one $ 1. All with equal probability.
This scenario is just like the first, but instead of 2 boxes, there are 3 boxes.
1 box has $1 and $100
1 box has $1 and $100
1 box has $100 and $100
Just like the first scenario, in this scenario you choose a box, essentially at random - you have no idea if you chose the box with 2x $100 or if you chose one of the 1 + 100 boxes. And once again, you pick out a bill at random, and you happen to find that you picked a $100.
So, just as in the first scenario, the question is, what' the probability that the other bill remaining in the box is also $100?