We will use the Minitab macro NormNP, or the R function normnp, to nd the posterior distribution

Question:

We will use the Minitab macro NormNP, or the R function normnp, to nd the posterior distribution of the normal mean μ when we have a random sample of size n from a normal(μ ,σ2) distribution with known2, and we use a normal(m, s2) prior forμ. The normal family of priors is the conjugate family for normal observations. That means that if we start with one member of the family as the prior distribution, we will get another member of the family as the posterior distribution. It is especially easy; if we start with a normal(m, s2) prior, we get a normal(m',(s')2) posterior where (s')2 and m0 are given by

image text in transcribed

and

image text in transcribed

respectively. Suppose the n = 15 observations from a normal(μ, σ2 = 42) are:

image text in transcribed

image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Introduction To Bayesian Statistics

ISBN: 9781118091562

3rd Edition

Authors: William M. Bolstad, James M. Curran

Question Posted: