5.1 Example: A Simple Spacecraft

Suppose we are traveling in our spacecraft towards the moon and we have just finished firing our engine to send us on our way. As we are “sailing” through space, we want to know how far away we are from Earth and we periodically take sightings of the stars in order to estimate our position.

Our “state” xt is the radial distance of our spacecraft from Earth. Barring any acceleration, if the spacecraft’s position at time t1 is pt1 and its velocity is vt1, then Newton’s laws tell us that its position at time t is

pt=pt1+vt1Δt+wt. where Δt is the time elapsed between time points wt represents some noise or minor perturbation (e.g. wtN(0,τ2). In some cases, we may assume wt=0. Thus, the state equation here embodies the idea that “a body in motion stays in motion”.

We can write this equation, slightly differently, using vectors and matrices as

[ptvt]=[1Δt01][pt1vt1]+[w1tw2t]

If there is in fact no acceleration, we know that the velocity will not be changing from time t1 to time t (except perhaps for some minor perturbation). If we let

xt=[ptvt]Θ=[1Δt01]wt=[w1tw2t]

then our state equation is simply

xt=Θxt1+wt.

At this point we have not discussed data, but without any observations of the system, we would have to assume that the system evolves according to the state equation. Therefore, if we knew the initial state x0, our best guess for the subsequent states would be

x1=Θx0,x2=Θx1,

and so on. These are not so much “estimates” (because there are no data), but rather predictions of what the next state should be based on our knowledge of the underlying dynamics of the system.

The question then is what should we do if we observe data yt at time t? And what exactly do we expect to observe at time t? A secondary question might be how often do we need to take measurements in order to have a good estimate of our state?

Now suppose we occasionally observe our position via measurements taken on board the spacecraft and at time t we observe our position yt, which is

yt=pt+vt,

so yt is a noisy measurement of our true position (i.e. vtN(0,σ2). We can similarly write this in full form using our state vector as

yt=[10]xt+vt If we let

A=[10]

then we have yt=Axt+vt, our observation equation. How does our knowledge of xt change once we observe yt? The answer is given by the Kalman filter.