Jump to content

Talk:Singular value decomposition

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 62.201.142.29 (talk) at 17:24, 28 May 2011 (the spectral theorem). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

WikiProject iconMathematics Unassessed Mid‑priority
WikiProject iconThis article is within the scope of WikiProject Mathematics, a collaborative effort to improve the coverage of mathematics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
???This article has not yet received a rating on Wikipedia's content assessment scale.
MidThis article has been rated as Mid-priority on the project's priority scale.


Truncated vs. Thin SVD

Is there a difference between thin and truncated SVD? The description look as if it is the same. If there are differences, could someone mention them in the article? 129.187.173.178 (talk) —Preceding undated comment added 17:31, 17 April 2010 (UTC).[reply]

Full vs. Reduced SVD

Just wanted to point out that the way SVD is presented in the article is the "Full" SVD formulation, which is different from the "Reduced" SVD formulation actually used in practice (ala Numerical Recipes). The primary difference being that the reduced formulation has the U matrix chopped down to the same size as the original matrix, and the extra 0 rows in the singular value diagonal matrix likewise chopped off. The Full form is favored in textbooks but not actually used anywhere in practice since the reduced form is easier to store, etc. --65.198.5.139 (talk) 21:09, 21 August 2009 (UTC)[reply]

Dimensions of matrices incorrect in statement of theorem

I think it says m-by-m when it should say m-by-n, and there may be other problems. Currently this article says:

Suppose M is an m-by-n matrix whose entries come from the field K, which is either the field of real numbers or the field of complex numbers. Then there exists a factorization of the form

where U is an m-by-m unitary matrix over K, the matrix Σ is m-by-n with nonnegative numbers on the diagonal and zeros off the diagonal, and V* denotes the conjugate transpose of V, an n-by-n unitary matrix over K.

That seems definitely wrong to me. For example, the matrix which has nonzero diagonal elements should be a square matrix -- otherwise it makes no sense. Compare the treatment in Press et al., Numerical Recipes in C, p. 59:

Any M x N matrix A whose number of rows M is greater than or equal to its number of columns N, can be written as the product of an M x N column-orthogonal matrix U, an N x N diagonal matrix W with positive or zero elements (the singular values), and the transpose of an N x N orthogonal matrix V.

And it gives the equation like .

I think I see how to fix it. I think the three matrices are in the same order in the two formulations and M corresponds to m and N corresponds to n, so all I have to do is fix it to say m-by-n for U and n-by-n for sigma, to match up with Press et al.'s formulation. --Coppertwig (talk) 03:35, 25 December 2007 (UTC)[reply]

they are essentially the same, with trivial difference in the proofs. i've reverted your change for consistency of article. Mct mht (talk) 04:08, 25 December 2007 (UTC)[reply]
You're right. I was wrong. Thanks for watching and fixing it. My edit had a rectangular matrix being described as "unitary" with a link to a page about square matrices, which made no sense. I suppose I vaguely remember now having previously seen such a thing as the diagonal of a rectangular matrix after all; anyway, that's consistent with the proof beneath it, as you say, and with the page diagonal matrix. I inserted a few words to emphasize/clarify that it's talking about the diagonal of a (potentially) non-square matrix. Does this proof work regardless of whether m > n or m < n? Press specifies M > N. (of course also possible m=n). --Coppertwig (talk) 13:21, 25 December 2007 (UTC)[reply]
yes, the proofs for M > N, M < N, and M = N are almost verbatim the same, only difference is whether U is square, V is square, or both are square. for example, suppose Σ has more rows then columns. if you chop off the zero part to make Σ square, then U becomes rectangular (and column-orthonormal) but V remains square. this would be the formulation you brought up above. Mct mht (talk) 05:02, 29 December 2007 (UTC)[reply]

It now appears that the example doesn't follow the statement of the theorem. Even though the matrix in the example is not square, both the U and the V are. This is pretty confusing! Milez (talk) 18:40, 16 October 2009 (UTC)[reply]

the spectral theorem

I have removed the following text from the teaser.

"The spectral theorem says that normal matrices, which by definition must be square, can be unitarily diagonalized using a basis of eigenvectors. The SVD can be seen as a generalization of the spectral theorem to arbitrary, not necessarily square, matrices."

It would be very difficult to give a mathematically correct interpretation of the above. The spectral theorem says that a normal matrix can be written as UDU^(inverse). The SVD says that an arbitrary matrix can be written as UDV, where V has absolutely nothing to do with U.

