Log In Start studying!

Select your language

Suggested languages for you:
Answers without the blur. Sign up and see all textbooks for free! Illustration

Q77.

Expert-verified
Precalculus Mathematics for Calculus
Found in: Page 690
Precalculus Mathematics for Calculus

Precalculus Mathematics for Calculus

Book edition 7th Edition
Author(s) James Stewart, Lothar Redlin, Saleem Watson
Pages 948 pages
ISBN 9781337067508

Answers without the blur.

Just sign up for free and you're in.

Illustration

Short Answer

The Least Squares Line

The least squares line or regression line is the line that best fits a set of points in the plane. We studied this line in the Focus on Modeling that follows Chapter 1 (see page 139). By using calculus, it can be shown that the line that best fits the n data points x1,y1,x2,y2,,xn,yn is the line y=ax+b, where the coefficients a and b satisfy the following pair of linear equations. (The notation k=1nxk stands for the sum of all the x's. See Section 12.1 for a complete description of sigma notation.)

k=1nxka+nb=k=1nykk=1nxk2a+k=1nxkb=k=1nxkyk

Use these equations to find the least squares line for the following data points.

(1,3),(2,5),(3,6),(5,6),(7,9)

Sketch the points and your line to confirm that the line fits these points well. If your calculator computes regression lines, see whether it gives you the same line as the formulas.

Hence the line of best fit for the given points (1,3),(2,5),(3,6),(5,6),(7,9) is y=0.84x+2.76

See the step by step solution

Step by Step Solution

Step 1. Given information

Given a set of points (1,3),(2,5),(3,6),(5,6),(7,9) and we have been given two equations which are as follows:

k=1nxka+nb=k=1nykk=1nxk2a+k=1nxkb=k=1nxkyk

Step 2. Concept used

A line used to describe the behaviour of a set of data or in other words, it gives the best trend of the given data is known as a regression line.

Using these two equations we have to find the values of both the variables which will give us the equation of the line of the best fit. Also, we have to plot the line of the best fit.

Step 3. Calculation

Let the given points are: x1,y1 be (1,3),x2,y2 be (2,5),x3,y3 be (3,6),x4,y4 be (5,6),x5,y5 be (7,9)

The simplified for the given points are:

y=ax+b....(1)x1+x2+x3+x4+x5a+5b=y1+y2+y3+y4+y5....(2)x12+x22+x32+x42+x52a+x1+x2+x3+x4+x5b=x1y1+x2y2+x3y3+x4y4+x5y5....(3)

We are substituting the points in the equation (2)

12+22+32+52+72a+(1+2+3+5+7)b=(1×3+2×5+3×6+5×6+7×9)(1+4+9+25+49)a+18b=(3+10+18+30+63)88a+18b=124

So, the system of equations are:

18a+5b=2988a+18b=124

Now graph 1 represents the graph of the above linear equation.

And from graph 1, we observe that both the equation intersect at 0.84,2.76

So, the solution of the system of equation is:

a=0.84b=2.76

Since we all know the value of the variable a and b.

Thus the equation of the line of best fit is:

y=ax+by=0.84x+2.76

Now we will plot the given points and the line of best fit as mentioned in the question (represented by the graph 2 ).

Recommended explanations on Math Textbooks

94% of StudySmarter users get better grades.

Sign up for free
94% of StudySmarter users get better grades.