Tracking something you cannot see
The beta of a stock, its volatility, the fair level of a spread: nobody can read these numbers off a screen. What you see each day is a price or a return, which is the hidden quantity plus noise. A state-space model writes this down with two equations. The state is the hidden quantity and it moves a little every day. The observation is what you actually measure. The simplest case is the local level model: the state does a random walk, and each observation is the state plus measurement noise.
Here is how much the state wanders in one day, and is how noisy one observation is. Three questions come up again and again. Prediction asks where the state will be tomorrow before you see tomorrow's data. Filtering asks where the state is now, after seeing today's observation. Smoothing asks where it was in the past, once more data has arrived. A trader who needs a live number can only use filtering. All three keep the belief as a bell curve with a mean and a variance. Predicting makes the variance bigger by , because the state may have moved. Seeing an observation makes it smaller, because it carries information.
- State versus observation: the state is hidden and moves slowly; the observation is noisy and arrives every day.
- Predict then update: the prediction step adds uncertainty ; the update step uses the data to remove some of it.
- Same idea as a hidden Markov model: there the state has a few values, here it is a number on a line.
Lab · what's graded
- One step of motion15 pts
- Variance of an observation15 pts
- Four days without data15 pts
- A large observation10 pts
- Which quantities are hidden10 pts
- The filter cycle10 pts
- Match the vocabulary10 pts
- Why filter at all15 pts