Skip to content

ENH: Exact diffuse filtering for RecursiveLS - #4699

Merged
ChadFulton merged 1 commit into
statsmodels:masterfrom
ChadFulton:ss-diffuse-rls
Jun 2, 2018
Merged

ChadFulton merged 1 commit into
statsmodels:masterfrom
ChadFulton:ss-diffuse-rls

Conversation

@ChadFulton

Copy link
Copy Markdown
Member

Uses the new exact diffuse filtering for RecursiveLS. The main benefit is much smaller tolerances in the unit tests.

Also switches to using univariate filtering method by default. This is not a big deal here since of course endog is actually univariate here, but it can help with numerical issues since there is no error term in the transition equation. Furthermore, it is necessary to support #4133, since the linear restrictions cause non-positive definite forecast error covariance matices.

@coveralls

coveralls commented Jun 1, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.001%) to 83.311% when pulling 7164cc3 on ChadFulton:ss-diffuse-rls into c6a76ed on statsmodels:master.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #4699 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4699      +/-   ##
==========================================
+ Coverage   80.72%   80.72%   +<.01%     
==========================================
  Files         573      573              
  Lines       88061    88061              
  Branches     9906     9906              
==========================================
+ Hits        71087    71089       +2     
  Misses      14696    14696              
+ Partials     2278     2276       -2
Impacted Files Coverage Δ
statsmodels/regression/recursive_ls.py 96.85% <100%> (ø) ⬆️
statsmodels/regression/tests/test_recursive_ls.py 98.46% <100%> (ø) ⬆️
statsmodels/stats/descriptivestats.py 24.13% <0%> (ø) ⬆️
statsmodels/tsa/statespace/representation.py 92.15% <0%> (+0.68%) ⬆️

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 c6a76ed...7164cc3. Read the comment docs.

@ChadFulton

Copy link
Copy Markdown
Member Author

Pretty straightforwad PR and now all green w/ the improved test precision.

Thoughts? Comments? Otherwise I will merge tomorrow.

@josef-pkt

Copy link
Copy Markdown
Member

no comment,
I didn't try to figure out what exact diffuse is, but given the improvement in test precision, it has to be good :)

@ChadFulton

Copy link
Copy Markdown
Member Author

I didn't try to figure out what exact diffuse is, but given the improvement in test precision, it has to be good :)

I hope so! (since it took me quite a bit of time to understand how to implement it :)

@ChadFulton
ChadFulton merged commit e0f7616 into statsmodels:master Jun 2, 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.

4 participants