Ask Question, Ask an Expert

+61-413 786 465

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

Show your worksheel inc has 7 percent coupon compounded

Show your work Sheel INC. has 7 percent coupon ( compounded semiannually) bonds on the market with 10 years to maturity, and the par value of $1,000. At what price should bonds be selling for if the YTM is 5%? Had the bo ...

A 10-year annuity-immediate pays 100 quarterly for the

A 10-year annuity-immediate pays 100 quarterly for the first five years. Starting year 6, the annuity immediate pays 300 quarterly for the remaining five years. There is a nominal annual interest of 8% convertible quarte ...

Confidence intervals ci are one of the simpler forms of

Confidence intervals (CI) are one of the simpler forms of inferential statistics. What does the CI represent? And why does our knowledge of the Central Limit Theorem (CLT) and the empirical rule let us understand why the ...

David currently has 500 in an account that earns 10 apr

David currently has $500 in an account that earns 10% APR, compounded monthly. Assuming he doesn't withdraw any of the funds, how much will his balance be in 6 years?

How does the cost of capital affect capital investments

How does the cost of capital affect capital investments that the firm makes? Cite examples.

Question 1below you are given the examination scores of 20

Question 1 Below you are given the examination scores of 20 students (data set also provided in accompanying MS Excel file). 52 99 92 86 84 63 72 76 95 88 92 58 65 79 80 90 75 74 56 99 a. Construct a frequency distributi ...

How does a firm navigate strategic management in the

How does a firm navigate strategic management in the context of an international environment? What complications does an international environment provide? What are the benefits of operating in an international environme ...

A clothing quality director determines the accuracy of nfl

A clothing quality director determines the accuracy of NFL Logos on t-shirts. 9% of the shirts made that day are defective. The shirts are sold in packages of 10. Find the probability that in one randomly selected packag ...

In february 2017 the risk-free rate was 431 percent the

In February 2017 the risk-free rate was 4.31 percent, the market risk premium was 6 percent, and the beta for Twitter stock was 1.58. What is the expected return that was consistent with the systematic risk associated wi ...

Alphonse contributes 542 per year at the end of each year

Alphonse contributes $542 per year at the end of each year to his pension plan. Assuming he can earn 6.62 per year from his plan, what is the total valve of his account at the end of 7 years?

  • 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

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As