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:00
For what value of x does 4x = (1/8) x + 5?
Answers: 1
question
Mathematics, 21.06.2019 21:00
Seattle, washington is known for being rainy. one day last month, 8 inches of rain fell in 1 1/2 hours. what us the rate of the rainfall expressed in ft per plzzz write a proportion i will give you 100 points
Answers: 1
question
Mathematics, 21.06.2019 22:20
The mean of 10 values is 19. if further 5 values areincluded the mean becomes 20. what is the meanthese five additional values? a) 10b) 15c) 11d) 22
Answers: 1
question
Mathematics, 21.06.2019 22:30
What is the name of a polygon that has four congruent sides and theses angle measures 60,120,60,120?
Answers: 1
You know the right answer?
Posterior predictive checks: Let's investigate the adequacy of the Pois- son model for the tumor cou...
Questions
question
Mathematics, 20.05.2021 23:00
question
Physics, 20.05.2021 23:00
question
Mathematics, 20.05.2021 23:00
question
Mathematics, 20.05.2021 23:00
question
Mathematics, 20.05.2021 23:00
Questions on the website: 13722362