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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!