subject
Mathematics, 14.12.2019 02:31 sullydai6510

Suppose that x is the number of pregnant women arriving at a hospital at hayward, ca, to deliver their babies during a given month. the discrete count nature of the data and its natural interpretation as an arrival rate suggest adopting a poisson likelihood ,
f(xi0)=(e^-θ.θ^x)/x! , x=0, 1,2,…, θ> 0

to implement a bayesian analysis, a prior distribution is required for θ having support on the positive real line. a reasonable flexible choice is provided by the gamma distribution ,
fθ (θ)= (θ^α-1.e^θ/β)/ t(α)β^α , θ> 0, α > 0, β > 0,
or saying θ ~ garnma(α, β), where the values of α and β are known

(1) using bayes theorem to obtain the posterior density function of 0 (hint: use the proportional argument and identify the corresponding distributional kernel function
(2) (yes/no question) based on (1), is the gamma the conjugate family for the poisson likelihood?
(3) suppose we observe 42 moms arriving at our hospital to deliver babies during de- cember 2017. suppose we adopt the prior as gamma(5,6), which has mean 5(6)-30 and variance 5(6*6)-180, reflecting the hospital's totals for the past 12 months, which have been slightly less busy on average. use r, plot the posterior and prior density functions in one figure together
(4) based on (3), calculate the exact" 95% equal tail and highest posterior credible intervals for the parameter θ
(5) based on (3), use r programs "jags" and "rjags" to obtain the 95% equal tail and highest posterior density (hpd) credible intervals for the parameter θ using the simulated samples generated by gibbs sampler, a basic mcmc algorithm. (set up the model tuning parameters, e. g., burn in period, iterations by yourself and attach your r-code at the end of your homework.)

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 16:00
On a piece of paper graph f(x)=5•(0.4)^x
Answers: 1
question
Mathematics, 21.06.2019 20:30
Diane’s bank is offering 5% interest, compounded monthly. if diane invests $10,500 and wants $20,000 when she withdrawals, how long should she keep her money in for? round to the nearest tenth of a year.
Answers: 2
question
Mathematics, 21.06.2019 22:00
Question 10 of 211 pointuse the elimination method to solve the system of equations. choose thecorrect ordered pair.10x +2y = 643x - 4y = -36a. (4,12)b. (-3, 11)c. (2,10)d. (-5, 8)
Answers: 1
question
Mathematics, 21.06.2019 22:00
I’m confused on how to work the pie charts
Answers: 2
You know the right answer?
Suppose that x is the number of pregnant women arriving at a hospital at hayward, ca, to deliver the...
Questions