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 17:00
Idont understand math at all! : o( use this scenario to answer the remaining questions: brenton purchased a new bedroom set for $4,500.00. he lives in arizona and pays a 8.75% sales tax. if he made a 50% down payment and financed the rest, what amount did he finance? what is the total sales tax brenton will pay? enter your answer in currency format, round to the nearest cent. what was brenton's total amount financed? enter your answer in currency format, round to the nearest cent.
Answers: 3
question
Mathematics, 21.06.2019 18:30
41/17 as a decimal rounded to the nearest hundredth
Answers: 1
question
Mathematics, 21.06.2019 19:10
1jessica's home town is a mid-sized city experiencing a decline in population. the following graph models the estimated population if the decline continues at the same rate. select the most appropriate unit for the measure of time that the graph represents. a. years b. hours c. days d. weeks
Answers: 2
question
Mathematics, 21.06.2019 19:50
A3-dimensional figure has a square base and 4 lateral faces that meet at a point. explain the difference between the cross sections when a slice is made perpendicular to the base through the vertex, and when a slice is made perpendicular to the base and not through the vertex
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
Mathematics, 13.11.2020 03:20
question
English, 13.11.2020 03:20
question
Biology, 13.11.2020 03:20
question
Mathematics, 13.11.2020 03:20
question
Mathematics, 13.11.2020 03:20
question
Computers and Technology, 13.11.2020 03:20
question
Social Studies, 13.11.2020 03:20
Questions on the website: 13722360