Schfifty Five
Lifer
- Oct 20, 2005
- 10,978
- 44
- 91
OK i get where the confusion is between me and other people.
The 2/3rds is taking into account the first gold ball that you already pulled is included in the Probability. <--- which is correct because its the Bertrand Box Paradox.
The 1/2 is taking into account that the first gold ball pulled is given, and not calculated in the Probability. <---- which all the 50% people think, because we assume given is given.
If you do a reverse image search you'll see about 20 other forums went ape s$&@ over this problem including the body building forum from which the image is from.
You're missing the words before it.
"You pick box at random. You put your hand in and take a ball from that box at random." Including the word "if" certainly helps for clarification, but it is not required. The randomness is explicitly stated in the question, it doesn't need to be implied.
Once again, if the first ball chosen from the box is not random, there is no way to solve this problem without further information. It is either 2/3 or it is impossible to solve, you can't get 50%.
Yeah box, not boxes
I've seen this stated several times by two or three different people, and it is patently irrational. It makes no difference which ball you might pick from the G+G box, because they are identical. You can number them, name them, and imagine any number of hidden differences between them, but that cannot alter their influence on the outcome individually. Their similarity is a factor, but neither their position in the box, nor their order of being picked from the box, are relevant. It is only important that they are the same.
LOL nice edit.2/3 .... OK I just ran through the outcomes(6)
A pull -> then B
G->G
G->G
G->S
S->G
S->S
S->S
Ignore the data set starting with S:
G->G
G->G
G->S
The confusing part is that you will pull the G from the GG box more often than the G from the GS box.
LOL nice edit.
I still think it's wrong.
You have 1 ball left to pick, and it is either gold or silver.
Therefore, 50%.
Well they are wrong and solving a problem that wasn't asked.I see why the thread is so long. People explain why this is not the case in hundreds of different ways
Well they are wrong and solving a problem that wasn't asked.
Actually it's not important at all. You can change the word "gold" to "not silver" in the problem and it's obvious that it wouldn't change the problem at all.
Threads like this remind me of this:
"Think of how stupid the average person is, and realize half of them are stupider than that."
- George Carlin
OMG! George was wrong about that.
If he had an IQ above 115 he wouldn't have confused mean with median.
I see why the thread is so long. People explain why this is not the case in hundreds of different ways
lol...
its because of how the problem is worded.
As i said, its worded to sound that you would not take into account the first ball pulled.
But as Humpy pointed out, the solution to the paradox is you need to account the first ball pulled because it was stated you pulled that at random.
Hence that is the paradox.
#BertrandsBoxTest
from random import randint
Boxes = [["G","G"],["G","S"],["S","S"]]
boxesSelected = 0
firstGold = 0
secondGold = 0
for iteration in range(0,10**4):
# Select a box.
ThisBox = Boxes[randint(0,2)]
boxesSelected += 1
# Pick a coin from the box
Coin1Index = randint(0,1)
Coin2Index = int(not Coin1Index)
if ThisBox[Coin1Index] is "G":
firstGold += 1
if ThisBox[Coin2Index] is "G":
secondGold += 1
print boxesSelected, "boxes selected."
print "First coin was gold", firstGold, "times."
print "Second coin was gold", secondGold, "times."
print "If the first coin in a selected box is gold, then"
print "the second is also gold", float(secondGold)/float(firstGold)*100.00, "% of the time."
Interesting. I took discrete math in 2014 and I've already forgotten most of it.
Oh well, you can always brute-force it.
Code:#BertrandsBoxTest from random import randint Boxes = [["G","G"],["G","S"],["S","S"]] boxesSelected = 0 firstGold = 0 secondGold = 0 for iteration in range(0,10**4): # Select a box. ThisBox = Boxes[randint(0,2)] boxesSelected += 1 # Pick a coin from the box Coin1Index = randint(0,1) Coin2Index = int(not Coin1Index) if ThisBox[Coin1Index] is "G": firstGold += 1 if ThisBox[Coin2Index] is "G": secondGold += 1 print boxesSelected, "boxes selected." print "First coin was gold", firstGold, "times." print "Second coin was gold", secondGold, "times." print "If the first coin in a selected box is gold, then" print "the second is also gold", float(secondGold)/float(firstGold)*100.00, "% of the time."
Run enough iterations, enough times, and it pretty much zeroes in on 2/3.
Obviously you coded it wrong, otherwise it would have been 50%
Sorry, couldn't help myself, it's been a long thread. This is actually the third coded simulation that has been posted in this thread and all show 2/3, but my first sentence is the response given by the remnant still clinging onto hope that it's not 2/3.