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-

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
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
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,