Starting from:

$24.99

STA360-602 Homework 5 Solution

STA-360/602
General instructions for homeworks: Please follow the uploading file instructions according to the syllabus. You will give the commands to answer each question in its own code block, which will also produce plots that will be automatically embedded in the output file. Each answer must be supported by written statements as well as any code used. Your code must be completely reproducible and must compile. Syllabus: (https://github.com/resteorts/modernbayes/blob/master/syllabus/syllabus-sta602-spring19.pdf)
Commenting code Code should be commented. See the Google style guide for questions regarding commenting or how to write code https://google.
github.io/styleguide/Rguide.xml. No late homework’s will be accepted.
1. (15 points, 5 points each) Hoff, 3.12 (Jeffrey’s prior).
Jeffrey’s (1961) suggested a default rule for generating a prior distribution of a parameter θ in a sampling model p(y | θ). Jeffreys’ prior is given by

pJ(θ) ∝ pI(θ),
where

is the Fisher information.
(a) Let Y ∼ Binomial(n,θ). Show that pJ(θ) ∝ Beta(1/2,1/2).
(b) Re-parameterize the model in part a such that ψ = log[θ/(1 − θ)].
This implies that . Show that
.
(c) Take the prior distribution from (a) and apply the change of variablesformula from exercise 3.10 (see Homework 4) to obtain the induced
1
prior density on ψ. This density should be the same as the one derived in part b) of this exercise. This consistency under re-parametrization is the defining characteristic of Jeffereys’ prior.
2. Lab component (25 points total) Please refer to lab 5 and complete tasks 4—5.
(a) (10) Task 4
(b) (15) Task 5
You can refer to class notes to help you check your answers. See
Module 5, slides 44 - 51
2

More products