hw06 (1).pdf - hw06 November 13, 2019 1 Homework 6:...

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

The preview shows page 2 - 3 out of 23 pages.
hw06November 13, 20191Homework 6: Probability, Simulation, Estimation, and Assess-ing ModelsReading: *Randomness*Sampling and Empirical Distributions*Testing HypothesesHomework 5 is due Friday, 10/11 at 11:59pm. Start early so that you can come to offce hours ifyou’re stuck. Check the website for the offce hours schedule.After you have submitted your work, go to okpy.org and check if your submission file can be read.If you have multiple submissions, mark the one that you want to be graded. Let the TAs know ifyour submission is incomplete for some reason.Please 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.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.Note that the following error message is expected, and can be ignored.ERROR | auth.py:102 | {‘error’: ‘invalid_grant’}If you encounter an error that says the name client cannot be found, please check if you launchedthe notebook from the ids environment.[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)importrandom1
fromclient.api.notebookimportNotebookok=Notebook('hw06.ok')try:_=ok.auth(inline=True)except:_=ok.auth(inline=True, force=True)=====================================================================Assignment: Homework 6: Probability, Simulation, Estimation, and AssessingModelsOK, version v1.14.15=====================================================================Successfully logged in as [email protected]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 aremore 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.

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 23 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Simple random sample

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture