Text this: Generalized inverse matrices with applications to statistics