Simulate the Monty Hall Problem Using Python

preview_player
Показать описание
#MontyHallProblem #Python
Simulate the Monty Hall Problem Using Python

⭐Please Subscribe !⭐

⭐Website:

⭐Support the channel on Patreon:

⭐Helpful Programming Books
► Python (Hands-Machine-Learning-Scikit-Learn-TensorFlow):

► Learning Python:

►Head First Python:

► C-Programming :

► Head First Java:

For more information on this problem:
Рекомендации по теме
Комментарии
Автор

And here's where MOST Python simulations make their mistake:

- elimination of a no-car door is random to the player
- before player makes his SEQUENTIAL PICK, he DOES NOT know whether he's picked the car or not, though he understands there are now two doors for him to choose; one door has the car, one door does not

You've interjected Monty's certainty to player's probability where Python continues with the player KNOWING he's either picked the car and/or not with his first pick before making his second sequential pick.

Python is a compiled and interpreted accelerator. You have to prompt it like you're talking to a second grader. If you've done it correctly, the answer will be a 50/50 guess between the two doors for the player's second sequential pick.

From a layman's perspective, player has ZERO probability to pick Monty's no-car door, thus having ZERO probability to gain that 1/3 or 33% no-car probaiblity. You're explaining player's probability to pick a specific door, not the probability to get the car. There is a difference between the probability to pick a specific door, and the probability to pick the car.

Lastly, I have a fan club - max5250, Araquis, Klaus7443, kt22027, KarlHeizSpock, hakancarlsson2881, endgolfviolence and Hank254, this comment is NOT for you. They are the leader drones of the emperor's new clothes and they'll be triggered to cyber bully anyone who challenges this 2/3 hoax. Let's see how quickly one or all of them responds.

TristanSimondsen
Автор

Great stuff...you really do run through the pro blem very well...please keep making these

mrmuranga
Автор

<big grin> Ever see the movie "21"?
Good video, boss. Hope you can put up more like this & talk about the math and code.

MachRadioIntercepts
Автор

great videos. I want to predict sales with the use of prior years sales information with python, can you recommend any tutorial?

keyvanhp
Автор

please upload full web app projects on python. I just finished my Associate's degree courses on Computer Science and it's difficult to find great projects where instructors explain as well as you do. Thank you so much for this project, please keep up the great work, I need a job.

inspisiavideos
Автор

Aren't the first and last elif statements incorrect?
1st elif: Player chooses door with prize and switches he WINS!?
3rd elif: Player does not choose door with prize and switches he LOSES!?

stevecollins
Автор

Wow you are great 👍 can I get this code?

pradnya
Автор

Hi Very good video but I have questions can you answer me please

jpsam
Автор

Just because the title of this question has been repeated endlessly declares or implies that intuition is wrong. After learning this explanation, some people feel that they are absolutely correct, and their egos are inflated. They cannot accept other people's thinking processes and practices, and are close to becoming beliefs. . Isn’t this also intuitive?

This also seems to make most people confuse the difference between quick thinking and intuition, and some people directly despise intuition. Don’t you think there is a problem?

Is the reality of quantum mechanics more logical than what the math? The player never knows which goat is the one revealed.。.Don’t let the Jews fool you. If life is an endless choice, then if we face it with this way of dealing with things, then what aspect of human nature is eternal?

dawyer
Автор

i cannot import matplotlolib.pyplot as plt

rkeycapthewise
Автор

NameError Traceback (most recent call last)
in <module>()
1 # Now Let's Play the game see we did write job or worse
----> 2 x = jigs_try_game(True, 10)

in jigs_try_game(switch, num_tests)
10
11 for i in range(0, num_tests):
---> 12 doors_with_prize = random.randint(0, num_door-1)
13 host = doors_with_prize
14 player_choice = random_randint(0, num_door-1)

NameError: name 'num_door' is not defined

jpsam