Ask Question, Ask an Expert


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))/
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))/
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

Discuss the radical reconstruction as a constitutional

Discuss the Radical Reconstruction as a Constitutional Revolution.

A researcher collected sample data for women ages to the

A researcher collected sample data for women ages to. The sample had a mean serum cholesterol level (measured in mg/100 mL) of , with a standard deviation of. Assuming that serum cholesterol levels for women ages to are ...

Assume that the number of pieces of junk mail per day that

Assume that the number of pieces of junk mail per day that a person receives in their mail box follows the Poisson distribution and averages 3.5 pieces per day. What is the probability that this person will receive exact ...

A box of teddy grahams chocolate cookies is supposed to

A box of Teddy Grahams chocolate cookies is supposed to weigh 250 grams. There is some variation in weight from box to box. The box contents are Normally distributed with an unknown mean and a known standard deviation of ...

A scarf company built a new parking garage in a business

A Scarf Company built a new parking garage in a business district. For a random sample of 100 days, daily fees collected averaged $1,800, with a standard deviation of $500. Construct a 90% confidence interval estimate of ...

1 when do researchers use regression analysis2 what is

1. When do researchers use regression analysis? 2. What is multiple regression analysis? 3. Distinguish among simultaneous (or standard), stepwise, and hierarchical regression.

Assignment quantitative methodsquestion 1 a large shipping

ASSIGNMENT: QUANTITATIVE METHODS QUESTION 1: A large shipping company recorded the tonnage shipped weekly across the pacific for 50 weeks. The data is presented in the table below. 530 492 462 379 487 523 600 618 548 431 ...

Your assignment this week is to describe structural

Your assignment this week is to describe structural equation modeling in which you include: (a) a comparison of the first and second generation models of structural equation modeling and their related major assumptions, ...

Given the following waiting time distribution in a hotel

Given the following waiting time distribution in a hotel, compute the  expected value  of the waiting time in 2 dec pl.    Waiting time (minutes) Probability 4.0            20% 4.5 28% 5.0 32% 5.5 10% 6.0 10%

1 what are the advantages and disadvantages of using

1. What are the advantages and disadvantages of using narrative records in observational research? 2. Distinguish between a structured and unstructured observation method. 3. Distinguish between checklists and observatio ...

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro