Source: https://iast.univ-setif.dz/documents/Cours/Cours_Math2_Ch3Stat_S2GAT.pdf