/*! 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} Q18E Question: Treat the posterior di... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Question: Treat the posterior distribution conditional on the first 10 observations found in Exercise 17 as a prior and then observe the 20 additional observations in Exercise 16. Find the posterior distribution of the parameters after observing the data and compare it to the distribution found in part (b) of Exercise 16.

Short Answer

Expert verified

\({\mu _1} = 2.06,{\lambda _1} = 30,{\alpha _1} = 14.5,{\beta _1} = 4.0730\)

Step by step solution

01

Given information

The posterior distribution conditional on the first 10 observations that are to be treated as prior are: \({\mu _0} = 1.379,{\lambda _0} = 10,{\alpha _0} = 4.5,{\beta _0} = 0.4831\)

The 20 observations 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.

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 \,\,and\,\,\tau \) is the normal-gamma distribution with hyperparameters \({\mu _0},{\lambda _0},{\alpha _0},{\beta _0}\).

03

Define the posterior variables

We know that,

\(\begin{aligned}{l}{\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{aligned}\)

Also, the values of:

\(\begin{aligned}{c}\overline {{x_n}} &= \frac{{1.68 + 1.9 + 1.06 + {\rm{ }} \ldots + 1.25 + {\rm{ }}1.08 + {\rm{ }}1.25}}{{20}}\\ &= 1.4735\end{aligned}\)

\(\begin{aligned}{c}{s_n}^2 &= \frac{{\sum\limits_{i = 1}^n {{{\left( {{x_i} - \overline {{x_n}} } \right)}^2}} }}{{n - 1}}\\ &= \frac{{1.64525}}{{19}}\\ &= 0.086592\end{aligned}\)

04

Substitute the values

\(\begin{aligned}{c}{\mu _1} &= \frac{{10 \times 1.379 + 20 \times 1.4735}}{{1 + 20}}\\ &= 2.06\\{\lambda _1} &= 10 + 20\\ &= 30\end{aligned}\)

\(\begin{aligned}{c}{\alpha _1} &= 4.5 + \frac{{20}}{2}\\ &= 14.5\\{\beta _1} &= 1 + \frac{{0.0865}}{2} + \frac{{20 \times 10 \times {{\left( {1.4735 - 1.379} \right)}^2}}}{{2\left( {10 + 20} \right)}}\\ &= 4.0730\end{aligned}\)

Therefore, the answer is: \({\mu _1} = 2.06,{\lambda _1} = 30,{\alpha _1} = 14.5,{\beta _1} = 4.0730\)

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

Most of the calculation in Example 3.8.4 is quite general.Suppose that X has a continuous distribution withp.d.f. \({\bf{f}}\) . Let\({\bf{Y = }}{{\bf{X}}^{\bf{2}}}\), and show that the p.d.f. of Y is

\({\bf{g}}\left( {\bf{y}} \right){\bf{ = }}\frac{{\bf{1}}}{{{\bf{2}}{{\bf{y}}^{\frac{{\bf{1}}}{{\bf{2}}}}}}}\left[ {{\bf{f}}\left( {{{\bf{y}}^{\frac{{\bf{1}}}{{\bf{2}}}}}} \right){\bf{ + f}}\left( {{\bf{ - }}{{\bf{y}}^{\frac{{\bf{1}}}{{\bf{2}}}}}} \right)} \right]\)

Suppose that X is a random variable for which\({\bf{P}}\left( {{\bf{X}} \ge {\bf{0}}} \right){\bf{ = 1}}\,{\bf{and}}\,{\bf{P}}\left( {{\bf{X}} \ge {\bf{10}}} \right){\bf{ = }}\frac{{\bf{1}}}{{\bf{5}}}\) .

Prove that \({\bf{E}}\left( {\bf{X}} \right) \ge {\bf{2}}\) .

Use the data on dishwasher shipment in Table \({\bf{11}}.{\bf{13}}\;\)on page \({\bf{744}}\) .suppose that we wish to fit a multiple linear regression model for predicting dishwasher shipment from time (the year 1960) and private residential investment. Suppose that the parameters have the improper prior proportional to \({\raise0.7ex\hbox{\(1\)} \!\mathord{\left/ {\vphantom {1 \tau }}\right.\\} \!\lower0.7ex\hbox{\(\tau \)}}\) the use of the Gibbs sampling algorithm to obtain a sample of size 10,000 from the joint posterior distribution of the parameters.

a. Let \({\beta _{1\,}}\) be the coefficient of time. Draw a plot of sample c.d.f of \(\left| {{\beta _{1\,}}} \right|\) using your posterior sample.

b. We are interested in the values of your posterior distribution 1986.

i. Draw a histogram of the values \({{\bf{\beta }}_{{\bf{0}}\,}}{\bf{ + 26}}{{\bf{\beta }}_{{\bf{1}}\,}}{\bf{ + 67}}{\bf{.2}}{{\bf{\beta }}_{{\bf{2}}\,}}\) from your posterior distribution.

ii. For each of your simulated parameters, simulate a dishwasher sales figure for

1986 (time = 26 and private residential investment = 67.2). compute a 90 percent prediction interval from the simulated values and compare it to the interval found in Example 11.5.7.

iii. Draw a histogram of the simulated 1986 sales figures, and compare it to the histogram in part I. Can you explain why one sample seems to have a more considerable variance than the other?

Suppose that a committee of 12 people is selected in a random manner from a group of 100 people. Determine the probability that two particular people A and B will both be selected.

Suppose that X is a random variable for which \({\bf{E}}\left( {\bf{X}} \right){\bf{ = 10}}\) ,\({\bf{P}}\left( {{\bf{X}} \le {\bf{7}}} \right){\bf{ = 0}}{\bf{.2}}\,\,{\bf{and}}\,{\bf{P}}\left( {{\bf{X}} \ge {\bf{13}}} \right){\bf{ = 0}}{\bf{.3}}\) .Prove that,\({\bf{Var}}\left( {\bf{X}} \right) \ge \frac{{\bf{9}}}{{\bf{2}}}\) .

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.