Basic Identities for the Hat Matrix