Programming > QUESTIONS & ANSWERS > University of California, Berkeley DATA MISC Homework 6: Probability, Simulation, Estimation, and As (All)

University of California, Berkeley DATA MISC Homework 6: Probability, Simulation, Estimation, and Assessing Models

Document Content and Description Below

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

Reviews( 0 )

Recommended For You

 Programming> QUESTIONS & ANSWERS > University of California, Berkeley DATA MISC Homework 2: Arrays and Tables¶ (All)

preview
University of California, Berkeley DATA MISC Homework 2: Arrays and Tables¶

University of California, Berkeley DATA MISC Homework 2: Arrays and Tables¶ Recommended Reading: • Data Types • Sequences • Tables. 1. Creating Arrays¶ Question 1. Make an array called...

By QuizMaster , Uploaded: Oct 02, 2022

$9

 Programming> QUESTIONS & ANSWERS > University of California, Berkeley DATA MISC Homework 10: Linear Regression (All)

preview
University of California, Berkeley DATA MISC Homework 10: Linear Regression

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

 Computer Science> QUESTIONS & ANSWERS > University of California, Berkeley DATA MISC  Lab 09 (All)

preview
University of California, Berkeley DATA MISC  Lab 09

University of California, Berkeley DATA MISC  Lab 09 August 6, 2019 [64]: # Initialize OK from client.api.notebook import Notebook ok = Notebook('lab09.ok') ==================================...

By Kirsch , Uploaded: Nov 08, 2022

$9

 Database Management> QUESTIONS & ANSWERS > University of California, Berkeley DATA MISC rah031 (All)

preview
University of California, Berkeley DATA MISC rah031

Project 3 - Classification Welcome to the third project of Data 8! You will build a classifier that guesses whether a movie is romance or action, using only the numbers of times words appear in the...

By AGRADES , Uploaded: Nov 08, 2022

$10

 DATA ANALYSIS> QUESTIONS & ANSWERS > University of California, Berkeley DATA MISC ProfMask8468 (All)

preview
University of California, Berkeley DATA MISC ProfMask8468

hw09 July 14, 2020 [1]: # Initialize OK from client.api.notebook import Notebook ok = Notebook('hw09.ok') ===================================================================== Assignment: Resamp...

By AGRADES , Uploaded: Nov 08, 2022

$8

 Management> QUESTIONS & ANSWERS > Global Logistics and Supply Chain Management, 4th Edition by Mangan 4th edition Quiz - Answers (All)

preview
Global Logistics and Supply Chain Management, 4th Edition by Mangan 4th edition Quiz - Answers

Test Bank for Global Logistics and Supply Chain Management, 4th Edition, 4e by Mangan, Lalwani, Calatayud TEST BANK ISBN-13: 9781119702993 Full chapters included (This book has combined Test Bank-Ch...

By Test-Bank Lounge , Uploaded: Sep 29, 2022

$10

 *NURSING> QUESTIONS & ANSWERS > NURSING NR 228 Nutrition Week 7 edapt - Nutrition and Biliary Health- nutrition for gastrointestinal health - Chamberlain College of Nursing (All)

preview
NURSING NR 228 Nutrition Week 7 edapt - Nutrition and Biliary Health- nutrition for gastrointestinal health - Chamberlain College of Nursing

NURSING NR 228 Nutrition Week 7 edapt - Nutrition and Biliary Health- nutrition for gastrointestinal health - Chamberlain College of Nursing

By QuizMaster , Uploaded: Mar 29, 2023

$10.5

 *NURSING> QUESTIONS & ANSWERS > NURSING NR 228 Nutrition- Week 3 nutrition edapt - Introduction to Energy - Chamberlain College of Nursing (All)

preview
NURSING NR 228 Nutrition- Week 3 nutrition edapt - Introduction to Energy - Chamberlain College of Nursing

NURSING NR 228 Nutrition- Week 3 nutrition edapt - Introduction to Energy - Chamberlain College of Nursing

By QuizMaster , Uploaded: Mar 29, 2023

$3

 Mathematics> QUESTIONS & ANSWERS > MATHS 221 Week 6 Homework (All)

preview
MATHS 221 Week 6 Homework

MATHS 221 Week 6 Homework 1. A consumer analyst reports that the mean life of a certain type of alkaline battery is no more than 36 months. Write the null and alternative hypotheses and note which i...

By Bobweiss , Uploaded: Aug 21, 2020

$12.5

 *NURSING> QUESTIONS & ANSWERS > American Heart Association BLS Instructor Essentials Exams A and B Questions and 100% correct answers (All)

preview
American Heart Association BLS Instructor Essentials Exams A and B Questions and 100% correct answers

American Heart Association BLS Instructor Essentials Exams A and B Questions and 100% correct answers

By Prof.Pierro , Uploaded: Jun 23, 2022

$16.5

$9.00

Add to cart

Instant download

Can't find what you want? Try our AI powered Search

OR

GET ASSIGNMENT HELP
31
0

Document information


Connected school, study & course



About the document


Uploaded On

Oct 02, 2022

Number of pages

26

Written in

Seller


seller-icon
QuizMaster

Member since 4 years

1060 Documents Sold


Additional information

This document has been written for:

Uploaded

Oct 02, 2022

Downloads

 0

Views

 31

Document Keyword Tags

THE BEST STUDY GUIDES

Avoid resits and achieve higher grades with the best study guides, textbook notes, and class notes written by your fellow students

custom preview

Avoid examination resits

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.

custom preview

Get the best grades

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

custom preview

Earn from your notes

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.

WHAT STUDENTS SAY ABOUT US


What is Browsegrades

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 are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Browsegrades · High quality services·