Causal state filtering 2026-10-14
Causal state filtering estimates the current state of a dynamical system from observations up to the current time. Under quadratic loss, the conditional expectation is an optimal estimate. A Kalman filter obtains this estimate recursively for a linear Gaussian state-space model, without using future observations.
Gaussian filtering with exact observations 2026-10-14
In a linear Gaussian state-space model with process noise covariance and exact scalar observation , the predictive state covariance includes even though there is no separate measurement noise. Here denotes predicted state covariance; it differs from the measurement-noise notation in the general Kalman filter equations. The observation innovation variance is . Omitting the second term incorrectly removes the current process noise. If , Gaussian conditional expectation gives the posterior covariance matrix . This can be a singular matrix because the observed linear combination is then known exactly.
For a concrete example with two state components that are dimensionless quantities, take predicted mean , predicted covariance matrixand exact observation of the first component, , . The innovation is , its variance is , and the Kalman gain is . The posterior mean and posterior covariance matrix are thereforeThe observed component now has zero variance. The second component remains uncertain, but its posterior mean changes and its variance falls from to because its prediction error had nonzero correlation with that of the first. This is the mechanism by which measurements of one component can inform another.
Gaussian innovation likelihood 2026-10-14
In a linear Gaussian state-space model, let the predicted state mean and covariance be . The observation innovation process has conditional mean zero and covariance , with innovation . The conditional multivariate normal distribution gives the predictive observation density. Multiplying these conditional densities by the chain rule gives the displayed likelihood function; equivalently the innovations are independent Gaussian vectors. The Kalman filter supplies recursively, so one evaluates the exact observed-data likelihood function without integrating all latent states jointly.
Innovation covariance 2026-10-14
For the Kalman filter model, the innovation is . Its conditional covariance matrix before the measurement isThis includes uncertainty in both the predicted state and the measurement noise. It is a covariance in observation coordinates; is a covariance in state coordinates, and need not even have the same dimensions.
Kalman filter Created 2026-10-03 Updated 2026-10-14
The Kalman filter alternates a Kalman prediction step with a Kalman measurement update. It carries a state estimate forward using a state-space model, then adjusts it by the part of the new observation that was not predicted: the innovation. The Kalman gain determines the adjustment from the uncertainty of the prediction and the measurement noise. A noisy measurement should have less influence than an equally surprising precise one.
For a precise discrete-time statement, let the state and observation be vectors in real vector spaces obeying the linear state-space modelThe matrices and control inputs are known. Assume a Gaussian random vector with mean and covariance matrix , and mutually independent centered Gaussian noises , independent of , with covariance matrices . Suppose is positive-definite, so the observation innovation covariance is invertible. Then the recursions below give the exact posterior mean and posterior covariance matrix , hence the full conditional multivariate normal distribution. They also minimize mean squared error. Without the Gaussian assumptions, suitable second-order assumptions still give best affine state estimates, but do not generally give an exact posterior distribution. [ref]
https://www.cs.utexas.edu/~pstone/Courses/393Rfall15/readings/Welch%2BBishop-TR-95.pdf. Welch and Bishop, An Introduction to the Kalman Filter, section 1, UNC technical report TR 95-041, 2004 revision
.For an exact scalar example, suppose the predicted state has normal distribution and a measurement reports in the same units. With measurement noise variance , the Kalman gain is and the posterior distribution isWith the same prediction and observed value but measurement noise variance , the Kalman gain becomes and the posterior distribution is instead . Both updates move toward the observation; the more precise measurement moves the estimate further and reduces uncertainty more.
The same observed value produces different Kalman measurement updates when its uncertainty changes
. Both panels start from and observe . The green curve is the likelihood function normalized over the scalar state for this unit-coefficient observation model. The orange curve is the posterior density; its narrower width reflects reduced variance. The vertical dotted line marks the observed value, rather than a known true state. Details.The useful compression is exact under the stated model: the two objects contain everything from the past observations needed for the next update. Their size depends on the state dimension, not on the length of the observation history. This makes causal state filtering practical when observations arrive continually. It also gives Linear-quadratic-Gaussian control an estimate of the state on which to act.
Rudolf E. Kalman's 1960 paper organized linear filtering around state transitions, error covariance and recursive computation, connecting estimation with optimal regulation. Its introduction acknowledges earlier work by Wiener, Bode, Shannon and others; the useful historical claim is this particular formulation, rather than that estimation began in 1960. [ref]
https://www.cs.cmu.edu/~motionplanning/papers/sbp_papers/k/Kalman1960.pdf. Kalman, A New Approach to Linear Filtering and Prediction Problems, Journal of Basic Engineering 82 (1960), pp. 35–45
. Kalman filtering of a moving scalar state 2026-10-14
Consider a local-level state-space model , , with mutually independent centered Gaussian noises of variances and . Start with , independently of these noises. Before the first observation, the Kalman prediction step gives , . If , the Kalman gain is , and the posterior mean and posterior variance becomeThe next Kalman prediction step keeps the mean but adds fresh process noise variance, giving . If , thenThus new uncertainty is introduced at each transition and reduced by each measurement. It does not shrink to zero merely because many measurements have arrived: the state continues to change.
The steady-state local-level Kalman gain here isWith , the limiting posterior variance has the same numerical value. By contrast, the static-state model with gives and . That decreasing gain is appropriate for a state that truly remains constant. Applied to the changing random walk, it builds confidence in the wrong model. The choice of process noise is therefore a statement about state evolution, rather than just an instruction to make a plot look smoother.
Linear-quadratic-Gaussian control 2026-10-03
Linear-quadratic-Gaussian control combines a linear system, Gaussian uncertainty, a quadratic cost, and feedback based on a Kalman filter state estimate.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 33 4 Solution Created 2026-10-03 Updated 2026-10-14
For the three-coordinate state realization of an ARMA(1,1) process, the observation row and transition matrix areThe first row of is by the previous-time recursion; the second row is zero until the new white noise value is added; and the third row copies . Hence the state equation has noise covariance
We use the causal state model, in which the new driving noise is independent of the previous state. The Gaussian filtering with exact observations form of the Kalman filter alternates prediction through the state equation with conditioning on the next observation. Given the posterior expected value and covariance at time , independence of the new white noise value gives predictive expected value and predictive covarianceProject through the observation row to getThe residual is the innovation. Conditioning the joint Gaussian state-observation vector adjusts the expected value according to this residual and reduces the covariance. In this exact-observation model, the updates can be writtenThus and : the observed linear combination of the state is now known exactly, though other state combinations remain uncertain.
The PDF's stated prediction variance omits . This omission cannot be used in a valid likelihood: for the AR(1) specialization below it would give zero prediction variance after the first observation. The required likelihood calculation uses the corrected innovation variance just derived.
For stationary initialization of an ARMA(1,1) state with , take and the unconditional stationary covariance. The causal coefficients are at lag zero and at lags , givingSince , the cross-covariance with is zero and that with is . ThereforeDirect substitution verifies . If prior state information is available, instead use its conditional expected value and covariance. A diffuse initialization is another option when the initial state is genuinely unknown, but it changes the finite-sample likelihood and should not silently replace the stationary initial law.
By the Gaussian prediction step,The chain rule for probabilities for the joint probability density function therefore givesTaking minus twice its logarithm shows that maximum likelihood estimation is equivalent to minimizingwith each and evaluated at the candidate parameters and the specified initialization. The corrected is essential in every .
For the stationary causal AR(1) case, and . The first observation is , whereas each later conditional observation is . HenceThis also gives a direct counterexample to the uncorrected PDF variance: with , and after observing , so its printed expression would give for .
To compare the conditional and stationary AR1 likelihood estimators, putThen its negative twice log-likelihood isFor fixed , . Writingthe exact interior score equation isThe stationary initial contribution is order one for a fixed interior parameter, while is order . Discarding this lower-order contribution givesConditioning on makes this ratio the exact unconstrained conditional maximum likelihood estimate. Under the stationary initial law it is only the leading approximation: at an interior optimum,This approximation presumes a nondegenerate sample denominator and a true coefficient fixed away from the unit-root boundary; a finite-sample constrained optimum must respect .
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 40 2 Solution Created 2026-10-03 Updated 2026-10-14
The state-space model as printed supplies only uncorrelated white noise. That is insufficient for the claimed normal conditional distributions. For example, take normal, independent process noises taking values equally often, and independent Gaussian observation noises. With and no previous observations, is a two-component shifted mixture distribution, not normal for . Its characteristic function is , which has zeros, whereas a normal characteristic function has none. Similarly a non-Gaussian observation noise prevents the asserted conditional normal law for .
The intended scalar Gaussian Kalman recursion requires and independent of each other and of the previous state and observation history. Assume these Gaussian independence conditions, , , and the given normal filtering law. Conditional on the past, is a sum of independent normals, henceThe new observation noise is independent of and the past, so . Write and . The independent normal pair shows directly thatThe covariance comes from the common term. Applying the conditional multivariate normal distribution formula with as the conditioned coordinate gives the Kalman filter updateThe final expression verifies nonnegativity of the posterior variance.
For , defineThe recursions become and . If , then and, with ,The nonnegative solution is the steady-state local-level Kalman gain:For the limit is zero; for it lies strictly between zero and one. These are exact conditional-law results under the additional Gaussian assumptions, not consequences of the weaker printed noise description alone.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 33 2 Solution Created 2026-10-03 Updated 2026-10-14
Use the standard linear Gaussian state-space model convention: the initial state is independent of both mutually independent iid noise sequences. This independence from the initial state is needed for the usual forecast recursion. Let and write and . Taking conditional expectations in the state equation givesTo justify the covariance, the forecast error is . Its two terms have zero cross-covariance because is independent of the previous state and observations. Their covariances therefore add. In this Gaussian model the conditional error covariance depends on the parameters and time but not on the realized data, so it also equals the unconditional forecast-error covariance used in the notation of the question.
For completeness, derive the filtering step rather than leave the algorithm unspecified. Set and . Conditionally on the previous data, the observation has mean and covarianceDefine the innovation process and gain byThe state forecast error and innovation are jointly normal, with cross-covariance . The residual is uncorrelated with by the definition of , hence independent of it by joint normality. Its mean is zero and its covariance is . This proves the conditional multivariate normal distribution updateInitialize . For , predict using the first boxed pair, store that forecast, form , and update using the second boxed pair. The updated state then starts the next iteration. This is the Kalman filter, and supplies the entire forecast sequence in one forward pass.
The requested unconditional innovation moments areIn fact , with deterministic for fixed parameters. Thus the innovation is independent of the past observations, and hence the innovations are mutually independent. Equivalently, orthogonality to the past together with joint normality gives this independence.
The chain rule for densities now yields the Gaussian innovation likelihood, treating the specified initial mean and covariance as known:Both and are functions of the trial parameters, so the filtering recursion must be run again for each candidate . The ordinary density formula assumes positive definite; for example positive definite ensures this. Singular observation laws instead require densities on their Gaussian support.
Evaluate the log-likelihood numerically by the forward recursion, and maximize it over admissible , enforcing the covariance constraints. A Cholesky decomposition gives and the quadratic term , avoiding an explicit matrix inverse. Covariance parameterizations or constrained optimization keep positive semidefinite and the innovation covariance nonsingular. An attained maximizer is a maximum-likelihood estimator; in general this is a numerical optimization problem and neither uniqueness nor global convergence of a local optimizer is automatic.
Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 2 29J b Solution Created 2026-09-24 Updated 2026-10-14
Use the usual state-space assumption that the prior is independent of future process and observation noises. Suppose inductively . Prediction through the linear dynamics gives , where . The pair is conditionally multivariate normal, with means , cross covariance , and observation covariance . Applying part (a) gives the Kalman filterThis proves the inductive Gaussian assertion. The inverse requires nonsingular innovation covariance, as in the printed formula. Importantly, prediction uses : the TeX conversion drops this in one place, whereas the original PDF includes it.
Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 2 29J c Solution Created 2026-09-24 Updated 2026-10-14
Write and assume . The scalar Kalman filter reduces toTaking reciprocal variance and dividing the mean by variance givesThusSince the process noise is zero and , and . The strong law of large numbers gives almost surely. The prior's finite weight vanishes in the displayed formula, so both limits equal almost surely. A zero prior variance instead means is known, and the assertion follows directly without reciprocal-variance formulas.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 30K b Solution Created 2026-09-24 Updated 2026-10-03
Assume . Conditional on , the random part of the next Kalman filter estimate is times the innovation. Its variance isTherefore the Bellman equation givesCompleting the square givesStarting from yieldsand hence
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 30K c Solution Created 2026-09-24 Updated 2026-10-03
If or the observation-noise variances change, the Kalman filter gains and the sequence change. The control gain does not change, because the state dynamics and quadratic cost are unchanged. This is the separation principle: estimation uncertainty changes the additive constants , while the optimal linear feedback gain is the full-information gain.
Scalar Gaussian Kalman recursion 2026-10-14
For the state-space model , , assume independent Gaussian process noise and measurement noise of variances , independent of the prior state and previous observations. A normal distribution for the filtered state, with mean and variance , predicts mean and variance . Here denotes predicted state variance, rather than the observation-noise covariance notation used in the vector equations above. Gaussian conditional expectation then gives posterior mean and posterior variance , where the Kalman gain is .
Mere weak white noise assumptions do not imply normal posterior distributions: independent process noise with a Rademacher distribution makes the next state a mixture of two shifted normal distributions. The Kalman filter can still describe a best affine state estimate under appropriate second-order assumptions, but that is distinct from an exact Gaussian conditional law.
State estimation Created 2026-10-03 Updated 2026-10-13
State estimation infers an unobserved state of a dynamical system from its observations and a model of its evolution. An observed position can help estimate an unobserved velocity; repeated noisy observations can help distinguish changes in the state from measurement noise. The result should describe both an estimate and its uncertainty. A Kalman filter does this exactly for a linear Gaussian state-space model, maintaining a conditional expectation and conditional covariance.
The time at which information is available matters. Causal state filtering estimates the present state from observations available now. State prediction estimates a future state from those same observations. Later observations can improve an estimate of a past state, but that is a different information set from the one a live controller had. Kalman explicitly distinguishes these estimation tasks in A New Approach to Linear Filtering and Prediction Problems (1960), section Optimal Estimates.

