Source: https://www.imo.universite-paris-saclay.fr/~singh/misc/Tsinghua2017-Markov-notes.pdf