How to Solve NameError: name 'AutoReg' is not defined -- statsmodels

Solution: Import the 'AutoReg' module

To Solve the error, add the following line to the top of your code.

from statsmodels.tsa.ar_model import AutoReg

 

For more information:
Python statsmodels AutoReg