Docsity

Bayesian Analysis of Seizure Data in Epilepsy Patients - Prof. Mary Kathryn Cowles, Exams of Statistics

Toggle sidebar
bg1
Name: -------------------------------------------
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 same d rug to control
their seizures. They have been on the drug long enough that 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 ihas in month
j, where igoes from 1 to 4 and jgoes from 1 to 3.
The neurologist believes that each patient has a true mean number of seizures per month
θi, and that the number of seizures that each patient has in a given month is a draw from
a Poisson distribution with parameter θi. That is,
xi,j|θi∼P oisson(θi), i = 1, . . . , 4, j = 1,...,3,
and the xi,js are considered conditionally indep endent given θi.
Furthermore, she believes that, although the θis are different for different patients, they are
similar, and that that similarity can be expressed by saying that all the θis are like draws
from a common Gamma density. That is:
θi|α, β ∼Gamma(α, β), i = 1,...,4
Finally, she believes that the following prior densities are appropriate for the parameters α
and β:
α∼Exponential(0.1)
β∼Gamma(0.1,1)
The neurologist carries out a Bayesian analysis to learn about each individual patient’s mean
parameter θiand about the density from which the θis are drawn. She uses WinBUGS to
run three MCMC chains using different sets of initial values. C ode, plots, and the table of
node statistics from the WinBUGS analysis are attached.
1
1. Draw a directed graph of the model.
2. According to your directed graph, which model quantities will appear in the full
conditional density of α? You do not need to derive the form of the full conditional
density; just name the quantities that will appear in it.
2
pf2

Partial preview of the text

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

Name: -------------------------------------------

Bayesian Statistics

, 22S:

PRACTICE PROBLEMS for Midterm 2, 2008

Midterm 2, 2007

A neurologist has four patients with epilepsy, all of whom are taking the same drug to controltheir seizures. They have been on the drug long enough that their pattern of seizures hasstabilized.The neurologist asks each patient to keep track of the number of seizures he or she has ineach of three months. Let

x

i,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.

The neurologist believes that each patient has a true mean number of seizures per month θ

i

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

a Poisson distribution with parameter

θ

i

. That is,

x

i,j

θ

i

P oisson

θ

i

i

, j

and the

x

i,j

s are considered conditionally independent given

θ

i

Furthermore, she believes that, although the

θ

i

s are different for different patients, they are

similar, and that that similarity can be expressed by saying that all the

θ

i

s are like draws

from a common Gamma density. That is:

θ

i

α, β

Gamma

α, β

i

Finally, she believes that the following prior densities are appropriate for the parameters

α

and

β

α

Exponential

β

Gamma

The neurologist carries out a Bayesian analysis to learn about each individual patient’s meanparameter

θ

i

and about the density from which the

θ

i

s are drawn. She uses WinBUGS to

run three MCMC chains using different sets of initial values. Code, plots, and the table ofnode statistics from the WinBUGS analysis are attached.

  1. Draw a directed graph of the model. 2. According to your directed graph, which model quantities will appear in the full

conditional density of

α

? You do

not

need to derive the form of the full conditional

density; just name the quantities that will appear in it.

  1. Circle all of the true statements in the list below.

(a) All of the

x

i,j

s for all patients and all months are treated as exchangeable in this

model.

(b)

x

2

,

1

x

2

,

2

and

x

2

,

3

are considered exchangeable in this model.

(c) All the

θ

i

s are treated as exchangeable in this model.

(d) None of the above.

  1. For the parameter

α

, the autocorrelation between values drawn from the MCMC

samplers 5 iterations apart is (circle the

one

best answer):

(a) close to 0 (b) close to 0.

(c) close to 1 (d) impossible to estimate from output provided

  1. How many iterations do the Gelman-Rubin plot and table for

α

suggest should be

discarded as burn-in? Give a rough numeric answer and explain in one or two sentenceshow you chose it.

  1. What is the 95% credible set for

θ

2

(numeric answer)?

  1. Circle all of the following statements that are true regarding the credible set in the

previous question.

(a) Using different prior densities for

α

and

β

could have changed the endpoints of

the credible set for

θ

2

(b) For the neurologist, there is 95% probability that patient number 2’s true mean

rate of seizures per month lies in this interval.

(c) In 95% of all possible months, the number of seizures that patient 2 has will lie

in this interval.

(d) If the neurologist ran her WinBUGS samplers for an addition 5000 iterations,

the endpoints of the credible set would be likely to change a little bit but notsubstantially.

  1. Fill in the table below.

Identify each of the expressions in the first column as one

of the following types:

prior, joint posterior, marginal posterior, or full conditional

density. Also indicate with “yes” or “no” whether useful Bayesian inference might bebased on it.

Density

——— Density Type ———-

Useful for inference?

p

θ

1

θ

2

,... , θ

4

, α, β,

x

p

θ

1

,... , θ

4

, α, β

x

p

α

p

θ

1

x

  1. Running more than one MCMC chain from different initial values (circle all that

apply):

(a) helps locate all modes in the posterior density (b) reduces autocorrelation in the output from each chain

(c) enables the use of the BGR diagnostic in WinBUGS (d) makes trace plots more helpful in indicating convergence failure

(e) shrinks the estimates of posterior standard deviations

  1. Suppose the neurologist had included only patients 1, 2, and 3 in her study, but had

kept all other aspects of the analysis the same. Would you expect her to obtain thesame posterior means and standard deviations for

θ

1

θ

2

, and

θ

3

as she obtained when

all 4 patients were in the analysis? Explain in one or two sentences why or why not.