Problem 2 Use any computer programming language (Python is recommended) to simulate rolling a fair...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Problem 2 • Use any computer programming language (Python is recommended) to simulate rolling a fair six-sided die on a computer. You'll perform the same number of trials as if you were rolling the die physically. To do this, you can use a uniform pseudo-random number generator. Hint: Divide the (0, 1) interval into k bins, i.e. (0.11... (1,1). Each bin corresponds to a specific outcome, just like the faces of a die. When you run a random trial, it's like picking a number from 0 to 1, and you check which bin it falls into to determine the result of that trial. Copy your code here. (20 points) print("Hello World!") • Run B = 100 of simulated experiments and compute X,, for each of these simulated experiments. Plot the histogram of X for this 100 data. Find the value of X that you found using your own physical experiment. Do you have enough evidence that your die was a fair die? Why? Indicate i) the average of these 100 X, ii) your value of X in Problem 1, and iii) the value of k (or k-1) on this histogram and conclude. (30 points) print ("Hello World!") 25 20 15 10 5 0 Histogram of x 5 0 10 15 The mean of the simulated X, b = 1,..., 100 is denoted by a triangle, value of the experiment from Problem 1 is denoted by a cross, while k dentoes the number of faces. Problem 2 • Use any computer programming language (Python is recommended) to simulate rolling a fair six-sided die on a computer. You'll perform the same number of trials as if you were rolling the die physically. To do this, you can use a uniform pseudo-random number generator. Hint: Divide the (0, 1) interval into k bins, i.e. (0.11... (1,1). Each bin corresponds to a specific outcome, just like the faces of a die. When you run a random trial, it's like picking a number from 0 to 1, and you check which bin it falls into to determine the result of that trial. Copy your code here. (20 points) print("Hello World!") • Run B = 100 of simulated experiments and compute X,, for each of these simulated experiments. Plot the histogram of X for this 100 data. Find the value of X that you found using your own physical experiment. Do you have enough evidence that your die was a fair die? Why? Indicate i) the average of these 100 X, ii) your value of X in Problem 1, and iii) the value of k (or k-1) on this histogram and conclude. (30 points) print ("Hello World!") 25 20 15 10 5 0 Histogram of x 5 0 10 15 The mean of the simulated X, b = 1,..., 100 is denoted by a triangle, value of the experiment from Problem 1 is denoted by a cross, while k dentoes the number of faces.
Expert Answer:
Answer rating: 100% (QA)
It appears that youve shared an image of a problem statement asking to simulate the rolling of a fair sixsided die using a computer programming langua... View the full answer
Related Book For
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord
Posted Date:
Students also viewed these programming questions
-
Is Mountain Man Light feasible for Mountain Man Brewing Company? What is required for Mountain Man Light to break even in one year? In two years? What cannibalization rate is reasonable? Include a...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
The Commerce Department reported that in December 2015, retail sales rose by 0.2, net exports decreased, inventories held by businesses rose by 0.1 percent, and total sales by businesses fell by 0.6...
-
The 66 low-orbit satellites in the Iridium project are divided into six necklaces around the earth. At the altitude they are using, the period is 90 minutes. What is the average interval for handoffs...
-
How can the matrix representing a relation R on a set A be used to determine whether the relation is irreflexive?
-
An idealized model of the normalized power spectral density of a gas laser oscillating in \(N\) equal-intensity axial modes is \[ \widehat{\mathcal{G}}(v)=\frac{1}{N} \sum_{n=-(N-1) / 2}^{(N-1) / 2}...
-
The stockholders equity section of Villa Corporations balance sheet as of December 31, 2013, follows. Contributed capital: Common stock , $4 par value, 500,000 shares authorized, 200,000 shares...
-
Currently there is discussion by the members of NAFTA to form an optimum currency area. Support or do not support the creation of an optimum currency area. What are the advantages and disadvantages...
-
Sam Easton started out as a real estate agent in Atlanta ten years ago. After working two years for a national real estate firm, he transferred to Dallas, Texas, and worked for another realty agency....
-
Miss Quaye is an entrepreneur is an entrepreneur who specializes in the production of wig caps from Brazilian virgin hair. She purchase most of her virgin hair from the online trading store Alibaba...
-
Journal Prompt for Unit 3 After reviewing all the material in this Unit and completing your two assignments (paper and assignment), how has your view of the role of dance in your life changed?
-
Rationale as to why founder equity vesting makes sense in a term sheet for Canva from an investor's perspective?
-
Reno contributed $104,000 in cash plus equipment valued at $27,000 to the RD Partnership. what is The journal entry to record the transaction for the partnership ?
-
Your boss, the CIO of an innovative sovereign pension fund, asks you to prepare a report on the benefits of factor investing. In particular, the CIO asks you to create an active portfolio that...
-
Cordeio, Inc., is a controlled foreign corporation (CFC) for the entire tax year. Yancy Company, a U.S. corporation, owns 75% of Cordeio's one class of stock for the entire year. Cordeio's Subpart F...
-
To achieve low PT error, the burden value should be (A) low (C) medium (B) high (D) none of the above
-
1. Advertising for eyeglasses _________ (increases/decreases) the price of eyeglasses because advertising promotes _________. 2. An advertisement that succeeds in getting consumers to try the product...
-
What is the optimal temperature that computing equipment can operate in? a. No less than 40 degrees Fahrenheit b. Between 50 and 60 degrees Fahrenheit c. Between 70 and 74 degrees Fahrenheit d. Does...
-
Apply knowledge that these professionals are aligned with an information securitys community of interest. Review the fact that their goal is to protect an organizations information and stored...
-
I. Examine the purpose of a background check and why it is important to investigate the candidates past because criminal behavior could indicate the potential for future misconduct. II. Review the...
-
Why should projects be linked to the organisation's Strategic Plan?
-
What is the BCG matrix and how is it used?
-
Reflect on how the 'pair-wise' criterion system could be applied in your organisation. Against which criterion would you carry out prioritisation?
Study smarter with the SolutionInn App