If $X$ is a random $N \times D$ matrix where $N > D$, then why is the rank of X - mean(X, 1)
$D$ while the rank of X' - mean(X', 1)
$D - 1$? My initial thought was that both should be $D$, but then I found this answer which mentions that the rank is reduced by one when the rows of X
are centered. This makes some sense, but I'm confused as to why that doesn't apply to both cases. Here is some example Matlab code:
X = randn(100, 5);
rank(X - mean(X, 1))
rank(X' - mean(X', 1))