Question 1 You roll a 6-sided die 10 times What is the...

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

In [1]: # Initialize OK from client.api.notebook import Notebook ok = Notebook( 'hw06.ok' ) Homework 6: Probability, Simulation, Estimation, and Assessing Models Reading : Randomness () Sampling and Empirical Distributions () 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 Sunday, 7/12 at 11:59pm. Start early so that you can come to office hours if you're stuck. Check the website for the office 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 staff 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. ===================================================================== Assignment: Homework 6: Probability, Simulation, Estimation, and Asses sing Models OK, version v1.12.5 =====================================================================
In [9]: # 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 ) 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. You must assign the provided variable to one of the following three integers, depending on whether the proposed answer is too low, too high, or correct. 1. Assign the variable to 1 if you believe our proposed answer is too high. 2. Assign the variable to 2 if you believe our proposed answer is too low. 3. Assign the variable to 3 if you believe our proposed answer is correct. You are more than welcome to create more cells across this notebook to use for arithmetic operations Question 1. You roll a 6-sided die 10 times. What is the chance of getting 10 sixes? ===================================================================== Assignment: Homework 6: Probability, Simulation, Estimation, and Asses sing Models OK, version v1.12.5 ===================================================================== Successfully logged in as [email protected]
In [10]: ten_sixes = 3 ten_sixes In [11]: ok . grade( "q1_1" );

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture