Skip to content

BUG: Ensure PACF lag length is sensible - #6846

Merged
bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:fix-4663
Jul 2, 2020
Merged

bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:fix-4663

Conversation

@bashtage

@bashtage bashtage commented Jul 2, 2020

Copy link
Copy Markdown
Member

Limit lag length to 50% of the same to ensure that the autocovariance
matrix may be positive definite

closes #4663

Details

Notes:

  • It is essential that you add a test when making code changes. Tests are not
    needed for doc changes.
  • When adding a new function, test values should usually be verified in another package (e.g., R/SAS/Stata).
  • When fixing a bug, you must add a test that would produce the bug in master and
    then show that it is fixed with the new code.
  • New code additions must be well formatted. Changes should pass flake8. If on Linux or OSX, you can
    verify you changes are well formatted by running
    git diff upstream/master -u -- "*.py" | flake8 --diff --isolated
    
    assuming flake8 is installed. This command is also available on Windows
    using the Windows System for Linux once flake8 is installed in the
    local Linux environment. While passing this test is not required, it is good practice and it help
    improve code quality in statsmodels.
  • Docstring additions must render correctly, including escapes and LaTeX.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0006%) to 88.022% when pulling ac3203f on bashtage:fix-4663 into e237095 on statsmodels:master.

@pep8speaks

pep8speaks commented Jul 2, 2020 •

Copy link
Copy Markdown

Hello @bashtage! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-07-02 10:09:09 UTC

Limit lag length to 50% of the same to ensure that the autocovariance
matrix may be positive definite

closes statsmodels#4663
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.

ENH: pacf needs to limit nlag to ensure that it is well defined.

3 participants