Source: https://public.econ.duke.edu/~vjh3/e232d/readings/chap4.pdf