/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q 16E The study on acid concentration ... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

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 91Ó°ÊÓ!

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

In the situation of Exercise 9, suppose that a prior distribution is used forθwith p.d.f.ξ(θ)=0.1 exp(−0.1θ)forθ >0. (This is the exponential distribution with parameter 0.1.)

  1. Prove that the posterior p.d.f. ofθgiven the data observed in Exercise 9 is

\({\bf{\xi }}\left( {{\bf{\theta }}\left| {\bf{x}} \right.} \right){\bf{ = }}\left\{ \begin{align}{l}{\bf{4}}{\bf{.122exp}}\left( {{\bf{ - 0}}{\bf{.1\theta }}} \right)\;{\bf{if}}\;{\bf{4}}{\bf{.8 < \theta < 5}}{\bf{.2}}\\{\bf{0}}\;{\bf{otherwise}}\end{align} \right.\)

  1. Calculate the posterior probability \(\left| {{\bf{\theta - }}{{{\bf{\bar X}}}_{\bf{2}}}} \right|{\bf{ < 0}}{\bf{.1}}\), which \({{\bf{\bar X}}_{\bf{2}}}\)is the observed average of the datavalues.
  2. Calculate the posterior probability thatθis in the confidence interval found in part (a) of Exercise 9.
  3. Can you explain why the answer to part (b) is so close to the answer to part (e) of Exercise 9? Hint:Compare the posterior p.d.f. in part (a) to the function in Eq. (8.5.15).

Using the prior and data in the numerical example on nursing homes in New Mexico in this section, find (a) the shortest possible interval such that the posterior probability that \({\bf{\mu }}\) lies in the interval is 0.90, and (b) the shortest possible confidence interval for \({\bf{\mu }}\) which the confidence coefficient is 0.90.

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}}}} \)

In the June 1986 issue of Consumer Reports, some data on the calorie content of beef hot dogs is given. Here are the numbers of calories in 20 different hot dog brands:

186,181,176,149,184,190,158,139,175,148,

152,111,141,153,190,157,131,149,135,132.

Assume that these numbers are the observed values from a random sample of twenty independent standard random variables with meanμand variance \({{\bf{\sigma }}^{\bf{2}}}\), both unknown. Find a 90% confidence interval for the mean number of caloriesμ.

Suppose that X1,…â¶Ä¦.,Xn form a random sample from the Bernoulli distribution with unknown parameter p. Show that the variance of every unbiased estimator of (1-p)2 must be at least 4p(1-p)3/n.

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.