Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °
| |
|
|
You are not logged in. #1 2005-09-03 12:54:23
The TV show Numb3rs and probabilityOk you gotta admit this show is cool but I don't always know if this guy is talking math or if someone is just making this math up but, well he gave a wierd probability example that doesn't make sense.. A logarithm is just a misspelled algorithm. #2 2005-09-03 13:47:25
Re: The TV show Numb3rs and probabilityI think that you should switch because they didn't open the goat curtain at random, they may have specifically Imagine for a moment that even an earthworm may possess a love of self and a love of others. #3 2005-09-03 13:59:30
Re: The TV show Numb3rs and probabilityBut regardless of which one you pick, there will always be one goat remaining. A logarithm is just a misspelled algorithm. #4 2005-09-03 14:03:48
Re: The TV show Numb3rs and probabilityBut it's not about changing your mind, it's what they have done. They chose not to open the curtain with Imagine for a moment that even an earthworm may possess a love of self and a love of others. #5 2005-09-03 14:41:56
Re: The TV show Numb3rs and probabilityYes, it is a known puzzle, and numb3rs seems to have got it right (though I haven't seen that episode). "The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman #6 2005-09-03 14:57:44
Re: The TV show Numb3rs and probabilityGoogle "monty hall problem" "The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman #7 2005-09-04 08:50:55
Re: The TV show Numb3rs and probabilityOk I looked around and read a couple explanations. None of them made sense untill I read one that considered all possibilites. This uses goat A and goat B. A logarithm is just a misspelled algorithm. #8 2005-11-22 19:03:27
Re: The TV show Numb3rs and probabilitySorry all you people who think this works. IT DOESN'T!! #9 2005-11-22 19:28:33
Re: The TV show Numb3rs and probabilityWow, martian ... 100,000,000 times? ... wow. "The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman #10 2005-11-22 21:51:13
Re: The TV show Numb3rs and probability100 000 000 times yes!!! Last edited by martian (2005-11-22 23:32:01) #11 2005-11-22 23:49:41
Re: The TV show Numb3rs and probabilityWhat Martian says is 100% correct. #12 2005-11-23 03:39:44
Re: The TV show Numb3rs and probability
Something doesn't sound right there. You eliminated the selection. In your example, you said we will not make an official selection and reveal goat C every time. Am I correct? Pardon me if I'm not but If I am, what if you were to pick goat C when actually playing the game? The rules of the game state that when you pick one, one of the goats will be revealed, not the car, and not the one you picked. So if you pick a a door, and he flips over a goat. Now there are three possibilities at this point. You picked goat A so he has to reveal goat B. Or you picked goat B so he has to reveal got A. Or you picked the Car and he randomly flipped over one of the goats. In the first two situations, switching your choice would win you the car since its always more likely he is revealing a remaining goat. In the third situation, if you picked the car on the first try, switching would loose you the car. So in 2 out of 3 situations, switching will win you the car. Last edited by mikau (2005-11-23 03:41:50) A logarithm is just a misspelled algorithm. #13 2005-11-23 03:56:00
Re: The TV show Numb3rs and probabilityI made a post that pretty much echoed Mikau's, but when I posted it, I saw his and deleted it again. Why did the vector cross the road? It wanted to be normal. #14 2005-11-23 04:10:42
Re: The TV show Numb3rs and probability
No, I don't belive in you.
No.... Conclusion [ and Advice from a fellow (future) Computer Scientist]: Last edited by kylekatarn (2005-11-23 04:16:50) #15 2005-11-23 07:36:36
Re: The TV show Numb3rs and probabilityA most interesting debate! "The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman #16 2005-11-23 09:06:55
Re: The TV show Numb3rs and probability
C is just simply one that is not the car.
Ok, lets just say that B "is" the car. Just to clarify
Thats exactly what I did. By all means,please, check it yourself. Code:import java.util.Random;
class NumbersThing
{
public static void main(String[] args)
{
Random r = new Random();
int worked = 0;
int didnt = 0;
for (int trys = 0; trys<100000000;trys++ ){
int answer = r.nextInt(3);
int guess = r.nextInt(3);
int takeaway=guess;
//Ensures the reveiled wrong answer is not the one you guessed
while (takeaway==guess){
takeaway = r.nextInt(3);
}
//Makes sure the one reveiled was not the answer, if it was, the whole thing is discarded.
if (takeaway!=answer){
//Continue
int swap = -1;
for (int i = 0;i<3;i++){
if (i!=guess && i!=takeaway)
swap=i;
}
if (swap==answer)
//It worked
worked++;
else
//Didn't Work
didnt++;
//JUST TO MAKE SURE!
if (swap == guess){
System.out.println("ERROR");
}
}
}
double ratio = (double)worked/didnt;
System.out.println("Swapping worked: " + worked + " times");
System.out.println("Swapping didn't work: " + didnt + " times");
System.out.println("Ratio: " + ratio);
}
}-output- #17 2005-11-23 09:27:19
Re: The TV show Numb3rs and probabilityWhy did you not get a total of 100 million? Instead your total is roughly 2/3 of 100 million. 1/3 of 100 million worked, 1/3 of 100 million did not work, what about the other third? If it goes to the switch then numb3rs WAS right. Last edited by mikau (2005-11-23 09:30:34) A logarithm is just a misspelled algorithm. #18 2005-11-23 09:27:30
Re: The TV show Numb3rs and probabilityYou said it yourself. Why did the vector cross the road? It wanted to be normal. #19 2005-11-23 09:36:13
Re: The TV show Numb3rs and probabilityI know some basic C++ but I don't know much about arrays or static whatevers. lol. So I only half understand how that program works. But 1/3 of the answers are missing so somethings not right. If you flip a coin 100,000 million times, it should come up heads about 50 million times, and tails about 50 million times. If you end up with 33 million heads and 33 million tails then someone forgot to mark something down. (about 33 million times! :-O) A logarithm is just a misspelled algorithm. #20 2005-11-23 09:41:10
Re: The TV show Numb3rs and probabilityI know why 1/3 of the answers are missing, and its cause I was lazy. Rather than finding a door which wasn't the guess and which wasn't the answer, I simply picked a random number and if it wasn't the guess and wasn't the answer then I started from the top at the next itteration #21 2005-11-23 09:47:18
Re: The TV show Numb3rs and probabilityit will make a differance al right. that will happen about 1/3 of the time, and when it does, the point will go to the switcher. So that 1/3 of the points that are missing, all go to the switcher. That brings the odds up to 2/3. A logarithm is just a misspelled algorithm. #22 2005-11-23 10:08:14
Re: The TV show Numb3rs and probabilityThe idea was that the points didn't go to anyone Code:import java.util.Random;
class NumbersThing
{
public static void main(String[] args)
{
Random r = new Random();
int worked = 0;
int didnt = 0;
for (int trys = 0; trys<100000000;trys++ ){
int answer = r.nextInt(3);
int guess = r.nextInt(3);
int takeaway=guess;
//Ensures the reveiled wrong answer is not
//the one you guessed
//or the right answer
while (takeaway==guess || takeaway==answer){
takeaway = r.nextInt(3);
}
int swap = -1;
for (int i = 0;i<3;i++){
if (i!=guess && i!=takeaway)
swap=i;
}
//System.out.println("Swap: " + swap);
if (swap==answer)
//It worked
worked++;
else
//Didn't Work
didnt++;
}
double ratio = (double)worked/didnt;
System.out.println("Swapping worked: " + worked + " times");
System.out.println("Swapping didn't work: " + didnt + " times");
System.out.println("Ratio: " + ratio);
}
}Well the conclusion is, Ive been wrong. Im still confused though lol! #23 2005-11-23 10:09:12
Re: The TV show Numb3rs and probabilityI knew it! Am I a smart earthling or what? Last edited by mikau (2005-11-23 10:14:53) A logarithm is just a misspelled algorithm. #24 2005-11-23 10:15:50
Re: The TV show Numb3rs and probabilitythanks, and thanks putting up with my ignorance...lol ahaha #25 2005-11-23 10:21:42
Re: The TV show Numb3rs and probabilityNo problem. I don't believe in interplanetary discrimination. A logarithm is just a misspelled algorithm. |