code: def test_brockwell_davis_example_513():
      # Test against Example 5.1.3 in Brockwell and Davis (2016)
      # (low-precision test, since we are testing against values printed in the
      # textbook)
  
      # Difference and demean the series
      endog = dowj.diff().iloc[1:]
  
      # Burg
      res, _ = burg(endog, ar_order=1, demean=True)
      assert_allclose(res.ar_params, [0.4371], atol=1e-4)
      assert_allclose(res.sigma2, 0.1423, atol=1e-4)
  
file_path: statsmodels/statsmodels/tsa/arima/estimators/tests/test_burg.py
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_equal, assert_raises
  from statsmodels.tsa.innovations.arma_innovations import arma_innovations
  from statsmodels.tsa.arima.datasets.brockwell_davis_2002 import dowj, lake
  from statsmodels.tsa.arima.estimators.burg import burg
label_desc: Use image node_id 1 for calling a global function with example usage: test_brockwell_davis_example_513() without return types