• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

QuantEcon / QuantEcon.py / 28091698120
93%

Build:
DEFAULT BRANCH: main
Ran 24 Jun 2026 10:23AM UTC
Jobs 3
Files 162
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Jun 2026 10:20AM UTC coverage: 93.008% (+0.3%) from 92.706%
28091698120

push

github

web-flow
Add tests for Kalman.stationary_coefficients (#837)

* Add tests for Kalman.stationary_coefficients

Closes #128 by covering MA/VAR coefficient recursion, both Riccati
solvers, and invalid coeff_type handling.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Address review feedback on Kalman coefficient tests

Use closed-form matrix_power references instead of duplicating the
production recursion, and switch invalid coeff_type checks to
pytest.raises.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Add asymmetric Kalman coefficient test from lecture example

Cover stationary_coefficients with the pooling-equilibrium state space
from "Knowing the Forecasts of Others", alongside the symmetric toy
model.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Increase lecture-model H for scipy inv stability on CI

Use 1e-4 instead of 1e-8 to avoid singular-matrix errors from
scipy.linalg.inv on Python 3.14 in the conda CI environment.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Use two-noisy-signals filter for asymmetric Kalman test

Replace the pooling-equilibrium state space with the simpler (n, k) =
(1, 2) model from lecture section 37.5.3, using natural observation
noise H = np.eye(2) * sigma_e.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Address review feedback on two-noisy-signals Kalman tests

Set C so CC' matches Var(v_t), and compare stationary_coefficients
against lecture-derived K and matrix-power references.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Solve lecture posterior variance p with explicit quadratic formula

Replace solve_discrete_riccati in the two-noisy-signals reference with
the closed-form root from lecture eq. (37.26).

Co-authored-by: Cursor <cursoragent@cursor.com>

* Remove redundant non-diagonal coefficient sanity check

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>

95 of 96 new or added lines in 1 file covered. (98.96%)

7994 of 8595 relevant lines covered (93.01%)

2.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
99.3
-0.7% quantecon/tests/test_kalman.py
Jobs
ID Job ID Ran Files Coverage
1 28091698120.1 24 Jun 2026 10:23AM UTC 162
93.01
GitHub Action Run
2 28091698120.2 24 Jun 2026 10:24AM UTC 162
93.01
GitHub Action Run
3 28091698120.3 24 Jun 2026 10:24AM UTC 162
93.01
GitHub Action Run
Source Files on build 28091698120
  • Tree
  • List 162
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8095a36b on github
  • Prev Build on main (#28090753274)
  • Next Build on main (#28308004476)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc