Source: https://www2.mat.ulaval.ca/fileadmin/Cours/STT-4100/H15/Notes_Planif.pdf