Source: https://www.stat.pitt.edu/stoffer/tsa4/intro_prob.pdf