Repository navigation
doc(gh-2187): explain GaussianStateSpace joint distribution - #2323
Conversation
Benchmark reportthis PR + run time: 1 faster
compile time: unchanged across 32 benchmarksSignificant changes (1) ─────── run time ─────── ────── compile time ─────
benchmark baseline this PR Δ baseline this PR Δ
────────────────────────────────────────────────────────────────────────────────
+ biject_to_constraints 2.2 ms 2.1 ms -5.7% 184.2 ms 199.9 ms +8.5%Red is slower, green is faster; a row is coloured by the worse of its two columns. A delta in parentheses cleared the threshold on a measurement below the resolution floor, so it is shown without being called a change. † marks a benchmark that could not be compared — see below. Full results
|
| baseline | this PR | |
|---|---|---|
| ref | master |
doc/gaussian-state-space-math |
| commit | 5a3e636c |
c2f05c61 |
| numpyro | 0.22.0 | 0.22.0 |
| jax | 0.11.2 | 0.11.2 |
| backend | cpu | cpu |
| python | 3.14.8 | 3.14.8 |
Runner: Linux-6.17.0-1022-azure-x86_64-with-glibc2.39, 4 CPUs.
Produced by this benchmark run.
Part of #2187, following my GaussianRandomWalk documentation in #2266.
I expanded the GaussianStateSpace docstring to explain the joint density, the innovation transform and its unit Jacobian, and the marginal mean/covariance recurrence. I also clarified that samples start after the deterministic initial state, that the transition matrix is shared across the batch, and that the covariance-related attributes describe innovation noise.
The executable position/velocity example shows two initial states, their mean trajectories, and the sample and log-probability shapes. This change only updates the class docstring; it adds no dependencies or runtime behavior.
Validation on Windows CPU with Python 3.12.10 and JAX/jaxlib 0.11.2:
pytest -q test/test_distributions.py -k 'GaussianStateSpace or gaussian_random_walk_state_space_equivalence': 147 passed, 110 skipped, 5 xfailed, in each of the default andJAX_ENABLE_X64=1runs.ty check: passed.