Source: https://wp.unil.ch/risk/files/2015/12/2.-Les-Matrices-Corrigé.pdf