Back to Orthogonal least squares

Exercise 2

Avg difficulty 2.5

Consider the data in this table.

A dataset with four points.
xxyy
11
21
31
42
  1. Set up the linear system Ax=bA\xvec=\bvec that describes the line b+mx=yb + mx = y passing through these points.

  2. Write the normal equations that describe the least-squares approximate solution to Ax=bA\xvec=\bvec.

  3. Find the least-squares approximate solution x^\xhat and plot the data and the resulting line.

  4. What is your predicted yy-value when x=3.5x=3.5?

  5. Find the coefficient of determination R2R^2.

Austin, Understanding Linear Algebra, §6.5 Orthogonal least squares, Exercise 2

AI Tutor

Adapted from Understanding Linear Algebra © 2023 David Austin. Licensed under CC BY 4.0. Source: Understanding Linear Algebra. Imported at revision 3e6dced.