Estimate the mean of the marginal distribution


Assignment:

Problem. For the following bivariate density of X and Y,

1211_P 21.jpg

suppose we are interested in estimating the mean of the marginal distribution  ƒ(x) of X. It can be shown that for fixed a, ,β, and n the conditional densities are

ƒ(x|y) is Binomial 

ƒ(y|x) is  Beta(x + α, n - x+β).

1. Use the Gibbs sampling to generate a random sample of size 10000 from the target bivariate density with parameter values n = 16,  α= 2, and β = 4.

2. Now to estimate the mean of the marginal distribution ƒ(x) of X, calculate the sample mean of X from the generated random sample.

3. As you may have already noticed, Gibbs sampling is actually not needed in this example, since ƒ(x) can be obtained analytically from the joint density and it follows the beta-binomial distribution. However, Gibbs sampling becomes indispensable in situation where ƒ (x) cannot be obtained analytically. The theoretical mean of the beta-binomial distribution is nα/α+β. Compare the theoretical mean to the sample mean you obtained.

Request for Solution File

Ask an Expert for Answer!!
Basic Statistics: Estimate the mean of the marginal distribution
Reference No:- TGS02073228

Expected delivery within 24 Hours