Expand description
Poisson-likelihood fitting of counts.
Minimizes half the Poisson deviance plus a Gaussian prior on each block
θₚ of measured parameters,
D(θ) = Σᵢ [μᵢ(θ) − yᵢ + yᵢ ln(yᵢ / μᵢ(θ))] + ½ Σₚ (θₚ − mₚ)ᵀ Cₚ⁻¹ (θₚ − mₚ)within box bounds, by projected Levenberg–Marquardt steps in the Fisher
metric, for models with an analytical Jacobian. A prior adds Cₚ⁻¹ to the
information, as SAMMY’s Bayes update M′⁻¹ = M⁻¹ + GᵀV⁻¹G adds the data to
a prior covariance M (SAMMY manual, docs/tex/fitting-procedure.tex,
eq. bayes-eq-m-prime).
Structs§
- Information
Inverse - The inverses of the expected information
informationofrowscounts, split aspoisson_fitsplits its directions into those its steps take and those its covariance keeps. In the information scaled to a unitdiagonal, its own or, for an information with other parameters profiled out, the one it had before,spannedkeeps every eigen-direction whose eigenvalue is above the eigendecomposition’s rounding,ε·max(rows, k)times the largest,kthe number of parameters with information, anddeterminedkeeps those of them whose eigenvalue is also at least 1e-12; where that rounding exceeds 1e-12, it is the cutoff of both. A parameter with no information has a zero row and column in both.resolved[i]is whether parameterihas information and, beyond rounding, no component along a directiondeterminedleaves out;undeterminedholds those directions, in the parameters’ units. - Poisson
Config - Configuration for the Poisson solvers.
- Poisson
Result - Result of
poisson_fit. - Prior
- A Gaussian prior on free parameters: a measurement of them made
elsewhere, with mean
mand covarianceC = LLᵀ. - Unbounded
- The expected-information (Fisher scoring) expansion of the objective at
the fit over every free parameter, bounds left out: covariance
F⁻¹,Fthe expected information of all free parameters, and meanθ̂ − F⁻¹g,gthe objective’s gradient at the fit, which the convergence test makes negligible off the bounds. Both are taken over the directions the counts and priors determine; the mean and the rows and columns of a parameter with a component along a direction they do not determine are NaN. With none on a bound the covariance isPoissonResult::covariance.
Constants§
- NEWTON_
DECREMENT_ TOL - The expected-information Newton decrement below which
poisson_fitreports a minimum.
Functions§
- half_
deviance obs·ln(obs/mean) + mean − obs, by C. Loader’sbd0(“Fast and accurate computation of binomial probabilities”, 2000): a series inv = (obs − mean)/(obs + mean)when|obs − mean| < 0.1 (obs + mean). Forobs ≥ 0andmean > 0; 0 when both are 0, and +∞ when onlymeanis.- information_
inverse InformationInverseofinformation, the expected information ofrowscounts, scaled todiagonal.- poisson_
fit - Fit
paramsto the countsy_obsby minimizing half the Poisson deviance plus½(θₚ − mₚ)ᵀCₚ⁻¹(θₚ − mₚ)for each of thepriors, within the parameter bounds.