I just ran over this result: I have a projection (given by the matrix $P = X(X'X)^{-1}X'$ where $X$ is some matrix with full rank) and certain matrix multiplication (with an arbitrary $X$ matrix) yielded $Pw = w$ for $w = $ vector of ones, $w = $ vector with numbers from 1 to matchingdimension, and some other $w$ I tried in Matlab. I doubt that these observations are due to numerical issues. Sadly, I lack knowledge in linear algebra to explain these results.
So my question is: what is the explanation to this result?
Best regards