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 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 = Ac. ŷ = Compute the error vector: e = y - y. e= Compute the total error: SSE = e² + e +e3. SSE =

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

please solve it on paper!

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.
6
Step 2. The matrix equation Ac = y has no solution, so instead we use the normal equation ATA ĉ = A¹y
ATA=
ATY
Step 3. Solving the normal equation gives the answer
Ĉ=
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² + e3.
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. 6 Step 2. The matrix equation Ac = y has no solution, so instead we use the normal equation ATA ĉ = A¹y ATA= ATY Step 3. Solving the normal equation gives the answer Ĉ= 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² + e3. SSE =
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps

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
Elementary Linear Algebra (MindTap Course List)
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning