hw12.pdf - hw12_student_solutions December 11, 2019 1...

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

hw12_student_solutionsDecember 11, 20191Homework 12: Linear RegressionReading: *Linear Regression*Least Squares RegressionPlease complete this notebook by filling in the cells provided.Before you begin, execute thefollowing cell to load the provided tests. Each time you start your server, you will need to executethis cell again to load the tests.Homework 12 is dueThursday, 12/05 at 11:59pm. You will receive an early submission bonuspoint if you turn in your final submission by Wednesday, 12/04 at 11:59pm. Start early so thatyou can come to office hours if you’re stuck. Check the website for the office hours schedule. Latework will not be accepted as per thepoliciesof this course.Directly sharing answers is not okay, but discussing problems with the course staff or with otherstudents 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, youmustprovide youranswer in the designated space. Moreover, throughout this homework and all future ones, please besure to not re-assign variables throughout the notebook! For example, if you usemax_temperaturein your answer to one question, do not reassign it later on.[ ]:# Don't change this cell; just run it.importnumpyasnpfromdatascienceimport*# These lines do some fancy plotting magic.importmatplotlib%matplotlibinlineimportmatplotlib.pyplotaspltplt.style.use('fivethirtyeight')importwarningswarnings.simplefilter('ignore',FutureWarning)fromclient.api.notebookimportNotebookok=Notebook('hw12.ok')1
1.11. Triple Jump Distances vs. Vertical Jump HeightsDoes skill in one sport imply skill in a related sport? The answer might be different for differentactivities. Let us find out whether it’s true for thetriple jump(a horizontal jump similar to a longjump) and the vertical jump. Since we’re learning about linear regression, we will look specificallyfor alinearassociation between skill level in the two sports.The following data was collected by observing 40 collegiate level soccer players.Each athlete’sdistances in both jump activities were measured in centimeters.Run the cell below to load thedata.[9]:# Run this cell to load the datajumps=Table.read_table('triple_vertical.csv')jumps[9]:triple | vertical383| 33781| 71.1561.62 | 62.25624.52 | 61.33446.24 | 40.19515.3| 38.96449.22 | 39.69560.91 | 46.51519.12 | 37.68595.38 | 53.48… (30 rows omitted)

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 17 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture