Skip to main content
A state-space model separates a hidden state that evolves over time from the observations it emits. It is the general framework underlying ARIMA, ETS, and Kalman filtering; StateSpaceGenerator lets you specify the transition and observation dynamics directly to build custom linear systems.
The model xt=Fxt1+wt,wt(0,Q),yt=Hxt+vt,vtN(0,R)x_t = F x_{t-1} + w_t, \quad w_t \sim (0, Q), \qquad y_t = H x_t + v_t, \quad v_t \sim \mathcal{N}(0, R) A latent state evolves by a linear transition with process noise, and is mapped to the observed series by an observation equation with measurement noise. Choosing these dynamics reproduces local-level, local-trend, and other structural time-series models.

1. Basic local level model (random walk with noise)

The simplest state space model: a hidden random walk observed with measurement noise.

2. 2D state space model (level + trend)

A two-dimensional state captures both the level and its trend (rate of change).

3. Custom transition matrix (AR-like behavior)

Specify a custom state transition matrix to create AR-like dynamics in the hidden state.

4. Custom observation matrix (weighted state observation)

Observe a weighted combination of the hidden states.

5. High process noise (volatile state evolution)

Increase the process noise covariance to create more volatile hidden state dynamics.

6. High observation noise (noisy measurements)

Increase the observation noise to simulate noisy measurement conditions.

7. Generate with hidden states

Return both observations and hidden states to inspect the latent dynamics.

8. Multiple state space series

Generate multiple independent state space series.
Related generators Full parameters are in the generator reference.