Chuck decides his prior belief is not normal. His prior has a trapezoidal shape. His prior gives zero weight at 18 cm. It gives weight one at 24 cm, and is level up to 40 cm, and then goes down to zero at 46 cm.

I will use the Bolstad package in R. The hardest part is just constructing the prior distribution.

We can also save the result and then do the plot manually. That would allow us to compare the results from different priors on the same plot.

Here the red is the posterior from use of the normal prior, and the blue is from use of the discrete prior. The discrepancy in peak heights is due to the different number of elements in each mu vector.

## No comments:

Post a Comment