TL;DR
A linear dynamical system has a hidden state vector that changes from one time step to the next by a linear rule, with some random push added each step. You never see the state directly. You see a noisy linear readout of it. When the noise is Gaussian, the state's uncertainty stays Gaussian forever, so you can track its mean and covariance with simple matrix arithmetic.
Where you'll see it: in tracking a moving object from noisy sensors, in the Kalman filter that navigation systems run, and in control design, where the state is what a controller needs to know.
Intuition
A hidden state and a noisy window
Imagine a cart rolling on a track. Its true position and velocity are the state. Each second, the cart keeps about the same velocity, but friction and small bumps change it a little. You cannot read the state directly. You have a radar that reports the position with some error.
The linear dynamical system is the model of that situation. The state is the cart's position and velocity. The dynamics say how the state moves forward, and the measurement says what the radar reports. Both are linear, which means they are built from multiplying by fixed matrices and adding. Linearity is what keeps the mathematics tractable: a linear map of a bell curve is still a bell curve.
The picture of the whole model is a loop. The hidden state moves, the output is read off it, and the only things you can use to infer the state are the outputs.
flowchart LR U[known input u] --> P[state update: x next = A x + B u + noise] P --> X[hidden state x] X --> M[readout: y = C x + noise] M --> Y[observed output y]
Why this model exists: most real systems are close to linear around the operating point, and a linear model with Gaussian noise is the simplest one that still admits exact inference. Once you know the rules, the question "what is the state now, given the outputs so far?" has a closed-form answer.
The math
Definition
A discrete-time linear Gaussian state-space model has a state and an output at each step :
Here is the dynamics matrix, maps the known input into the state, and is the output matrix. The process noise and the measurement noise are independent Gaussians with zero mean, and , where and are covariance matrices. Noise at different time steps is independent of each other.
Gaussians stay Gaussian under linear maps
The key fact is that if and for a fixed matrix and vector , then
The mean transforms by the map, and the covariance transforms by sandwiching it between and . This is the rule that moves the uncertainty forward through the dynamics. Adding independent Gaussian noise adds to the covariance.
The prediction step
Suppose at time you know the state is . Ignoring the input for the moment, the state at time is
The mean follows the deterministic dynamics. The covariance is stretched by and then grows by the noise . Repeating this rule gives the uncertainty for any horizon.
Stationary behaviour and stability
If the dynamics are stable, the uncertainty settles to a fixed point that satisfies
This is a discrete Lyapunov equation. Whether the process settles depends on the eigenvalues of . The system is stable, in the sense that the mean decays to zero when the input is zero, when every eigenvalue of satisfies . A zero-input system with an eigenvalue at magnitude one drifts without damping, and one with an eigenvalue above one blows up. For continuous-time systems , the condition is instead that every eigenvalue has negative real part.
Estimating the state from outputs
Given the outputs , the best estimate of the state is its conditional distribution. For this model that distribution is Gaussian, and its mean and covariance are updated by the Kalman filter. Each new measurement corrects the prediction by an amount weighted by the Kalman gain, which balances how uncertain the prediction is against how noisy the measurement is. The derivation is a direct application of the rule for conditioning Gaussians, and it is the reason the model is so widely used.
Worked examples
Take the scalar system with process noise variance , starting from a known state .
- The dynamics coefficient is , and , so the system is stable.
- The variance recursion is .
- Starting from , the first few values are , , .
- The fixed point satisfies , so and .
Interpretation: the uncertainty about the state grows from zero and levels off near 5.26. The state keeps being pushed by fresh noise, but the decay factor removes part of the old uncertainty each step, and the two effects balance.
Let the state be and let the dynamics be . Start from mean , covariance , and process noise .
- Predict the mean: .
- Compute . The first row of is and the second is . So .
- Add the noise: .
- Check stability. is upper triangular, so its eigenvalues are its diagonal entries, and . Both have magnitude below one.
Interpretation: the mean moved from to , so the position shrank toward zero as the dynamics predict. The variances shrank from 1 to 0.83 and 0.65, because the stable dynamics contract the state faster than the small noise adds uncertainty. The off-diagonal entry of shows that position and velocity uncertainties are now mildly correlated.
Using the scalar system from the first example, the variance after steps from zero is , which comes from summing the geometric series of the noise contributions. At this gives . At , , so . The curve in the plot is this function, and it approaches the limit from below.
- variance after t steps
Tradeoffs and failure modes
The linear Gaussian model is powerful, but it is easy to apply where it does not fit.
| Situation | What goes wrong | Better choice |
|---|---|---|
| The true dynamics are curved, as with a pendulum at large swings | A linear model misses the state's true motion | Extended or unscented Kalman filter, or a nonlinear state-space model |
| Noise is clearly non-Gaussian, such as occasional large outliers | The Gaussian update overreacts to outliers | Robust filters, or a particle filter that represents any distribution |
| The model parameters , , are guessed | The filter can be overconfident or lag, even though its maths is right | Estimate the noise covariances from data, or tune and against held-out errors |
| The system is unstable and the filter runs open loop for long | Uncertainty grows without bound and estimates drift | Feed back measurements every step, so the filter keeps correcting |
| The state is huge, such as a full image | Covariance matrices become too large to store or invert | Reduced-rank or ensemble methods |
A common mistake is treating the Kalman filter as a smoother that always gives accurate answers. It gives the best estimate under the assumed model. If the model is wrong, the answer can look precise and still be off.
History
The state-space view of linear systems came from control engineering in the middle of the 20th century, where engineers described systems by first-order equations in a state vector rather than by transfer functions. Rudolf Kalman's 1960 paper "A New Approach to Linear Filtering and Prediction Problems" combined this view with the statistics of noise. It gave a recursive filter that estimates the state from noisy measurements, and its equations are the prediction and update steps above.
The filter caught on quickly because it could run on limited computers. Navigation work in the 1960s used it for spacecraft guidance, and it became standard in aerospace, then in radar tracking, and later in robotics and consumer devices. The model remains the default starting point for tracking problems, even as nonlinear and learned versions have grown more popular.
Check yourself
QuestionWhy does the linear Gaussian model make exact inference possible, and what property of Gaussians makes the prediction step closed form?Show answer
A linear map of a Gaussian is Gaussian, and independent Gaussian noise added to a Gaussian is again Gaussian. So if the state is Gaussian at one step, it is Gaussian after the linear dynamics and noise. Its mean and covariance are all that is needed to describe it, and they update by the closed-form rules and . Nothing else has to be tracked.
QuestionFor the scalar system with , what is the stationary variance?Show answer
The stationary variance satisfies . Then , so . The stationary variance is .
QuestionWhy does the eigenvalue condition on A decide whether the state settles, and what happens with an eigenvalue of exactly one?Show answer
With no input, the state evolves as a repeated application of , so each eigen-direction is multiplied by its eigenvalue at each step. When every eigenvalue has magnitude below one, those multiplications shrink the state and the uncertainty reaches a fixed point. An eigenvalue of exactly one leaves that direction undamped: the state does not decay, and uncertainty accumulates in it without a limit set by the dynamics. Eigenvalues above one make the state grow.
QuestionA tracker models an object moving at constant velocity, so the next position is the old position plus the velocity times a time step of 1, and the velocity stays the same, so A has ones on the diagonal and a one in the position-from-velocity entry. Why would you be cautious about relying on this filter for long open-loop predictions?Show answer
That is upper triangular with both eigenvalues equal to one, so neither direction is damped. Without measurements to correct them, the position and velocity uncertainties keep growing with every process noise term, and the estimate drifts. The fix is to keep feeding measurements into the filter so its update step pulls the estimate back, rather than predicting open loop for long stretches.