The interest is in what may be inferred about
from a random sample
. Each component of the random sample is modeled as a value
of
, being independently and identically distributed as
. Hence the probability density function (pdf) for the whole sample, the likelihood
function, can be written as
![]() |
(39) |
The prior is as given above, which may, in practice, be a setting up
value and a measure of variation derived from system history
.
It is possible to numerically apply Bayes' Theorem. Of the many approaches to
numerically applying Bayes' Theorem, Bayes4 a suite of software developed by Dr
J C Naylor (see Naylor, 1982), Naylor and Shaw (1983) and Naylor and Smith (1982)) is
chosen here. Bayes4 uses Gauss-Hermite quadrature to obtain values for
posterior density parameters. Applying Bayes4
gives the posterior densities shown in figure 4 and also a numerical
approximation to the posterior mean for of
.
Repeating the exercise using a Student's t-distribution with 4 degrees of
freedom
() as prior, renders the calculation analytically intractable.
However, using Bayes4 gives the posterior densities shown in
figure 5,
where the posterior estimate for
is again
.
All of the examples above are extremely easy to describe. However,
as soon as a prior is chosen their solution becomes,
analytically at least, intractable. At the same time the result of
the analysis is remarkably similar to that obtained with a Normal
prior. Performing the analysis using Bayes4 is no more difficult
than when a Normal prior is used.
The graphs in figure 4,5 were produced using standard S-Plus routines, which apply spline curves, to interpolate between points.
The problem analysed in the preceding sections is univariate and simple; the use of these methods is complete overkill but is done for comparison. In each case the posterior means and the predictive densities are the same, as is the inference to be drawn from the data. If the problem exceeds 3 parameters, the methods of generating the posterior samples are still valid, as long as they can be applied to the problem. However, the display techniques used are not available for exploring the results derived from them. A uniform way of presenting results from higher dimensional objects would be useful.
danny 2009-07-23