Source: https://www.faidherbe.org/~jdebarbieux/a2011/dm2_cor.pdf