You are on page 1of 2

Problem 6.

4 introduces data on coal-mining disasters from


1851 to 1962. For these data, assume...

Problem 6.4 introduces data on coal-mining disasters from 1851 to 1962. For these data,
assume the model

Problem 6.4 introduces data on coal-mining disasters from 1851 to 1962. For these data,
assume the model

Assume ?i|? ? Gamma(3, ?) for i = 1, 2, where ? ? Gamma(10, 10), and assume ? follows a
discrete uniform distribution over {1,..., 111}. The goal of this problem is to estimate the
posterior distribution of the model parameters via a Gibbs sampler.

a. Derive the conditional distributions necessary to carry out Gibbs sampling for the change-
point model.

b. Implement the Gibbs sampler. Use a suite of convergence diagnostics to evaluate the
convergence and mixing of your sampler.

c. Construct density histograms and a table of summary statistics for the approximate posterior
distributions of ?, ?1, and ?2. Are symmetric HPD intervals appropriate for all of these
parameters?

d. Interpret the results in the context of the problem.

Problem 6.4

Figure 6.12 shows some data on the number of coal-mining disasters per year between 1851
and 1962, available from the website for this book. These data originally appeared in [434] and
were corrected in [349]. The form of the data we consider is given in [91]. Other analyses of
these data include [445, 525].

The rate of accidents per year appears to decrease around 1900, so we consider a change-
point model for these data. Let j = 1 in 1851, and index each year thereafter, so j = 112 in 1962.
Let Xj be the number of accidents in year j, with X1,...,X? ? i.i.d. Poisson(?1) and X?+1,...,X112 ?
i.i.d. Poisson(?2). Thus the change-point occurs after the ?th year in the series, where ? ? {1,...,
111}. This model has parameters ?, ?1, and ?2. Below are three sets of priors for a Bayesian
analysis of this model. In each case, consider sampling from the priors as the first step of
1/2
applying the SIR algorithm for simulating from the posterior for the model parameters. Of
primary interest is inference about ?.

a. Assume a discrete uniform prior for ? on {1, 2,..., 111}, and priors ?i|ai ? Gamma(3, ai) and ai
? Gamma(10, 10) independently for i = 1, 2. Using the SIR approach, estimate the posterior
mean for ?, and provide a histogram and a credible interval for ?. Provide similar information for
estimating ?1 and ?2. Make a scatterplot of ?1 against ?2 for the initial SIR sample, highlighting
the points resampled at the second stage of SIR. Also report your initial and resampling sample
sizes, the number of unique points and highest observed frequency in your resample, and a
measure of the effective sample size for importance sampling in this case. Discuss your results.

b. Assume that ?2 = ??1. Use the same discrete uniform prior for ? and ?1|a ? Gamma(3, a), a ?
Gamma(10, 10), and log ? ? Unif(log 1/8, log 2). Provide the same results listed in part (a), and
discuss your results.

c. Markov chain Monte Carlo approaches (see Chapter 7) are often applied in the analysis of
these data. A set of priors that resembles the improper diffuse priors used in some such
analyses is: ? having the discrete uniform prior, ?i|ai ? Gamma(3, ai), and ai ? Unif(0, 100)
independently for i = 1, 2. Provide the same result listed in part (a), and discuss your results,
including reasons why this analysis is more difficult than the previous two.

GET THE ANSWER>> https://solutionlly.com/downloads/problem-6-4-introduces-data-on-coal-


mining-disasters-from-1851-to-1962-for-these-data-assume

2/2
Powered by TCPDF (www.tcpdf.org)

You might also like