Orthogonal least squares
Fitting a line to data that no line passes through, by solving the normal equations for the coefficients that minimize the squared residuals.
8 exercises
Exercise 1
Suppose we write the linear system as .
Find an orthogonal basis for .
Find , the orthogonal projection of onto .
Find a solution to the linear system .
Exercise 2
Consider the data in this table.
Set up the linear system that describes the line passing through these points.
Write the normal equations that describe the least-squares approximate solution to .
Find the least-squares approximate solution and plot the data and the resulting line.
What is your predicted -value when ?
Find the coefficient of determination .
Exercise 3
Consider the four points in this table.
Set up a linear system that describes a quadratic function passing through the points.
Use a factorization to find the least-squares approximate solution and plot the data and the graph of the resulting quadratic function.
What is your predicted -value when ?
Find the coefficient of determination .
Exercise 4
Consider the data in this table.
Set up a linear system that describes the relationship
Find the least-squares approximate solution .
What is your predicted -value when and ?
Find the coefficient of determination .
Exercise 5
Determine whether the following statements are true or false and explain your thinking.
If is consistent, then is a solution to .
If , then the least-squares approximate solution is also a solution to the original equation .
Given the factorization , we have .
A factorization provides a method for finding the least-squares approximate solution to that is more reliable than solving the…
Exercise 6
Explain your response to the following questions.
If , what does this say about the vector ?
If the columns of are orthonormal, how can you easily find the least-squares approximate solution to ?
Exercise 11
We observed that if the columns of are linearly independent, then there is a unique least-squares approximate solution to the equation because the equation has a unique solution. We also said that is the unique solution to the normal equation without explaining why this equation has a unique solution. This exercise offers an explanation.
Assuming that the columns of are linearly indepen…
Exercise 12
This problem is about the meaning of the coefficient of determination and its connection to variance, a topic that appears in the next section. Throughout this problem, we consider the linear system and the approximate least-squares solution , where . We suppose that is an matrix, and we will denote the -dimensional vector .
Explain why , the mean of the components of , can be found a…
Adapted from Understanding Linear Algebra © 2023 David Austin. Licensed under CC BY 4.0. Source: Understanding Linear Algebra. Imported at revision 3e6dced.