How Do You Find the Nearest Vector in the Row Space of a Matrix?

Click For Summary

Homework Help Overview

The discussion revolves around finding the nearest vector in the row space of a given matrix to a specified vector. The matrix in question is a 2x4 matrix, and the target vector is (1,1,-1,1). Participants express confusion about the problem's requirements and the method to approach it.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the idea of expressing the target vector as a sum of components, one in the row space and one orthogonal to it. There are attempts to project the vector onto the row space and verify if the resulting vectors lie within that space. Questions arise regarding the correctness of the projections and the understanding of the problem's requirements.

Discussion Status

Some participants have offered guidance on how to compute the orthogonal projection and clarify the relationship between the target vector and the row space. There is an acknowledgment of differing answers and confusion about the problem's phrasing, but no explicit consensus has been reached.

Contextual Notes

Participants note that the problem is from an old exam, which may have contributed to misunderstandings due to the wording. There is also mention of checking the consistency of equations derived from proposed solutions.

Lchan1
Messages
38
Reaction score
0

Homework Statement



I have a question about an old exam and i have no idea where to start. The question says:
Find the vector in the row space A=[1 0 1 1 /new row 0 1 -1 1] 2x4 matrix nearest to the vector (1,1,-1,1)
I have absolutely no clue how to start.

Homework Equations





The Attempt at a Solution


I have no clue how to start this...
my attempt was looking at it being confused for an hour
 
Physics news on Phys.org
Try writing the vector (1,1,-1,1) as a sum of two vectors, one parallel to Row A and one orthogonal to Row A. Hint: what does an orthogonal projection tell you?
 
I got an answer
(2/3,2/3,-1,1/3)
does that sound right to you?
I project the vector onto the row space.
and v-the projection gives me nearest vector.
 
I arrived at a different answer. You may want to check and see if the vector you found is in Row(A). This is equivalent to seeing if you can find real constants a and b such that

a(1,0,1,1) + b(0,1,-1,1) = (\frac{2}{3}, \frac{2}{3}, -1, \frac{1}{3})

I think you will find that the system of linear equations associated with this equation is inconsistent, so the vector you found does not satisfy the requirements of the problem. You may want to try and compute the orthogonal projection again.
 
should i just project the vector to the matrix?
which i will get (1/3,1/3,0,2/3)
 
Let r1 and r2 be the first and second rows of A respectively, and let v be the vector given in the problem.

The orthogonal projection you should be computing is:

\frac{v \cdot r_1}{r_1\cdot r_1}r_1 + \frac{v \cdot r_2}{r_2 \cdot r_2}r_2

This guarantees the vector you find is in Row A. Do you see why?
 
Yea as this projects v onto r.
I think i didnt understand the question correctly. that's why i got the other answer.
so they wanted the vector in A that is neartest to vector r which is projecting R onto A.
and the projection could be expressed by r1 and r2
 
I think you are confused. The projection I gave you is the projection of (1,1,-1,1) onto Row A. We know that
Row A = span{(1,0,1,1), (0,1,-1,1)} = a(1,0,1,1)+b(0,1,-1,1). They are asking for the vector in Row A that is closest to the vector (1,1,-1,1), which is the same as asking, "what is the orthogonal projection of (1,1,-1,1) onto the subspace Row A?"

Do you need any further clarification?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
8
Views
7K