Source: https://www.imo.universite-paris-saclay.fr/~goude/Materials/time_series/cours0_introR.pdf