Source: https://dms.umontreal.ca/~duchesne/EstimationSTT2700h17.pdf