Back to Orthogonal least squares

Exercise 3

Avg difficulty 2.5

Consider the four points in this table.

  1. Set up a linear system Ax=bA\xvec = \bvec that describes a quadratic function β0+β1x+β2x2=y\beta_0+\beta_1x+\beta_2x^2 = y passing through the points.

  2. Use a QRQR factorization to find the least-squares approximate solution x^\xhat and plot the data and the graph of the resulting quadratic function.

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

  4. Find the coefficient of determination R2R^2.

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

AI Tutor

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