Let $Z$ be a $n \times r$ matrix with rank $r$, let $X$ be an $n \times k$ matrix with rank $k$. Consider the projection matrix $P_Z=Z(Z'Z)^{-1}Z'$. In my lectures notes I came across the following decomposition of $P_Z$ into the sum of two other projection matrices:
$$P_Z=P_{Z \hat{\Pi}}+P_{\Pi_{\perp}}$$ where $\hat{\Pi}=(Z'Z)^{-1}Z'X$, a $r \times k$ matrix.
The problem is that I don't recall what $\Pi_{\perp}$ is. I know that it must be of dimension $r \times r-k$. This fact in combination with the perpendicular symbol suggest that it might be a set of column vectors which span the orthogonal complement of $Z \hat{\Pi}$. But when I try to prove the decomposition I think I need that $\hat{\Pi}'Z' Z\Pi_{\perp}=0$, which I dont think can be deduced from the choice I suggested above.
What should be $\Pi_{\perp}?$