Source: https://mathematiques.daval.free.fr/IMG/pdf/COURS6_Probabilites.pdf