Skip to content

ENH: Add innovations algorithm - #5042

Merged
josef-pkt merged 2 commits into
statsmodels:masterfrom
bashtage:innovations-algo
Sep 16, 2018
Merged

josef-pkt merged 2 commits into
statsmodels:masterfrom
bashtage:innovations-algo

Conversation

@bashtage

Copy link
Copy Markdown
Member

Add innovations algorithm to convert acov to MA
Add filter to filter innovations usign output of ia

@coveralls

coveralls commented Aug 28, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.03%) to 84.062% when pulling 75f857d on bashtage:innovations-algo into a80d34f on statsmodels:master.

@josef-pkt

Copy link
Copy Markdown
Member

looks good based on a quick skimming
closes #2593

@josef-pkt josef-pkt closed this Aug 28, 2018
@josef-pkt

Copy link
Copy Markdown
Member

sorry, pushed the wrong button (not enough coffee yet

@josef-pkt josef-pkt reopened this Aug 28, 2018
pandas.WidePanel)

try:
import pandas.testing as testing

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.

What is the version number cutoff at which this becomes unnecessary?

@bashtage

bashtage commented Aug 28, 2018 via email

Copy link
Copy Markdown
Member Author

@codecov

codecov Bot commented Aug 30, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #5042 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5042      +/-   ##
==========================================
+ Coverage   81.42%   81.48%   +0.06%     
==========================================
  Files         581      581              
  Lines       90273    90685     +412     
  Branches    10099    10247     +148     
==========================================
+ Hits        73508    73899     +391     
- Misses      14479    14489      +10     
- Partials     2286     2297      +11
Impacted Files Coverage Δ
statsmodels/tsa/tests/test_stattools.py 98.77% <100%> (+0.17%) ⬆️
statsmodels/base/tests/test_generic_methods.py 96.8% <100%> (+0.37%) ⬆️
statsmodels/base/tests/test_predict.py 100% <100%> (ø) ⬆️
statsmodels/stats/tests/test_influence.py 98.61% <100%> (+1.33%) ⬆️
statsmodels/tools/testing.py 80% <100%> (ø) ⬆️
statsmodels/tsa/stattools.py 87.73% <100%> (+1.42%) ⬆️
statsmodels/regression/mixed_linear_model.py 88.97% <0%> (-0.8%) ⬇️
statsmodels/tsa/arima_model.py 88.72% <0%> (+2.17%) ⬆️

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 1a0d703...a043a40. Read the comment docs.

@bashtage
bashtage force-pushed the innovations-algo branch 2 times, most recently from e6dc1fb to 5c2cead Compare August 31, 2018 08:02
@ChadFulton

Copy link
Copy Markdown
Member

This LGTM except for the now-needed rebase.

Comment thread statsmodels/tsa/tests/test_stattools.py Outdated
expected = [endog[0]]
for i in range(1, 4):
expected.append(endog[i] + theta[i, 0] * expected[-1])
print(expected)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

there is still a print left

@josef-pkt

Copy link
Copy Markdown
Member

separated into two commits looks good/useful
I only superficially skimmed the algorithm, it might be a bit slow for large nobs and n=nobs

LGTM, AFAICS

Add innovations algorithm to convert acov to MA
Add filter to filter innovations usign output of ia
@bashtage

Copy link
Copy Markdown
Member Author

print is finally gone.

@bashtage

Copy link
Copy Markdown
Member Author

It is not that bad for fairly long time series - I tested numba and it could be trivially sped up by a factor of 250-400 with a simple @numba.jit.

@josef-pkt

Copy link
Copy Markdown
Member

I think we should add numba as optional requirement with several cases to gain experience with it in 0.11, it's a bit late for 0.10.

@josef-pkt

Copy link
Copy Markdown
Member

merge when green (ETA 12 to 13 hours, i.e. not today)

@bashtage

Copy link
Copy Markdown
Member Author

@josef-pkt green.

@josef-pkt
josef-pkt merged commit 8766afb into statsmodels:master Sep 16, 2018
@josef-pkt

Copy link
Copy Markdown
Member

@bashtage Thank you

@bashtage
bashtage deleted the innovations-algo branch September 16, 2018 13:11
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.

5 participants