Source: https://www.gerad.ca/Sebastien.Le.Digabel/MTH2302D/12_regression.pdf