Skip to content

ENH/BUG: Improve SARIMAX for time series close to non-stationary - #4815

Merged
ChadFulton merged 3 commits into
statsmodels:masterfrom
ChadFulton:sarimax-poly-zero
Jul 28, 2018
Merged

ChadFulton merged 3 commits into
statsmodels:masterfrom
ChadFulton:sarimax-poly-zero

Conversation

@ChadFulton

Copy link
Copy Markdown
Member

This fixes some issues that can arise for close to non-stationary time series. Previously these models weren't even considered, but with e.g. #4739 these models may crop up more often. This:

  • Fixes a problem with the self.polynomial_* variables got filled with exactly zeros (for example when non-stationary starting parameters were replaced with zeros)
  • Bounds the initial variance estimate away from zero (again, can happen when non-stationary starting parameters were replaced with zeros)

@coveralls

coveralls commented Jul 27, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) to 83.683% when pulling 3cd98d1 on ChadFulton:sarimax-poly-zero into ed6631a on statsmodels:master.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #4815 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4815      +/-   ##
==========================================
- Coverage   81.14%   81.14%   -0.01%     
==========================================
  Files         581      581              
  Lines       89895    89901       +6     
  Branches    10041    10041              
==========================================
+ Hits        72944    72946       +2     
- Misses      14673    14676       +3     
- Partials     2278     2279       +1
Impacted Files Coverage Δ
statsmodels/tsa/statespace/sarimax.py 93.69% <100%> (-0.48%) ⬇️
statsmodels/stats/descriptivestats.py 24.13% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed6631a...3cd98d1. Read the comment docs.

@ChadFulton

Copy link
Copy Markdown
Member Author

Green, merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants