subject
Mathematics, 21.02.2020 18:02 jayzie1728

Posterior predictive checks: Let's investigate the adequacy of the Pois- son model for the tumor count data. Following the example in Section 4.4, generate posterior predictive datasets y(1) . . . , y(1000). Each ) is a sample of size nA = 10 from the Poisson distribution with parameter θ , s itself a sample from the posterior distribution p(9alya), and y A s the observed data

a) For each s, let t(o) be the sample average of the 10 values of divided by the sample standard deviation of y. Make a histogram of t and compare to the observed value of this statistic. Based on this statistic, assess the fit of the Poisson model for these data.
b) Repeat the above goodness of fit evaluation for the data in population For each s E1,. , S, 1. sample θ(s) ~ p(AY-yobs) 2. sample Y(s)-( (s), . . . ,Vis))-1.1.d. p(y|θ(s)) 3, compute t(s) = t(Y(s)) a<-2; b<-1 t .mK-NULL for (s in 1:10000) thetal<-rgamma (1, a+syl, b+n1) y1.mc-rpois (nl, thetal) t .mo-c (t. mc , sum (yl. mc==2)/sum (y1.mc= = 1)) In this Monte Carlo sampling scheme, 10(1). . . , θ(s)} are samples from the posterior distribution of θ; (y",..., Y are posterior predictive datasets, each of size n; (t),...,t(S) are samples from the posterior predictive distribution of t(Y)

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 16:30
What is the first step of an indirect proof of a number that is divisible by two
Answers: 2
question
Mathematics, 21.06.2019 17:00
The perimeter of a movie screen is 54 meters. the screen is 18 meters wide. how tall is it?
Answers: 1
question
Mathematics, 21.06.2019 19:30
Find the actual dimensions of the box. the side length are in meters and integers. the surface area of the box is 104 m2 and volume of the box is 60 m3.
Answers: 1
question
Mathematics, 21.06.2019 20:00
Write the point-slope form of the line passing through (2, -12) and parallel to y=3x.
Answers: 2
You know the right answer?
Posterior predictive checks: Let's investigate the adequacy of the Pois- son model for the tumor cou...
Questions
question
Health, 27.07.2019 21:10
question
Biology, 27.07.2019 21:20
question
English, 27.07.2019 21:20
Questions on the website: 13722363