本书暂未推出简体中文版。现有版本:English, Français。
Interviews I: Maths, Probability and Speed · 职业发展
19Linear Algebra
Reading off rank and eigenvalues from a matrix’s structure, without expansion by hand, and knowing what a covariance matrix can and cannot be. The later questions cover PCA and the SVD, conditioning, and why a sample covariance matrix misleads when there are many assets and few days.
Question 19.1 ★ QR, QT, DS, QD • any • junior
Let and . What are the rank and the eigenvalues of the matrix ? What are the eigenvalues of the by matrix of all ones, and of the matrix with zeros on the diagonal and ones elsewhere?
Answer
Answer to Question 19.1.
The matrix has rank 1, and its eigenvalues are , 0 and 0. The matrix of all ones has eigenvalues and ( times). With zeros on the diagonal, they are and ( times).
For any vector , , a multiple of . So the image is one line, and is an eigenvector: . Everything orthogonal to goes to 0. The trace is , as a check.
The matrix of all ones is , with . Taking away the identity shifts each eigenvalue by .
Classic wrong answer. Computing a characteristic polynomial. Spot the structure first: a shift by the identity moves all the eigenvalues, and it leaves the eigenvectors alone.
Question 19.2 ★ QR, QT, DS, Risk • any • junior
Ten assets have unit variance and a common pairwise correlation of . What are the eigenvalues of the correlation matrix, and what are the eigenvectors? What is the lowest possible value of for 10 assets, and what is the variance of their equally weighted average for large numbers?
Answer
Answer to Question 19.2.
The eigenvalues are once, with eigenvector , and nine times, on everything orthogonal to . The lowest is , and the variance of the average falls to for large numbers.
Write the matrix as . The matrix of all ones has eigenvalues and 0, so the eigenvalues here are and .
A correlation matrix needs all eigenvalues at or above zero, so . At that value, the sum of the assets is constant.
The average has variance . Here it is . This is the limit of diversification: the shared part never goes away.
Classic wrong answer. Thinking that any in is possible. With many assets, they cannot all be strongly negatively correlated with each other.
Question 19.3 ★ QR, QT, Risk, DS • any • junior
Three assets have pairwise correlations , and , as given by a data vendor. Is this a valid correlation matrix? Prove your answer by finding a portfolio with an impossible variance.
Answer
Answer to Question 19.3.
No. Its determinant is , and the portfolio has a variance of , which is impossible.
A valid correlation matrix must be positive semi-definite, because is the variance of a portfolio. All 2 by 2 blocks look fine, so looking at pairs does not catch this. By symmetry, try . Its variance is . That is lowest at , and already negative at .
Intuitively, if is close to and is close to , then cannot be uncorrelated with .
Classic wrong answer. Checking that each number lies in . Those are necessary conditions on pairs, but the requirement is on the whole matrix.
Question 19.4 ★ QR, QT, DS, QD • any • junior
A matrix has the property . What can its eigenvalues be? Show that its rank equals its trace. What is the trace of the matrix , where has rows and independent columns?
Answer
Answer to Question 19.4.
The eigenvalues can only be 0 or 1. The rank equals the trace, and the trace of is .
If , then , and so . Since , the polynomial has distinct roots, so is diagonalisable. The trace is the count of 1s, and the rank is also the count of 1s.
For the hat matrix, . The cyclic rule does the work.
Classic wrong answer. Assuming that a projection must be symmetric. The matrix with rows and is idempotent and not symmetric, and its rank and trace still agree.
Question 19.5 ★ QR, QT, QD, DS • any • junior
Let be the 2 by 2 symmetric matrix with 2 on the diagonal and 1 off it. Find its eigenvalues and eigenvectors, and use them to write down and exactly, with no repeated multiplication.
Answer
Answer to Question 19.5.
The eigenvalues are 3 and 1, with eigenvectors and . So has diagonal and off-diagonal , and has diagonal and off-diagonal .
The matrix is , so its eigenvalues follow at once. It is 3 times one projection plus 1 times another, and the product of these two projections is zero. So any function of applies to the 3 and to the 1 only:
With , the diagonal is , and the off-diagonal is . Direct multiplication gives the same.
Classic wrong answer. Raising the entries to the power 10. Powers of a matrix act on its eigenvalues, not its entries.
Question 19.6 ★★ QR, QT, Risk, DS • any • junior
Asset has a correlation of with , and has a correlation of with . What are the lowest and highest possible correlations between and ? Derive them in two ways: from a determinant and from angles between vectors.
Answer
Answer to Question 19.6.
The correlation between and can be anywhere from to 1.
From the determinant: a 3 by 3 correlation matrix is valid when
which, for a given and , gives . Here that is .
From angles: a correlation is the cosine of the angle between two random variables seen as vectors. degrees. Angles between and can be from 0 to degrees, and the cosine at the top end is .
Correlation is not transitive in general. With correlations of and , the third can be anywhere from to 1, which is no real constraint. A strong constraint appears only when the correlations are high.
Classic wrong answer. Multiplying , and giving that as the answer. It is the centre of the interval, and it would be the answer if and were linked only through . They need not be.
Question 19.7 ★★ QR, QT, QD • any • junior
Let be the by cyclic shift, with , indices wrapping around. What are its eigenvalues and eigenvectors, and what is its condition number? Use them to find the eigenvalues of the 4 by 4 circulant whose first row is .
Answer
Answer to Question 19.7.
The eigenvalues of are the -th roots of unity, the eigenvectors are the Fourier vectors and the condition number is 1. The circulant has eigenvalues , , and .
If , with , then . Since is orthogonal, , all its singular values are 1, which gives the condition number.
A circulant with first row is the polynomial in . So it has the same eigenvectors, and its eigenvalues are . Here, with gives , , and .
Classic wrong answer. Saying that a real matrix has real eigenvalues. Only symmetric ones must. A shift is a rotation in disguise, and a rotation has complex eigenvalues.
Why it matters. This is why fast Fourier transforms solve circular convolutions: the Fourier basis diagonalises every circulant matrix at once.
Question 19.8 ★★ QR, QD, QT • any • junior
Take the by tridiagonal matrix with 2 on the diagonal and just off it. Find its eigenvalues for , then give the general formula. What happens to the condition number as grows, and why does it matter when solving a finite-difference problem?
Answer
Answer to Question 19.8.
For the eigenvalues are , and . In general they are for . The condition number grows like , about 4100 for .
Try , a discrete sine wave that is zero at and . Then
by the sum formula for sines. It satisfies the boundary rows automatically.
The largest eigenvalue is near 4, and the smallest is about , so the ratio goes as stated. A finer grid gives a less well-conditioned matrix. Direct solves are still fine for a tridiagonal system, but rounding errors grow with the grid, and an iterative solver slows down without a preconditioner.
Classic wrong answer. Thinking that a finer grid must always give better answers. The discretisation error falls, but the rounding error rises, and there is a best grid size.
Question 19.9 ★★ QR, QT, DS, Risk • hedge fund • junior
Two assets have a correlation of . If both have unit volatility, what are the two principal components and their shares of variance? If the first asset’s volatility is doubled, how much variance does the first component explain? Why does this show that PCA depends on units, and what do you do about it?
Answer
Answer to Question 19.9.
With unit volatilities the components are , with a 75% share, and , with 25%. If the first asset’s volatility is doubled, the first component explains about 86%. PCA depends on units, so use the correlation matrix when units are not comparable.
The first matrix has eigenvalues and , summing to 2.
With volatilities 2 and 1, the covariance matrix has rows and . Its eigenvalues are , so and . The share is . The top component now points mostly along the first asset, at about 17 degrees from it, with . The correlation has not changed. Only the units have.
So PCA on returns with very different volatilities mostly finds the most volatile assets. Decide whether you want that. Scale to unit variance if not, or weight by a risk budget.
Classic wrong answer. Treating the components as properties of the assets. They are also a property of the scale you chose, and a change of currency or a leverage factor changes them.
Question 19.10 ★★ QR, QD, DS • any • junior
Find the singular values of the matrix with rows and , and its condition number in the 2-norm. Compare them with the eigenvalues of the matrix. How do singular values relate to the principal components of a data matrix?
Answer
Answer to Question 19.10.
The singular values are and , so the condition number is 3. The eigenvalues are 3 and 5, which would suggest a different ratio.
Singular values are the square roots of the eigenvalues of . Here has rows and , whose eigenvalues are 45 and 5.
The matrix is triangular, so its eigenvalues are its diagonal: 3 and 5. For a non-symmetric matrix, eigenvalues do not measure size or conditioning, and only singular values do.
For a centred data matrix with rows, the covariance is . So the columns of are the principal components, and their variances are . A test on random data confirms this. It is better to use the SVD on than an eigensolver on the covariance, because forming the covariance squares the condition number.
Classic wrong answer. Using the ratio as the condition number. That works only for a symmetric matrix.
Question 19.11 ★★ QR, QD, QT, DS • any • junior
Solve for with rows and , and for and then . What does the result show? Give the condition number of , and the rule of thumb linking it to lost digits. What does squaring , as in the normal equations of a regression, do?
Answer
Answer to Question 19.11.
The solutions are and . So changing by moves by 1. The condition number is about , and you lose about digits. Forming squares the condition number, which loses about digits.
The matrix is nearly singular, as its rows are nearly equal. Its eigenvalues are about 2 and , whose ratio is the condition number.
The rule of thumb is that relative error in the answer can be times the relative error in the input. If you work with 16 digits, you can lose about of them. With the normal equations, has a condition number of , and that is why good regression code uses QR or the SVD on .
Classic wrong answer. Checking the residual, and being satisfied that it is small. Both solutions have tiny residuals against the other . A small residual does not mean a small error when is badly conditioned.
Why it matters. Two near-identical assets in a risk model create exactly this problem. A small change in estimated means or covariances then gives wildly different portfolio weights.
Question 19.12 ★★ QR, QT, DS, Risk • hedge fund, bank • junior
You compute the sample covariance matrix of 500 stocks from 250 daily returns. What is the largest its rank can be? What follows for a minimum-variance portfolio computed from it? Give two practical repairs.
Answer
Answer to Question 19.12.
The rank is at most 249, after subtracting the means. So there are at least 251 independent portfolios with exactly zero sample variance, and a minimum-variance optimiser sends its weights to them.
is a sum of rank-one matrices, and the centred vectors add up to zero, so its rank is at most . A simulation with 250 and 500 confirms 249.
A portfolio with zero sample variance is not riskless. Its weights are fitted to the sample’s quirks, and its true risk is ordinary. The optimiser cannot be solved uniquely and, with constraints, it still heads straight for these directions.
Two repairs: impose structure with a factor model, , which is full rank with few parameters. Or shrink: , with a simple target . Weight limits also help, because they act like shrinkage.
Classic wrong answer. Inverting with a pseudo-inverse and calling it fixed. That gives you a number, but the problem is that you have too little data, and no matrix algebra adds any.
Question 19.13 ★★ QR, QT, Risk, DS • hedge fund • junior
A covariance matrix has eigenvalues 5, 1 and . You replace it with times itself plus times , with the mean of the eigenvalues. What are the new eigenvalues and the new condition number? What stays the same? Why does this help an optimiser, and where would come from?
Answer
Answer to Question 19.13.
The new eigenvalues are , and . The condition number falls from 50 to about . The eigenvectors and the trace stay the same.
With , each eigenvalue becomes , because has every vector as an eigenvector. Sample eigenvalues are too spread out: the top is too high, and the bottom too low. So this moves them together while keeping the total variance.
An optimiser’s weights use , so they are dominated by the smallest eigenvalues, which are the least reliable. Raising them from to reduces the weight given to those directions about sevenfold.
The can be chosen by the Ledoit–Wolf formula, which estimates the intensity that minimises the expected squared distance to the true matrix, using how noisy is. Or use cross-validation on out-of-sample variance.
Classic wrong answer. Thinking of shrinkage as losing information because it changes the numbers. The sample values have errors that always spread them apart, and moving them together corrects that.
Question 19.14 ★★ QR, QT, Risk • hedge fund • junior
One asset has a volatility of 10%, another of 20%, and their correlation is . Find the minimum-variance weights. For what is the second asset’s weight exactly zero? What are the weights and the portfolio’s volatility at ? Why is the variance below that of the first asset, when the second is riskier and correlated?
Answer
Answer to Question 19.14.
The weights are proportional to and . The second is zero at . At the weights are , and the volatility is about .
, which for two assets gives the formula above. A grid search on the weight at finds the same.
At : variance is .
Why the variance is lower: the short position in the second asset hedges the first. The marginal effect of adding the second asset at zero weight is its covariance with the first, , which is above the first’s variance, . So being short it lowers the risk. In other words, the beta of asset 1 on asset 2 is , and the best portfolio holds a partial hedge against it.
Above the riskier asset is a hedge, and it is shorted. Below that, you hold it long.
Classic wrong answer. Saying that a riskier asset always gets a smaller positive weight. For a high enough correlation it gets a negative weight, because it is then useful as a hedge.
Question 19.15 ★★ QR, QT, DS, QD • any • junior
A market state moves between two regimes: from calm, it stays calm with chance ; from stressed, it stays stressed with chance . Write the transition matrix, its eigenvalues and its stationary distribution. How quickly does the effect of today’s state die away? What is that time for a half-way decay?
Answer
Answer to Question 19.15.
The matrix has rows and , with eigenvalues 1 and . The stationary distribution is . The effect of today’s state shrinks by a factor of per day, which is a half-life of about days.
Rows sum to 1, so is a right eigenvector with eigenvalue 1. The other eigenvalue comes from the trace: . The stationary solves , which gives , so .
The difference between the chance of calm tomorrow starting from calm and starting from stress is , which is the eigenvalue. After days that is , so half-way takes days. A matrix power at 200 steps gives the stationary row from either start.
Classic wrong answer. Thinking the state’s duration tells you about mixing: the expected length of a stress spell is 5 days and of a calm spell is 10, and these are longer than the half-life. Mixing combines both exits, and the eigenvalue already includes them.
Question 19.16 ★★ QR, QD, Dev • any • junior
Write the Fibonacci recursion as a 2 by 2 matrix. What are its eigenvalues? Derive the closed form, and say how many multiplications matrix powers need for . Using double-precision floating point, does the closed form always give the exact integer?
Answer
Answer to Question 19.16.
The matrix has rows and , with eigenvalues and . So , and about matrix products are needed. With doubles, the rounded formula first goes wrong at .
, so has in its off-diagonal. Expanding the start vector in eigenvectors gives the formula. Since , is the nearest integer to .
Repeated squaring computes in about squarings, and up to as many extra products.
Doubles have about 53 bits. passes near , but the rounding errors in accumulate before then. A test finds the first wrong value at . So use integer matrix powers for an exact value. A test computes that way.
Classic wrong answer. Saying that the closed form is always better because it has no loop. It is only as exact as its floating-point inputs, and the integer method has no such limit.
Question 19.17 ★★ QR, QT, QD • any • junior
A 100 by 100 matrix has entries , with indices from 1 to 100. What is its rank? Find its nonzero eigenvalues in closed form, without expanding anything, by using the structure of the matrix.
Answer
Answer to Question 19.17.
The rank is 2, and the nonzero eigenvalues are and .
Write , with . Each term has rank 1, and the two together have rank 2. Any eigenvector with a nonzero eigenvalue lies in the span of and . Write . Then , which gives the 2 by 2 matrix
Its eigenvalues are . As a check, the sum is , which is the trace of : . A numerical solver gives the same.
Classic wrong answer. Expecting all eigenvalues to be positive, because all entries are positive. The matrix is not positive semi-definite. A positive entry does not imply that.
Question 19.18 ★★★ QR, QT, DS, Risk • hedge fund • junior, experienced
Five hundred uncorrelated assets with unit variance are observed for 1000 days. Between which values do the sample covariance eigenvalues lie, by the Marchenko–Pastur law, although all the true eigenvalues are 1? A minimum-variance portfolio is built from the sample matrix. How does its risk in the sample compare with its risk out of sample, and with the true optimum?
Answer
Answer to Question 19.18.
The sample eigenvalues lie between about and . In the sample, the portfolio shows a variance of , with . Out of sample, its true variance is . So the optimum variance is , the sample reports half of that, and it delivers twice that, for a ratio of 4 between the delivered risk and the risk seen.
The law says that the eigenvalues of pure noise spread out to , so . A simulation with 500 assets and 1000 days gets close to both edges.
The optimiser takes . So it picks up the low sample eigenvalues, which are spuriously low, and loads onto those directions. Twenty simulations, one for each seed, give in-sample variance and out-of-sample variance , against the true optimum , which is the equal-weight portfolio here.
To make this useful, look at the limits. As , you have lots of data, and all three agree. As , the out-of-sample risk blows up. Below the Marchenko–Pastur upper edge, real data’s eigenvalues cannot be told apart from noise, so clean them or use a factor model.
Classic wrong answer. Thinking that the risk in the sample is a fair estimate of the risk you will face. An optimised portfolio is the most flattering one for that sample, so it is too low by construction.
Question 19.19 ★★★ QR, QT, QD, Risk • hedge fund • junior, experienced
A factor risk model has covariance matrix for 1000 assets, with diagonal. Find with the Sherman–Morrison formula, and prove it. What is the cost compared with a direct inverse? Write the minimum-variance weights, and say what they do to high-beta stocks.
Answer
Answer to Question 19.19.
. This takes operations for a matrix-vector product, instead of for a direct inverse. The minimum-variance weights are proportional to , so high-beta stocks get low or negative weights.
Proof: multiply out. Let and . Then
Numerical tests with 1000 assets confirm this, and the fast weights match a direct solve.
Applying it to gives , whose -th entry is , which is the form above. So the weights fall in a straight line with beta, when residual risks are equal. That is the known low-beta tilt of minimum-variance portfolios: the portfolio lowers its market exposure by buying low-beta and shorting high-beta names.
The cost matters: with factors, Woodbury’s version needs the inverse of one matrix, at a cost of . So factor models are as much a computational tool as a statistical one.
Classic wrong answer. Forming and inverting the whole matrix each time. That costs a billion operations at this size, and it loses the structure that makes the result stable.
Question 19.20 ★★★ QR, QT, DS • hedge fund • junior, experienced
, and have unit variance and all pairwise correlations equal to . What is the partial correlation of and given ? Compute it in two ways: from residuals of regressions on , and from the inverse of the correlation matrix. What is the partial correlation in general if the correlation is ?
Answer
Answer to Question 19.20.
The partial correlation is . In general it is .
From residuals: regressing on gives and . Each has variance . Their covariance is . So the correlation is . A simulation agrees. In general, .
From the inverse: let . Then the partial correlation is . For this equicorrelated matrix, the inverse has diagonal and off-diagonal , which gives .
So the off-diagonal entries of the inverse measure direct links, once all the other variables have been accounted for. A zero entry means that two variables are conditionally independent, in the Gaussian case.
Limits: gives 0, and gives . It is not 1, because when all are close to identical, the residuals after removing are still correlated by the common structure.
Classic wrong answer. Using the correlation as the direct link. Part of it comes through . Partial correlation removes that part, and it may fall a lot, or even change sign.
Question 19.21 ★★★ QR, QD, DS • any • junior, experienced
You need the top eigenvector of a 1000 by 1000 covariance matrix, whose two top eigenvalues are 10 and 5. How does power iteration work, and about how many steps does it take for an error of in the vector? And in the eigenvalue? How many steps if the second eigenvalue is ? When could it fail?
Answer
Answer to Question 19.21.
Multiply a start vector by the matrix, then normalise, and repeat. It takes about 20 steps for a error in the vector, and 10 for the eigenvalue. If the second eigenvalue is , it takes about 1375 steps. It fails if the start vector has no component along the top vector.
Write the start as . After steps, it is . So the error falls like , and .
The Rayleigh quotient has an error that depends on the square of the vector’s error, for a symmetric matrix, so it needs half as many steps. A run on a 1000 by 1000 matrix confirms both orders of size.
For , . So the gap matters, not the size.
Failure: exact orthogonality to , which is unlikely from a random start, but rounding would usually fix it by itself anyway. A test that keeps removing the top direction shows it stuck on the other direction. If the top eigenvector is not unique: the iteration converges to some vector in that plane, and which one depends on the start. Lanczos is far faster for a small gap, using the same matrix-vector product, and needs no forming of the matrix. That matters when the covariance is or a factor model.
Classic wrong answer. Giving an answer that depends on the matrix’s size. The cost per step does, through the matrix-vector product. The number of steps depends only on the ratio of the eigenvalues.
Question 19.22 ★★★ QR, QD, DS, QT • hedge fund • junior, experienced
Show that and have the same nonzero eigenvalues, even if they have different sizes. Use this to compute the principal components of a by return matrix with and , without forming the by matrix. What is the eigenvector map? Also derive .
Answer
Answer to Question 19.22.
If with , then is non-zero, and . So nonzero eigenvalues are shared, with the same multiplicities. For the returns, form the 250 by 250 matrix and map each eigenvector back with .
With and , and have the same nonzero eigenvalues. If and has unit length, let . Then , and . A run with and confirms this. The eigenproblem takes about of the work.
For the determinant, the identity follows from the shared nonzero eigenvalues: each appears in both, and the rest are 1. With and , is the 1 by 1 number . So . Alternatively, has one nonzero eigenvalue , and the others are 0.
Classic wrong answer. Forming the matrix first because that is what the formula says. Its rank is at most 249, so most of that work goes on zeros.
Question 19.23 ★★★ QR, QT, Risk, QD • bank, hedge fund • junior, experienced
A correlation matrix built from a mix of sources has and . Give its eigenvalues. Repair it by clipping the negative eigenvalue to zero and rescaling to a unit diagonal, and give the new correlations. In what sense is this close to the original, and is it the closest possible?
Answer
Answer to Question 19.23.
The eigenvalues are , and . After clipping and rescaling, and . This is close, but it is not the closest valid correlation matrix: that one has about and .
Set the negative eigenvalue to 0. Let be its eigenvector. Then
which has diagonal . It has off-diagonals , and . Dividing by the square roots of the diagonals gives the new correlations.
In what sense is it close: before the rescaling, is the nearest positive semi-definite matrix in the Frobenius norm, at a distance of , which is exactly the clipped eigenvalue. Rescaling then moves it away, because it restores the unit diagonal without thinking about distance.
The nearest correlation matrix alternates projections onto the positive semi-definite cone and onto unit diagonals, with Dykstra’s correction. A test with this method gives and , a smaller distance from the original matrix. The two differ little in many uses, and clipping is simple and fast.
Classic wrong answer. Assuming that rescaling after clipping is the nearest matrix, or that you can fix the problem by adjusting the worst single number. Any repair changes several entries at once.
Question 19.24 ★★★★ QR, QT • hedge fund • experienced
An by matrix has independent entries, each with mean 0 and variance 1. Find exactly. Check the answer for with entries, by reasoning about the size of the enumeration. What does this tell you about how the typical size of a determinant grows? Compare it with the largest possible determinant of a matrix.
Answer
Answer to Question 19.24.
. For with entries, there are matrices, and the average of is 6.
Expand the determinant by permutations:
Squaring gives a double sum over and . If , there is a row where , so appears alone in that product (each entry only once in each of the two products), and it has mean zero. If , the product is , which has mean 1. So only the diagonal terms survive.
The enumeration of all 512 matrices gives exactly 6. Simulations with normal entries for , 4 and 5 agree. So the formula needs only independence, mean 0 and variance 1.
So the root-mean-square size is , which sets the growth rate. A typical value is smaller: with normal entries, the geometric mean falls short by a factor of about , little beside the factorial. For matrices, the largest possible is at most , by Hadamard’s inequality, because the determinant is the volume of a box with sides of length . For the bound is , and the enumeration finds that the actual maximum is 4. The ratio between and falls like , by Stirling. So random vectors are far from orthogonal in that volume sense, even though each pair is nearly orthogonal.
Classic wrong answer. Saying that the mean of the determinant is 0, and so the typical size is small. Yes, the mean is 0, since every term of the expansion is a product of independent factors with mean 0. The second moment gives its size, and it is huge.
Question 19.25 ★★★★ QR, QT, QD • hedge fund • experienced
Prove that the element-by-element product of two positive semi-definite matrices is itself positive semi-definite. Use this to show that multiplying a correlation matrix, entry by entry, by a matrix with entries gives a valid correlation matrix. Also prove the bound .
Answer
Answer to Question 19.25.
Write and , with all coefficients non-negative. Then , which is a sum of positive semi-definite matrices.
To check the middle step: entry of is , which is the same as . Random tests with low-rank matrices never find a negative eigenvalue, beyond rounding.
For the taper, is the correlation matrix of an AR(1) process, and so it is positive definite. So the product with a correlation matrix is positive semi-definite. The diagonal stays 1, because both diagonals are 1. It is a valid correlation matrix. A test with confirms this.
For the bound, let . Then is positive semi-definite, so is too. This expands to . So
Random tests confirm this inequality too.
This is why a smooth taper is safe, and a hard cut-off is not. Cutting all entries beyond a band to zero is an element-wise product with a matrix that is not positive semi-definite, and a test shows that it can yield a negative eigenvalue: the one-factor matrix with and a band of width 1 gives one.
Classic wrong answer. Trying to use the eigenvalues of the two matrices directly, as with a matrix product. The eigenvalues of are not products of eigenvalues. The decomposition into rank-one terms is what makes it work.