Source: https://www.stat.cmu.edu/~hseltman/309/Book/chapter4.pdf