Phrenophobia (talk) 09:06, 10 February 2008 (UTC)[reply]

There was actually a mathematically correct version of it later in the article, as long as one is flexible about the meaning of "generalization". For hermitian positive semi-definite matrices the SVD and unitary diagonalization are the same, and in general the eigenvalue decomposition of the HPSD matrix MM^* is very closely related to the SVD of M. However, I think contrasting the decompositions as you do here is also important, so I included that as well ("V is unrelated to U"). JackSchmidt (talk) 16:23, 10 February 2008 (UTC)[reply]
Another way to phrase the idea mathematically and correctly: "The spectral theorem says that every normal endomorphism of a (complex with hermitian p.d. inner product) vector space is diagonal up to a rotation of the coordinate system. The SVD shows that every homomorphism between distinct (complex with hermitian p.d. inner product) vector spaces is diagonal up to rotations of their coordinate systems." This is nice because it says that once you have a nice enough geometry on the vector spaces, every nice enough operator is just diagonal, it just scales the coordinates. I believe this is sometimes phrased as every operator takes circles to ellipses. The reason the two ideas of eigenvalue decomposition and SVD are not really related as "generalization", but rather are more "analogous", is that there is a very large difference between an endomorphism of one vector space, and a homomorphism between two vector spaces ("U is unrelated to V"). I'm not sure if such a geometric version should be added, but perhaps the geometric meaning section could do with some improvement (maybe a picture). JackSchmidt (talk) 16:35, 10 February 2008 (UTC)[reply]
it's not really correct to say U and V are unrelated. Mct mht (talk) 00:12, 11 February 2008 (UTC)[reply]
Right. However, I find it hard to find a better formulation. I went for "U and V are not related except through M". I also made some more changes to the text that Jack added.
I'm not so fond of the sentence "The eigenvalue decomposition only applies to square matrices, but gives an extremely tidy decomposition, while the SVD applies to any matrix, but gives a looser decomposition." What do you want to say here? In what sense is the SVD looser?
I agree with Jack I think the article can be improved by combining this with the geometric section, add a picture there, and perhaps even moving it higher up because it gives a nice explanation about what the SVD is and why we're interested in it. I quite like the description in Cleve Moler's "Professor SVD" (which says that this article is "quite good", so well done!). -- Jitse Niesen (talk) 12:02, 11 February 2008 (UTC)[reply]
I very much like "not related except through M". They are base changes for different vector spaces, and those vector spaces are only related through M. Thanks very much for the better phrasing.
The new changes introduced a subtle math error. The SVD is not simply a diagonalization, but a positive semi-definite diagonalization, and so the only matrices for which the eigenvalue decomposition and the singular value decomposition are the same are the hermitian positive semi-definite matrices. The new text brings in non-unitarily diagonalizable matrices, which strains the analogy between the two decompositions, but I could not decide if the strain was good for the article or no.
The troublesome sentence can be removed, *especially* if a geometric version is added. In case someone wants to salvage it: The idea is that the eigenvalue decomposition takes n^2 entries and returns n^2+n invariants, but the singular value decomposition of a square matrix takes n^2 entries and returns 2n^2+n invariants, so it has a much larger space to choose from, yet it describes nearly the same set of matrices. I think the assignment of these decompositions is not continuous in the matrix entries (though I could be wrong, I think there is an exercise somewhere to just give the "formula" for the SVD of a small general matrix; but I think [1,0;0,e] as e varies over a neighborhood of 0 shows discontinuity), so viewing it via dimensions is probably flawed. The informal sense in which it is looser, is simply that the SVD needs two base changes to do what the eigenvalue decomposition does with one. I'll read Prof SVD's stuff. JackSchmidt (talk) 17:52, 11 February 2008 (UTC)[reply]
Sorry for all the minor edits. The map from SVDs to matrices has a small kernel, the map from eigenvalue decomps to matrices has an even smaller kernel, the topological dimension of the space of all SVDs is much larger (even if one were to penalize it for the kernel) than the dimension of the eigenvalue decompositions, yet their images are both dense in the set of all matrices, so the eigenvalue decomposition does "more with less". I'll stress again the informal sense, since it is so much easier to explain: the SVD needs two base changes to do what the eigenvalue decomposition does with one. JackSchmidt (talk) 18:07, 11 February 2008 (UTC)[reply]
Thanks for catching my error. However, I don't agree with the rest of your post. Are you taking into account that the U and V in the SVD have to be unitary? That goes a long way towards resolving the difference. I don't feel like counting dimensions, but it does seem to be roughly similar. -- Jitse Niesen (talk) 18:49, 11 February 2008 (UTC)[reply]

