Docsity

Bayesian Analysis of Epilepsy Patients' Seizure Rates - Prof. Mary Kathryn Cowles, Exams of Statistics

Toggle sidebar
bg1
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.
The
neurologist asks each
patient
to keep
track
of
the
number
of
seizures he
or
she
has
in
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
B
i , and that the number of seizures that each patient has
in
a given month
is
a draw
from
a Poisson distribution with parameter
(J1'
That is,
Xi,j/8
j
.-v
Poi.'iSan(Oi),
i::::
1,
...•
4, j = 1,
...
,3,
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
similar, and that that similarity can be expressed by saying that all
th~
Bis
ar~
like draws
from
a common Gamma density. That
is:
o,lu,(:i
~
Gomma(u,(:i),
i
~
1,
...
,4
Finally, she believes that the following prior densities
are
appropriate
for
the parameters a
and
(3:
u
~
Exponential(O.I)
(3
~
Gamma(O.I,I)
~
.)~
t:3
J'
pu.
or
,,,
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
f!<.
,'#1
~
tJ:
A
~
~
i
~
~
.~
0.1
t;
~,~k
------
..
pf2

Partial preview of the text

Download Bayesian Analysis of Epilepsy Patients' Seizure Rates - Prof. Mary Kathryn Cowles and more Exams Statistics in PDF only on Docsity!

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.

The neurologist asks each patient to keep track of the number of seizures he or she has in

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

Bi , and that the number of seizures that each patient has in a given month is a draw from

a Poisson distribution with parameter (J1' That is,

Xi,j/8 j .-v Poi.'iSan(Oi), i:::: 1, ...• 4, j = 1, ... ,3,

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

similar, and that that similarity can be expressed by saying that all th~ Bis ar~ like draws

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:

u ~ Exponential(O.I)

(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

f!<. ,'#1 ~ tJ: iA ~ ~

~ ~ .~

0.1 t; ~,~k

~ excnangeable In thIS ...,

  1. Circle all of the true statements in the list below. 7. Circle all of the following statemeuts that are true regarding the credible set in the previous quesH (a) All of the x'Js for all patients and all months are treated as exchangeable in this IDU (^) (a) Usin~ di;crcnt prior dcnsitics for a and fJ could have changed the endPoint~'~f'-"l the credible set for 112. j/ (^) For the neurol~~t, there is 95% pr~bability that pati~nt number 2's true mean rate of seizures per month lies in this interval. (c) ~% of all possible months, the number of seizures that patient 2 has \illlie

4. For the parameter a, the autocorrelation between values drawn from the MCMC interval.

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

I Rubin plot and table for a suggest should be^ based^ all^ it.

5. How many iterations do the Ge man-.. d explain ill aue or two sentenCQ2t€S

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:" ~('.. .......

  1. Ilnnninp; more thon one MCMC elll.m !rom different .mtial volues (cucle all that -~~~~~~-L^ apply):

"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

  1. Suppose the neurologist had included ollly patiellts 1, 2, and 3 ill her study, but had kept all other aspects of the analysis the same. Would you expect her to obtain the ~1~· (^) same posterior Illeans and standard deviations for lh, (}2, and (J:i as she obtained when all 4 patients were in the analysis'! Explain in Due or two sentences why or why not.

YLo. ~~~~-J

 ~ lffv _riN-{t r;)?_ ~1 {J.)&~, .:..L~~~ ~~~~r