<s> from __future__ import print_function <EOL> import numpy as np <EOL> import statsmodels . api as sm <EOL> from statsmodels . tsa . arima_process import arma_generate_sample <EOL> np . random . seed ( <NUM_LIT> ) <EOL> arparams = np . array ( [ <NUM_LIT> , - <NUM_LIT> ] ) <EOL> maparams = np . array ( [ <NUM_LIT> , <NUM_LIT> ] ) <EOL> arparams = np . r_ [ <NUM_LIT:1> , - arparams ] <EOL> maparam = np . r_ [ <NUM_LIT:1> , maparams ] <EOL> nobs = <NUM_LIT> <EOL> y = arma_generate_sample ( arparams , maparams , nobs ) <EOL> import pandas as pd <EOL> dates = sm . tsa . datetools . dates_from_range ( '<STR_LIT>' , length = nobs ) <EOL> y = pd . TimeSeries ( y , index = dates ) <EOL> arma_mod = sm . tsa . ARMA ( y , order = ( <NUM_LIT:2> , <NUM_LIT:2> ) ) <EOL> arma_res = arma_mod . fit ( trend = '<STR_LIT>' , disp = - <NUM_LIT:1> ) </s>
