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
icon
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.
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
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt