hw01_sol.pdf - hw01_master Homework 1 Causality and Expressions Please complete this notebook by lling in the cells provided Before you begin execute

hw01_sol.pdf - hw01_master Homework 1 Causality and...

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

9/7/2017 hw01_master 1/7 Homework 1: Causality and Expressions Please complete this notebook by filling in the cells provided. Before you begin, execute the following cell to load the provided tests. In [ ]: Reading: Textbook chapters 1 (- science.html) , 2 (- experiments.html) , and 3 (- python.html) Deadline: This assignment is due Thursday, August 31 at 6PM. You will receive an early submission bonus point if you turn in your final submission by Wednesday, August 30 at 6PM. Late work will not be accepted unless you have made special arrangements with your (U)GSI or the instructor. Directly sharing answers is not okay, but discussing problems with the course staff or with other students is encouraged. You should start early so that you have time to get help if you're stuck. Drop-in office hours will be held Monday-Thursday. The schedule appears on data8.org/fa17/office-hours.html () and will be updated over the weekend. Once you're finished, select "Save and Checkpoint" in the File menu and then execute the submit cell below. The result will contain a link that you can use to check that your assignment has been submitted successfully. If you submit more than once before the deadline, we will only grade your final submission. In [ ]: 1. Scary Arithmetic An ad for ADT Security Systems says, "When you go on vacation, burglars go to work [...] According to FBI statistics, over 25% of home burglaries occur between Memorial Day and Labor Day." Do the data in the ad support the claim that burglars are more likely to go to work during the time between Memorial Day and Labor Day than at other times? Please explain your answer. # Don't change this cell; just run it. from client.api.notebook import Notebook ok = Notebook('hw01.ok') _ = ok.auth(inline= True ) _ = ok.submit()
Image of page 1
9/7/2017 hw01_master 2/7 SOLUTION: No. Labor Day is around 14 weeks after Memorial Day, so the period between them is a bit more than 25% of the year! So the data in the ad imply that the average rate of burglaries in the summer is the same as in the rest of the year. 2. Characters in Little Women In lecture, we counted the number of times that the literary characters were named in each chapter of the classic book, Little Women () . In computer science, the word "character" also refers to a letter, digit, space, or punctuation mark; any single element of a text. The following code generates a scatter plot in which each dot corresponds to a chapter of Little Women.
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 7 pages?

  • Fall '17
  • Christopher Nolan, Percentage point, Average Annual Cost, multiple-choice answer cell

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors