hw06.pdf - hw06 November 26, 2020 1 Homework 6:...

This preview shows page 1 - 3 out of 18 pages.

The preview shows page 1 - 3 out of 18 pages.
hw06November 26, 20201Homework 6: Probability, Simulation, Estimation, and Assess-ing ModelsReading: *Randomness*Sampling and Empirical Distributions*Testing HypothesesPlease complete this notebook by filling in the cells provided.Before you begin, execute thefollowing cell to load the provided tests. Each time you start your server, you will need to executethis cell again to load the tests.Directly sharing answers is not okay, but discussing problems with the course staff or with otherstudents is encouraged. Refer to the policies page to learn more about how to learn cooperatively.For all problems that you must write our explanations and sentences for, youmustprovide youranswer in the designated space. Moreover, throughout this homework and all future ones, please besure to not re-assign variables throughout the notebook! For example, if you usemax_temperaturein your answer to one question, do not reassign it later on.[1]:# Don't change this cell; just run it.importnumpyasnpfromdatascienceimport*# These lines do some fancy plotting magic.importmatplotlib%matplotlibinlineimportmatplotlib.pyplotaspltplt.style.use('fivethirtyeight')importwarningswarnings.simplefilter('ignore',FutureWarning)importottergrader=otter.Notebook()1.11. ProbabilityWe will be testing some probability concepts that were introduced in lecture. For all of the followingproblems, we will introduce a problem statement and give you a proposed answer. Next, for eachof the following questions, you must assign the provided variable to one of three integers. You are1
more than welcome to create more cells across this notebook to use for arithmetic operations, butbe sure to assign the provided variable to 1, 2, or 3 in the end.1. Assign the variable to 1 if you believe our proposed answer is too low.2. Assign the variable to 2 if you believe our proposed answer is correct.3. Assign the variable to 3 if you believe our proposed answer is too high.Question 1.You roll a 6-sided die 10 times. What is the chance of getting 10 sixes?Our proposed answer:(16)10Assignten_sixesto either 1, 2, or 3 depending on if you think our answer is too low, correct, ortoo high.[2]:ten_sixes= 2ten_sixes[2]:2[3]:grader.check("q1_1")[3]:All tests passed!Question 2.Take the same problem set-up as before, rolling a fair dice 10 times. What is thechance that every roll is less than or equal to 5?
[5]:All tests passed!

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 18 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
Florian
Tags
Gary

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture