19. Advantages of the Bayesian approach#
“Bayesian inference probabilities are a measure of our state of knowledge about nature, not a measure of nature itself.”
—Devinderjit Sivia
The Bayesian approach offers a number of distinct advantages in scientific applications. Some of them are listed below. In this chapter we introduce in particular the important tasks of inference with parametric models and the propagation of errors.
How the Bayesian approach helps in science
Provides an elegantly simple and rational approach for answering any scientific question for a given state of information. The procedure is well-defined:
Clearly state your question and prior information.
Apply the sum and product rules. The starting point is always Bayes’ theorem.
Provides a way of eliminating nuisance parameters through marginalization.
For some problems, the marginalization can be performed analytically, permitting certain calculations to become computationally tractable.
Provides a well-defined procedure for propagating errors,
E.g., incorporating the effects of systematic errors arising from both the measurement operation and theoretical model predictions.
Incorporates relevant prior (e.g., known signal model or known theory model expansion) information through Bayes’ theorem.
This is one of the great strengths of Bayesian analysis.
Enforces explicit assumptions.
For data with a small signal-to-noise ratio, a Bayesian analysis can frequently yield many orders of magnitude improvement in model parameter estimation, through the incorporation of relevant prior information about the signal model.
For some problems, a Bayesian analysis may simply lead to a familiar statistic. Even in this situation it often provides a powerful new insight concerning the interpretation of the statistic.
Provides a more powerful way of assessing competing theories at the forefront of science by automatically quantifying Occam’s razor.
The evidence for two hypotheses or models, \(M_i\) and \(M_j\), can be compared in light of data \(\data\) by evaluating the ratio \(p(M_i|\data, I) / (M_j|\data, I)\).
The Bayesian quantitative Occam’s razor can also save a lot of time that might otherwise be spent chasing noise artifacts that masquerade as possible detections of real phenomena.
Occam’s razor
Occam’s razor is a principle attributed to the medieval philosopher William of Occam (or Ockham). The principle states that one should not make more assumptions than the minimum needed. It underlies all scientific modeling and theory building. It cautions us to choose from a set of otherwise equivalent models of a given phenomenon the simplest one. In any given model, Occam’s razor helps us to “shave off” those variables that are not really needed to explain the phenomenon. It was previously thought to be only a qualitative principle.
Fig. 19.1 Did the Leprechaun drink your wine, or is there a simpler explanation?#
19.1. Inference with parametric models#
Inductive inference with parametric models is a very important tool in the natural sciences.
Consider \(N\) different models \(M_i\) (\(i = 1, \ldots, N\)), each with a parameter vector \(\pars_i\). The number of parameters (length of \(\pars_i\)) might be different for different models. Each of them implies a sampling distribution for possible data
The likelihood function is the pdf of the actual, observed data (\(\data_\mathrm{obs}\)) given a set of parameters \(\boldsymbol{\theta}_i\):
We may be uncertain about \(M_i\) (model uncertainty),
or uncertain about \(\pars_i\) (parameter uncertainty).
Parameter Estimation:
Premise: We have chosen a model (say \(M_1\))
\(\Rightarrow\) What can we say about its parameters \(\boldsymbol{\theta}_1\)?
Model comparison:
Premise: We have a set of different models \(\{M_i\}\)
\(\Rightarrow\) How do they compare with each other? Do we have evidence to say that, e.g. \(M_1\), is better than \(M_2\)?
Model checking:
Premise: We have a model \(M_1\)
\(\Rightarrow\) Is \(M_1\) adequate?
Hybrid Uncertainty:
Premise: Models share some common parameters: \(\pars_i = \{ \boldsymbol{\varphi}, {\boldsymbol{\eta}}_i\}\)
\(\Rightarrow\) What can we say about \(\boldsymbol{\varphi}\)? (Systematic error is an example)
Further discussion on parameter estimation and scientific model predictions will appear in subsequent chapters.
Fig. 19.2 Joint pdf for the masses of two black holes merging obtained from the data analysis of a gravitational wave signal. This representation of a joint pdf is known as a corner plot.#
19.2. Error propagation (I): Nuisance parameters and marginalization#
The Bayesian approach offers a straightforward approach for dealing with (known) systematic uncertainties; namely by marginalization.
Assume that we have a model with two parameters, \(\theta,\phi\), although only one of them (say \(\theta\)) is of physical relevance. The other one is then labeled a nuisance parameter. Through a Bayesian data analysis we can get the the joint posterior PDF
The marginal posterior PDF \(\pdf{\theta}{\data, I}\) is obtained via marginalization
This simple procedure allows to propagate the uncertainty in \(\phi\) to the probability distribution for \(\theta\).
Example 19.2 provides an illustration of this scenario.
Marginalization using samples
Assume that we have \(N\) samples from the joint pdf \(\pdf{\theta, \phi}{\data, I}\). This might a sample chain from an MCMC sampler: \(\left\{ (\theta, \phi)_i \right\}_{i=0}^{N-1}\). Then the marginal distribution of \(\theta\) will be given by the same chain by simply ignoring the \(\phi\) column, i.e., \(\left\{ \theta_{i} \right\}_{i=0}^{N-1}\).
See the interactive demos created by Chi Feng for an illustration of this: The Markov-chain Monte Carlo Interactive Gallery.
A slightly more general scenario for which the marginalization procedure is useful is the following: Assume that we have measured or inferred the parameters \(X\) and \(Y\); what can we say about the difference \(X-Y\) or the raio \(X/Y\), or the sum of their squares \(X^2+Y^2\), etc?
Such questions can be rephrased as: Given the joint PDF \(\pdf{x,y}{I}\), what is \(\pdf{z}{I}\), where \(z=f(x,y)\)? Here, and in the following, we use shorthands \(\pdf{z}{I}\), \(\pdf{x,y}{I}\) instead of the more correct \(p_Z(z|I)\), \(p_{X,Y}(x,y|I)\). The context should make it clear which random variable(s) that are referred to.
In this situation we can use marginalization and the product rule.
We realize that \(\pdf{z}{x,y,I} = \delta(z-f(x,y))\) due to the functional relationship between the parameters.
Dirac delta functions
A delta function \(\delta(x-x_0)\) can be constructed as the limiting case of a distribution
For example, it can be constructed as an infinitely narrow (and tall) normal distribution
This function will be zero for \(x \neq x_0\), and goes to infinity at \(x_0\) in a way such that the integral \(\int_{-\infty}^{+\infty} \delta(x-x_0) dx = 1\), which is a defining property.
More general, for well-behaved functions \(f(x)\), we have \(\int_{-\infty}^{+\infty} f(x) \delta(x-x_0) dx = f(x_0)\).
The joint PDF for \(X\) and \(Y\) becomes a product if the errors are independent \(\pdf{x,y}{I} = \pdf{x}{I} \pdf{y}{I}\) . The delta function can be used to evaluate one of the integrals, giving some inverse transformation \(y=g(x,z)\), and the PDF for \(Z\) becomes a convolution
Example 19.1 (\(Z = X + Y\))
Let us consider the situation where you are interested in the quantity \(Z = X + Y\), and you have information \(I\) about \(X\) and \(Y\) which tells you that \(\expect{X} = x_0\), \(\var{X} = \sigma_x^2\) and \(\expect{Y} = y_0\), \(\var{Y} = \sigma_y^2\). If this is all the information that we have, it is reasonable to assume that \(X\) and \(Y\) are independent and that we should assign Gaussian PDFs (the argument for this is known as the Maximum Entropy principle)
Let us now use marginalization and the product rule to find
We realize that \(\pdf{z}{x,y,I} = \delta(z-(x+y))\) due to the functional relationship between the parameters, and we have \(\pdf{x,y}{I}\) as a product of Gaussian PDFs from above. The delta function can be used to evaluate one of the integrals, and the PDF for \(Z\) becomes a convolution
After some tedious algebra that involves completing the square for \(X\) in the exponent we obtain
with \(z_0 = x_0 + y_0\) and \(\sigma_z^2 = \sigma_x^2 + \sigma_y^2\). Thus, the PDF for the sum \(Z=X+Y\), with \(X\) and \(Y\) being described by Gaussian PDFs, is another Gaussian.
Exercise 19.2 (Sum of two Gaussian PDFs)
Complete the derivation of Eq. (19.10).
Example 19.2 (Inferring galactic distances)
The Hubble constant \(H\) acts as a galactic ruler as it is used to measure astronomical distances (\(d\)) according to \(v = H d\) where \(v\) is the velocity that can be measured with observations of redshifts. An error in \(H\) will therefore correspond to a systematic uncertainty in such measurements.
A modern value for the Hubble constant is \(H = 70 \pm 10\) km s\(^{-1}\) MPc\(^{-1}\). We introduce the expectation value \(\expect{H} = H_0 = 70\) km s\(^{-1}\) MPc\(^{-1}\) and the standard deviation \(\std{H} = \sigma_H = 10\) km s\(^{-1}\) MPc\(^{-1}\). Note that astronomical distances are usually measured in million parsecs (MPc). Suppose that a specific galaxy has a measured recessional velocity \(v_0 = 100 \times 10^3\) km/s with an observational error quantified by a standard deviation \(\sigma_v = 5 \times 10^3\) km/s. Determine the posterior PDF for the distance to a galaxy under the following analysis assumptions:
We use the expectation value of \(H\) in the analysis: \(H = H_0 = 70\) km s\(^{-1}\) MPc\(^{-1}\).
We include the uncertainty in the value of the Hubble constant via a Gaussian PDF:
\[ \pdf{H}{I} = \frac{1}{\sqrt{2\pi}\sigma_H} \exp\left( - \frac{(H-H_0)^2}{2 \sigma_H^2} \right). \]We include the uncertainty in the value of the Hubble constant via a uniform PDF:
\[\begin{split} \pdf{H}{I} = \left\{ \begin{array}{ll} \frac{1}{4 \sigma_H} & \text{for } H_0 - 2\sigma_H \leq H \leq H_0 + 2\sigma_H, \\ 0 & \text{otherwise.} \end{array} \right. \end{split}\]In addition, an approximate propagation of errors is demonstrated in Example 19.3.
Here we use marginalization to obtain the desired posterior PDF \(\pdf{d}{\data,I}\) from the joint distribution of \(\pdf{d,H}{\data,I}\)
Using
Bayes’ rule: \(\pdf{d,H}{\data,I} \propto \pdf{\data}{d,H,I} \pdf{d,H}{I}\),
the product rule: \(\pdf{d,H}{I} = p(H|d,I)\pdf{d}{I}\),
and the fact that \(H\) is independent of \(d\): \(p(H|d,I) = \pdf{H}{I}\),
we find that
which means that we have expressed the quantity that we want (the posterior of \(d\)) in terms of quantities that we can specify.
First, we need to state our prior knowledge concerning the distance \(\pdf{d}{I}\). You might ask yourself what information is contained in this quantity. It should summarize our state of knowledge before accumulating the new data. For starters, we do know that it is a distance (meaning that it is a positive quantity) and we would also expect it to be smaller than the (visible) size of the universe. We might argue that it should be at least as far away as the previously known closest galaxy. Further arguments can be made on the basis of indifference, but we will defer such discussions for now. For simplicity, we just assign a uniform PDF
within some huge range \(0 < d < 10^9\) MPc.
The likelihood for the observed can be written down from a statistical model
where \(H d\) represents our model for the velocity and \(e\) is the observational error, which is a random variable. We know that \(\expect{v_\mathrm{measured}} = v_0\) and \(\text{Var}(v_\mathrm{measured}) = \sigma_v^2\). Given this information it is motivated to use a Gaussian PDF (with this mean and variance) for the likelihood
The results for the different analysis strategies (1-3 in the list above) should be obtained in Exercise 19.3. A comparison figure that also includes the approximative error propagation (4) is shown in the solution to this exercise.
Exercise 19.3 (Inferring galactic distances)
Apply the first three analysis strategies and derive the posterior distribution \(\pdf{d}{\data,I}\). The first case allows an analytical solution while the second and third are probably best approached numerically (although it is, in fact, possible to find an analytical result also for case 2). Plot the results.
Hint 1: Since the goal is to extract a probability distribution, and we are already ignoring the denominator in Bayes’ theorem, it is allowed to ignore all normalization constants. The final PDFs can be normalized by integration.
Hint 2: A fixed value for \(H\) can be assigned with the PDF \(\pdf{H}{I} = \delta(H-H_0)\), where \(\delta(x)\) is the Kronecker delta.
19.3. Error propagation (II): Changing variables#
Let us consider a single variable \(X\) and a function \(Y=f(X)\) that offers a unique mapping between \(X\) and \(Y\). Assume that we know \(X\) via a PDF \(\pdf{x}{I}\). What is the relation between \(\pdf{x}{I}\) and \(\pdf{y}{I}\)? In this scenario the extraction of \(\pdf{y}{I}\) turns out to be an exercise in transformation of variables.
Consider a point \(x^*\) and a small interval \(\delta x\) around it. The probability that \(X\) lies within that interval can be written
Assume now, as stated above, that the function \(f\) maps the point \(x=x^*\) uniquely onto \(y=y^*=f(x^*)\). Then there must be an interval \(\delta y\) around \(y^*\) so that the probability is conserved
In the limit of infinitesimally small intervals, and with the realization that this should be true for any point \(x\), we obtain the relationship
where the term on the far right is called the Jacobian. We also note that we can inverse the transformation
The generalization to several variables, relating the PDF for \(M\) variables \(\{ Xx_j \}\) in terms of the same number of quantities \(\{ y_j \}\) related to them, is
where the multivariate Jacobian is given by the determinant of the \(M \times M\) matrix of partial derivatives \(\partial y_i / \partial x_j\).
Exercise 19.4 (The standard random variable)
Find \(\pdf{z}{I}\) when \(Z = (X-\mu)/\sigma\) and \(\pdf{x}{I} = \frac{1}{\sqrt{2\pi}\sigma} \exp \left( -\frac{(x-\mu)^2}{2\sigma^2} \right)\).
Exercise 19.5 (The square root of a number)
Find an expression for \(\pdf{z}{I}\) when \(Z = \sqrt{X}\) and \(\pdf{x}{I} = \frac{1}{x_{\max} - x_{\min}}\) for \(x_{\min} \leq x \leq x_{\max}\) and 0 elsewhere. Verify that \(\pdf{z}{I}\) is properly normalized.
19.4. Error propagation (III): A useful approximation#
For practical purposes, we are often satisfied to approximate PDFs with Gaussians. Within such limits there is an easier method that is often used for error propagation. Note, however, that there are instances when this method fails miserably as will be shown in the example further down.
Suppose that we have summarized the PDFs \(\pdf{x}{I}\) and \(\pdf{y}{I}\) as two Gaussians with mean and standard deviation \(x_0, \sigma_x\) and \(y_0, \sigma_y\), respectively. Assume further that these two variables are not correlated, i.e., \(\pdf{x,y}{I} = \pdf{x}{I} \pdf{y}{I}\).
Suppose now that we are interested in \(Z=X-Y\). Intuitively, we might guess that the best estimate \(z_0 = x_0 - y_0\), but the standard deviation \(\sigma_z\) requires some more thought. Differentiate the relation
For error bars, we are interested in this relation around the optimum, i.e., \(\delta X = X - x_0\) and so on. Square both sides and integrate to get the expectation value
where we have employed the linear property for an integral over a sum of terms.
Since we study the differential relation around the optimum, and we assumed that the PDFs for \(X\) and \(Y\) were described by independent Gaussians, we get
and we find that
Example 19.3 (Inferring galactic distances—revisited)
Consider, as a second example, the ratio of two parameters \(Z = X/Y\) that appeared in Example 19.2 (in which we wanted to infer \(x = v/H\)). Differentiation gives
Squaring both sides and taking the expectation values, we obtain
where the \(X\), \(Y\) and \(Z\) in the denominator have been replaced by the constants \(x_0\), \(y_0\) and \(z_0 = x_0 / y_0\) because we are interested in deviations from the peak of the PDF.
Finally, substituting the information for the PDFs of \(X\) and \(Y\) as summarized in Eq. (19.20) we finally obtain the propagated error for the ratio
Exercise 19.6 (Gaussian sum of errors)
Consider \(Z=X+Y\) (again) and derive a PDF for \(Z\) assuming Gaussian errors in \(X\) and \(Y\). Compare with the result from the full convolution of PDFs in Example 19.1.
Exercise 19.7 (Gaussian product of errors)
Consider \(Z=XY\) and derive a PDF for \(Z\) assuming Gaussian errors in \(X\) and \(Y\).
Despite its virtues, let us end our discussion of error-propagation with a salutary warning against the blind use of this nifty short cut.
Example 19.4 (Taking the square root of a number)
Assume that the amplitude of a Bragg peak is measured with an uncertainty \(A = A_0 \pm \sigma_A\) from a least-squares fit to experimental data.
The Bragg peak amplitude is proportional to the square of a complex structure function: \(A = |F|^2 \equiv f^2\).
What is \(f = f_0 \pm \sigma_f\)?
Obviously, we have that \(f_0 = \sqrt{A_0}\). Differentiate the relation, square and take the expectation value
where we have used the Gaussian approximation for the PDFs.
But what happens if the best fit gives \(A_0 < 0\), which would not be impossible if we have weak and strongly overlapping peaks. The above equation obviously does not work since \(f_0\) would be a complex number.
We have made two mistakes:
Likelihood is not posterior!
The Gaussian approximation around the peak does not always work.
Consider first the best fit of the signal peak. It implies that the likelihood can be approximated by
However, the posterior for \(A\) is \(\pdf{A}{{\data},I} \propto \pdf{\data}{A,I} \pdf{A}{I}\) and we should use the fact that we know that \(A \ge 0\).
We will incorporate this information through a simple step-function prior
This implies that the posterior will be a truncated Gaussian, and its maximum will always be above zero.
This also implies that we cannot use the Gaussian approximation. Instead we will do the proper calculation using the transformation (19.15)
In the end we find the proper Bayesian error propagation given by the PDF
Fig. 19.3 visualize the difference between the Bayesian and the naive error propagation for a few scenarios. The code to generate these plots is in the hidden cell below.
Fig. 19.3 The left-hand panels show the posterior PDF for the amplitude of a Bragg peak in three different scenarios. The right-hand plots are the corresponding PDFs for the modulus of the structure factor \(f=\sqrt{A}\). The solid lines correspond to a full Bayesian error propagation, while the dashed lines are obtained with the short-cut error propagation.#
Show code cell content
import numpy as np
import matplotlib.pyplot as plt
from myst_nb import glue
def A_posterior(A,A0,sigA):
pA = np.exp(-(A-A0)**2/(2*sigA**2))
return pA/np.max(pA)
# Wrong analysis
def f_likelihood(f,A0,sigA):
sigf = sigA / (2*np.sqrt(A0))
pf = np.exp(-(f-np.sqrt(A0))**2/(2*sigf**2))
return pf/np.max(pf)
# Correct error propagation
def f_posterior(f,A0,sigA):
pf = f*np.exp(-(f**2-A0)**2/(2*sigA**2))
return pf/np.max(pf)
fig_Af,axs=plt.subplots(3,2,figsize=(5,7))
for iA, (A0,sigA) in enumerate([(9,1),(1,9),(-20,9)]):
maxA = max(2*A0,3*sigA)
A_arr = np.linspace(0.01,maxA,100)
f_arr = np.sqrt(A_arr)
axs[iA,0].plot(A_arr,A_posterior(A_arr,A0,sigA))
axs[iA,1].plot(f_arr,f_posterior(f_arr,A0,sigA),label='Bayesian')
if A0>0:
axs[iA,1].plot(f_arr,f_likelihood(f_arr,A0,sigA),'--',label='Naive')
axs[iA,0].set(xlabel='A',ylabel=r'$p(A | \mathcal{D},I)$')
axs[iA,0].text(0.95,0.8,f'$A_0={A0}$, $\sigma_A={sigA}$', \
horizontalalignment='right',\
transform=axs[iA,0].transAxes,fontsize=10)
axs[iA,1].set(xlabel='f',ylabel=r'$p(f | \mathcal{D},I)$')
axs[0,1].legend(loc='best')
fig_Af.tight_layout()
glue(f"Af_fig", fig_Af, display=False)
19.5. Solutions#
Solution to Exercise 19.3 (Inferring galactic distances)
A fixed value for \(H\) can be assigned with the PDF \(\pdf{H}{I} = \delta(H-H_0)\), where \(\delta(x)\) is the Kronecker delta. We note that integrals over a delta function are given by \(\int_{-\infty}^{+\infty} f(x) \delta(x-x_0) dx = f(x_0)\) such that
\[ \pdf{d}{\data,I} \propto \exp\left( - \frac{(v_0 - H_0 d)^2}{2\sigma_v^2} \right), \]where we have ignored all normalization coefficients.
With a Gaussian prior for \(H\) we will be left with an integral
\[ \pdf{d}{\data,I} \propto \int_{-\infty}^{+\infty} dH \exp\left( - \frac{(H-H_0)^2}{2 \sigma_H^2} \right) \exp\left( - \frac{(v_0 - H d)^2}{2\sigma_v^2} \right). \]We can perform this integral numerically, or we can solve it analytically by realizing that the product of two Gaussian distributions is another Gaussian distribution.
The uniform prior for \(\pdf{H}{I}\) implies that the final integral becomes
\[ \pdf{d}{\data,I} \propto \int_{H_0 - 2\sigma_H}^{H_0 + 2\sigma_H} dH \exp\left( - \frac{(v_0 - H d)^2}{2\sigma_v^2} \right). \]
For numerical integration, and plots of the results of the three inference strategies, see the hidden code block below.
Show code cell content
# Common imports
import numpy as np
import matplotlib.pyplot as plt
import scipy.integrate as integrate
# Given information
H0=70
sigH=10
v0=10**5
sigv=5000
# grid for evaluating and plotting p(d|...)
dgrid = np.linspace(500,2500,100)
# Case 1
def pdf_1(d):
return np.exp(-(v0-H0*d)**2/(2*sigv**2))
# Case 2
def pdf_2(H,d):
return np.exp(-(H-H0)**2 / (2*sigH**2)) * np.exp(-(v0-H*d)**2 / (2*sigv**2))
# ... with numerical integration over H
pdf_2_grid = np.zeros_like(dgrid)
for i_d,di in enumerate(dgrid):
I = integrate.quad(pdf_2, 0, 140, args=(di))
pdf_2_grid[i_d] = I[0] / 20
# Case 3
def pdf_3(H,d):
return np.exp(-(v0-H*d)**2 / (2*sigv**2))
# ... with numerical integration
pdf_3_grid = np.zeros_like(dgrid)
deltaH = np.sqrt(12*sigH**2/4)
for i_d,di in enumerate(dgrid):
I = integrate.quad(pdf_3, H0-2*sigH, H0+2*sigH, args=(di))
pdf_3_grid[i_d] = I[0] / 30
# Case 4 (see example 9.3)
d0 = v0/H0
sigd = d0*np.sqrt(sigH**2/H0**2 + sigv**2/v0**2)
def pdf_4(d):
return np.exp(-(d-d0)**2 / (2*sigd**2)) / 2
fig,ax = plt.subplots(1,1)
ax.plot(dgrid,pdf_1(dgrid),label='Case 1')
ax.plot(dgrid,pdf_2_grid,label='Case 2')
ax.plot(dgrid,pdf_3_grid,label='Case 3')
ax.plot(dgrid,pdf_4(dgrid),label='Case 4')
ax.set_xlabel(r'$d$ [Mpc]')
ax.set_ylabel(r'$p(d|\mathcal{D},I)$')
ax.legend(loc='best');
Solution to Exercise 19.4 (The standard random variable)
The transformation \(z = f(x) = (x-\mu)/\sigma\) gives the inverse \(x = f^{-1}(z) = \sigma z + \mu\) and the Jacobian \(|dx/dz = \sigma|\).
Therefore \(\pdf{z}{I} = \pdf{x}{I} \sigma\). With the given form of \(\pdf{x}{I}\) we get
which corresponds to a Gaussian distribution with mean zero and variance one, sometimes known as a standard random variable.
Solution to Exercise 19.5 (The square root of a number)
With \(z = f(x) = \sqrt{x}\) we have \(x = f^{-1}(z) = z^2\) such that \(|dx/dz| = 2|z|\). We note that \(z\) is positive such that \(|z| = z\) and we therefore have
and 0 elsewhere.
We check the normalization by performing the integral
Solution to Exercise 19.6 (Gaussian sum of errors)
The PDF \(\pdf{Z}{I}\) is Gaussian with mean \(\expect{Z} = z_0 = x_0+y_0\) and variance \(\var{Z} = \sigma_z^2 = \sigma_x^2 + \sigma_y^2\), where \(x_0,y_0\) and \(\sigma_x^2, \sigma_y^2\) are the means and variances of \(X\) and \(Y\), respectively.
This is the same result as in Example 19.1 which should not be surprising since the errors were in fact Gaussian.
Solution to Exercise 19.7 (Gaussian product of errors)
The PDF \(\pdf{Z}{I}\) is Gaussian with mean \(\expect{Z} = z_0 = x_0 y_0\) and variance \(\var{Z} = \sigma_z^2 = y_0^2 \sigma_x^2 + x_0^2 \sigma_y^2\), where \(x_0,y_0\) and \(\sigma_x^2, \sigma_y^2\) are the means and variances of \(X\) and \(Y\), respectively.