Skip to content

ENH: explicit exceptions in ARMA/ARIMA forecast with missing or wrong exog - #4915

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:better-arma-forecast-errors
Aug 17, 2018
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:better-arma-forecast-errors

Conversation

@bashtage

Copy link
Copy Markdown
Member

Explain forecast errors in ARMA/ARIMA when model contains exog regressors

closes #3737

Explain forecast errors in ARMA/ARIMA when model contains exog regressors

closes statsmodels#3737
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 83.714% when pulling b2507d9 on bashtage:better-arma-forecast-errors into 1ad915a on statsmodels:master.


assert_allclose(predicts, predicts_res, atol=5e-6)

# Smoke check of forecast with exog in ARIMA

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GH references with these tests?

@ChadFulton

Copy link
Copy Markdown
Member

This LGTM, I like the explicit exceptions. Not sure what @jbrockmendel's comment is about, but +1 from me for merging.

Guess I will plan to merge this weekend (to give people time to look if they want) unless there are concerns.

@jbrockmendel

Copy link
Copy Markdown
Contributor

My comment was that when adding tests, it is often helpful to add put a comment like # GH#4915 as a reference for future readers.

@josef-pkt

Copy link
Copy Markdown
Member

LGTM merging

about @jbrockmendel when we add unit tests for specific issues or to handle a specific corner case or example case, then it is simpler to check what the issue is if the issue number is mentioned in a code comment, or sometimes we have it even in the test function name.

This might not be so useful when adding to general tests when it is clear from the test that various parts of a model are tested. General comments about what a test is testing are often useful when it is not obvious.
Eg. sometimes it takes me some time to figure out which exception or warning is actually caught or asserted in a unit test, when there is no comment.

@josef-pkt
josef-pkt merged commit 9b37f1b into statsmodels:master Aug 17, 2018
@josef-pkt josef-pkt changed the title ENH: Catch and explain ARMA/ARIMA forecast errors ENH: explicit exceptions in ARMA/ARIMA forecast with missing or wrong exog Aug 17, 2018
@josef-pkt

Copy link
Copy Markdown
Member

I changed header line and merge commit message which was confusing to me
forecast errors are prediction errors and not user mistakes

@bashtage
bashtage deleted the better-arma-forecast-errors branch August 19, 2018 21:49
@josef-pkt josef-pkt added this to the 0.10 milestone Sep 16, 2018
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.

ARIMA missing predict exog causes type error

5 participants