# Implementation Example

The cases in which a convenient conjugate prior is available are few, and ideally the choice of model and prior should not be limited to those that allow an analytical solution. Perhaps the best way to allow the reader to appreciate the range of alternative approaches, and the difficulties that arise, is to examine a simple example. A small deviation from that example (replacing the Normal prior with a Teachers prior with ) makes it impossible to treat the example analytically but makes little difference to numerical methods.

Consider the manufacture of some component in which a particular measurement, , is of interest. This may be modeled as being a value of a random variable having a Normal distribution with mean and variance . In this context the mean represents the setting' of the manufacturing process, while the variance represents the process variability'.

The parameter is unknown, but prior knowledge about it may be represented by a density, and for this example values of are suitable. The choice of is in fact largely uninformative as a wide range ( say) of values of are all quite likely.

Assume the parameter is known: .

The sample data to hand

 3.51 3.5 3.52 3.5 3.51 3.5 3.52 3.5 3.51 3.51

can be summarised as .

For this example both analytic and numerical solutions are readily available.

Subsections
danny 2009-07-23