Linear Algebra for Engineers lecture 24: Steady States and Eigenvalues
Overview
Alex Townsend connects Markov chain steady states to eigenvalues and eigenvectors, using a four-page web graph to compute the stationary probabilities 1/31 times (12, 4, 9, 6). He defines eigenvectors as nonzero directions satisfying Av = λv, derives the determinant condition det(A − λI) = 0, and works through a 2×2 matrix with eigenvalues 7 and −4 and their corresponding eigenspaces.
Key takeaways
- A steady-state probability vector for a column-stochastic Markov chain satisfies Ax = x, so it is an eigenvector associated with eigenvalue 1.
- For the four-page web example, the normalized steady state is (12, 4, 9, 6)/31, making page 1 three times as likely as page 2 in the long run.
- For any column-stochastic A, the columns of I − A sum to zero, which makes I − A singular and ensures its null space is nontrivial.
- Eigenvalues can be found by solving det(A − λI) = 0; for A = [[1, 6], [5, 2]], the equation factors into (λ − 7)(λ + 4).
- Eigenvectors for a fixed eigenvalue form a null space: the eigenspaces in the worked example are span((1, 1)) for 7 and span((−6, 5)) for −4.
- A real matrix need not have real eigenvalues: a 90-degree rotation has no real eigenvector direction, though its eigenvalues are complex.
Chapters
- A probability vector has nonnegative entries that sum to 1, with each entry representing the probability of a particular state.
- A column-stochastic matrix has probability vectors as its columns, so multiplying by it advances a Markov chain by one time step.
- For a web graph, the states represent pages and transitions represent randomly chosen hyperlinks.
- Townsend constructs the transition matrix from each page's outgoing links, assigning equal probability to the available links.
- A steady state x satisfies Ax = x, so it belongs to the null space of I − A.
- Row reduction gives a one-dimensional null space with direction proportional to (2, 2/3, 3/2, 1); normalization produces x = (12, 4, 9, 6)/31.
- The long-run page probabilities rank page 1 above page 3, page 4, and page 2; page 1 is three times as likely as page 2.
- More than one free variable in I − A can mean multiple steady-state directions and no unique ranking of web pages.
- The lecture previews a later method for ensuring a unique steady state in Google's web-page model.
- The key question is whether a stochastic matrix can make I − A invertible, leaving only the zero vector in its null space.
- Because each column of a column-stochastic matrix A sums to 1, each column of I − A sums to 0.
- Consequently, every row of (I − A)ᵀ sums to 0, so multiplying it by the all-ones vector gives zero.
- The rank of (I − A)ᵀ is less than n; since transposition preserves rank, I − A also has rank less than n and a nontrivial null space.
- This argument establishes that I − A is singular, while a valid steady-state probability vector must also have nonnegative entries and sum to 1.
- Townsend introduces an eigenvector v as a nonzero vector satisfying Av = λv, where λ is its corresponding eigenvalue.
- An eigenvector gives a direction that a matrix preserves, while the eigenvalue describes the scaling or reversal along that direction.
- A Markov chain steady state satisfies Ax = x, making it an eigenvector with eigenvalue 1.
- A plotted candidate vector is an eigenvector only when its image under A points along the same line, as a stretch, shrink, or reversal.
- A diagonal matrix preserves the coordinate directions, with example scaling factors 5/4 and 3/4.
- For the identity matrix, every nonzero vector is an eigenvector with eigenvalue 1; for the zero matrix, every nonzero vector has eigenvalue 0.
- A 90-degree rotation has no real eigenvectors, illustrating that real eigenvalues are not guaranteed.
- Rearranging Av = λv gives (A − λI)v = 0, which has a nonzero solution only if A − λI is singular.
- Therefore, every eigenvalue must satisfy det(A − λI) = 0.
- The identity matrix I is essential in λI: subtracting λI changes diagonal entries, unlike subtracting λ from every matrix entry.
- For A = [[1, 6], [5, 2]], the characteristic determinant is (1 − λ)(2 − λ) − 30.
- Setting the determinant to zero gives λ² − 3λ − 28 = 0, which factors as (λ − 7)(λ + 4).
- The matrix has eigenvalues 7 and −4; for an n×n matrix, det(A − λI) is a degree-n polynomial and can have complex or repeated roots.
- For λ = 7, solving (A − 7I)v = 0 yields the null space spanned by (1, 1).
- Thus A(1, 1) = 7(1, 1), and every nonzero multiple of (1, 1) is an eigenvector for eigenvalue 7.
- An eigenvalue corresponds to an eigenspace, not a unique eigenvector; a basis for that space is a standard way to report the eigenvectors.
- For λ = −4, solving (A + 4I)v = 0 gives an eigenspace spanned by (−6, 5).
- Every nonzero multiple of (−6, 5) is an eigenvector with eigenvalue −4, since A(−6, 5) = −4(−6, 5).
- The worked example ends with two eigenvalues, 7 and −4, each paired with a one-dimensional eigenspace.
Transcript excerpt
0:08 Right. It fits in with the uh the jumping spider theme that's been going on for a few lectures now. Okay. Should we uh continue with jumping spiders head? >> Okay. So uh lecture 24 this corresponds to section 5.1 which is a section on values and igen vectors. Okay, but first I just wanted to recap uh some of the Markoff chain stuff because we're going to use we're eventually going to use values and vectors to look more deeply at markoff chains as well as a bunch of other things. But okay, so a markoff chain is a sequence a chain are full of vectors probability vectors right these
0:58 are vectors that have their entries make sense as probabilities. So the entries are non zero non negative they can be zero non- negative and they sum the entries sum to one. So if an entry is a third it means the event that we've labeled number three if it's the third entry has a chance of occurring of pro with probability one/3. Okay. And then a markoff chain is just this sequence this sequence this chain they're chained together with a sarcastic matrix A. Remember a stochcastic matrix A is just a matrix where every column is a probability vector. So every column it sums to one and has non- negative entries non yeah non- negative entries and this is the
1:45 connection right to get yourself from one of these vectors let's say x1 to x2 you just apply a to it and it it jumps you forward like a jumping spider one time step forward. >> Okay. And uh what Google at least Google is interested in is the where the spider is in the long run. What's the probability that the spider is at one page or not in
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.