Skip to content

Add frequency domain seasonal components to UnobservedComponents#3

Open
jyoder6 wants to merge 202 commits intomasterfrom
ucm-complex-seas
Open

Add frequency domain seasonal components to UnobservedComponents#3
jyoder6 wants to merge 202 commits intomasterfrom
ucm-complex-seas

Conversation

@jyoder6
Copy link
Owner

@jyoder6 jyoder6 commented Feb 14, 2018

trigger travis ci

justinbois and others added 30 commits November 4, 2016 00:29
…of the 'pseudo-inverse (np.linalg.pinv)'. Pseudo-inverse does not always preserve positive definiteness of sigma.
BUG: Changed to 'inverse of sigma (np.linalg.inv)' instead …
ENH: Improvements to factor analysis (EM algorithm)
SY: Fixed some pep8 violations in nonparametric
…kfilter

REF: use full dtype in issubdtype call
We currently do not support https, and chrome shows a big warning
when trying to access via https.
Ensure input is double in medcouple

closes statsmodels#4243
DOC: Fixed docs as per GH4253 in stats power
DOC: MixedLM documentation issue
MAINT: MixedLM pep8
josef-pkt and others added 28 commits April 6, 2018 19:54
MAINT: deprecation warnings, fix or silence
small steps of algebra simplification
 BUG: Fix simulation smoothing with state intercept
Easy substitutions in discrete_model
(necessary to handle all of the Py2 and Py3 /
Pandas < 0.18 and Pandas >= 0.18 combinations)
…list

BUG: allow list exog in get_prediction
Previously, we had implemented the main time domain seasonal component, which
is restrictive when the periodicity is very high or the seasonality can be
more parsimoniously represented by trigonometric terms.  Also, we were only
 able to use a single seasonal component.  This commit allows for multiple
 seasonal components in the frequency domain and for mixing of the two types.

We add a test checking the state matrices for a somewhat
complicated model and update the regression test to be against
the results in the test_ucm.R file as generated by KFAS.

Finally, we added an ipython notebook as an example showcasing the new
functionality.

Also
   - Change offset for regression coefficients when cycle is included.
     Cycle is two states regardless of if it is stochastic.  Therefore,
     the offset should always be 2 instead of possibly 1 for a deterministic
     cycle.
   - Update the .R code for the other seasonal test to correctly initialize P1

Signed-off-by: Jordan Yoder <jordan.yoder@gmail.com>
@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #3   +/-   ##
=========================================
  Coverage          ?   80.12%           
=========================================
  Files             ?      560           
  Lines             ?    84662           
  Branches          ?     9603           
=========================================
  Hits              ?    67832           
  Misses            ?    14599           
  Partials          ?     2231
Impacted Files Coverage Δ
statsmodels/stats/power.py 80.08% <ø> (ø)
statsmodels/tsa/regime_switching/__init__.py 100% <ø> (ø)
statsmodels/tsa/statespace/tools.py 69.6% <ø> (ø)
statsmodels/genmod/generalized_linear_model.py 89.54% <ø> (ø)
statsmodels/tools/numdiff.py 98.03% <ø> (ø)
statsmodels/tsa/arima_model.py 85.13% <ø> (ø)
statsmodels/nonparametric/bandwidths.py 92.85% <ø> (ø)
statsmodels/tsa/seasonal.py 69.14% <ø> (ø)
...ar/tests/JMulTi_results/parse_jmulti_var_output.py 91.18% <0%> (ø)
statsmodels/iolib/summary.py 54.16% <0%> (ø)
... and 95 more

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 91ed779...24db0ff. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.