Now, this all looks rather complicated, but think of what happens for two extreme values of the gain $g_k$. For $g_k = 0$, we get \[ \begin{aligned} \hat{x}_k & = \hat{x}_{k-1} + 0(z_k - \hat{x}_{k-1}) = \hat{x}_{k-1} \end{aligned} \] In other words, when the gain is zero, observation has no effect, and we get the original equation relating the current state to the previous. For $g_k = 1$ we get \[ \begin{aligned} \hat{x}_k & = \hat{x}_{k-1} + 1(z_k - \hat{x}_{k-1}) = \hat{x}_{k-1} + z_k - \hat{x}_{k-1} = z_k \end{aligned} \] In other words, when the gain is one, the previous state doesn't matter, and we get the current state estimation entirely from the current observation.
Of course, the actual gain value will likely fall somewhere between these two extremes. Try moving the slider below to see the effect of gain on current state estimation:
$x_{k-1} = 110$ | $z_k = 105$ | $g_k =$ | $\hat{x}_k = $ |
Previous: Putting it Together Next: Computing the Gain
[5] The variable $k$ is usually used for gain, because it is known as the Kalman gain. With due respect to Rudolf Kalman, I find it confusing to use the same letter for a variable and a subscript, so I have opted for the letter $g$ instead.