Question: (10) Python Exercise [10 points total]. Submit two files: 1. explanations, graphics (if any) and results in PDF format with your Python code, and 2.

 (10) Python Exercise [10 points total]. Submit two files: 1. explanations,

(10) Python Exercise [10 points total]. Submit two files: 1. explanations, graphics (if any) and results in PDF format with your Python code, and 2. Python Code itself in .ipynb (or .py) format. Group work policy: You can discuss the problem together with your friends but you have to submit your own work (PDF and Python codes). Suppose that we continually roll a die until the sum of all throws exceeds 130. What is the most likely value of this total when you stop? We shall answer this question by numerical simulation (a) [2 points] Generate a random number from rolling a die once (b) [2 points] Generate one sample path of rolling a die until the sum of all those exceeds 130 (c) [2 points] Generate 10000 sample paths, each of which represents rolling a die until the sum of all those exceeds 130. You should not print all the values. Then compute the total sum of each sample paths (d) [2 points] Draw the histogram, compute the sample mean, and compute the variance of the total sum from part (c)

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 Databases Questions!