(←) I think User:KYN has now fixed up this section nicely (thanks!), but at some point we should add the eigshow picture from the Prof SVD article (also from Trefethen and Bau and just plain old matlab). I am happy letting the "looser" argument go, but I think I did take into account the unitary part, as the article Unitary group says, "The unitary group U(n) is a real Lie group of dimension n^2." However, I may have made a real/complex dimensional error, which would also go a long way towards fixing the problem, so you may be right. The huge problem with the looser argument is that it is comparing apples to oranges (not just real/complex, but which matrices can be represented, which can be represented uniquely after replacing some things with quotient topological spaces, and the fundamental difference: SVD is for homomorphisms and eigendecomposition is for endomorphisms). To be clear, this is why I removed the sentence from the article way back, and only presented the argument to be salvaged. I don't actually hold that it is true, merely that I suspect someone could make a true and interesting statement from it (after finding the right conditions on the two decompositions to make them comparable). JackSchmidt (talk) 22:16, 11 February 2008 (UTC)[reply]

Yup real/complex error. I think they have roughly the same dimension. Thanks for catching it, otherwise I'd probably have continued in that mistaken impression for years! If you do happen to salvage the argument somehow, let me know (even on talk page if it is not worth inclusion in an article). JackSchmidt (talk) 22:23, 11 February 2008 (UTC)[reply]

Sorry for interrupting, but are you sure of this line

 ?

I don't get why V_1V_1^* = I... We only know that V_1^*V_1 = I and that V_1V_1^* + V_2V_2^* = I.

SVD on Scroll Matrix

Is this known to be trivial or should it be cited in this Article?

(* complete dictionary of words, one per row, number of rows is (alpha^word), using words of length "word" and an alphabet of "alpha" number of characters *)

alpha=4;word=3;dict=.;

dict=Partition[Flatten[Tuples[Reverse[IdentityMatrix[alpha]],word]],(alpha*word)]

PseudoInverse[dict]==((Transpose[dict])*((alpha)^-(word -1)))-((word - 1)/(alpha^word)/word)

True

There is nothing special for alpha=4;word=3 - The method works for all cases where word < alpha, but that is a more verbose loop, and the Mathematica PseudoInverse function takes too long to calculate for values of alpha and word that are large, whereas the transpose side of the equation is fast.

100TWdoug (talk) 05:54, 25 March 2008 (UTC)[reply]

If there are no objections, I will cite this to http://www.youvan.com as verbose Mathematica code, unless another editor wants to use formal notation. This particular example of alpha = 4; word = 3 happens to cover the biological genetic code, where the alpha(bet) is the 4 nucleotides (A, C, G, T) and the word(length) is the nucleotide triplet (e.g., 3) for the codon.50MWdoug (talk) 00:36, 1 April 2008 (UTC)[reply]

I'm not sure I understand it correctly, but it seems you have a formula for the pseudoinverse of a particular matrix (the variable dict in your code). That has little to do with the SVD.
Even if you have a formula for the SVD of your matrix dict, I doubt it belongs in the article. The SVD of many matrices can be calculated explicitly, but I think only important ones should be mentioned. I don't know what the matrix dict looks like (I can't read Mathematica code very well), or how widely used it is. Finally, we have a no-original-research policy. Personal websites are generally not deemed reliable sources, and www.youvan.com does seem like one.
Sorry about this, but Wikipedia is meant to be an encyclopaedia. It's not a collection of all possible facts. -- Jitse Niesen (talk) 11:03, 1 April 2008 (UTC)[reply]

"PseudoInverse[dict]" is a Mathematica function that runs SVD on over-determined or under-determined matrices. (Wolfram could just as well labeled this function "SVD"). So, your comment: "The SVD of many matrices can be calculated explicitly" is very interesting if these matrices are nontrivial. How might we determine whether the right side of the equation, involving Tuples, is either trivial are already known? Thank you for looking at this. 50MWdoug (talk) 01:01, 2 April 2008 (UTC)[reply]

Linear Algebraic Proof?

The section "Calculating the SVD" refers to, and provides a dead link to, a "linear algebraic proof." Was this removed? If so, that's unfortunate, because it would be nice to provide a proof that doesn't rely on heavy machinery such as the spectral theorem or Lagrange multipliers. The book by Trefethen and Bau, mentioned in the same section, provides a straightforward inductive linear algebraic proof that requires only a simple metric space compactness argument (not explicitly given in in the book). Jbunniii (talk) 03:51, 5 April 2008 (UTC)[reply]

gotta be kidding me. what you call "heavy machinery" is not at all. whatever "simple metric space compactness argument" you are referring to probably resembles the variational proof given in article: M*M is self-adjoint, so characterize its eigenvalues variationally, using compactness, and you're done.
as for the deadlink, i think someone who didn't know what a proof is changed the section name from "linear algebraic proof".
problem with this particular article is that some people edit/comment without knowing what they're talking about. as a result, we have an article that's not as organized as it can be and repeats the obvious unnecessarily. Mct mht (talk) 09:37, 5 April 2008 (UTC)[reply]
Trefethen and Bau treat the SVD (way) before they treat eigenvalues, so in that context the spectral theorem is heavy machinery. Their proof is indeed variational (they start by defining the first singular vector as the one that maximizes ||Mv|| over the unit sphere) but it also avoids Lagrange multipliers. I think it's quite a nice proof, but I don't want to add a third proof which is similar to the proofs that are already in the article. -- Jitse Niesen (talk) 15:27, 7 April 2008 (UTC)[reply]

References to isometries in SVD w/ spectral theorm section

Reading this spectral derivation of the SVD I'm guessing that it would be fairly readable to somebody with first year linear algebra. The exception is the injection of the use of the term isometry:

"We see that this is almost the desired result, except that U1 and V1 are not unitary in general. U1 is a partial isometry (U1U*1 = = I ) while V1  is an isometry (V*1V1 = I ). To finish the argument, one simply has to "fill out" these matrices to obtain unitaries."

Reading the wikipedia page on partial isometry doesn't clarify things too much. In that article there's references to:

Hilbert spaces, functional analysis, linear map, final and initial subspaces, isometric map.

It's all very abstract, much more so than ought to be required to read this section (I was looking for an explaination of SVD for nothing more than real matrices, so having to understand all of this stuff first would require a major digression).

I'm still figuring all this stuff out for myself so I'm not sure how one would rewrite this in a clear fashion (intuition says this would involve only references to projection and not isometries). Perhaps somebody in the know already understands how this could be made clearer, and could do so.

Peeter.joot (talk) 15:42, 13 April 2008 (UTC)[reply]

The article just means that U1 and V1 are not square matrices, so are not technically unitary. However, they can be obviously or arbitrarily extended to unitary matrices by adding on some more orthonormal columns. Basically you can ignore the sentence using the word isometry. JackSchmidt (talk) 15:52, 13 April 2008 (UTC)[reply]
Is the in the statement, a typo?! Also, should it be or  ? I would have thought the former... —Preceding unsigned comment added by 128.232.238.63 (talk) 21:10, 22 March 2009 (UTC)[reply]

Confusing to use Capital Sigma as both variable and as summation

Young readers will be confused by the use of capital sigma for two different purposes, as the sign of summation, and as the diagonal matrix of eigenvalues. When I learned this stuff 50 years ago they used lambda for the values. 171.66.187.197 (talk) 13:13, 1 July 2008 (UTC)[reply]

I believe the notation used in the article is common practice. can not be used, because singular values are not to be confused with eigenvalues. Also, and are easy to tell apart, especially since they are rarely used together. This only happens in section Separable models, because it uses capital sigma to denote singular values, which is inconsistent with the remaining article. I'm going to fix that now. --Drizzd (talk) 16:15, 2 July 2008 (UTC)[reply]

Shouldn’t the symbol for the matrix be an italicized Σ? That might clear up some of the confusion, and would seem to be more natural, in keeping with all the other symbols for matrices, vectors, and scalars in this article. –jacobolus (t) 21:31, 11 June 2010 (UTC)[reply]

Superscript '+' (plus) symbol meaning is overloaded in a confusing way

Overall, I think the article on singular value decomposition is very clear and a great help in learning about this topic. In the expression defining the pseudoinverse, it says:

++*, where + is the is the transpose of with every nonzero entry replaced by its reciprocal.

However, the superscript '+' (plus) symbol attached to the variable is not meant to modify in the same way as . I would suggest a different superscript. -- Richard C Yeh, 17 September 2008 —Preceding unsigned comment added by 204.124.117.40 (talk) 19:46, 17 September 2008 (UTC)[reply]

OK, I see that the same '+' symbol is used throughout the Moore-Penrose pseudoinverse article. I take back my comment, since the pseudoinverse of would be equal to +. —Preceding unsigned comment added by 204.124.117.40 (talk) 19:50, 17 September 2008 (UTC)[reply]

