🎲Randomness and Estimation
Propagating Uncertainty
Covariance and the multivariate normal, error ellipses, linearised propagation J P Jᵀ, the unscented transform, collision probability
Over Siberia, 10 February 2009
Iridium 33, an active communications satellite, and Kosmos 2251, a Russian military satellite that had been out of service for years, are both in near-polar orbits about 790 km up over Siberia, crossing each other's paths almost at right angles.
Every day an online service called SOCRATES, run by T. S. Kelso at CelesTrak, screens the public orbit catalogue for close approaches between satellites. Its report that morning predicts that these two will pass 584 m apart at 16:56 UTC. It is not an alarming number. Orbits computed from the public catalogue are uncertain by kilometres, and predicted passes closer than that happen every day; in the week's reports this pair never makes the top ten, and on the day it ranks 152nd.
At 16:56 UTC Iridium 33 stops transmitting. The two satellites have collided at about 11.7 km/s, destroying both and filling their orbits with debris — more than 2,000 catalogued fragments by mid-2011. The prediction of the closest approach had been reasonable. What it did not carry was a statement of how uncertain it was, and therefore of how likely a collision was.
Every quantity an engineer computes from measured or uncertain inputs is itself uncertain. For a vector of uncertain quantities the essential description has two parts: the mean and the covariance matrix
Its diagonal holds the variances ; the off-diagonal entries say how errors in different components move together. is symmetric and positive semidefinite. The multivariate normal distribution is the one fixed by these two alone, with density proportional to . The quadratic form in the exponent is the squared Mahalanobis distance: distance measured in standard deviations, along the directions in which the errors actually lie.
💡Error ellipses are eigenvectors
The surfaces of constant density are ellipsoids. Their axes point along the eigenvectors of and their semi-axes are (Unit 6). For a 95% region in two dimensions, take , the 95th percentile of the distribution with two degrees of freedom — not , which encloses only 86%. A GNSS receiver's horizontal accuracy, a surveyor's point error and an orbit's along-track/cross-track uncertainty are all reported as such ellipses. Least squares (Unit 5) produces one automatically: the estimate of with independent errors has covariance — the matrix whose diagonal gave GNSS its dilution of precision in lesson 5-4.
Derivation
Ellipse axes from eigenvectors, and why 95% needs
The axes. Write with orthonormal eigenvectors in (a symmetric matrix always allows this, lesson 5-3). In the rotated coordinates the quadratic form loses its cross terms:
Setting it equal to gives an ellipse with semi-axes and along the eigenvectors.
The probability inside. Each is an independent standard normal, so for two standard normals — exactly the radius of the Box–Muller derivation in lesson 12-1, where . So
For 95%, and . With the formula gives : a '2-sigma' ellipse holds only 86% in two dimensions.
Linearised propagation of covariance — the 'law of propagation of uncertainty' of the international measurement Guide (GUM). Exact when f is linear; the mean maps to f(μ).
Derivation
Where comes from — and what it leaves out
The linear part. Expand about the mean: . The deviation of from is then times the deviation of , and lesson 5-1's rule for a linear map gives
The part it leaves out. Keep the next Taylor term for one output: . The linear term averages to zero, but the quadratic one does not:
Linearisation drops this shift of the mean entirely.
The radar banana, exactly. Take the target due east at m with a bearing error of standard deviation rad. East is , and for a normal the exact average is :
the million-sample answer (966.35 m), while linearisation keeps 1000 m. The second-order formula above gives m — most of the way there.
📐From radar measurement to position
A radar measures a target at range 10 km (σ = 10 m) and bearing 30° (σ = 0.1°). Position east , north , with Jacobian . Then gives m, m and a correlation of : the errors are not independent any more. The eigenvectors show why: the ellipse has semi-axes 17.45 m across the line of sight () and 10.00 m along it (). A Monte Carlo run of 200,000 samples agrees to the second decimal, and 95.03% of the samples fall inside the 95% ellipse.
💡When linearisation fails
Linearisation replaces by its tangent plane at the mean. That is accurate only if is nearly linear over the spread of the inputs. Give the radar a poor bearing — 15° of noise at 1000 m — and the true positions lie along an arc, a curved 'banana'. Monte Carlo with a million samples puts the mean at 966.35 m east, because points spread around an arc are on average closer than its radius; linearisation still says 1000 m, 33.7 m too far, and predicts an east–west spread of 2.00 m where the true one is 46.81 m. The covariance matrix is not wrong because of rounding or bad code; the method's assumption has failed.
The unscented transform. In 1997 Simon Julier and Jeffrey Uhlmann proposed a middle way between linearisation and Monte Carlo: choose a small set of sigma points that have exactly the mean and covariance of the input, push each one through the exact nonlinear function, and compute the weighted mean and covariance of the results. For inputs:
where is the -th column of a Cholesky factor (lesson 3-3). Five points for the radar give a mean of 966.31 m and an east–west spread of 47.68 m — against the million-sample answer of 966.35 m and 46.81 m. No derivatives are needed. The idea is a quadrature rule: the sigma points and weights integrate the function against a Gaussian, like the Gauss points of lesson 8-4.
Derivation
The sigma points reproduce the mean and covariance exactly
Let be the columns of , so that .
Mean. The pairs are symmetric about , and the weights add to 1 ():
Covariance. The centre point contributes nothing (), and each pair contributes twice:
So the points carry exactly the input's mean and covariance (and, by symmetry, zero skewness). Whatever the nonlinear function does to them, it does to a set of points that is statistically correct to second order — which is why the transform captures the banana's mean shift that linearisation misses.
📐Collision probability, and a paradox
At closest approach, project the relative position onto the plane perpendicular to the relative velocity. A collision means the true miss lies inside a small disc — here a combined radius of 10 m — around zero. With a predicted miss of 584 m and an isotropic position uncertainty , the probability is the integral of the 2-D Gaussian over that disc:
- m: — a confident miss;
- m: — the maximum, at ;
- km: (Monte Carlo with samples: );
- km: .
Derivation
Why the probability peaks at
The collision disc (radius m) is tiny compared with the miss m, so the Gaussian density is nearly constant over it. The probability is then the disc's area times the density at its centre:
Two effects compete as grows: the factor spreads the probability more thinly, while the exponential stops suppressing the distant disc. Write and differentiate:
At the peak — the lab's maximum. Beyond it, more uncertainty means a smaller computed probability: dilution.
Given for one instant an intelligence which could comprehend all the forces by which nature is animated and the respective situation of the beings who compose it — an intelligence sufficiently vast to submit these data to analysis — … for it, nothing would be uncertain and the future, as the past, would be present to its eyes.
💡Where you will use this
Orbital Mechanics: conjunction assessment and covariance propagation along an orbit. GNSS Navigation: dilution of precision and error ellipses from the least-squares fix. Rocket Propulsion and Guidance: dispersion analysis of landing points and staging conditions. Geotechnical and Structural Engineering: first-order reliability methods (FORM) are linearised propagation; Monte Carlo and point-estimate methods are its sampled cousins. Every laboratory: measurement uncertainty budgets follow the same J P Jᵀ.
📚Further reading
- Joint Committee for Guides in Metrology, Evaluation of measurement data — Guide to the expression of uncertainty in measurement (JCGM 100:2008, the 'GUM') — the international standard for in laboratories; free from the BIPM.
- Simon Julier and Jeffrey Uhlmann, 'Unscented filtering and nonlinear estimation', Proceedings of the IEEE 92(3), 401–422 (2004) — the unscented transform by its inventors.
- Yaakov Bar-Shalom, X. Rong Li and Thiagalingam Kirubarajan, Estimation with Applications to Tracking and Navigation (Wiley, 2001) — covariance, error ellipses and consistency tests for engineers.
↓But there is a problem
Propagation tells you how uncertain a prediction is: carry the covariance through the model, and watch it grow. It cannot make the prediction any better.
A navigation system has to do better. It has a model of how the vehicle moves, whose predictions grow more uncertain with every step, and measurements of where it is, which are noisy — and it must produce, every fraction of a second, the best estimate it can from both, together with an honest statement of how good that estimate is.
In 1960 a Hungarian-born engineer, Rudolf Kálmán, published a recursive way to do exactly that. Later that year he visited NASA's Ames Research Center, where Stanley Schmidt's group was working out how a spacecraft could navigate to the Moon.