What this quiz covers
This quiz focuses on Linear Regression Via Least Squares, giving you a quick way to practice the rules, question types, and explanations that matter most for Linear Algebra.
A researcher wants to find the best-fit line of the form y=c0+c1x for the data points (0,1), (1,3), and (2,4). The least-squares solution c^=(c0c1) is found by solving the normal equations ATAc^=ATb. What is the matrix ATA for this problem?
Linear Algebra Quiz
Practice Linear Regression Via Least Squares in Linear Algebra with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.
This quiz focuses on Linear Regression Via Least Squares, giving you a quick way to practice the rules, question types, and explanations that matter most for Linear Algebra.
Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.
A researcher wants to find the best-fit line of the form y=c0+c1x for the data points (0,1), (1,3), and (2,4). The least-squares solution c^=(c0c1) is found by solving the normal equations ATAc^=ATb. What is the matrix ATA for this problem?
Consider finding the least-squares solution x^ to Ax=b. Let b^=Ax^ be the best approximation of b in the column space of A. Which of the following statements is always true?
A system Ax=b is inconsistent. Which of the following best describes the goal of solving the associated normal equations, ATAx^=ATb?
Let x^ be the least-squares solution to an inconsistent system Ax=b. If e=b−Ax^ is the corresponding error vector, which of the following statements about e is always true?
To find the best-fit parabola of the form y=a+bx2 (note the missing linear term) for a set of data points (x1,y1),...,(xn,yn), a linear system Ac=y is constructed. Which of the following correctly represents the design matrix A for this model?
Find the least-squares solution x^ for the system Ax=b where A=111012 and b=600.
Consider the least squares problem for fitting y=c1x+c2x2 to data points (1,3),(2,8),(3,15). The design matrix A has the property that ATA is singular. What can be concluded about this least squares problem?
A researcher fits a line y=β0+β1x to n data points using least squares. The sum of squared residuals is SSR=45, and the total sum of squares is SST=80. If one additional data point is added that lies exactly on the fitted regression line, what happens to the coefficient of determination R2?
Consider two least squares problems: Problem 1 fits y=a+bx to points (1,2),(2,4),(3,6), and Problem 2 fits y=cx+d to the same points. The normal equations for Problem 1 yield $$ \begin{bmatrix} 3 & 6 \ 6 & 14 \end{bmatrix} \begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} 12 \ 28 \end{bmatrix}
A least squares regression produces the fitted model y^=2.5+1.8x with residuals r1=0.3,r2=−0.7,r3=0.4. If the original y-values are transformed by ynew=2y−3, what will be the residuals for the regression of ynew on x?
In a weighted least squares problem, the objective is to minimize ∑i=1nwi(yi−β0−β1xi)2 where wi>0. If the weights are w1=4,w2=1,w3=9 for data points (1,2),(2,5),(3,7), what is the effective design matrix A~ in the transformed problem min∥A~β−b~∥2?
A researcher collects data points (1,2),(2,5),(3,7),(4,11) and wants to fit a line y=ax+b using least squares. If the normal equations yield the system [3010104][ab]=[9125], what is the slope a of the least squares line?
A dataset has design matrix A and response vector b. If b lies in the column space of A, and the least squares solution is x^=(ATA)−1ATb, what is the relationship between the residual vector r=b−Ax^ and the fitted values Ax^?
Two researchers analyze the same dataset but use different approaches: Researcher A centers the x-data by subtracting the mean before fitting y=β0+β1x, while Researcher B uses the original x-values. If the original data has xˉ=5 and the least squares line using original data is y=2+0.8x, what line will Researcher A obtain?
In a least squares regression with design matrix A∈Rn×p where n>p and rank(A)=p, the projection matrix is P=A(ATA)−1AT. If a new data point (xnew,ynew) is added where xnew is orthogonal to all columns of A, how does this affect the original least squares solution β^?
The least-squares solution x^ to the system Ax=b is unique if and only if which condition is met?
What is the slope of the least-squares regression line for the data points (−1,0), (0,1), (1,3), and (2,4)?
Let x^ be a least-squares solution to an inconsistent system Ax=b. Which of the following conditions is NOT necessarily satisfied by x^?
If the least-squares error for the system Ax=b is zero, what can be definitively concluded?
Let x^ be the least-squares solution to the system Ax=b. The vector Ax^ represents which of the following?