<jupyter_start><jupyter_text>Monty Hall Problem Simulator ![Monty Hall](IMG/montydoor.png) This notebook runs a python script that has been written to simulate the "Monty Hall Problem" (Wikipedia - https://en.wikipedia.org/wiki/Monty_Hall_problem). The script simulates the game 10,000 times each for each situation (either the contestant stays or switches). It then plots the results for the number of wins and losses in each case. Each time the program is run and new set of data is simulated.<jupyter_code>#Tell matplotlib to run its graphics "inline"
%matplotlib inline
#Run the Monty Hall Simulator
%run montysim.py<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.06615384615384616, 'fraction_numerical': 0.007692307692307693, 'mean_word_length': 5.575757575757576, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '460348', 'license': 'Apache-2.0', 'n_tokens_mistral': 196, 'n_tokens_neox': 182, 'n_words': 84, 'path': 'Week 02/Monty Hall Simulation.ipynb', 'repo_name': 'shkyler/gmit-foda-trials', 'size': '650'}