The OED formalism — Fisher information, the additive backbone, and sky projection
The shared machinery every worked example on this page reuses — derived once, from first principles
The OED formalism — the machinery every example reuses¶
Every worked example in this section — the anisotropy design, the dynamical-mass depth knob — runs on the same engine. This page builds that engine once, from first principles, so the example pages can spend their words on the science instead of re-deriving the algebra. If you have just landed here from one of them, this is the page that explains why a pre-data error bar is even computable.
Reading paths
New to experimental design? Read straight through — every equation is earned with a physical picture first.
Already comfortable with Fisher information and the Cramér–Rao bound? Skip to the additive backbone — the trick that turns the optimisation into linear algebra — or to the projection geometry for the B&M82 kernels.
Just want to run an example? Go back to the anisotropy design or the dynamical-mass design; this page is reference theory.
Why design an observation at all?¶
Telescope time is the scarcest resource in observational astronomy. A night on an 8-metre is worth tens of thousands of dollars; a Gaia-quality proper motion or a high-resolution spectrum of a faint cluster star is expensive in a way that the analysis afterwards is not. And yet the decision of what to observe — how many stars, how far out, how faint, in which channel — is usually made by intuition and heritage: “measure the brightest stars near the centre, that’s where the signal is.”
Sometimes intuition is right. Often it is exactly backwards. The information about a parameter is not where the signal is largest; it is where the signal is most sensitive to that parameter. Those can be very different places, and the gap between them is telescope time thrown away.
Optimal experimental design (OED) replaces the guess with a computation. The key realisation is that the precision you will achieve is a known function of the observing strategy — known before you collect a single photon — through the Fisher information. So you can treat the observing strategy as a free variable and maximise the information you expect to extract. The output is not just “a good plan”; it is a quantified plan: “this allocation reaches the same precision with fewer stars,” or “going one magnitude deeper buys you nothing.” OED is rare in astronomy because almost no simulator can compute — and that is exactly what a differentiable forward model makes possible.
The foundation: Fisher information and the Cramér–Rao bound¶
Suppose your data depend on parameters through a likelihood , and write the log-likelihood . Near the truth, is a hill in parameter space, and its curvature tells you how sharply the data pin the parameters: a sharp peak means a tight measurement, a flat ridge means a degeneracy. The Fisher information matrix is exactly that curvature, averaged over data realisations:
Its meaning is delivered by the Cramér–Rao bound: no unbiased estimator can do better than
So is the best achievable covariance, and is the tightest error bar you can hope to put on — computable from the model alone, before observing. That is the hinge of the whole method: the error bar is a function of the design, so you can optimise it.
For data with Gaussian errors — our binned dispersions, with measurement uncertainty — the Fisher matrix has a simple, additive form. If is the model prediction for a datum,
Two features of Equation do all the work below. First, it is a sum over independent data — Fisher information adds. Second, each term is the sensitivity squared, divided by the noise. A datum is informative not when is large, but when moves as moves.
Why a Gauss–Newton Fisher, not a Hessian
We never form directly. For a Gaussian likelihood
the expected Fisher equals the Gauss–Newton form with
— one Jacobian, no second derivatives. That is cheaper
and it is the only form that survives our diffrax-backed forward model on the
equilibrium-solver profiles, whose reverse-mode custom_vjp defines no forward-mode
rule (a Hessian would need forward-over-reverse). Here
progenax.kinematics.fisher_information_gn is exactly this -based Fisher.
The dimensionless metric¶
Cluster parameters span enormous dynamic ranges: a total mass sits next to a half-mass radius pc in the same vector. Built in raw units, the Fisher is wildly ill-conditioned () and the A/D criteria below are not scale-invariant — would be dominated by whichever parameter happens to carry the largest unit magnitude, not the largest fractional uncertainty.
The additive, design-linear backbone¶
This is the structural trick that makes the whole optimisation cheap. Start from the per-datum noise: a velocity dispersion measured from stars, each with intrinsic dispersion and measurement error , has a sampling uncertainty
The factor of (not ) is the standard error on a dispersion, not a mean — a dispersion is a second moment, so it converges more slowly. More stars in a bin () sharpen that bin’s datum; that is the design’s only lever on the noise.
The design and the budget. A design allocates a fixed budget across the cells (projected-radius bin × kinematic channel ). We parametrise it on the softmax simplex so it stays a valid, positive allocation under unconstrained optimisation,
with the logits as the design variables. Substituting Equation into Equation and grouping by cell, the design Fisher becomes a budget-weighted sum of design-independent per-star blocks:
Each is a rank-1 matrix — the information one star in that
cell-and-channel carries about — and it does not depend on the
design. So the Jacobian is computed once, by a single reverse-mode
jacrev through the differentiable forward model at the truth. After that, the design
enters Equation only through the scalar weights :
Optimising the observing strategy is → invert a → read one element. The expensive projection is never re-differentiated inside the optimiser loop, and the gradients are pure linear algebra over the precomputed blocks.
We use jacrev (reverse mode) because it is the supported, tested AD path for all
profiles and stays correct if a King/Michie mock is ever swapped in (those
equilibrium-solver profiles hit a custom_vjp ODE with no forward-mode rule). On the
analytic-density Plummer path used in the examples there is no ODE, so forward-mode
would also work — jacrev is the robust choice, not a forced one.
What “optimal” means: the c / D / A criteria¶
The same supports several notions of “best.” The choice of criterion is the choice of what you are optimising for:
c-optimality is the headline of both examples: it minimises the variance of one target parameter after marginalising over the nuisances — exactly the element of the full inverse, which already accounts for how the target trades off against the others. D-optimality maximises the determinant of , shrinking the volume of the joint confidence ellipsoid over all parameters. A-optimality minimises the trace of , the average variance. They are genuinely different objectives, and under parameter degeneracies they put stars at different radii.
Why c and D should disagree — and why that’s the point
D-optimality maximises the volume of the whole confidence ellipsoid, so it happily spends stars tightening every nuisance. c-optimality only cares about the axis of that ellipsoid after the others are marginalised away, so it refuses to spend stars where they would mostly improve nuisances. A demo in which c and D agreed would be hiding the most important idea in OED: optimising for “everything” is not optimising for the one number you came to measure. If your science is a single parameter — an anisotropy radius, a dynamical mass, a tidal radius — you want c (or its subset generalisation ), not D.
The projection geometry: into the three sky observables (B&M82)¶
Both examples observe the cluster through the same three kinematic channels, and the geometry that connects the cluster’s internal velocity ellipsoid to what a telescope records is worth getting exactly right — it trips up nearly everyone the first time. In a spherical system each star’s velocity splits into a radial part (toward or away from the cluster centre) and two tangential parts, with dispersions and . The Binney anisotropy parameter measures their asymmetry,
which is 0 for isotropic orbits and rises toward 1 for radially-biased ones.
The word “radial” means three different things here, and conflating them is the classic mistake:
Quantity | “Radial” with respect to… | Direction |
|---|---|---|
the cluster centre (3-D) | along , centre star | |
/ RV | the observer | along the line of sight (Doppler) |
the cluster centre, projected on-sky | radial in the plane of the sky |
The radial velocity you measure spectroscopically is radial to the observer — the line-of-sight Doppler shift — not the 3-D motion toward the cluster centre. A star at projected radius and line-of-sight depth sits at 3-D radius , and its local radial direction makes an angle with the sight line, . The observed line-of-sight velocity dispersion at that point is therefore a projection that mixes the radial and tangential dispersions:
using and . Only for a sight line through the centre (, ) does ; everywhere else the LOS velocity is a -weighted blend. Integrating Equation along the sight line, weighted by the density , gives the observed profile. Doing the same for the two plane-of-sky (proper-motion) components yields the full Binney & Mamon (1982) projection — three distinct observables of the same underlying and :
The inside these integrals is itself the solution of the anisotropic Jeans equation; for the Osipkov–Merritt law Merritt, 1985 it has the closed integrating-factor form
evaluated by the packaged differentiable project_dispersion. The point of all this
machinery is one sentence:
In the isotropic limit () the three kernels in Equation collapse to 1 and — the anisotropy lives only in the ratios between channels.
The tangential proper motion is the cleanest probe: , so as orbits turn radial () the tangential PM collapses while the LOS and radial-PM channels stay up. And because grows outward, the channels disagree most in the outskirts. A single profile cannot break the tie — a cold outer LOS profile can mean “low ” or “high .” Proper motions break it. Notice too that the total mass enters every one of these channels through in Equation: , so a dispersion measured anywhere weighs the cluster — the lever the dynamical-mass example pulls.
References¶
The Fisher-information / Cramér–Rao foundation is standard estimation theory (see e.g.
Tegmark, Taylor & Heavens 1997 for the astrophysical forecasting form). The
Osipkov–Merritt anisotropy law is Merritt (1985);
the line-of-sight projection of an anisotropic spherical model into ,
, is Binney & Mamon (1982, MNRAS 200, 361).
The differentiable project_dispersion forward model is documented on the
velocity-DF kinematics pages.
- Merritt, D. (1985). Spherical stellar systems with spheroidal velocity distributions. The Astronomical Journal, 90, 1027–1037. 10.1086/113810