Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

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

San Diego State University

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.

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 3.66×3.66\times fewer stars,” or “going one magnitude deeper buys you nothing.” OED is rare in astronomy because almost no simulator can compute (information)/(observing strategy)\partial(\text{information})/\partial(\text{observing strategy}) — and that is exactly what a differentiable forward model makes possible.

The foundation: Fisher information and the Cramér–Rao bound

Suppose your data d\mathbf{d} depend on parameters θ\boldsymbol\theta through a likelihood L(dθ)\mathcal{L}(\mathbf{d}\mid\boldsymbol\theta), and write the log-likelihood =lnL\ell = \ln\mathcal{L}. Near the truth, \ell 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:

Fij  =  2θiθj.F_{ij} \;=\; -\,\Big\langle \frac{\partial^2 \ell}{\partial\theta_i\,\partial\theta_j} \Big\rangle .

Its meaning is delivered by the Cramér–Rao bound: no unbiased estimator can do better than

Cov(θ^)    F1.\mathrm{Cov}(\hat{\boldsymbol\theta}) \;\succeq\; F^{-1}.

So F1F^{-1} is the best achievable covariance, and (F1)ii\sqrt{(F^{-1})_{ii}} is the tightest 1σ1\sigma error bar you can hope to put on θi\theta_icomputable 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 δσ\delta\sigma — the Fisher matrix has a simple, additive form. If g(θ)g(\boldsymbol\theta) is the model prediction for a datum,

Fij  =  data  1δσ2gθigθj.F_{ij} \;=\; \sum_{\rm data}\; \frac{1}{\delta\sigma^2}\, \frac{\partial g}{\partial\theta_i}\,\frac{\partial g}{\partial\theta_j}.

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 g/θ\partial g/\partial\theta squared, divided by the noise. A datum is informative not when gg is large, but when gg moves as θ\theta moves.

The dimensionless lnθ\ln\theta metric

Cluster parameters span enormous dynamic ranges: a total mass M105MM\approx10^5\,\Msun sits next to a half-mass radius rh3r_h\approx3 pc in the same vector. Built in raw units, the Fisher is wildly ill-conditioned (cond1.7×109\mathrm{cond}\approx1.7\times10^9) and the A/D criteria below are not scale-invariant — trF1\mathrm{tr}\,F^{-1} 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 nn stars, each with intrinsic dispersion σ\sigma and measurement error ϵ\epsilon, has a sampling uncertainty

δσ2  =  σ2+ϵ22n.\delta\sigma^2 \;=\; \frac{\sigma^2 + \epsilon^2}{2\,n}.

The factor of 2n2n (not nn) 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 (nn\uparrow) 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 NtotalN_{\rm total} across the cells (projected-radius bin bb × kinematic channel cc). We parametrise it on the softmax simplex so it stays a valid, positive allocation under unconstrained optimisation,

nb,c  =  Ntotal[softmax(z)]b,c,n_{b,c} \;=\; N_{\rm total}\,\big[\mathrm{softmax}(\mathbf z)\big]_{b,c},

with the logits z\mathbf z 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:

F(design)  =  b,cnb,c  Mb,c,Mb,c  =  2Jb,cJb,cTσb,c2+ϵc2,Jb,c=σb,cpredlnθ.F(\text{design}) \;=\; \sum_{b,\,c} n_{b,c}\; M_{b,c}, \qquad M_{b,c} \;=\; \frac{2\,J_{b,c}\,J_{b,c}^{\mathsf T}}{\sigma^2_{b,c} + \epsilon_c^2}, \qquad J_{b,c} = \frac{\partial\,\sigma^{\rm pred}_{b,c}}{\partial\ln\theta}.

Each Mb,cM_{b,c} is a 3×33\times3 rank-1 matrix — the information one star in that cell-and-channel carries about θ\boldsymbol\theta — and it does not depend on the design. So the Jacobian Jb,cJ_{b,c} 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 nb,cn_{b,c}:

Optimising the observing strategy is F=nMF=\sum n\,M → invert a 3×33\times3 → read one element. The expensive projection is never re-differentiated inside the optimiser loop, and the gradients (criterion)/(design)\partial(\text{criterion})/\partial(\text{design}) 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 F=nMF=\sum n\,M supports several notions of “best.” The choice of criterion is the choice of what you are optimising for:

