Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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, 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
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