Skip to content

ENH/BUG: Use intercept form of trend / exog in VARMAX start params (not mean form) - #5652

Merged
ChadFulton merged 1 commit into
statsmodels:masterfrom
ChadFulton:var_start_params
May 8, 2019
Merged

ChadFulton merged 1 commit into
statsmodels:masterfrom
ChadFulton:var_start_params

Conversation

@ChadFulton

@ChadFulton ChadFulton commented May 8, 2019 •

Copy link
Copy Markdown
Member

Not adding a unit test for start params changes, since we don't really guarantee anything here.

@ChadFulton ChadFulton added this to the 0.10 milestone May 8, 2019
@ChadFulton

Copy link
Copy Markdown
Member Author

Honestly, the whole starting parameters routine could be done better, but not for this PR which just fixes a problem: that the mean and intercept can be quite different, so using the mean can imply pretty bad starting parameters and non-convergence issues.

Examples of improvements needed: not sure why I estimated trend / exog separate from VAR, and probably should use a longer initial VAR to get residuals for the VMA estimation in analogy to univariate Hannan-Rissanen.

@codecov

codecov Bot commented May 8, 2019 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@86b2821). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5652   +/-   ##
=========================================
  Coverage          ?   82.12%           
=========================================
  Files             ?      587           
  Lines             ?    93458           
  Branches          ?    10347           
=========================================
  Hits              ?    76752           
  Misses            ?    14313           
  Partials          ?     2393
Impacted Files Coverage Δ
statsmodels/tsa/statespace/varmax.py 91.58% <100%> (ø)

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 86b2821...0d1c9af. Read the comment docs.

@ChadFulton

Copy link
Copy Markdown
Member Author

Failures on Azure / Python 3.5 seem unrelated (not sure what that test log is showing) so I will merge later today, I guess.

@bashtage

bashtage commented May 8, 2019 via email

Copy link
Copy Markdown
Member

@ChadFulton
ChadFulton merged commit b094430 into statsmodels:master May 8, 2019
@ChadFulton
ChadFulton deleted the var_start_params branch May 8, 2019 19:52
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.

BUG: VARMAX start parameters use mean form for trend / exog, when state space formulation expects intercept form

2 participants