Is there some measure that captures the "closeness" of a set of vectors? Say I have a matrix,
$$ A = \left[ \begin{matrix} 0.8 & 0.15 & 0.05 \\ 0.82 & 0.09 & 0.09 \\ 0.78 & 0.08 & 0.14 \\ \end{matrix} \right] $$
and another matrix $$ B = \left[ \begin{matrix} 0.5 & 0.2 & 0.3 \\ 0.01 & 0.6 & 0.39 \\ 0 & 0 & 1 \end{matrix} \right] $$
Based on this hypothetical measure of "closeness", the row vectors of A are closer to each other than are the rows of B
For any two vectors, I could get their cosine similarity.
Furthermore, if my matrix was square and had nonzero determinant, the determinant would in some sense capture the "closeness" of the rows, as rows that are very "close", or similar, would span a parallelpiped with smaller volume than would a matrix whose rows were very different
But what if I had a bunch of vectors (say, the rows of a 100 x 3 matrix)? How would I measure the collective ''closeness'' of the row vectors? I'm looking for some sort of measure like the determinant, where if the row vectors of a square matrix are close to one another, then the volume of the parallelpiped spanned by these vectors is smaller than if they are quite different - except I could use it for a matrix that is non-square.
Assuming that your matrix (of row vectors) contains more rows than columns, you can calculate $\sqrt{\det(A^T A)}$. In the case that $A$ is a square matrix, this reduces to $$ \sqrt{\det(A^T A)} = \sqrt{\det(A^T)\det(A)} = \sqrt{\det(A)^2} =|\det(A)| $$ Furthermore, we will only have $\sqrt{\det(A^T A)} = 0$ when the columns of $A$ are not linearly independent.