c ⁣:  min(F1)θθthe target’s variance, nuisances profiledD ⁣:  maxlogdetFthe whole θ ellipsoidA ⁣:  mintrF1total fractional variance.\underbrace{c\!:\;\min\,(F^{-1})_{\theta_\star\theta_\star}}_{\text{the target's variance, nuisances profiled}} \qquad \underbrace{D\!:\;\max\,\log\det F}_{\text{the whole }\theta\text{ ellipsoid}} \qquad \underbrace{A\!:\;\min\,\mathrm{tr}\,F^{-1}}_{\text{total fractional variance}}.

c-optimality is the headline of both examples: it minimises the variance of one target parameter θ\theta_\star after marginalising over the nuisances — exactly the (θ,θ)(\theta_\star,\theta_\star) element of the full inverse, which already accounts for how the target trades off against the others. D-optimality maximises the determinant of FF, shrinking the volume of the joint confidence ellipsoid over all parameters. A-optimality minimises the trace of F1F^{-1}, the average variance. They are genuinely different objectives, and under parameter degeneracies they put stars at different radii.

The projection geometry: σr(r)\sigma_r(r) 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 σr\sigma_r and σt\sigma_t. The Binney anisotropy parameter measures their asymmetry,

β(r)  =  1σt2(r)σr2(r),\beta(r) \;=\; 1 - \frac{\sigma_t^2(r)}{\sigma_r^2(r)},

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

σr\sigma_r

the cluster centre (3-D)

along r^\hat r, centre \to star

vlosv_{\rm los} / RV

the observer

along the line of sight z^\hat z (Doppler)

σpm,R\sigma_{{\rm pm},R}

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 RR and line-of-sight depth zz sits at 3-D radius r=R2+z2r=\sqrt{R^2+z^2}, and its local radial direction r^\hat r makes an angle ψ\psi with the sight line, cosψ=z/r\cos\psi = z/r. The observed line-of-sight velocity dispersion at that point is therefore a projection that mixes the radial and tangential dispersions:

σlos2(at r)  =  σr2cos2ψ+σt2sin2ψ  =  σr2(1βR2r2),\sigma_{\rm los}^2(\text{at }r) \;=\; \sigma_r^2\cos^2\psi + \sigma_t^2\sin^2\psi \;=\; \sigma_r^2\Big(1 - \beta\,\frac{R^2}{r^2}\Big),

using σt2=(1β)σr2\sigma_t^2=(1-\beta)\sigma_r^2 and z2+R2=r2z^2+R^2=r^2. Only for a sight line through the centre (R0R\to0, ψ0\psi\to0) does σlos=σr\sigma_{\rm los}=\sigma_r; everywhere else the LOS velocity is a β\beta-weighted blend. Integrating Equation along the sight line, weighted by the density ρ(r)\rho(r), 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 σr(r)\sigma_r(r) and β(r)\beta(r):

Σσlos2(R)=2 ⁣R(1βR2r2)ρσr2  rdrr2R2,Σσpm,R2(R)=2 ⁣R(1β+βR2r2)ρσr2  rdrr2R2,Σσpm,T2(R)=2 ⁣R(1β)ρσr2  rdrr2R2.\begin{aligned} \Sigma\,\sigma_{\rm los}^2(R) &= 2\!\int_R^\infty \Big(1 - \beta\,\tfrac{R^2}{r^2}\Big)\,\rho\,\sigma_r^2\;\frac{r\,dr}{\sqrt{r^2-R^2}},\\ \Sigma\,\sigma_{{\rm pm},R}^2(R)&= 2\!\int_R^\infty \Big(1 - \beta + \beta\,\tfrac{R^2}{r^2}\Big)\,\rho\,\sigma_r^2\;\frac{r\,dr}{\sqrt{r^2-R^2}},\\ \Sigma\,\sigma_{{\rm pm},T}^2(R)&= 2\!\int_R^\infty \big(1 - \beta\big)\,\rho\,\sigma_r^2\;\frac{r\,dr}{\sqrt{r^2-R^2}}. \end{aligned}

The σr2(r)\sigma_r^2(r) inside these integrals is itself the solution of the anisotropic Jeans equation; for the Osipkov–Merritt law βOM(r)=r2/(r2+ra2)\beta_{\rm OM}(r)=r^2/(r^2+r_a^2) Merritt, 1985 it has the closed integrating-factor form

ρσr2(r)  =  1r2+ra2r(s2+ra2)ρ(s)GM(<s)s2ds,\rho\,\sigma_r^2(r) \;=\; \frac{1}{r^2+r_a^2}\int_r^\infty (s^2+r_a^2)\,\rho(s)\, \frac{G\,M(<s)}{s^2}\,ds,

evaluated by the packaged differentiable project_dispersion. The point of all this machinery is one sentence:

In the isotropic limit (β=0\beta=0) the three kernels in Equation collapse to 1 and σlos=σpm,R=σpm,T\sigma_{\rm los}=\sigma_{{\rm pm},R}=\sigma_{{\rm pm},T}the anisotropy lives only in the ratios between channels.

The tangential proper motion is the cleanest probe: σpm,T2(1β)\sigma_{{\rm pm},T}^2\propto (1-\beta), so as orbits turn radial (β1\beta\to1) the tangential PM collapses while the LOS and radial-PM channels stay up. And because β(r)\beta(r) grows outward, the channels disagree most in the outskirts. A single σlos(R)\sigma_{\rm los}(R) profile cannot break the tie — a cold outer LOS profile can mean “low σr\sigma_ror “high β\beta.” Proper motions break it. Notice too that the total mass MM enters every one of these channels through GM(<s)GM(<s) in Equation: σr2GM\sigma_r^2\propto GM, 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 β(r)=r2/(r2+ra2)\beta(r)=r^2/(r^2+r_a^2) is Merritt (1985); the line-of-sight projection of an anisotropic spherical model into σlos\sigma_{\rm los}, σpm,R\sigma_{{\rm pm},R}, σpm,T\sigma_{{\rm pm},T} is Binney & Mamon (1982, MNRAS 200, 361). The differentiable project_dispersion forward model is documented on the velocity-DF kinematics pages.

References
  1. Merritt, D. (1985). Spherical stellar systems with spheroidal velocity distributions. The Astronomical Journal, 90, 1027–1037. 10.1086/113810