Linear Algebra for Engineers lecture 15: Subspaces, Projection Matrices, and Markov Chains
Overview
Alex Townsend explains how bases describe vector spaces, how to find them by pruning spanning sets or extending linearly independent sets, and how null spaces and dimension fit into that framework. He then models a two-page network as a Markov chain with transition matrix [[0.6, 0.2], [0.4, 0.8]], showing that a basis of eigenvectors makes repeated matrix applications straightforward and that the page distribution converges to (1/3, 2/3).
Key takeaways
- A basis can be constructed either by removing dependent vectors from a spanning set or by adding independent vectors until they span; for a matrix column space, pivot columns provide a standard computational choice.
- The null space of an invertible matrix contains only the zero vector, so its basis is empty and its dimension is 0; the zero vector itself cannot be a basis element.
- For the transition matrix [[0.6, 0.2], [0.4, 0.8]], (1/3, 2/3) is a steady-state eigenvector with eigenvalue 1, while (-1/2, 1/2) has eigenvalue 0.4.
- Writing the initial distribution (1, 0) in the eigenvector basis gives the exact k-step distribution: (1/3, 2/3) minus (4/3)(0.4)^k times (-1/2, 1/2).
- Because 0.4^k tends to zero, the two-page Markov chain converges to (1/3, 2/3), assigning page two twice the long-run traffic of page one.
Chapters
- A basis spans the whole vector space, so every vector can be written as a linear combination of its basis vectors.
- Linear independence means no basis vector can be removed without losing the ability to span the space.
- Alex Townsend presents two ways to find a basis: prune a large spanning set or enlarge a small independent set.
- The column space of a 4-by-5 matrix B is spanned by all five columns, but those columns need not be independent.
- Townsend removes redundant columns while preserving the span; multiple valid choices illustrate that a basis is not unique.
- The example has three pivot columns, so the column space has dimension 3; a computer typically selects the pivot columns as its basis.
- The alternative basis method starts with a nonzero vector from the column space and adds vectors that are not combinations of those already selected.
- For an invertible matrix A, multiplying AX = 0 by A inverse proves that the only solution is X = 0.
- The null space of an invertible matrix has the empty set as its basis: the zero vector cannot be included in a linearly independent set.
- Townsend rewrites a one-equation constraint in four variables as a homogeneous matrix equation, making the target space a null space.
- Row-echelon form identifies one pivot variable and three free variables, which generate three basis vectors.
- Dimension is the number of vectors in any basis: the example null space has dimension 3, while the null space of an invertible matrix has dimension 0.
- Townsend models page traffic as tea or spiders moving between two cups or pages, with each matrix column describing the destination proportions from one starting page.
- The transition matrix is [[0.6, 0.2], [0.4, 0.8]]: 40% moves from page one to page two, and 20% moves back.
- Applying the matrix once advances the distribution by one time step; repeated updates describe traffic over many minutes.
- Repeatedly applying the transition matrix to an initial distribution requires computing P to the power k times that distribution.
- Townsend selects (1/3, 2/3) as an eigenvector with eigenvalue 1, since the transition leaves it unchanged.
- The vector (-1/2, 1/2) is an eigenvector with eigenvalue 0.4, so each transition scales it by 0.4.
- In the eigenvector basis ((1/3, 2/3), (-1/2, 1/2)), the initial distribution (1, 0) has coordinates (1, -4/3).
- After k steps, the distribution is (1/3, 2/3) minus (4/3)(0.4)^k times (-1/2, 1/2).
- The formula works because each basis vector returns as itself times its eigenvalue, reducing repeated matrix multiplication to a scalar power.
- Since 0.4^k approaches zero, the distribution converges to (1/3, 2/3), regardless of the decaying contribution from the second eigenvector in this example.
- The steady-state vector is unchanged by the transition matrix, with two-thirds of the spiders on page two and one-third on page one.
- Townsend interprets the long-run spider counts as relative page importance, making page two twice as important as page one in the two-page model.
- Townsend summarizes the method as computing P to the power k applied to an initial vector efficiently through a suitable basis.
- The key is choosing basis vectors whose images under P are scalar multiples of themselves, as in the eigenvector example.
- He identifies this basis-selection strategy as an important idea for the later part of the linear algebra course.
Transcript excerpt
0:01 Now, I think this is the first year they're having Sunday prelims. Obviously, by the way, it means I have to work on a Sunday as well. I actually have to be around, so I'm not super pleased about it. Anyway, um >> [clears throat] >> but what can you do? So, it's happening. It's not my decision. It's uh higher-ups. Okay. Uh lecture 15, so remember prelim one is on lectures 1 to 13, and I believe the first half of lecture 14 is pretty useful for understanding lecture 13. Uh but this is uh completely not on prelim one. This is on semifinal, if you want to think of it that way. Um but as I said, the prelim one is later
0:48 this year than usual. Even though prelim one's material is the same as every other year. Anyway, a basis for a vector space is a description of that vector space. It's the It's a collection of important vectors or important directions inside a vector space that one allows you to explore the entire vector space. So, given directions V1 up to VP, you can add those vectors tip to tail and explore the entire vector space V. In other words, every vector V can be written as a linear combination of your basis vectors. Um moreover than that, not just that you can reach everywhere in the vector
1:35 space, you can't throw any of those vectors away. It's um means that the set is linearly independent. Okay? The set is linearly independent, which means you can't throw any one of these away. So, it's both spanning the space, and you can't get rid of any of those directions. All right. So, two viewpoints of a basis because there are two parts to this definition. It allows you
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Alex Townsend.