By using the method of least squares, find the best line through the points: (2,-3), (-2,0), (1,-1). Step 1. The general equation of a line is co + c₁ = y. Plugging the data points into this formula gives a matrix equation Ac = y. Step 2. The matrix equation Ac = y has no solution, so instead we use the normal equation ATAê= ATy ATA = ATY= Step 3. Solving the normal equation gives the answer Ĉ= which corresponds to the formula y = Analysis. Compute the predicted y values: y = Aê. Compute the error vector: ey ŷ. e= Compute the total error: SSE = e+ e + ez. SSE= 300

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
By using the method of least squares, find the best line through the points:
(2,-3), (-2,0), (1,-1).
Step 1. The general equation of a line is co + C₁ = y. Plugging the data points into this formula gives a matrix equation Ac = y.
2-
=
Step 2. The matrix equation Ac = y has no solution, so instead we use the normal equation A¹A = A¹y
ATA=
A¹y =
Step 3. Solving the normal equation gives the answer
Ĉ=
which corresponds to the formula
y =
Analysis. Compute the predicted y values: y = Aĉ.
ŷ =
Compute the error vector: e=y-ŷ.
e=
Compute the total error: SSE = e+ e + ez.
SSE =
Transcribed Image Text:By using the method of least squares, find the best line through the points: (2,-3), (-2,0), (1,-1). Step 1. The general equation of a line is co + C₁ = y. Plugging the data points into this formula gives a matrix equation Ac = y. 2- = Step 2. The matrix equation Ac = y has no solution, so instead we use the normal equation A¹A = A¹y ATA= A¹y = Step 3. Solving the normal equation gives the answer Ĉ= which corresponds to the formula y = Analysis. Compute the predicted y values: y = Aĉ. ŷ = Compute the error vector: e=y-ŷ. e= Compute the total error: SSE = e+ e + ez. SSE =
Expert Solution
steps

Step by step

Solved in 3 steps with 3 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
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
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