Programming > QUESTIONS & ANSWERS > University of California, Berkeley DATA MISC Homework 6: Probability, Simulation, Estimation, and As (All)
Homework 6: Probability, Simulation, Estimation, and Assessing Models Reading: Randomness (https://www.inferentialthinking.com/chapters/09/randomness.html) Sampling and Empirical Distributions (ht... tps://www.inferentialthinking.com/chapters/10/sampling-andempirical-distributions.html) Testing Hypotheses (https://www.inferentialthinking.com/chapters/11/testing-hypotheses.html) 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. Take the same problem set-up as before, rolling a fair dice 10 times. What is the chance that every roll is less than or equal to 5? Our proposed answer: Assign five_or_less to either 1, 2, or 3. 1 − ( 1 6 )10 In [5]: Out[2]: 2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Running tests --------------------------------------------------------------------- Test summary Passed: 1 Failed: 0 [ooooooooook] 100.0% passed Out[5]: 3 ten_sixes = 2 ten_sixes _ = ok.grade('q1_1') five_or_less = 3 five_or_lessIn [6]: Question 3. Assume we are picking a lottery ticket. We must choose three distinct numbers from 1 to 100 and write them on a ticket. Next, someone picks three numbers one by one, each time without putting the previous number back in. We win if our numbers are all called. If we decide to play the game and pick our numbers as 12, 14, and 89, what is the chance that we win? Our proposed answer: Assign lottery to either 1, 2, or 3. ( 3 100 )3 In [8]: In [9]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Running tests --------------------------------------------------------------------- Test summary Passed: 1 Failed: 0 [ooooooooook] 100.0% passed ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Running tests --------------------------------------------------------------------- Test summary Passed: 1 Failed: 0 [ooooooooook] 100.0% passed _ = ok.grade('q1_2') lottery = 3 _ = ok.grade('q1_3')Question 4. Assume we have two lists, list A and list B. List A contains the numbers [10,20,30], while list B contains the numbers [10,20,30,40]. We choose one number from list A randomly and one number from list B randomly. What is the chance that the number we drew from list A is larger than the number we drew from list B? Our proposed solution: Assign list_chances to either 1, 2, or 3. 1/4 In [10]: In [11]: 2. Monkeys Typing Shakespeare (...or at least the string "datascience") A monkey is banging repeatedly on the keys of a typewriter. Each time, the monkey is equally likely to hit any of the 26 lowercase letters of the English alphabet, regardless of what it has hit before. There are no other keys on the keyboard. Question 1. Suppose the monkey hits the keyboard 11 times. Compute the chance that the monkey types the sequence datascience . (Call this datascience_chance .) Use algebra and type in an arithmetic equation that Python can evalute. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Running tests --------------------------------------------------------------------- Test summary Passed: 1 Failed: 0 [ooooooooook] 100.0% passed list_chances = 1 _ = ok.grade('q1_4')In [12]: [Show More]
Last updated: 1 year ago
Preview 1 out of 26 pages
Programming> QUESTIONS & ANSWERS > University of California, Berkeley DATA MISC Homework 10: Linear Regression (All)
University of California, Berkeley DATA MISC Homework 10: Linear Regression Reading: Prediction (https://www.inferentialthinking.com/chapters/15/prediction.html) 1. Triple Jump Distances vs....
By QuizMaster , Uploaded: Oct 02, 2022
$9
Programming> QUESTIONS & ANSWERS > WGU C779 Web Development Foundations Questions and Answers Graded A+ (All)
MIME (Multipurpose Internet Mail Extensions) ✔✔A protocol that enables operating systems to map file name extensions to corresponding applications. Also used by applications to automatically process...
By clairel^ , Uploaded: Jan 27, 2023
$8
Programming> QUESTIONS & ANSWERS > WGU C777 - Practice Test C Questions and Answers with Verified Solutions (All)
WGU C777 - Practice Test C Questions and Answers with Verified Solutions Because mobile devices have smaller screens, you must lay out your pages differently than you would for a page that will be...
By Nutmegs , Uploaded: Sep 14, 2022
$10
Programming> QUESTIONS & ANSWERS > WGU C777 Web Development Applications – Already Graded A (All)
WGU C777 Web Development Applications – Already Graded A App ✔✔Relatively small applications developed exclusively for mobile devices <nav> ✔✔structure element in HTML5 that includes hypertext menu...
By Nutmegs , Uploaded: Sep 14, 2022
$10
Programming> QUESTIONS & ANSWERS > WGU C777 Web Development Applications Pre-Assessment Latest 2022 (All)
WGU C777 Web Development Applications Pre-Assessment Latest 2022 The HTML5 specification for the <audio> element does not require a specific audio codec to be supported, but it does support three...
By Nutmegs , Uploaded: Sep 14, 2022
$8
Programming> QUESTIONS & ANSWERS > 06 eLMS Activity 2 – ARG Latest Update Q&A 2022 (All)
1. Briefly explain the purpose of Open Shortest Path First in routing. OSPF (Open Shortest Path First) is an Internet Protocol (IP) routing protocol. It is part of the set of internal gateway proto...
By Exammate , Uploaded: Aug 04, 2023
$4.5
Programming> QUESTIONS & ANSWERS > ASU CSE 110 Exam 1 with 100% Correct Answers Updated & Verified (All)
ASU CSE 110 Exam 1 with 100% Correct Answers Updated & Verified Which of the following refers to a collection of programs that a computer executes? ✔✔ Software Computers are machines that ✔✔ execu...
By Crescent , Uploaded: Jan 02, 2023
$9
Programming> QUESTIONS & ANSWERS > Questions and Answers > 2019 Latest passapply 1Z0-071 PDF and VCE dumps Download. Pass Oracle 1Z0-071 Exam with 100% Guarantee (All)
2019 Latest passapply 1Z0-071 PDF and VCE dumps Download 1Z0-071Q&As Oracle Database 12c SQL Pass Oracle 1Z0-071 Exam with 100% Guarantee Free Download Real Questions & Answers PDF and VCE file fr...
By QuizMaster , Uploaded: Feb 12, 2021
$9.5
Programming> QUESTIONS & ANSWERS > Avaya ACIS 71200X Exam Questions V9.02 | Killtest (All)
Avaya ACIS 71200X Exam Questions V9.02 | Killtest You need to enable the digit 8 to be used as the AAR access code. Which SAT command would you use to define the digit 8 as the AAR access code? A....
By Nutmegs , Uploaded: Aug 29, 2022
$8
Programming> QUESTIONS & ANSWERS > Intro to Cryptography WGU C839 Module 4 Already Passed (All)
These are usually the encryption of a message digest with the senders private key. In order to verify them, the recipient uses the senders public key. They are considered good if they provide the fo...
By AMAZING GRACE , Uploaded: Nov 10, 2022
$5
Connected school, study & course
About the document
Uploaded On
Oct 01, 2022
Number of pages
26
Written in
This document has been written for:
Uploaded
Oct 01, 2022
Downloads
0
Views
22
Avoid resits and achieve higher grades with the best study guides, textbook notes, and class notes written by your fellow students
Your fellow students know the appropriate material to use to deliver high quality content. With this great service and assistance from fellow students, you can become well prepared and avoid having to resits exams.
Your fellow student knows the best materials to research on and use. This guarantee you the best grades in your examination. Your fellow students use high quality materials, textbooks and notes to ensure high quality
Get paid by selling your notes and study materials to other students. Earn alot of cash and help other students in study by providing them with appropriate and high quality study materials.
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·