One-Dimensional Kalman Filter

As an example, consider the simplified case of a one-dimensional state that coincides with the observable. The transition and observation equations are

\begin{displaymath}
\begin{array}{l}
x_{i} = x_{i-1} + u_{i} + w_{i} \\
z_{i} = x_{i} + v_{i}
\end{array}\end{displaymath} (3.24)

where $w_i$ is process noise, whose variance $q_i$ represents the expected variability of the signal (low if the signal varies little over time, high if it varies substantially), while $v_i$ is observation noise with variance $r_i$, associated with observing the state.

The prediction cycle is very simple:

\begin{displaymath}
\begin{array}{l}
x^{-}_{i} = x_{i-1} + u_{i}\\
p^{-}_{i} = p_{i-1} + q_i
\end{array}\end{displaymath} (3.25)

The Kalman gain $k$ becomes

\begin{displaymath}
k_i = \frac{p^{-}_{i}}{p^{-}_{i} + r_i}
\end{displaymath} (3.26)

and the observation stage is
\begin{displaymath}
\begin{array}{l}
x_{i} = x^{-}_{i} + k_i (z_i - x^{-}_i) =...
...(1 - k_i) x^{-}_i \\
p_{i} = (1 - k_i) p^{-}_{i}
\end{array}\end{displaymath} (3.27)

The value of $r$ can usually be estimated a priori, whereas $q$ must be set experimentally.

As the first of Equations (3.27) shows, the factor $k$ is effectively a blending factor between the state observation and the previous state estimate.

In the one-dimensional case, it is easy to see that the gain $k$ and variance $p$ evolve independently of the state, observations, and error. If $r$ and $q$ are time-invariant, $k$ and $p$ are numerical sequences that converge to a constant determined solely by the noise characteristics, independently of their initial values. Compare this result with that obtained from Equation (2.68).

Paolo medici
2026-10-19