The usual symbol for Pseudo Inverse is \dagger. People used to use + back when maths was typed on a typewriter instead of LaTeX'd. Billlion (talk) 19:29, 22 August 2009 (UTC)[reply]

Computational complexity

I cannot find anything about the computational complexity. Did I miss it? If I did not, it is quite important, so could someone who knows that stuff include it in the article? Vplagnol 18:13, 8 February 2007 (UTC)[reply]

I would like to see this as well. The article sketches out one algorithm: "If the matrix has more rows than columns a QR decomposition is first performed. The factor R is then reduced to a bidiagonal matrix. The desired singular values and vectors are then found by performing a bidiagonal QR iteration...". That makes it sound like the algorithm is . There is some discussion of the computational complexity of QR on QR_algorithm#The_practical_QR_algorithm, but the rest is fairly sparse. —Ben FrantzDale (talk) 15:06, 12 November 2008 (UTC)[reply]
According to this PDF, if A is an matrix, then SVD is . It goes on to say that "Use of adaptive eigenspace computation when a new object is added to the set, whose SVD we already know, reduces the computational complexity to ." citing S. Chandrasekaran, B.S. Manjunath, Y.F. Wang, J. Winkeler and H.Zhang. An eigenspace update algorithm for image analysis. CVGIP, 1997.
However, another PDF makes it look like it is . —Ben FrantzDale (talk) 14:41, 13 November 2008 (UTC)[reply]
I added a bit on computations and complexity to the algorithm. The different complexities that BenFrantzDale mentions are probably due to what you compute. Computing only the singular values is cheaper then computing the singular values and the left and right singular vectors (i.e., the matrices U and V). -- Jitse Niesen (talk) 16:37, 15 December 2008 (UTC)[reply]

Netflix

There is an article in the New York Times Magazine of Nov 23, 2008. It mentions that the SVD decomposition is the main tool for generating recommendations such as those in Netflix, but does not give details. Perhaps somebody who understands this stuff could write a few paragraphs about this application? -- 194.24.158.8 (talk) 14:48, 28 December 2008 (UTC)[reply]

That would be pretty cool. I started reading this article, because SVD was mentioned in one of the papers that the winners of the Netflix Prize published describing their solution. If I have time, I may go back and try to understand how SVD was used. The paper I was looking at also mentioned that other leading teams were using similar techniques, probably involving SVD. Danielx (talk) 02:46, 2 November 2009 (UTC)[reply]

My guess would be that Netflix is using the Latent semantic indexing method, which is already mentioned in this article (the wiki page on it explains where the SVD comes in). Milez (talk) 18:42, 26 February 2010 (UTC)[reply]

I wouldn't be surprised if it also has to do with spectral clustering, which is used by Google's PageRank. —Ben FrantzDale (talk) 00:32, 4 May 2010 (UTC)[reply]

PCA, Covariance, and right and left singular vectors

The SVD of a wide matrix (each column a measurement vector) with the row means subtracted off, gives left singular vectors corresponding to the eigenvectors of the covariance matrix, and gives singular values that, divided by the sqare root of the number of columns, correspond to the square roots of the corresponding eigenvalues (basically, the principal standard deviations). This is all well and good, meaningful, and in some ways seems more natural than first computing the covariance matrix, then doing eigendecomposition. However, I have no intuition for the corresponding right singular vectors. How can they be interpreted in this context? What if you subtract off the column means? I feel like they are something to do with principal components of the same summed outer-product matrix but in a different (higher-dimensional) coordinate system, but I'm stumped. What do the right singular vectors mean in this context? —Ben FrantzDale (talk) 00:51, 4 May 2010 (UTC)[reply]

