Question
Define the function deck_simulation_and_statistic, which, given an integer sample size and an array of model proportions (like the one you created in Question 5.1), returns
Define the function deck_simulation_and_statistic, which, given an integer sample size and an array of model proportions (like the one you created in Question 5.1), returns the number of face cards in one simulation in of drawing cards under the model specified in model_proportions. The included final line of code in the cell below will call your function to simulate drawing 13 cards from the deck using the probabilities assigned to the array deck_model_probabilities and return how many face cards those 13 drawn cards contained.
Hint: Think about how you can use the function sample_proportions contained in the datascience library.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started