Source: https://fsjes.usmba.ac.ma/cours/ait-oudra/ech-estimation.pdf