Conventions#
This page defines the mathematical notation and conventions used throughout DerivKit, particularly in ForecastKit. These definitions establish the signs, normalizations, and reference points used in Fisher forecasts, DALI expansions, and systematic bias calculations.
Parameters and Observables#
We denote the model parameters by \(\theta\) and the model predictions by \(\nu(\theta)\). The fiducial parameter point is \(\theta_0\), and parameter displacements are defined as
Parameter indices are denoted by Latin letters \(a,b,c,\ldots\), while observable indices are denoted by \(i,j,k,\ldots\). Repeated indices are summed unless stated otherwise.
Model derivatives are written as
Higher-order derivatives follow the same notation.
Likelihood and Posterior#
For Gaussian data with parameter-independent covariance \(C\), we define
The log-likelihood is
Given a prior density \(\pi(\theta)\), the log-posterior is
Thus, positive contributions to \(\chi^2\) enter the log-likelihood with a negative factor of \(1/2\).
The negative log-posterior is
Maximizing the log-posterior is equivalent to minimizing \(\Phi\).
Forecast Tensors#
ForecastKit constructs Fisher and DALI tensors from derivatives of the model predictions, evaluated at \(\theta_0\).
The Fisher matrix is
The doublet DALI tensors are
The triplet DALI tensors are
Tensor definitions do not include Taylor factorial coefficients. These coefficients are applied when evaluating the expansion.
Tensor contractions are understood to be symmetrized over the parameter indices where appropriate.
DALI Expansion#
For expected data at the fiducial model, define the change in chi-squared relative to \(\theta_0\) as
The doublet DALI approximation is
Consequently,
The negative signs arise from the definition of the Gaussian log-likelihood, not from the tensor definitions.
DALI truncates the Taylor expansion of the model predictions before constructing the squared residual. It is therefore not equivalent to truncating a Taylor series of the log-likelihood at the same polynomial degree.
The Fisher, doublet, triplet, and quadruplet approximations retain model derivatives through first, second, third, and fourth order, respectively.
Systematic Mismatches and Bias Tensors#
A systematic data mismatch is defined as
This convention always represents expected data minus the model prediction at the fiducial parameters.
The corresponding bias tensors are
The first-order bias vector is
With this sign convention, the Fisher parameter bias is
The mismatch contribution to the log-likelihood is
Reversing the sign of \(\Delta\nu\) reverses the first-order Fisher bias. Higher-order DALI responses need not reverse in the same way.
Parameter Displacements and Systematic Shifts#
A parameter displacement is measured relative to the fiducial point:
A systematic shift is measured relative to the corresponding estimator in the absence of the mismatch:
These quantities are not necessarily equal.
For a posterior mean, the systematic shift is
In a non-Gaussian posterior, the unbiased mean need not coincide with the fiducial parameters:
The same distinction applies to the posterior maximum when the unbiased MAP differs from \(\theta_0\).
MAP and Posterior Mean#
The maximum a posteriori estimate is
The posterior mean is
These estimators generally differ for non-Gaussian posteriors. ForecastKit therefore distinguishes MAP shifts from posterior mean shifts.
Unless explicitly stated otherwise, a reported systematic shift refers to the change in the specified estimator relative to its unbiased value.
Scope of the Conventions#
The Fisher and DALI tensor expressions above assume a Gaussian likelihood with parameter-independent covariance.
ForecastKit also supports generalized Fisher formalisms for parameter-dependent covariance and other likelihood models. Their additional terms and assumptions are documented in the corresponding method descriptions.
Priors are included separately from the likelihood expansion unless explicitly incorporated into the forecasting calculation.