https://sympl.codingforstudent.com/creative-ways-to-maximum-likelihood-estimation-mle-with-time-series-data/