Question: these questions and add R code when necessary For this assignment, answer the four exercises below. Be sure to justify/explain your reasoning using full sentences.
these questions and add R code when necessary
For this assignment, answer the four exercises below. Be sure to justify/explain your reasoning using full sentences. If asked to do a simulation and/or make a figure, please turn in the result as well as your code. Exercise 1. (10 points total.) Suppose we have independent and identically distributed observations Y = (Y1,---Yn), With y; ~ Exponential(,). (a) Suppose that we specify \\ ~ Gamma(a, 3) as the prior distribution on the unknown model parameter, 4X. Obtain the posterior mean, E(A|y) and posterior standard deviation, \\/ Var(A|y) (i.e., obtain the posterior distribution, name it and state its parameters, and use the known properties of that distribution to write down the posterior mean and standard deviation). (5 points) (b) Now, suppose that we are interesting in learning about = }, i.e., the mean of an Exponential(,) distribution. Show that a conjugate prior distribution for is an Inverse-Gamma(a, 3) distribution. You may use that if X ~ Inverse-Gamma(a, 3), then the associated probability density function is a _ B I'(a) p(x\\a, 8) (1/x)***exp(8/z), defined over the range/support x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
