Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Repeat problem 16 for each of the following set of data points.

(a)(1,0),(2,-1),(3,-8)

(b)(-2,-6),(-1,-3),(0,0),(1,9/2),(2,7)

(c)(-2,4),(-1,0),(0,-1),(1,-8),(2,-10)

To find the best straight line fit to a set of data points(xn,yn)in the "least squares" sense means the following: Assume that the equation of the line isy=mx+band verify that the vertical deviation of the line from the point(xn,yn)isyn-(mxn+b)WriteS=sum of the squares of the deviations, substitute the given values ofxn,ynto giveSas a function ofmandb, and then findmandbto minimize S. Carry through this routine for the set of points:. (-1,-2),(0,0),(1,3). Check your results by computer, and also computer plot (on the same axes) the given points and the approximating line.

Short Answer

Expert verified

(a) The resultant answer is y=- 4x+ 5.

(b) The resultant answer is y=3.35x+ 0.5.

(c) The resultant answer is y=- 3.6x- 3.

Step by step solution

01

Given data

A set of data points.

02

Concept of Partial differential equation

A partial differential equation consists of two or more independent variables, an unknown function (depending on those variables), and partial derivatives of the unknown function with respect to the independent variables.

03

Simplify the expression

(a)

Objective is to determine the best straight line fit to a given set of the data points

(1,0),(2,-1),(3,-8)

Also,this value is plotted the points and the approximating line

Let the equation be: y=mx+b

With the data point xn,ynto localid="1664349153354" y=mx+bwill belocalid="1664349156757" yn-yatlocalid="1664349160381" xn

The value oflocalid="1664349164823" ysome pointlocalid="1664349168224" xnislocalid="1664349171176" mxn+b

Using this value and get the vertical deviation as:localid="1664349175060" yn-mxn+b

Where S is the sum of the squares of the deviations, substitute the given values of localid="1664349179780" xn,yn.

To give as a function of localid="1664349195465" mand localid="1664349199335" b, and then m and localid="1664349184037" bto minimize

And this way for the set of points localid="1664349189625" (1,0),(2,-1),(3,-8).

04

Simplify the expression

(b)

Objective is to determine the best straight line fit to a given set of the data poin(-2,-6),(-1,-3),(0,0),(1,9/2),(2,7)(-2,-6),(-1,-3),(0,0),(1,9/2),(2,7)

Also, this value is plotted the points and the approximating line

Let the equation be:localid="1664349780756" y=mx+b

With the data pointlocalid="1664349785314" xn,yntolocalid="1664349789388" y=mx+bwill belocalid="1664349793210" yn-yatlocalid="1664349796829" xn

The value oflocalid="1664349800646" ysome pointlocalid="1664349804142" xnislocalid="1664349807475" mxn+b

Using this value and get the vertical deviation as:localid="1664349812280" yn-mxn+b

Where S is the sum of the squares of the deviations, substitute the given values of localid="1664349817181" xn,yn.

To give as a function of localid="1664349820841" mand localid="1664349824180" b, and then localid="1664349828022" mand localid="1664349831638" bto minimize

And this way for the set of points localid="1664349835755" (-2,-6),(-1,-3),(0,0),(1,9/2),(2,7).

05

Simplify the expression

(c)

Objective is to determine the best straight line fit to a given set of the data points

(-2,4),(-1,0),(0,-1),(1,-8),(2,-10)

Also, this value is plotted the points and the approximating line

Let the equation be:y=mx+b

With the data pointxn,yntoy=mx+bwill beyn-yatxn

The value of ysome pointxnismxn+b

Using this value and get the vertical deviation as:yn-mxn+b

Where S is the sum of the squares of the deviations, substitute the given values of xn,yn.

To give as a function of mand b, and then mand bto minimize

And this way for the set of points (-2,4),(-1,0),(0,-1),(1,-8),(2,-10).

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free