Question

Suppose that the number of defects on a roll of magnetic recording tape has a Poisson...

Suppose that the number of defects on a roll of magnetic recording tape has a Poisson distribution for which the mean λ is known to be either 1 or 5. Suppose the prior pmf for λ is: P[λ = 1] = 0.4 P[λ = 5] = 0.6 Suppose that we examine five tapes, and find that the number of defects are x1 = 3,x2 = 1,x3 = 4,x4 = 6 and x5 = 2. Show that the posterior distribution for λ is: P[λ = 1|¯ x] = 0.012 P[λ = 5|¯ x] = 0.988

0 0
Add a comment Improve this question Transcribed image text
Answer #1

la <- sum(log(dpois(c(3, 1, 4, 6, 2), 1)))
lb <- sum(log(dpois(c(3, 1, 4, 6, 2), 1.5)))
.4*exp(la) / (.4*exp(la) + .6*exp(lb))

.6*exp(lb) / (.4*exp(la) + .6*exp(lb))

> la <- sum(log (dpois (c(3, 1, 4, 6, 2), 1))) > lb <- sum (log(dpois (c(3, 1, 4, 6, 2), 1.5))) > .4*exp(la) / (.4*exp(la) +.

Add a comment
Know the answer?
Add Answer to:
Suppose that the number of defects on a roll of magnetic recording tape has a Poisson...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT