Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

coding in python using jupyter hub 3. In this question you will do a version of the dice rolling problem we did in lecture. Instead

coding in python using jupyter hub
image text in transcribed
3. In this question you will do a version of the dice rolling problem we did in lecture. Instead of a six-sided die, we will consider a four-sided "die", i.e. a "d4" (for the tabletop gamers!). Call the "faces" of the die ' 1 ', '2', '3', and '4'. For all questions, assume a fair die. (Also, don't get too hung up on how you can tell which side is up: if you want to know more, you can read here, but for these questions just assume you know which side lands up.) (a) Produce 10 rolls of the die. Plot the resulting histogram of outcomes (i.e, how many times each value was rolled). Your plot must have a title and labeled axes. (It does not matter what order the results are presented in on the x-axis) (b) Of your 10 flips, what proportion came up '4'? Theoretically, what proportion would you expect to come up '4'? (c) Perform a second simulated die rolling experiment, but this time with 100 rolls. Report the histogram, again including a title and labeling axes. (d) Place a red line across the figure you generated in the previous question (where you rolled 100 times) that indicates the count you would theoretically expect for the number of each outeome. Report this revised histogram with title, axes labels, and the horizontal red line (note it's ok (and to be expected) if this histogram is slightly different in terms of outcomes compared to the previous one). (c) Perform the experiment one third and final time with 10,000 rolls. Report the histogran, including a title, axes, and a red line where the theoretical expected outcome would ber

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

24.3. How is a typical natural gas forward contract structured?

Answered: 1 week ago

Question

=+What about SRI funds? Why, or why not?

Answered: 1 week ago

Question

=+What is the most that you should pay to complete development?

Answered: 1 week ago

Question

=+development and make the product, should you go ahead and do so?

Answered: 1 week ago