I've been thinking about this too... take for example 50 samples in 3d space; I know it can be thought of as 3 samples in 50d space. But what would those singular vectors signify in the initial 3d space? Here's the best answer I could come up with:
If I wanted to create a series of successively more accurate approximations of the original data using the SVD (this is exactly equivalent to the low rank matrix approximation):
Start with the highest singular-value and it's associated pair of vectors. To recreate each 3d sample multiply the (singular value*weight)*(left singular vector) where the weight for sample #n is component #n of the right singular vector.
If you write it out as a matrix multiplication, it's the 3x1 principal vector, times a 1x1 scale factor, times a 1x50, set of weights (this is a Truncated SDV with t=1). You could just as easily transpose and reverse that multiplication. It doesn't matter which one you call the 'weights' and which one you call the 'principal-vector'. So I would say that the right singular vectors are the weights for the left singular vectors, and vice-versa.
If you 'complete' the approximation, by setting N equal to the number of non-zero eigenvalues (less than or equal to 3 in this example) that the (3xN)*(NxN)*(Nx50) matrix multiplication (this is a compact compact SDV) will give exactly the same result as the standard format where the multiplication is (3x3)*(3x50)*(50x50).
personally I've always used the compact SVD, so that's the limit of my current understanding, I have no concept of what the other 47 right vectors might be good for.
Sukisuki (talk) 18:50, 26 June 2010 (UTC)[reply]
there's a really nice example of this here [1] that's even more intuitive than my explanation above, probably because of how they give concrete names to things. They use golf scores as in the example, 3 players on 18 holes. For the first order approximation each player's score on each hole is player ability (lower is better) multiplied by hole difficulty and a scale factor. For the higher order approximations they treat it as multiple dimensions of difficulty & ability.
Sukisuki (talk) 16:10, 27 June 2010 (UTC)[reply]
For my own reference: This link (from the page) is helpful, although it doesn't explain everything I'm wondering about: Wall, Michael E., Andreas Rechtsteiner, Luis M. Rocha (2003). "Singular value decomposition and principal component analysis". in A Practical Approach to Microarray Data Analysis. D.P. Berrar, W. Dubitzky, M. Granzow, eds. pp. 91-109, Kluwer: Norwell, MA.
I am still trying to fully understand the significance of subtracting the mean. I know the basics (that otherwise PCA would be finding moments about the origin, but I feel like there's a deeper understanding to be had. Related to that is this from kernel PCA:
Care must be taken regarding the fact that, whether or not has zero-mean in its original space, it is not guaranteed to be centered in the feature space (which we never compute explicitly). Since centered data is required to perform an effective principal component analysis, we 'centralize' K to become
where denotes a N-by-N matrix for which each element takes value . We use to perform the kernel PCA algorithm described above.
It looks like that equation is trying to subtract the mean off after making the K matrix. This looks similar to applying the parallel axis theorem. That is, if you have the sum of "outer squares" of vectors, trying to come up with the sum of zero-centered outer squares:
.
So given the sum of the outer squares of the xs and the sum of the xs, you should be able to find μ that minimizes the total variance.... Still, that doesn't explain what the right singular vectors of a data matrix mean when you have zero-mean rows (or left ones with zero-mean columns). —Ben FrantzDale (talk) 12:04, 4 May 2010 (UTC)[reply]

Low-rank matrix approximation Proof

Regarding the comment in "Low-rank matrix approximation": it seems more appropriate to be located on the talk page. The original comment was: "Note to editor: it would be likely that it should be diagonal, but it's not obvious to me that it must be diagonal... Why can't there be a exception where U* M V is not purely diagonal but still gives a minimal Frobenius norm?"

In response, it seems clear to me that, since Frobenius norm is the sum of the squares of each matrix element, the Frobenius norm in question could always be made smaller by zeroing any nonzero off-diagonal element of since is diagonal. My question then is: can this possibly reduce the rank? Phrank36 (talk) 19:09, 13 July 2010 (UTC)[reply]

Another parenthetical comment (which I have removed from the proof): "In addition to being the best approximation of a given rank to the matrix under the Frobenius norm, as defined above is also the best approximation of that rank under the L2 norm[1]. (Wait.. how is Frobenius norm different from L2 norm in this case?)" Here I agree, the Frobenius matrix norm is exactly the L2 norm on the vector space where each dimension is an element of the matrix, so the statement seems redundant... 192.223.243.5 (talk) 18:38, 14 July 2010 (UTC)[reply]

SVD in ∞-dimensional spaces

This article is missing the singular value decomposition for operators acting between ∞-dimensional Hilbert spaces. (for example see R. Kress “Linear integral equations”.)  // stpasha »  08:36, 8 September 2010 (UTC)[reply]

Intuitive interpretation

Intuitive interpretation
In the above mentioned decomposition:
  • The columns of V form a set of orthonormal vectors, which can be regarded as the "input" basis vectors for M.
  • The columns of U form a set of orthonormal vectors, which can be viewed as the "output" basis vectors for M.
  • The singular values can be thought of as scalar "gain controls" by which each corresponding "input" is multiplied to give a corresponding "output".

The subsection "intuitive interpretation" (copied above), should be understandable by those who know little about math. However, the expressions "input ... for M" and "output ... for M" mean little to me in that context, and I guess they may confuse a reader who doesn't already have an intuitive understanding of SVD.

The figure in the introduction is what I would call a brilliant example of well written intuitive interpretation, and in my opinion can be understood by most people.

I believe this article might be rated an "A", rather than "B+", provided that the subsection "intuitive explanation" is rewritten (or perhaps deleted, as the picture may suffice to give an insight).

Paolo.dL (talk) 10:03, 4 February 2011 (UTC)[reply]

I proposed a new text. Feel free to improve it. Paolo.dL (talk) 10:59, 4 February 2011 (UTC)[reply]
I think you've absolutely gone the wrong way on this, by becoming more abstract and mathematical, rather than more concrete and physcis. In my view the previous text should be re-instated, but should be illustrated to make the idea clearer.
In my experience, what makes people "get" SVD is not when you present it in a low-dimensional idealised mathematical context, but rather when you present its meaning in for higher dimensional more real-world engineering signals. The intuitive sense that that gives you for what SVD is all about is what the previous text was trying to put over, and has been totally lost in your new text. What the old text really needed was a picture to make clearer what it meant; the classic kind of picture is one that shows what y = U Σ V x means for something like a Fourier operator with noise reduction.
  • So V is illustrated by showing what the eigenvectors for such a operator look like -- i.e. a box a series of waveforms plotted one above the other, growing increasingly oscillatory as you go down. These are the analysis directions applied to the incoming signal.
  • Σ is illustrated in a box to the left of the first one, showing the "gain" applied to each component identified by the previous analysing box -- ie simply a plot of σi against i, with axes and put into a box.
  • Then U is illustrated in a box, to the left again, showing the what the output basis vectors look like, plotted vertically -- perhaps just a series of vertical lines, with horizontal spikes showing the non-zero elements, if what we're looking at is essentially a Fourier transformation, mapping from time-domain to frequency-domain.
  • x is then a time-domain wavetrace, plotted vertically to represent a vector; and y is the corresponding signal, appropriately noise-reduced, in frequency space.
This kind of block diagram that SVD reveals for an operator is what we ought to be showing, if we want to give people a really intuitive feel for SVD -- a diagram in 20 dimensions, not 2 dimensions. SVD is most importantly a tool for making sense of high-dimensional systems and linear operators. Jheald (talk) 11:47, 4 February 2011 (UTC)[reply]
One other thing. In the animation, it would be nice if the σ1 and σ2 directions appeared before the stretching, as it's the stretching that visually establishes what they mean and this is lost when they're only drawn in after the stretching. Jheald (talk) 12:21, 4 February 2011 (UTC)[reply]
You are right that I needed to use some abstract mathematics to express the constraints. However, I thought that it was not too bad, because even if some readers cannot fully understand all the constraints, they can easily understand the conclusion, which is my main point: in "some" special but common conditions, the decomposition is a sequence of very simple transformations (rotation and scaling).
This is an insightful conclusion, isn't it? I am sure they will understand it. The figure makes the example even simpler, and becomes even more insightful. It is very common to explain complex concepts by starting from simple cases. For instance, mechanics starts from particles, then generalizes to rigid bodies and multi-body systems. Even the intro of the article Eigenvalues and eigenvectors starts from a simple example (square matrix).
As for the previous text, if you can make it clear, do it. Maybe you will be able to make it useful for laymen. But since it expresses a different concept, you don't need to delete my text. You can add yours. At least this is what I suggest. If others agree with you that my text is not useful, I would be very surprised, but I will abide to consensus.
By the way, SVD is also frequently used for shape analysis, which is a typical 3-D problem (See Orthogonal Procrustes problem). Moreover, it is the best method available for plane fitting in 3-D, which is quite a useful appplication for engineers. So, let's not assume that "SVD is most importantly a tool for making sense of high-dimensional systems and linear operators".
Paolo.dL (talk) 14:46, 4 February 2011 (UTC)[reply]
I also think your removing the connection with eigenvalues and eigenvectors away from the start of the article is a mistake. Jheald (talk) 23:22, 6 February 2011 (UTC)[reply]
I am sorry to disappoint you. Did you read my edit summary? I removed the text as it was redundant. Someone else decided to write a more complete section about this topic elsewhere, after the Example and Applications. After removing the redundant and less complete text, I wondered whether the whole section should be moved above, and eventually I decided to respect the decision of the original author, because there's no reference to eigenvalues and/or eigenvectors before that section. If you prefer, you can move it yourself, but I suggest you to justify your decision either in your edit summary or here. Paolo.dL (talk) 02:31, 7 February 2011 (UTC)[reply]
On second thought, you may be right. See if you like my new edit. Other editors' opinions are welcome. Paolo.dL (talk) 15:45, 7 February 2011 (UTC)[reply]

This article deserves an higher rating

I nominated this article for A-class rating discussion (WP:WPM). You can discuss the new rating here.

I recently did a few adjustments to this article. Mainly, I edited the "Intuitive interpretations" section. However, my contribution was only a fraction of the work needed to make the article so complete and well written. The figure in the introduction, for instance, is an outstanding example of intuitively appealing geometrical interpretation, understandable by non-mathematicians. The introduction is simple, short, and effective. In my opinion, Eigenvalues and eigenvectors was worst than this article when it gained featured article status. Paolo.dL (talk) 15:11, 14 February 2011 (UTC)[reply]

The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
Not promoted stale discussion, article still needs a lot of work, maybe try good article first before trying for A class.--Salix (talk): 08:50, 27 February 2012 (UTC)[reply]

Singular value decomposition

Singular value decomposition (edit | talk | history | links | watch | logs) review
Nominated by: Paolo.dL (talk) 14:59, 14 February 2011 (UTC)[reply]

I recently did a few adjustments to this article. Mainly, I edited the "Intuitive interpretations" section. However, my contribution was only a fraction of the work needed to make the article so complete and well written. The figure in the introduction, for instance, is an outstanding example of intuitively appealing geometrical interpretation, understandable by non-mathematicians. The introduction is simple, short, and effective. In my opinion, Eigenvalues and eigenvectors was worst than this article when it gained featured article status. Paolo.dL (talk) 15:12, 14 February 2011 (UTC)[reply]
I adjusted the intro according to WP:LEAD. See if you like it. Paolo.dL (talk) 17:13, 23 February 2011 (UTC)[reply]

Here are a few more comments, broken up for easier digestion:

  • Ok, the lead looks better now.
  • The references issue is, for me, somewhat minor since WP:SCICITE gives a lot of license to rely on general references for standard material like this. But adding a few more inline citations couldn't hurt (one per section minimum is the general rule of thumb for me if an articles is seeking advancement).
  • The lead image is nice eye-candy, but it seems to me that it would be more informative in the "Intuitive interpretations" section. The caption is too long as well. If it takes more than a sentence to explain an image, then that means that it is not tied to the text well enough.
  • The article could also use more images in the earlier sections. There are probably only so many ways one can illustrate the SVD, but I'd get creative with some stills as well as the animation. Can the three-dimensional case be visualized as well? I learned the SVD first from Gilbert Strang's textbook "Linear algebra and its applications". If I recall correctly, he has some nice matrix visualizations, and you might consider incorporating something like what he does.
  • It seems to me that the "Geometric meaning" section should be simplified and merged into the "Intuitive interpretations" section.
  • The relationship of singular values to eigenvalues should also be given more emphasis earlier on in the text. Consider simplifying the existing section and moving it up.
  • It also seems to me that a section about how to calculate the SVD "by hand" should be given greater prominence. (This is currently buried in the abstract "Existence" section, more on this below.)
  • I would also consider rewriting the example to show how the singular value decomposition is obtained, not merely that it exists (also a 2x2, 2x3, or 3x3 example should be enough, even if the numbers don't come out so prettily).
  • I would gut the "Existence" section: explain earlier on how to use the spectral decomposition of positive definite matrices to get the SVD (hopefully the treatment can be simplified somewhat, I haven't thought about it), then explain the variational characterization plainly (lose the "theorem-proof" paradigm). Retitle the section "Variational characterization".

Best, Sławomir Biały (talk) 14:12, 24 February 2011 (UTC)[reply]

Thank you. This seems to be a precious list of good advices. In my opinion, you should copy it in the talk page. Paolo.dL (talk) 17:10, 24 February 2011 (UTC)[reply]
The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

Sigma matrix in graphical example

The introduction animation is really useful. However, I think the Sigma matrix should be written more explicitly. Currenly, it shows 4 elements, [S11, S12; S21, S22] Since the Sigma matrix is automatically a diagonal matrix, perhaps the off-diagonal elements should be evaluated to zero, so that it is written as [S11, 0; 0, S22]. I think this will help further clarify what is already a great visualization.

thanks! 192.91.173.36 (talk) 12:42, 6 May 2011 (UTC)[reply]