By using the method of least squares, find the best line through the points: (-1,1), (1,0). (2,2). Step 1. The general equation of a line is co + c₁ = y. Plugging the data points into this formula gives a matrix equation Ac= Step 2. The matrix equation Ac=has no solution, so instead we use the normal equation ATACATÿ ATA= AT- Step 3. Solving the normal equation gives the vector answer which corresponds to the formula for the line Analysis. Compute the vector of the predicted y values: ŷ = Ac Compute the error vector, which is the difference between the actual y values of the points, and the predicted or tweaked values (new values we get from the list of best fit): --ŷ Compute the total error (often considered to be the error we "make" when using least squares): SSE = e² + e + e} or SSE = ||||² SSE-

Linear Algebra: A Modern Introduction
4th Edition
ISBN:9781285463247
Author:David Poole
Publisher:David Poole
Chapter2: Systems Of Linear Equations
Section2.4: Applications
Problem 16EQ
icon
Related questions
Question
By using the method of least squares, find the best line through the points:
(-1, 1), (1,0), (2,2).
Step 1. The general equation of a line is co+c1x = y. Plugging the data points into this formula gives a matrix equation Ac = ý.
Step 2. The matrix equation Ac = y has no solution, so instead we use the normal equation ATA ĉ = ATÿ
ATA=
ATy=
Step 3. Solving the normal equation gives the vector answer
ĉ =
which corresponds to the formula for the line
y =
Analysis. Compute the vector of the predicted y values: ŷ = Aĉ.
ŷ =
Compute the error vector, which is the difference between the actual y values of the points, and the predicted or tweaked values (new values we get from the list of best fit): e = ÿ — ŷ.
ē =
Compute the total error (often considered to be the error we "make" when using least squares): SSE = e² + e² + e² or SSE = ||e||2
SSE =
Transcribed Image Text:By using the method of least squares, find the best line through the points: (-1, 1), (1,0), (2,2). Step 1. The general equation of a line is co+c1x = y. Plugging the data points into this formula gives a matrix equation Ac = ý. Step 2. The matrix equation Ac = y has no solution, so instead we use the normal equation ATA ĉ = ATÿ ATA= ATy= Step 3. Solving the normal equation gives the vector answer ĉ = which corresponds to the formula for the line y = Analysis. Compute the vector of the predicted y values: ŷ = Aĉ. ŷ = Compute the error vector, which is the difference between the actual y values of the points, and the predicted or tweaked values (new values we get from the list of best fit): e = ÿ — ŷ. ē = Compute the total error (often considered to be the error we "make" when using least squares): SSE = e² + e² + e² or SSE = ||e||2 SSE =
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
College Algebra (MindTap Course List)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning
Elementary Linear Algebra (MindTap Course List)
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning
Intermediate Algebra
Intermediate Algebra
Algebra
ISBN:
9780998625720
Author:
Lynn Marecek
Publisher:
OpenStax College
College Algebra
College Algebra
Algebra
ISBN:
9781938168383
Author:
Jay Abramson
Publisher:
OpenStax
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage