# Affecting the rank of a Gram matrix by configuration shift

Let certain configuration of $n$ points exist in $d-$dimensional space, $X\in\mathbb{R}^{n\times d}$, $d<<n$. Also, let the corresponding Gram matrix be defined as $G=XX^T$.

Since $X$ exists in Euclidean space, rank of $G$ is, $rank(G)=rank(X)=d$. Now, suppose that the configuration $X$ is shifted to matrix $X'$ (shift corresponds to the origin translation). Could it be possible that the Gram matrix, $G'=X'(X')^T$, has rank different from $G$, ie, $rank(G)\neq rank(G')$?

-

1
The statement: "Since $X$ exists in Euclidean space, rank of $G$ is, $rank(G)=rank(X)=d$" is not obvious to me. Are you assuming the rank of the original configuration $G$ is $d$ and interested in if it could ever decrease by linear shift? This is trivially true if there are $d$ points and one of the points is shifted onto the origin. – Aron Ahmadia Oct 27 '12 at 15:25
@AronAhmadia: The wording is a little strange, but $d \le n$ does imply that $\text{rank}(X) \le \min\{n,d\} = d$. – Jack Poulson Oct 27 '12 at 21:00
No. The $n\le d$ points could be linearly dependent, in which case $rank(X)<n\le d$. – Wolfgang Bangerth Oct 27 '12 at 23:20
Interpret ''$X$ exists in Euclidean space'' as $X$ spans the space, and the forumula becomes correct. – Arnold Neumaier Oct 28 '12 at 11:04
@usero, you've effectively written a new, more interesting question, down in your third paragraph. Do you mind splitting this off into a new question? Continuously modifying a question makes it very difficult for people who come by this page later to understand the answers (because they are targetting the first paragraph). – Aron Ahmadia Oct 30 '12 at 8:54

## 2 Answers

As @AronAhmadia mentioned, shifting one of the points to the origin provides a simple example where the rank changes. Consider the following case where $n=2$ and $d=2$:

$$X = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = I,$$

where clearly $\text{rank}(X)=2$, and $G=XX^T=I$ has the same rank. But, if we shift the origin to the point $[1,0]^T$ to define

$$\tilde X = \begin{pmatrix} 0 & 0 \\ -1 & 1 \end{pmatrix},$$

then $\text{rank}(\tilde X)=\text{rank}(\tilde G)=1$.

-

Thanks. However, this is a bit confusing: Original Gram matrix has $rank(G)=2$, meaning that it has 2 positive eigenvalues. Configuration $X$ is therefore in 2D. But, by eigendecomposition of $\tilde{G}$ which has only one eigenvalue, the configuration is 1D. Am I missing something? – usero Oct 29 '12 at 10:29
I think your confusion comes from mixing the spatial dimension (in this case, the width of $X$) with the rank of the matrix. Consider the case where all of the points are sampled from the origin: then, no matter what the dimension of the points, the rank of $X$ and $XX^T$ is zero. – Jack Poulson Oct 29 '12 at 15:45
– usero Oct 29 '12 at 18:01
According to that paper, the "dimension" of the distance matrix $D$ is the minimum rank over the entire set of matrices of configurations $X$ which generate $D$. Thus, in the previous case, we know that the dimension of the distance matrix $D$, which is generated by both $X$ and $\tilde X$, is at most $1$, since the rank of $\tilde X$ is 1. If you would like to directly compute the dimension of $D$, it is equivalent to the rank of $F$, which is defined by Equation 1 of the paper you linked. – Jack Poulson Oct 29 '12 at 18:33

## Did you find this question interesting? Try our newsletter

Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).

email address

With your updated question, the answer still remains the same, you can still lose rank due to configuration shift if the points are trivially distributed. Appealing back to Jack Poulson's answer, imagine now a case where $n >> 2$, but every point except for one is along the axis $(1,0)$. Assume this last point is on the other axis $(0,1)$. If your linear shift moves the point on $(0,1)$ to $(0,0)$, the rank of the shifted Gram operator becomes one-dimensional.

-

I'll try to simplify the question: Suppose a configuration $X\in\mathbb{R}^{n\times 3}$ is given, and $G=XX^T$, $rank(G)=rank(X)=3$. This would mean that a 3D configuration is obtained by eigendecomp. of $G=(U\Lambda^{1/2})(U\Lambda^{1/2})^T$ because there are 3 eigenvalues. However, the above statements indicate that by just shifting $X$, one could obtain $G_1$ that has rank of 2, hence with a configuration actually being 2D. Does there exist a particular choice of shift (origin) for which $rank(X)=rank(XX^T)$ is the true dimensionality of $X$? – usero Oct 29 '12 at 17:28
As long as we are talking about shifts and not rotations, any shift that does not move one of the points onto the origin is guaranteed to preserve dimensionality of the space.  By the same principle, the most dimensionality you could lose is 1. – Aron Ahmadia Oct 30 '12 at 8:52
– usero Oct 30 '12 at 11:02
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 60, "mathjax_display_tex": 2, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": false}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9306378960609436, "perplexity_flag": "head"}