hw06.pdf - Homework 6 Probability Simulation Estimation and...

This preview shows page 1 - 4 out of 26 pages.

Homework 6: Probability, Simulation, Estimation, and Assessing Models Reading : Randomness () Sampling and Empirical Distributions (- empirical-distributions.html) Testing Hypotheses () Please complete this notebook by filling in the cells provided. Before you begin, execute the following cell to load the provided tests. Each time you start your server, you will need to execute this cell again to load the tests. Homework 6 is due Thursday, 10/4 at 11:59pm. You will receive an early submission bonus point if you turn in your final submission by Wednesday, 10/3 at 11:59pm. Start early so that you can come to o ce hours if you're stuck. Check the website for the o ce hours schedule. Late work will not be accepted as per the policies () of this course. Directly sharing answers is not okay, but discussing problems with the course sta ff or with other students 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, you must provide your answer in the designated space. Moreover, throughout this homework and all future ones, please be sure to not re-assign variables throughout the notebook! For example, if you use max_temperature in your answer to one question, do not reassign it later on.
In [1]: 1. Probability We will be testing some probability concepts that were introduced in lecture. For all of the following problems, we will introduce a problem statement and give you a proposed answer. Next, for each of the following questions, you must assign the provided variable to one of three integers. You are more than welcome to create more cells across this notebook to use for arithmetic operations, but be 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: Assign ten_sixes to either 1, 2, or 3 depending on if you think our answer is too low, correct, or too high. ( 1 6 ) 10 ===================================================================== Assignment: Homework 6: Probability, Simulation, Estimation, and Asses sing Models OK, version v1.12.5 ===================================================================== Successfully logged in as [email protected] # Don't change this cell; just run it. import numpy as np from datascience import * # These lines do some fancy plotting magic. import matplotlib % matplotlib inline import matplotlib.pyplot as plt plt.style.use( 'fivethirtyeight' ) import warnings warnings.simplefilter( 'ignore' , FutureWarning) from client.api.notebook import Notebook ok = Notebook( 'hw06.ok' ) _ = ok.auth(inline = True )
In [2]: In [3]: Question 2.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture