Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c . Now say you want to use the data in the table and predict the weight of another person based on his / her

c. Now say you want to use the data in the table and predict the weight of another person based on his/her height that is given to you. In order to do so, one option is that you draw 6-a straight line through the points in your plotted graph and use that line to predict the weight of another person given his/her height. This is called linear regression which is a linear approach for modelling the relationship between a scalar dependent variable of Y (weight in this case) and one or more explanatory variables (or independent variables, X) which is height in this case. In order to draw a straight line, you can use the equation: Y = aX + b. Assuming values for a =100 and b =105, using Python plot a straight line in the same chart/graph height vs weight that you plotted for Question a. Please help me write this in python.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

Name and describe the major forms of direct marketing.

Answered: 1 week ago