Expand description
Deterministic posterior moments for logistic-normal softmax probabilities.
A reference-coded multinomial model has M = K - 1 active logits. At one
prediction row the Laplace posterior induces
eta ~ Normal(mu, V),
p(eta) = softmax(eta_0, ..., eta_{M-1}, 0).This module computes E[p] and Cov(p) rather than the plug-in quantity
softmax(E[eta]). The binary case is reduced to the controlled scalar
logistic-normal evaluator in gam-solve. For K > 2, the covariance is
eigendecomposed and quadrature is performed only over its positive range.
Successive Smolyak levels built from odd-order Gauss-Hermite rules provide a
deterministic error check. Failure to establish the requested tolerance is
an error; there is deliberately no Monte Carlo or plug-in fallback.
Structs§
- Multinomial
Posterior Integration Control - Explicit accuracy and work controls for multinomial posterior integration.
- Multinomial
Posterior Moments - Integrated class-probability moments for one prediction row.
- Multinomial
Posterior RowMoments - Integrated posterior means and marginal standard deviations for every row of a multinomial prediction design.
Functions§
- integrate_
logistic_ normal_ softmax_ moments - Integrate reference-coded logistic-normal softmax moments for one row.
- integrate_
multinomial_ design_ moments - Integrate the logistic-normal posterior induced by a coefficient mode and its full joint covariance over every design row.