Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

The study on acid concentration in cheese included a total of 30 lactic acid measurements, the 10 given in Example 8.5.4 on page 487 and the following additional 20:

1.68, 1.9, 1.06, 1.3, 1.52, 1.74, 1.16, 1.49, 1.63, 1.99, 1.15, 1.33, 1.44, 2.01, 1.31, 1.46, 1.72, 1.25, 1.08, 1.25.

a. Using the same prior as in Example 8.6.2 on page 498, compute the posterior distribution of \({\bf{\mu }}\,\,{\bf{and}}\,\,{\bf{\tau }}\) based on all 30 observations.

b. Use the posterior distribution found in Example 8.6.2 on page 498 as if it were the prior distribution before observing the 20 observations listed in this problem. Use these 20 new observations to find the posterior distribution of \({\bf{\mu }}\,\,{\bf{and}}\,\,{\bf{\tau }}\)and compare the result to the answer to part (a).

Short Answer

Expert verified
  1. \({\mu _1} = 1.427,{\lambda _1} = 31,{\alpha _1} = 15.5,{\beta _1} = 1.1405\)
  2. \({\mu _1} = 1.872,{\lambda _1} = 41,{\alpha _1} = 82.5,{\beta _1} = 1.0839\)

Step by step solution

01

Given information

The 10 data points are: 0.86, 1.53, 1.57, 1.81, 0.99, 1.09, 1.29, 1.78, 1.29, 1.58.

The additional 20 data points are: 1.68, 1.9, 1.06, 1.3, 1.52, 1.74, 1.16, 1.49, 1.63, 1.99, 1.15, 1.33, 1.44, 2.01, 1.31, 1.46, 1.72, 1.25, 1.08, 1.25.

The prior in example 8.6.2 is \({\mu _0} = 1,{\lambda _0} = 1,{\alpha _0} = 0.5,{\beta _0} = 0.5\)

02

Define Normal-Gamma distribution

Let \(\mu \,\,{\rm{and}}\,\,\tau \) be random variables. Suppose that the conditional distribution of \(\mu \,\,{\rm{given}}\,\,\tau \) is the normal distribution with mean \({\mu _0}\) and precision \({\lambda _0}\tau \) .

Suppose also that the marginal distribution of \(\,\tau \) is the gamma distribution with parameters \({\alpha _0}\,\,{\rm{and}}\,\,\,{\beta _0}\).

Then we say that the joint distribution of\(\mu \,\,{\rm{and}}\,\,\,\tau \) is the normal-gamma distribution with hyperparameters \({\mu _0},{\lambda _0},{\alpha _0},{\beta _0}\).

03

(a) Define the posterior variables 

We know that,

\(\begin{align}{\mu _1} &= \frac{{{\lambda _0}{\mu _0} + n\overline {{x_n}} }}{{{\lambda _0} + n}}\\{\lambda _1} &= {\lambda _0} + n\\{\alpha _1} &= {\alpha _0} + \frac{n}{2}\\{\beta _1} &= {\beta _0} + \frac{{{s_n}^2}}{2} + \frac{{n{\lambda _0}{{\left( {\overline {{x_n}} - {\mu _0}} \right)}^2}}}{{2\left( {{\lambda _0} + n} \right)}}\end{align}\)

Also, the values of:

\(\begin{align}\overline {{x_n}} &= \frac{{0.86 + 1.53 + 1.57 + {\rm{ }} \ldots + 1.25 + {\rm{ }}1.08 + {\rm{ }}1.25}}{{30}}\\ &= 1.442\end{align}\)

\(\begin{align}{s_n}^2 &= \frac{{\sum\limits_{i = 1}^n {\left( {{x_i} - \overline {{x_n}} } \right)} }}{{n - 1}}\\ &= \frac{{2.67108}}{{29}}\\ &= 0.0921\end{align}\)

04

Substitute the values

\(\begin{align}{\mu _1} &= \frac{{1 \times 1 + 30 \times 1.442}}{{1 + 30}}\\ &= 1.427\\{\lambda _1} &= 1 + 30\\ &= 31\\{\alpha _1} &= 0.5 + \frac{{30}}{2}\\ &= 15.5\\{\beta _1} &= 1 + \frac{{0.0921}}{2} + \frac{{30 \times 1 \times {{\left( {1.442 - 1} \right)}^2}}}{{2\left( {1 + 30} \right)}}\\ &= 1.1405\end{align}\)

Therefore, the answer is: \({\mu _1} = 1.427,{\lambda _1} = 31,{\alpha _1} = 15.5,{\beta _1} = 1.1405\)

05

(b) Changing the prior distribution and recomputing the posterior distribution

Now,\({\mu _0} = 1.345,{\lambda _0} = 11,{\alpha _0} = 5.5,{\beta _0} = 1.0484\), \(\overline {{x_n}} = 1.442\), \({s_n}^2 = 0.0921\).

\(\begin{align}{\mu _1} &= \frac{{11 \times 1.345 + 30 \times 1.442}}{{1 + 30}}\\ &= 1.872\\{\lambda _1} &= 11 + 30\\ = 41\end{align}\)

\(\begin{align}{\alpha _1} &= 5.5 + \frac{{30}}{2}\\ &= 82.5\\{\beta _1} &= 1 + \frac{{0.0921}}{2} + \frac{{30 \times 11 \times {{\left( {1.442 - 1.345} \right)}^2}}}{{2\left( {11 + 30} \right)}}\\ &= 1.0839\end{align}\)

Therefore, the answer is: \({\mu _1} = 1.872,{\lambda _1} = 41,{\alpha _1} = 82.5,{\beta _1} = 1.0839\)

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Question:Consider an infinite sequence of Bernoulli trials for which the parameter p is unknown (0 <p< 1), and suppose that sampling is continued until exactly k successes have been obtained, where k is a fixed integer (k โ‰ฅ 2). Let N denote the total number of trials that are needed to obtain the k successes. Show that the estimator (k โˆ’ 1)/(N โˆ’ 1) is an unbiased estimator of p.

By using the table of the t distribution given in the back of this book, determine the value of the integral

\(\int\limits_{ - \infty }^{2.5} {\frac{{dx}}{{{{\left( {12 + {x^2}} \right)}^2}}}} \)

Question: Suppose a random variable X has the Poisson distribution with an unknown mean \({\bf{\lambda }}\) (\({\bf{\lambda }}\)>0). Find a statistic \({\bf{\delta }}\left( {\bf{X}} \right)\) that will be an unbiased estimator of \({{\bf{e}}^{\bf{\lambda }}}\).Hint: If \({\bf{E}}\left( {{\bf{\delta }}\left( {\bf{X}} \right)} \right){\bf{ = }}{{\bf{e}}^{\bf{\lambda }}}\) , then \(\sum\limits_{{\bf{x = 0}}}^\infty {\frac{{{\bf{\delta }}\left( {\bf{x}} \right){{\bf{e}}^{{\bf{ - \lambda }}}}{{\bf{\lambda }}^{\bf{x}}}}}{{{\bf{x!}}}}} = {{\bf{e}}^{\bf{\lambda }}}\)

Multiply both sides of this equation by \({{\bf{e}}^{\bf{\lambda }}}\)expanding the right side in a power series in \({\bf{\lambda }}\), and then equate the coefficients of \({{\bf{\lambda }}^{\bf{x}}}\) on both sides of the equation for x = 0, 1, 2, . . ..

At the end of Example 8.5.11, compute the probability that \(\left| {{{\bar X}_2} - \theta } \right| < 0.3\) given Z = 0.9. Why is it so large?

Question:Suppose that a random variable X has the Poisson distribution with unknown mean ฮป (ฮป > 0). Show that the only unbiased estimator of\({{\bf{e}}^{{\bf{ - 2\lambda }}}}\)is the estimator ฮด(X) such that ฮด(X) = 1 if X is an even integer and ฮด(X) = โˆ’1 if X is an odd integer.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free