Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. It is common practice to try to fit a line y=mx+b to a set of data points (1, 1), (1, 2),..., (In, Yn).


  

5. It is common practice to try to fit a line y=mx+b to a set of data points (1, 1), (1, 2),..., (In, Yn). The question is, "How can one pick the best line?" In this exercise, you will find a way to do that. First, let w=(mx+b-y) + + (man +b-Vn) (a) Find the gradient of w. Here, you should realize that the only variables for ware m and b. Therefore, your partial derivatives should be with respect to these variables. (b) Show that the values of m and b that minimize the value of w are 1 - (-) m= 11 - - 21 () - 1 The line with these values for m and b is called the least squares line. (c) Use the equations for m and b to find the equation of the line best fit for the data (-1,-1), (0, 1), (2,-3), (4,2), (6,2) and use your line to predict the value of y that would correspond to z = 5. Use a graphing tool to plot the provided data

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

Business Intelligence And Analytics Systems For Decision Support

Authors: Efraim Turban, Ramesh Sharda, Dursun Delen, Pearson Education Limited, Dennis G. Zill

10th Global Edition

1292009209, 9781292009209

More Books

Students also viewed these Mathematics questions

Question

1. How would you define leadership?

Answered: 1 week ago

Question

How can operations managers analyse CSR issues?

Answered: 1 week ago