Source: https://www.unige.ch/math/folks/velenik/Cours/2018-2019/PS1819/probastat.pdf