a negative binomial distribution with parameters q and r. q is unkno vn. serve n weeks' worth of data, and the number of cases each week was y₁,

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

Y: 8 12 16 12 6 11 9 13 10 10 5 19 9 8 6 10 13 15 13 5 14 10 23 9 4 13 14 10 8 12 8 11 12 9 7

 

Suppose that the number of new casesolla medical condition each week can be modelled
using a negative binomial distribution with parameters q and r. q is unknown, while r
is known.
We observen weeks' worth of data. and the number of cases each week was y1,..,yn-
Yn.
(a) Show that a beta distribution provides a conjugate prior distribution for q, and
find the posterior distribution with such a prior.
Y1, ..., Yn. Assume that r is equal to 3.
(b) With a uniform prior distribution for q on the interval [0, 1], what is the posterior
distribution for q (including the numerical value of the parameters)?
(c) What is the posterior mean?
(d) Use R to find the posterior median and a 95% credible interval for q.
Transcribed Image Text:Suppose that the number of new casesolla medical condition each week can be modelled using a negative binomial distribution with parameters q and r. q is unknown, while r is known. We observen weeks' worth of data. and the number of cases each week was y1,..,yn- Yn. (a) Show that a beta distribution provides a conjugate prior distribution for q, and find the posterior distribution with such a prior. Y1, ..., Yn. Assume that r is equal to 3. (b) With a uniform prior distribution for q on the interval [0, 1], what is the posterior distribution for q (including the numerical value of the parameters)? (c) What is the posterior mean? (d) Use R to find the posterior median and a 95% credible interval for q.
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman