Answered step by step
Verified Expert Solution
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 hisher height that is given to you. In order to do so one option is that you draw a straight line through the points in your plotted graph and use that line to predict the weight of another person given hisher 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 and b using Python plot a straight line in the same chartgraph 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started