By using the method of least squares, find the best line through the points: (−2,−1), (0,−2), (−1,3). Step 1. The general equation of a line is co + c₁x = y. Plugging the data points into this formula gives a matrix equation Ac = y. 1 0 0 0 1 [co] 0 0 0 0 Step 2. The matrix equation Ac = y has no solution, so instead we use the normal equation ATAC = ATy 5 -1 ATA= -1 14 0 ATy= 0 Step 3. Solving the normal equation gives the answer 0 E 0 which corresponds to the formula y = || = =

College Algebra
7th Edition
ISBN:9781305115545
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:James Stewart, Lothar Redlin, Saleem Watson
Chapter6: Matrices And Determinants
Section: Chapter Questions
Problem 4CC
icon
Related questions
Question
||
=
which corresponds to the formula
y =
Analysis. Compute the predicted y values: y = Ac.
ŷ
Compute the error vector: e = y - y.
e =
Compute the total error: SSE = e² + e² + e²3.
SSE
=
||
Transcribed Image Text:|| = which corresponds to the formula y = Analysis. Compute the predicted y values: y = Ac. ŷ Compute the error vector: e = y - y. e = Compute the total error: SSE = e² + e² + e²3. SSE = ||
By using the method of least squares, find the best line through the points:
(−2,−1), (0,−2), (−1,3).
Step 1. The general equation of a line is co + C₁x = y. Plugging the data points into this formula
gives a matrix equation Ac = y.
1
0
0
0
1
0
=
0
0
0
Step 2. The matrix equation Ac = y has no solution, so instead we use the normal equation
ATAC = A¹y
5
-1
ATA =
14
0
ATy
0
Step 3. Solving the normal equation gives the answer
0
18
which corresponds to the formula
y =
=
=
-1
Transcribed Image Text:By using the method of least squares, find the best line through the points: (−2,−1), (0,−2), (−1,3). Step 1. The general equation of a line is co + C₁x = y. Plugging the data points into this formula gives a matrix equation Ac = y. 1 0 0 0 1 0 = 0 0 0 Step 2. The matrix equation Ac = y has no solution, so instead we use the normal equation ATAC = A¹y 5 -1 ATA = 14 0 ATy 0 Step 3. Solving the normal equation gives the answer 0 18 which corresponds to the formula y = = = -1
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Recommended textbooks for you
College Algebra
College Algebra
Algebra
ISBN:
9781305115545
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
Algebra and Trigonometry (MindTap Course List)
Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:
9781305071742
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Algebra for College Students
Algebra for College Students
Algebra
ISBN:
9781285195780
Author:
Jerome E. Kaufmann, Karen L. Schwitters
Publisher:
Cengage Learning
Elementary Linear Algebra (MindTap Course List)
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning