project2.pdf - project2 In[3 Initialize OK from client.api.notebook import Notebook ok = Notebook'project2.ok = Assignment Project 2 Diet and Disease OK

project2.pdf - project2 In[3 Initialize OK from...

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

project2April 24, 2019In [3]:# Initialize OKfromclient.api.notebookimportNotebookok=Notebook('project2.ok')=====================================================================Assignment: Project 2: Diet and DiseaseOK, version v1.12.5=====================================================================1Project 2: Diet and DiseaseIn this project, you will investigate the major causes of death in the world, as well as how one ofthese causes, heart disease, might be linked to diet!1.0.1LogisticsDeadline.This project is due at 11:59pm on Friday, 4/12. It’smuchbetter to be early than late, sostart working now.Checkpoint.For full credit, you must also complete the questions up until the end of Part2 and submit them by 11:59pm on Friday, 4/5. You will have some lab time to work on thesequestions, but we recommend that you start the project before lab and leave time to finish thecheckpoint afterward.Partners.You may work with one other partner. Your partner must be enrolled in the samelab as you are. Only one of you is required to submit the project. Onokpy.org, the person whosubmits should also designate their partner so that both of you receive credit.Rules.Don’t share your code with anybody but your partner. You are welcome to discussquestions with other students, but don’t share the answers. The experience of solving the prob-lems in this project will prepare you for exams (and life). If someone asks you for the answer,resist! Instead, you can demonstrate how you would solve a similar problem.Support.You are not alone! Come to office hours, post on Piazza, and talk to your classmates.If you want to ask about the details of your solution to a problem, make a private Piazza post andthe staff will respond. If you’re ever feeling overwhelmed or don’t know how to make progress,email your TA or tutor for help.You can find contact information for the staff on thecoursewebsite.1
Background image
Tests.Passing the tests for a questiondoes notmean that you answered the question correctly.Tests usually only check that your table has the correct column labels. However, more tests willbe applied to verify the correctness of your submission in order to assign your final score, so becareful and check your work!Advice.Develop your answers incrementally. To perform a complicated table manipulation,break it up into steps, perform each step on a different line, give a new name to each result, andcheck that each intermediate result is what you expect.You can add any additional names orfunctions you want to the provided cells.All of the concepts necessary for this project are found in the textbook. If you are stuck ona particular problem, reading through the relevant textbook section often will help clarify theconcept.To get started, loaddatascience,numpy,plots, andok.In [4]:fromdatascienceimport*importnumpyasnp%matplotlibinlineimportmatplotlib.pyplotasplotsplots.style.use('fivethirtyeight')np.set_printoptions(legacy='1.13')fromclient.api.notebookimportNotebookok=Notebook('project2.ok')_=ok.auth(inline=True)=====================================================================Assignment: Project 2: Diet and DiseaseOK, version v1.12.5=====================================================================Successfully logged in as [email protected]2
Background image
Image of page 3

You've reached the end of your free preview.

Want to read all 30 pages?

  • Fall '17
  • Null hypothesis, Statistical hypothesis testing

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