Question: data science class, using python3 with Jupiter 2. Rolling Dice Question 1: Simulate a random roll of a 6-sided fair die. Assume that all sides
data science class, using python3 with Jupiter
2. Rolling Dice Question 1: Simulate a random roll of a 6-sided fair die. Assume that all sides are equally likely to be obtained from a roll. In die make_array(1, 2, 3, 4, 5, 6) one random roll.. In [ ]: -=ok . grade ("g2-1') Question 2: Define a function mean_of_n_rolls that takes in an integer n and returns the mean value of n random rolls of a fair die. In meanof_n rolls (5) In - ok.grade('22') Question 3: Simulate 10 random rolls of a fair die 10,000 times. Record the mean of each set of 10 rolls in an array called ten_rolls_means Hint: You may want to use a for loop. In [1: ten_rolls_means In [:ok.grade('q2_3) 2. Rolling Dice Question 1: Simulate a random roll of a 6-sided fair die. Assume that all sides are equally likely to be obtained from a roll. In die make_array(1, 2, 3, 4, 5, 6) one random roll.. In [ ]: -=ok . grade ("g2-1') Question 2: Define a function mean_of_n_rolls that takes in an integer n and returns the mean value of n random rolls of a fair die. In meanof_n rolls (5) In - ok.grade('22') Question 3: Simulate 10 random rolls of a fair die 10,000 times. Record the mean of each set of 10 rolls in an array called ten_rolls_means Hint: You may want to use a for loop. In [1: ten_rolls_means In [:ok.grade('q2_3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
