Consider a matrix . In general, this matrix has rank
Now, suppose we wish to column-center the data. We can do this algebraically by using what is known as the centering matrix,
where is the matrix where for all . Multiplying with results to the centering of all the columns.
The vector of ones is the only independent element in its nullspace and so . Therefore,
Similarly, for the row-centered matrix ,