Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Statistics and Probability Expert

problem 1: Suppose that there is a Beta(2,2) prior distribution on the probability θ that a coin will yield a "head" when spun in a speci?ed manner. The coin is independently spun 10 times, and "heads" appears 3 times.

a) find out the posterior mean.
b) find out the posterior variance.
c) find out the posterior probability that .45 ≤ θ ≤ .55.

problem 2:Consider x ˜ Normal(θ,1), θ ˜ (0, 1) and the loss L(θ, δ) = e-3θΛ2/2(θ - δ)2. Derive the estimator that minimizes the posterior expected loss.

problem 3: Suppose X1, . . . ,Xn has Normal(θ,52) density and a Cauchy(0,1) prior on θ is considered. Suppose sample mean and sample variance are 25 and 49 respectively and sample size is 50. Note that the Cauchy(0,1) density is:

1155_cauchy density.jpg

a) Use the Metropolis – Hastings algorithm to sample θ from the posterior distribution. Sample 10,000 θs and take the initial value θ[0] = 0. Show your R program, trace plot, acf plot, and histogram of the 10,000 θs. Give the estimate of θ2, i.e., E[θ2|X1, . . . ,Xn].

b) Use the fact,

626_metropolis hastings.jpg

It says, conditional on η,θ has Normal(0, η) distribution and marginally, η has Inverse-Gamma(1/2,1/2) distribution. Derive the posterior distributions of θ|η,X1, . . . ,Xn and η|θ,X1, . . . ,Xn. Use Gibbs Sampler algorithms to sample θ and η iteratively from the posterior distributions. Sample 10,000 θs and 10,000 ηs and take the initial values θ[0] = 0 and η[0] = 1. Show your R program, trace plots, acf plots, and histograms of both 10,000 θs and 10,000 ηs. Give the estimate of θ2, i.e., E[θ2|X1, . . . ,Xn].

problem 4: A bivariate Normal variable x = (x1, x2)' has density

1059_bivariate normal variable.jpg

The Random Walk Metropolis – Hastings algorithm is employed to sample random variates from the distribution. A R program is listed below for the purpose.

mu1 <- 1
mu2 <- 0
sigma1 <- 1
sigma2 <- 2
rho <- 0.5
xsamples <- matrix(rep(0,2*10001),10001,2);
xsamples[1,] <- c(0,0);
for (i in 2:10001) {
Y <- xsamples[i-1,1] + rt(1,2);
U <- runif(1,0,1);
condmean <- mu1+rho*sigma1/sigma2*(xsamples[i-1,2]-mu2);
condvar <- sigma1*sigma1*(1-rho*rho);
rho0 <- min(dnorm(Y,condmean,sqrt(condvar))/
dnorm(xsamples[i-1,1],condmean,sqrt(condvar)),1);
if (U<=rho0) {
xsamples[i,1] <- Y;
} else {
xsamples[i,1] <- xsamples[i-1,1];
}
Y <- xsamples[i-1,2] + rt(1,2);
U <- runif(1,0,1);
condmean <- mu2+rho*sigma2/sigma1*(xsamples[i,1]-mu1);
condvar <- sigma2*sigma2*(1-rho*rho);
rho0 <- min(dnorm(Y,condmean,sqrt(condvar))/
dnorm(xsamples[i-1,2],condmean,sqrt(condvar)),1);
if (U<=rho0) {
xsamples[i,2] <- Y;
} else {
xsamples[i,2] <- xsamples[i-1,2];
}
}

a) Identify the parameter values for the mean and the covariance matrix of the bivariate Normal distribution according to the program.
b) State the conditional distribution of x1 given x2.
c) Briefly describe the program.

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M91947

Have any Question? 


Related Questions in Statistics and Probability

Suppose that a certain college class contains 62nbsp

Suppose that a certain college class contains 62  students. Of these, are 26  freshmen, are38 mathematics majors, and are11 neither. A student is selected at random from the class. (a) What is the  probability  that the ...

Manufacturer x produces personal computers pcs at two

Manufacturer X produces personal computers (PCs) at two different locations in the world. Fifteen percent of the PCs produced at location A are delivered to a retail outlet defective, while five percent of the PCs produc ...

Derive a relationship between the k th factorial moment for

Derive a relationship between the k th factorial moment for a nonnegative, integer valued random variable and the coefficients of the Taylor series expansion of its probability-generating function, HX( z) , about the poi ...

A random process is given bynbspnbspwhere and are

A random process is given by   where and are independent zero-mean random variables.  (a) Find the mean function (b) Find the autocorrelation function,  (c) Under what conditons (on the variances of and ) is   WSS?

A meat packer is investigating the marked mass shown on

A meat packer is investigating the marked mass shown on Vienna sausages. A pilot study showed a mean of 11.8kg per pack and a standard deviation of 0.7kg. How many packs should be sampled in order to be 98% confident tha ...

Sat verbal scores are normally distributed with a mean of

SAT verbal scores are normally distributed, with a mean of 500 and standard deviation of 100. You randomly select a test taker. What's the probability that s/he scored between 500 and 700?

Normal and sampling distributionsq1the life of cell

Normal and Sampling Distributions Q1.The life of cell batteries is normally distributed with a mean of 88.2 hours and a standard deviation of 15.5 hours. 93% of the batteries will last more than how many hours? (2 decima ...

Question 1describe a recent gallup poll be sure to include

Question 1 Describe a recent Gallup poll. Be sure to include the results of the poll, how the poll was conducted, and what the results will be used for. Question 2 Describe a recent study where data was gathered. If poss ...

Research and statistical methods for business-group

Research and Statistical Methods for Business-Group Assignment Assessment - Group Project Gym Users James H. is CEO of The Gym Chain. The Gym Chain is a multinational leisure business headquartered in Australia. Some of ...

Letnbspnbsprepresent a three-dimensional vector of random

Let   represent a three-dimensional vector of random variables that is uniformly distributed over the unit sphere. That is, (a) Find the constant c. (b) Find the marginal PDF for a subset of two of the three random varia ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate