title: Jupyter Notebook Error: Schur decomposition solver error
body: <p>I am getting an error while using SARIMA Model for Energy Consumption Project. Below is the code and error. If anyone have any solutions or suggestions, they would be greatly appreciated.</p>
  <p>Code:</p>
  <pre><code>from statsmodels.tsa.statespace import sarimax
  from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
  
  data = pd.read_csv(&quot;C:\\Users\\Jaswal\\Desktop\\Analytics Vidhya\\Assignments\\energy consumption.csv&quot;, index_col=None)
  data
  
  DATE    ENERGY_INDEX
  0   01/1939 3.3842
  1   02/1939 3.4100
  2   03/1939 3.4875
  3   04/1939 3.5133
  4   05/1939 3.5133
  ... ... ...
  964 05/2019 91.9046
  965 06/2019 98.4397
  966 07/2019 112.9469
  967 08/2019 111.6645
  968 09/2019 102.2911
  
  model = sarimax.SARIMAX(data['ENERGY_INDEX'], seasonal_order=(1,1,1,7), order=(2,1,2))
  fit1 = model.fit()
  
  valid_data['SARIMA'] = fit1.predict(start=&quot;01/1939&quot;, end=&quot;09/2019&quot;, dynamic=True)
  </code></pre>
  <p>Error:</p>
  <pre><code>LinAlgError                               Traceback (most recent call last)
  &lt;ipython-input-55-0d31300a6c27&gt; in &lt;module&gt;
        1 # fit model
        2 model = sarimax.SARIMAX(data['ENERGY_INDEX'], seasonal_order=(1,1,1,7), order=(2,1,2))
  ----&gt; 3 fit1 = model.fit()
        4 
        5 # make predictions
  
  ~\Anaconda3\lib\site-packages\statsmodels\tsa\statespace\representation.py in _initialize_state(self, prefix, complex_step)
      982                 raise RuntimeError('Initialization is incomplete.')
      983             self._statespaces[prefix].initialize(self.initialization,
  --&gt; 984                                                  complex_step=complex_step)
      985         else:
      986             raise RuntimeError('Statespace model not initialized.')
  
  statsmodels\tsa\statespace\_representation.pyx in statsmodels.tsa.statespace._representation.dStatespace.initialize()
  
  statsmodels\tsa\statespace\_representation.pyx in statsmodels.tsa.statespace._representation.dStatespace.initialize()
  
  statsmodels\tsa\statespace\_initialization.pyx in statsmodels.tsa.statespace._initialization.dInitialization.initialize()
  
  statsmodels\tsa\statespace\_initialization.pyx in statsmodels.tsa.statespace._initialization.dInitialization.initialize_stationary_stationary_cov()
  
  statsmodels\tsa\statespace\_tools.pyx in statsmodels.tsa.statespace._tools._dsolve_discrete_lyapunov()
  
  LinAlgError: Schur decomposition solver error.
  </code></pre>
  <p>Python Version = 3.7.6
  Statsmodel = 1.2.0</p>