

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Name: 1. Draw a directed graph of the model
Bayesian Statistics, 22S: 138 PRACTICE PROBLEMS for Midterm 2, 2008 Midterm 2, 2007
A neurologist has four patients with epilepsy, all of whom are taking the sallle drug to control their seizures. They have been on the drug long enough tha.t their pattern of seizures has stabilized.
each of three months. Let Xi,j represent the number of seizures that patient i has in month j, where i goes from 1 to 4 and j goes from 1 to 3.
Th~ neurologL'it b~liev~s that each pati~nt has a tru~ mean numb~r of s~izures p~r month
a Poisson distribution with parameter (J1' That is,
and the Xi.jS are considered conditionally independent given 8i.
Furthermore, she believes that, although the e,s are different for different patients, they are
from a common Gamma density. That is:
o,lu,(:i ~ Gomma(u,(:i), i ~ 1, ... ,
Finally, she believes that the following prior densities are appropriate for the parameters a and (3:
(3 ~ Gamma(O.I,I)
~ .)~ t:
J' or (^) pu. ,,,
The neurologist carries out a Bayesian analysis to learn about each individual patient's mean parameter e, and about the density frolll which the e,s are drawn. She uses WinBUGS to run three MCMC chains using different sets of initial values. Code, plots, and the table of (^) 2. According to your d~ graph, which model quantiti~s will app~ar in th~ full node st.atistics from the WinBUGS alIalysis are attached. (^) conditional density 6f 0.7 You do not need to derive the form of the full conditional density; just nam~ t1te--qu~ntities that will appear in it.
J
~ ~ .~
~ excnangeable In thIS ...,
samplers 5 iterations apart is (circle the one best answer): (^) (d) If the neurologist ran her WiuBUGS samplers for an addition 5000 iterations;
(a) close to 0 the^ endpoints^ of^ the^ credible^ set^ would^ be^ likely^ to^ change a^ little^ bit^ but^ not suhstantiallv. Gb[close to OD (c) close to 1. 8.^ Fill in^ the^ table^ below.^ Identify each^ of^ the^ expressions in^ thc^ first^ column^ as onc of the following types: prior, joint posterior, marginal posterior, or full conditional (d) impossible to estimate from output provided (^) density. Also indicate with "yes" or "no" whether useful Bayesian inference might be
discarded as burn-in? Give a rough numenc answer an • Density I --- Density Type --- I Useful for how you chose it. ~ ~ ~ ..J.o inference? p(1I 1 11l2 , ... ,1I 4 ,<>,fJ,x) f,,,,11 ~ (",.1 l'\A), p(8 (^) 1 , .. 84,afJlx) ,)OIVl'f T?V;;'-~'- P""'·!.>-{ ~~ ~ "kALtt- r..,~ pta)^ ffr^ ,or^ .Jr~ f.olt:~fo·' [</. .1 ~4 ~~~ p(8 1 Ix) ""'~I; '"VI IN:" ~('.. .......
"i;1;;i'''~'''"dfu'~_') ~,~ ~ -- reduces autocorrelation in the output from each chain cl enables the use of the BGR diagnostic in WinBU""" (I.
2 )'i'p0 ~~~ (^) makes trace plots more helpful In mdlcatmg converge~ f~l~~ shrinks the estimates of posterior stM.dard deviations
YLo. ~~~~-J
~ lffv _riN-{t r;)?_ ~1 {J.)&~, .:..L~~~ ~~~~r