Question 5 We have observed data y = {yij: i= 1,...,n, j = 1,...,m;}. Each yi; is the number of times a certain type of machine needs to be repaired during length of time Tij, where j = 1,...,m; are the machines in factory i, for i = 1,...,n, with n ≥ 2. A hierarchical model is used to model the data. We assume that Yij Poisson (TijMi). μi is the repair rate for factory i, which varies between factories according to a gamma distribution Mi~ Gamma (a,ß), i = 1,..., n. The parameters a and 3 are given prior distributions, p(a) and p(B). Suppose that we have generated a sample of size M from the joint posterior distribution p1,...,n, a, ß y). (a) Explain how to estimate the following using the joint posterior sample: (i) The posterior mean of a. a (ii) The posterior median of v = B (iii) A 95% equal tail credible interval for v. (b) Explain how to generate a sample from the posterior predictive distribution of the number of repairs during time U for a machine not in our dataset, in each of the following two cases: (i) If the factory containing this machine is in our dataset. (ii) If the factory is not in our dataset. Also explain how to estimate the posterior predictive probability that such a machine will not need any repairs during time U.
Question 5 We have observed data y = {yij: i= 1,...,n, j = 1,...,m;}. Each yi; is the number of times a certain type of machine needs to be repaired during length of time Tij, where j = 1,...,m; are the machines in factory i, for i = 1,...,n, with n ≥ 2. A hierarchical model is used to model the data. We assume that Yij Poisson (TijMi). μi is the repair rate for factory i, which varies between factories according to a gamma distribution Mi~ Gamma (a,ß), i = 1,..., n. The parameters a and 3 are given prior distributions, p(a) and p(B). Suppose that we have generated a sample of size M from the joint posterior distribution p1,...,n, a, ß y). (a) Explain how to estimate the following using the joint posterior sample: (i) The posterior mean of a. a (ii) The posterior median of v = B (iii) A 95% equal tail credible interval for v. (b) Explain how to generate a sample from the posterior predictive distribution of the number of repairs during time U for a machine not in our dataset, in each of the following two cases: (i) If the factory containing this machine is in our dataset. (ii) If the factory is not in our dataset. Also explain how to estimate the posterior predictive probability that such a machine will not need any repairs during time U.
Linear Algebra: A Modern Introduction
4th Edition
ISBN:9781285463247
Author:David Poole
Publisher:David Poole
Chapter7: Distance And Approximation
Section7.3: Least Squares Approximation
Problem 31EQ
Related questions
Question
Can you answer all parts please ?
![Question 5
We have observed data
y = {yij: i= 1,...,n, j = 1,...,m;}.
Each yi; is the number of times a certain type of machine needs to be repaired during length of
time Tij, where j = 1,...,m; are the machines in factory i, for i = 1,...,n, with n ≥ 2.
A hierarchical model is used to model the data. We assume that
Yij Poisson (TijMi).
μi is the repair rate for factory i, which varies between factories according to a gamma
distribution
Mi~ Gamma (a,ß), i = 1,..., n.
The parameters a and 3 are given prior distributions, p(a) and p(B).
Suppose that we have generated a sample of size M from the joint posterior distribution
p1,...,n, a, ß y).
(a) Explain how to estimate the following using the joint posterior sample:
(i) The posterior mean of a.
a
(ii) The posterior median of v =
B
(iii) A 95% equal tail credible interval for v.
(b) Explain how to generate a sample from the posterior predictive distribution of the
number of repairs during time U for a machine not in our dataset, in each of the
following two cases:
(i) If the factory containing this machine is in our dataset.
(ii) If the factory is not in our dataset. Also explain how to estimate the posterior
predictive probability that such a machine will not need any repairs during time U.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F340eecf6-2dbe-4964-aead-4c55d9744b59%2F2aaa8fcd-b9d8-4d5a-9695-ca850e5757fb%2Fxl51qrv_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Question 5
We have observed data
y = {yij: i= 1,...,n, j = 1,...,m;}.
Each yi; is the number of times a certain type of machine needs to be repaired during length of
time Tij, where j = 1,...,m; are the machines in factory i, for i = 1,...,n, with n ≥ 2.
A hierarchical model is used to model the data. We assume that
Yij Poisson (TijMi).
μi is the repair rate for factory i, which varies between factories according to a gamma
distribution
Mi~ Gamma (a,ß), i = 1,..., n.
The parameters a and 3 are given prior distributions, p(a) and p(B).
Suppose that we have generated a sample of size M from the joint posterior distribution
p1,...,n, a, ß y).
(a) Explain how to estimate the following using the joint posterior sample:
(i) The posterior mean of a.
a
(ii) The posterior median of v =
B
(iii) A 95% equal tail credible interval for v.
(b) Explain how to generate a sample from the posterior predictive distribution of the
number of repairs during time U for a machine not in our dataset, in each of the
following two cases:
(i) If the factory containing this machine is in our dataset.
(ii) If the factory is not in our dataset. Also explain how to estimate the posterior
predictive probability that such a machine will not need any repairs during time U.
AI-Generated Solution
Unlock instant AI solutions
Tap the button
to generate a solution
Recommended textbooks for you
![Linear Algebra: A Modern Introduction](https://www.bartleby.com/isbn_cover_images/9781285463247/9781285463247_smallCoverImage.gif)
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
![Glencoe Algebra 1, Student Edition, 9780079039897…](https://www.bartleby.com/isbn_cover_images/9780079039897/9780079039897_smallCoverImage.jpg)
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
![Linear Algebra: A Modern Introduction](https://www.bartleby.com/isbn_cover_images/9781285463247/9781285463247_smallCoverImage.gif)
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
![Glencoe Algebra 1, Student Edition, 9780079039897…](https://www.bartleby.com/isbn_cover_images/9780079039897/9780079039897_smallCoverImage.jpg)
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
![Mathematics For Machine Technology](https://www.bartleby.com/isbn_cover_images/9781337798310/9781337798310_smallCoverImage.jpg)
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
![Big Ideas Math A Bridge To Success Algebra 1: Stu…](https://www.bartleby.com/isbn_cover_images/9781680331141/9781680331141_smallCoverImage.jpg)
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt