Rank of $X$, with corresponding projection matrix $P_X$

306 Views Asked by At

Must I assume $X$ has full rank in order to have a projection matrix $P_X$?

I understand that in order to have

$$P_X=X(X^TX)^{-1}X^T$$

or, more specifically, $(X^TX)^{-1}$, $X$ must have full rank. But what can I say about $X$ otherwise? Can't it be projected?