In : maparam = np.r_[1, maparams]
In : maparams = np.r_[1, maparams]
Thank you for pointing this out
usually I preferred to just call the lag polynomial for just ar and ma:
ma = np.r_[1, maparams]
that would also keep the arparams and maparams around to compare with the estimate.
Do you want to make a pull request to improve the example?
I have done the pull request. It is the first one that I've ever done, so please let me know if I have made a mistake anywhere!
PR #1117 has been merged
Correcting type, and leaving maparams and arparams around for later comparison.
Backport PR #1117: Update ex_arma2.py
Correcting typo, and leaving maparams and arparams around for later comparison.