LINEAR-ALGEBRA Β· Interactive Practice
| Formula | Name | Description |
|---|---|---|
| Matching dimensions | Row space and column space share the rank | |
| Subspace dimensions | What the null spaces "lose" | |
| Projection identity | projects onto the row space (not !) | |
| Projection identity | projects onto the column space | |
| Pseudo-inverse solution | Minimum-norm least-squares solution |
Recall: Row space Null space, and Column space Left null space. The pseudo-inverse inverts the bijection Row Column, and sends the left null space to zero.
For a matrix of rank , how large is each of the four fundamental subspaces?
π‘ exists because that shared dimension lets act as a bijection from the row space onto the column space.
Every input splits into a row-space part and a null-space part β which one survives ?
π‘ Because the null part is destroyed, has no true inverse; can only ever recover the row-space part of a solution.
The pseudo-inverse fits the best line through the data and never breaks β even when is singular.
π‘ Challenge: drag all three points to the same : the columns of become dependent and turns singular, yet still returns the minimum-norm fit.
Question 1
A matrix has rows, columns, and rank .
What is the dimension of the null space of ?
β Correct! The null space has dimension .
β Not quite. The null space dimension is (use columns, not rows).
Solution:
The null space lives in the input space and has dimension :
(For reference: the column space has dimension , and the left null space has dimension .)
Question 2
True or False: For every matrix , the product equals the identity matrix.
β Correct! projects onto the row space; it equals only with full column rank.
β Not quite. is a projection onto the row space, not the identity in general.
Solution:
is the projection onto the row space, not the identity. Split any into a row-space part plus a null-space part; keeps only the row-space part and discards the null-space part:
You only get when the null space is trivial β i.e. has full column rank. So the statement is False in general.
Question 3
For , the row space is spanned by and the null space is spanned by .
What is the dot product , and what does it confirm?
β Correct! The dot product is , so the row space and null space are orthogonal.
β Not quite. Compute β the result is , confirming orthogonality.
Solution:
A dot product of means the two directions are perpendicular. This confirms that the row space and the null space are orthogonal complements β the only vector lying in both is the zero vector. That orthogonality is exactly what makes the restriction of to the row space one-to-one.
Question 4
In a regression you accidentally include the same predictor twice, giving two identical columns . The ordinary least-squares formula now fails.
Which statement best explains why β and how the pseudo-inverse helps?
β Correct! is singular, so fails; rescues it.
β Not quite. The dependent columns make singular (); the pseudo-inverse still works.
Solution:
The duplicated predictor makes the two columns identical (perfect collinearity), so is rank-deficient and is singular: , which means is undefined and the OLS formula collapses.
The pseudo-inverse always exists, so we replace the broken formula with which gracefully delivers the minimum-norm least-squares solution.
Solved: 0 / 4