A Glimpse on Kalman Filter
2025-12-24
How do agents recover the state variables in a world without complete information?
1. Introduction
We live in a world of uncertainty. We hold beliefs regarding objects around us, and we continuously revise those beliefs in response to noisy and ethereal signals we perceive.
The Kalman filter provides an optimal method for estimating the unobserved states of a dynamic system from imperfect information. It is widely used in sensing technologies, robotics, autonomous driving, and related fields. In macroeconomics, the Kalman filter becomes particularly relevant once the assumption of complete information is relaxed. Our interest lies in recovering latent economic states—such as productivity, match quality, or worker ability—when agents must infer them from noisy signals.
This matters because information frictions constitute a fundamental externality that shapes agents’ decisions. Imperfect information affects search behavior, job mobility, wage setting, and investment, and it interacts nontrivially with other economic mechanisms. Understanding how information enters the model, and how beliefs evolve over time, is therefore essential for studying behavior and equilibrium in environments characterized by incomplete information.
2. Discrete Kalman Filter
We start from a simple discrete linear dynamic system. Let the stochastic process of states
where
where
Now the question is: given a series of observations
To make it easier, we define an auxiliary term
to update the states. Equation (3) is whereby called states prediction function. Based on that, we use states update function to bridge the gap between priori and posteriori:
Note that the second term in the RHS of equation (4) is a multiplier
Now we have a well-defined optimality problem, the rest is simple algebra. Don't worry, let's do it together!
First, we rearrange equation (4):
Then we compute the covariance:
The third equation comes from the fact that priori estimate error
Clearly,
Bring this back to (12) and we have
And don't forget to update
Finally,
That's it. Given initial estimates and beliefs, we just need to calculate Kalman gain, update the estimate via measurements, further update states and covariance, and project them into next period.
3. Continuous Kalman Filter: A Simple Example
When it comes to continuous-time, we use Kalman-Bucy filter by analogy of discrete time case. Consider a linear continuous-time stochastic system:
where
Let's use a simple example to illustrate. Suppose workers and firms cannot observe workers' innate ability
where
Recall the Kalman gain
As
Note that the true state
How about the posterior variance? The updating rule is
The last equation relies on the approximation that
Further Reading
More detailed math derivation: Tutorial: Kalman Filter