Skip to content

ENH: expose innovations computation method to API. - #5704

Merged
ChadFulton merged 1 commit into
statsmodels:masterfrom
ChadFulton:arma_innov
May 12, 2019
Merged

ChadFulton merged 1 commit into
statsmodels:masterfrom
ChadFulton:arma_innov

Conversation

@ChadFulton

@ChadFulton ChadFulton commented May 12, 2019 •

Copy link
Copy Markdown
Member
  • tests added / passed.
  • code/documentation is well formatted.
  • properly formatted commit message.

This exposes the "innovations filter", which is used for computing the one-step-ahead prediction errors for one more multiple series, assuming a given ARMA process, via the innovations algorithm.

In particular, this can be useful for generalized least squares estimation of regression with ARMA errors, since it can compute the transformed variables on which regression can be run (like the Prais–Winsten approach but for arbitrary ARMA processes).

@ChadFulton

Copy link
Copy Markdown
Member Author

This exposes the "innovations filter"

i.e. the filter was essentially already there in the Cython code, but there was no way to call it from Python.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 84.767% when pulling 29fd224 on ChadFulton:arma_innov into 8cee531 on statsmodels:master.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 84.767% when pulling 29fd224 on ChadFulton:arma_innov into 8cee531 on statsmodels:master.

@codecov

codecov Bot commented May 12, 2019

Copy link
Copy Markdown

Codecov Report

Merging #5704 into master will increase coverage by <.01%.
The diff coverage is 90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5704      +/-   ##
==========================================
+ Coverage   82.21%   82.21%   +<.01%     
==========================================
  Files         593      593              
  Lines       93645    93695      +50     
  Branches    10345    10350       +5     
==========================================
+ Hits        76991    77036      +45     
  Misses      14257    14257              
- Partials     2397     2402       +5
Impacted Files Coverage Δ
statsmodels/tsa/innovations/api.py 100% <ø> (ø) ⬆️
...vations/tests/test_cython_arma_innovations_fast.py 100% <100%> (ø) ⬆️
statsmodels/tsa/innovations/arma_innovations.py 92.1% <85.71%> (-5.46%) ⬇️
statsmodels/stats/descriptivestats.py 24.34% <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 8cee531...29fd224. Read the comment docs.

@codecov

codecov Bot commented May 12, 2019 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5704   +/-   ##
=========================================
  Coverage          ?   82.21%           
=========================================
  Files             ?      593           
  Lines             ?    93695           
  Branches          ?    10350           
=========================================
  Hits              ?    77036           
  Misses            ?    14257           
  Partials          ?     2402
Impacted Files Coverage Δ
statsmodels/tsa/innovations/api.py 100% <ø> (ø)
...vations/tests/test_cython_arma_innovations_fast.py 100% <100%> (ø)
statsmodels/tsa/innovations/arma_innovations.py 92.1% <85.71%> (ø)

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 58a67b4...6d65c38. Read the comment docs.

@ChadFulton

Copy link
Copy Markdown
Member Author

Green. Will merge as this doesn't really affect anything else. If there do happen to be any concerns, we can always make changes until release.

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.

2 participants