Docsity

Homework 4 - Bayesian Statistics - Fall 2008 | 22S 138, Assignments of Statistics

Toggle sidebar
bg1
22S:138, Bayesian Statistics
Fall 2008, Homework 4
Due: Mon. 09/29
1. (pr oblem from Johnson and Albert) (From Antleman, 1997) Suppose that a
trucking company owns a large fleet of well-maintained trucks and assume
that breakdowns appear to occur at random times. The president of the
company is interested in learning about the daily rate Rat which breakdowns
occur. (Realistically, each truck would have a breakdown rate that depends
possibly on its type, age, condition, driver, usage, etc. The breakdown rate for
the whole company can be viewed as the sum of the breakdown rates of the
individual trucks.) For a given value of the rate parameter R, it is known that
the number of breakdowns yon a particular day has a Poisson distribution
with mean R:
p(y|R) = eāˆ’RRy
y!, y = 0,1,2,...
(a) Suppose that one observes the number of truck breakdowns for nconsec-
utive days — denote these numbers by y1, . . . , yn. If one assumes that
these are exchangeable measurements (conditionally independent given
R), find the joint probability distribution of y1, . . . , yn.
(b) The number of breakdowns for 5 days are recorded to be 2, 5, 1, 0,
and 3. Find the likelihood function L(R) of the rate parameter R for
these observations. Graph this function. (You may either use Splus or
other computer software, or you may do it ā€œby handā€ by calculating the
likelihood for the values R=.1, .5,1,2,4,8 and 16, and connecting the
points with a smooth curve.
(c) Find the MLE of Rand its associated asymptotic standard error.
(d) Use the results in part (c) to find an approximate 95% frequentist confi-
dence interval for R.
2. The president of the company has some knowledge about the location of the
Poisson rate parameter Rbased on the observed number of breakdowns from
previous years. His prior b eliefs about Rare represented in the following:
p(R)āˆR3exp(āˆ’2R), R > 0
(a) Is this prior a member of a particular parametric family? If so, what
family, and what are the prior parameters?
(b) Plot this p rior density, either using software or by picking a few values
at which to evaluate it as in the previous problem. Based on the plot,
describe the president’s prior beliefs about the rate parameter R.
(c) Write out the mathematical form of the unnormalized posterior density.
Identify its parametric family and parameters.
1
(d) Find the posterior mean and 95% central credible set for Rbased on this
posterior.
(e) Was the president’s prior from a conjugate family for the Poisson likeli-
hood? How could you tell?
3. A new employee of the trucking firm wishes to learn about the breakdown
rate. She does not have the previous information available to the president,
so she wishes to assign a noninformative prior density.
(a) Derive the Jeffrey’s prior that goes with the Poisson likelihood.
(b) Compute the resulting posterior distribution, using this prior and the
data given earlier for the 5 days.
(c) Find the posterior mean and 95% central credible set for this posterior.
(d) Compare the Bayesian point and interval estimates with the classical
estimates found in the first exercise.
(e) Compare the new employee’s estimates with the president’s estimates.
(f) Suppose the emp loyee has a personal rule that she would n ot drive for a
company whose fleet of trucks had a daily breakdown rate >2. What is
her posterior probability that R > 2 for this company?
(g) Contrast this with the president’s posterior probability that R > 2.
4. We used the following identity in deriving the likelihood for the mean µof a
normal distribution. Verify that it is true.
n
X
i=1
(yiāˆ’Āµ)2=
n
X
i=1
(yiāˆ’ĀÆy)2+n(ĀÆyāˆ’Āµ)2
2

Partial preview of the text

Download Homework 4 - Bayesian Statistics - Fall 2008 | 22S 138 and more Assignments Statistics in PDF only on Docsity!

22S:138, Bayesian Statistics

Fall 2008, Homework 4

Due: Mon. 09/

  1. (problem from Johnson and Albert) (From Antleman, 1997) Suppose that a

trucking company owns a large fleet of well-maintained trucks and assumethat breakdowns appear to occur at random times.

The president of the

company is interested in learning about the daily rate

R

at which breakdowns

occur.

(Realistically, each truck would have a breakdown rate that depends

possibly on its type, age, condition, driver, usage, etc. The breakdown rate forthe whole company can be viewed as the sum of the breakdown rates of theindividual trucks.) For a given value of the rate parameter

R

, it is known that

the number of breakdowns

y

on a particular day has a Poisson distribution

with mean

R

p( y|

R)

e āˆ’R

R

y y!

,^

y^

,^1

,^2

(a) Suppose that one observes the number of truck breakdowns for

n consec-

utive days — denote these numbers by

y

,... , y 1

. If one assumes thatn

these are exchangeable measurements (conditionally independent given R), find the joint probability distribution of

y

,... , y 1

.n

(b) The number of breakdowns for 5 days are recorded to be 2, 5, 1, 0,

and 3.

Find the likelihood function

L

(R

) of the rate parameter R for

these observations.

Graph this function.

(You may either use Splus or

other computer software, or you may do it ā€œby handā€ by calculating thelikelihood for the values

R

.^1

,.^5

,^1

,^2

,^4

,^ 8 and 16, and connecting the

points with a smooth curve. (c) Find the MLE of

R

and its associated asymptotic standard error.

(d) Use the results in part (c) to find an approximate 95% frequentist confi-

dence interval for R.

  1. The president of the company has some knowledge about the location of the

Poisson rate parameter

R

based on the observed number of breakdowns from

previous years. His prior beliefs about

R

are represented in the following:

p(

R)

R

3 exp

2 R

),^

R >

(a) Is this prior a member of a particular parametric family?

If so, what

family, and what are the prior parameters? (b) Plot this prior density, either using software or by picking a few values

at which to evaluate it as in the previous problem.

Based on the plot,

describe the president’s prior beliefs about the rate parameter

R

(c) Write out the mathematical form of the unnormalized posterior density.

Identify its parametric family and parameters.

(d) Find the posterior mean and 95% central credible set for

R

based on this

posterior. (e) Was the president’s prior from a conjugate family for the Poisson likeli-

hood? How could you tell?

  1. A new employee of the trucking firm wishes to learn about the breakdown

rate.

She does not have the previous information available to the president, so she wishes to assign a noninformative prior density.(a) Derive the Jeffrey’s prior that goes with the Poisson likelihood.(b) Compute the resulting posterior distribution, using this prior and the

data given earlier for the 5 days. (c) Find the posterior mean and 95% central credible set for this posterior.(d) Compare the Bayesian point and interval estimates with the classical

estimates found in the first exercise. (e) Compare the new employee’s estimates with the president’s estimates.(f) Suppose the employee has a personal rule that she would not drive for a

company whose fleet of trucks had a daily breakdown rate

  1. What is

her posterior probability that

R >

2 for this company?

(g) Contrast this with the president’s posterior probability that

R >

  1. We used the following identity in deriving the likelihood for the mean

μ

of a

normal distribution. Verify that it is true.

nāˆ‘ i= (y

āˆ’i μ

nāˆ‘ i= (y

āˆ’i ĀÆy

+^

n^ (ĀÆy

μ