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:10
Which expression gives the area of the triangle shown below
Answers: 1
question
Mathematics, 21.06.2019 19:00
Aprojectile is thrown upward so that its distance above the ground after t seconds is given by the function h(t) = -16t2 + 704t. after how many seconds does the projectile take to reach its maximum height?
Answers: 1
question
Mathematics, 21.06.2019 21:30
Answer! if you don’t mind, can you explain
Answers: 1
question
Mathematics, 21.06.2019 23:00
Mrs.sling bought a pound of green beans for $1.80. how much will mrs.tennison pay for 3 1/2 pounds of green beans?
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, 21.07.2019 04:23
Questions on the website: 13722363