Describes the marginal density evaluated at \(Z=z\) (e.g. \(Z=2\) in the example above). In the example above the sample is drawn from the hierarchical model
\[
\mu \sim G, Z \sim \mathcal{N}(0,1)
\]
In other words, letting \(\varphi\) the Standard Normal pdf
\[
L(G) = \varphi \star dG(z)
\]
Note that 2.0 has to be wrapped inside StandardNormalSample(2.0) since this target depends not only on G and the location, but also on the likelihood.
Posterior estimands such as PosteriorMean can be typically decomposed into two linear functionals, a numerator and a denominator:
numerator
numerator(x)
Numerator of the rational representation of x.
Examples
julia> numerator(2//3)
2
julia> numerator(4)
4
Base.numerator(target::AbstractPosteriorTarget)
Suppose a posterior target \(\theta_G(z)\), such as the posterior mean can be written as:
For example, for the posterior mean \(h(\mu) = \mu \cdot p(z \mid \mu)\). Then Base.numerator returns the linear functional representing \(G \mapsto a_G(z)\).
For example, for the posterior mean \(h(\mu) = \mu \cdot p(z \mid \mu)\). Then Base.denominator returns the linear functional representing \(G \mapsto f_G(z)\) (i.e., typically the marginal density). Also see Base.numerator(::AbstractPosteriorTarget).