The Gram matrix. How it arises in a simple algebraic identity, how it relates to correlation, and how it generalizes.| John D. Cook