Question
The number of defects in an iron casting can be assumed to follow a Poisson distribution with mean . A quality engineer inspected nine castings
The number of defects in an iron casting can be assumed to follow a Poisson distribution with mean θ. A quality engineer inspected nine castings and observed the following number of defects in them: 0, 2, 2, 3, 3, 1, 2, 1, 1. Assume that θ has a prior distribution Gamma(2, b), where the hyperparameter b is assumed to have a distribution Exp(1).
Use Gibbs sampling to sample from the posterior distribution of θ (generate 100,000 samples and use 1,000 samples as burn-in) and answer the following: 1. Plot the posterior density of θ. 2. Find the posterior mean of θ. 3. Find 95% equitable credible interval of θ.
Note: the density of a Gamma(a, b) is given by ba/Γ(a)xa−1 e −bx and the density of Exp(λ) is given by λe−λx.
Step by Step Solution
3.47 Rating (150 Votes )
There are 3 Steps involved in it
Step: 1
Pesles...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Probability & Statistics For Engineers & Scientists
Authors: Ronald E. Walpole, Raymond H. Myers, Sharon L. Myers, Keying
7th Edition
9789813131279, 130415294, 9813131276, 978-0130415295
Students also viewed these Accounting questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App