+1-415-315-9853

info@mywordsolution.com

## Statistics

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:

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,

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

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

### The state police are trying to crack down on speeding on a

The State Police are trying to crack down on speeding on a particular portion of the Massachusetts Turnpike. To aid in this pursuit, they have purchased a new radar gun that promises greater consistency and reliability. ...

### Some accounting firms give the client an option to pay a

Some accounting firms give the client an option to pay a fee when the tax return is completed that guarantees tax advices and support from the accountant if the client were audited. A large accounting firm is trying to d ...

### 1 travelers are asked how many hours they are willing to

1. Travelers are asked how many hours they are willing to drive while on vacation in one day. A total of 86 travelers reported a mean of 11.55 hours with a standard deviation of 1.2 hours. Find the 99% confidence interva ...

### How do you interpret the p-values in a regression output

How do you interpret the p-values in a regression output? What does a p-value of .0495 mean? What significance level is this?

### A student scored 81 on a chemistry test and 75 on a history

A student scored 81 on a chemistry test and 75 on a history test. For the chemistry test, the mean was 70 and the standard deviation was 20. For the history test, the mean was 65 and the standard deviation was 8. Did the ...

### Putting measurement to workthis exercise gives you the

Putting Measurement to Work This exercise gives you the opportunity to develop a measurement strategy of your own. 1. Identify an area of the social sciences you know something about (aging, marriage and the family, crim ...

### Historically 25 of all students taking an statistics course

Historically 25% of all students taking an statistics course have failed (i.e. receive a grade below C). Professor Han thinks that she has a better method of teacher statistics to business students. She is given a random ...

### Use the inverse transform method to generate a sample of

Use the inverse transform method to generate a sample of the exponential distribution with parameter θ, which is given by its density             1/θe -x/θ   for x ≥ 0 f(x) =             0             for x where θ is a ...

### Case study mikhail gorbachevs 1988 un speechif the pace of

Case Study: Mikhail Gorbachev's 1988 UN SpeechIf the pace of improving US-Soviet relations seemed rapid, Mikhail Gorbachev's speech to the United Nations General Assembly would shift the process into overdrive.  In this ...

### 1 in a pulse rate research a simple random sample of 120

1. In a pulse rate research, a simple random sample of 120 men results in a mean of 80 beats per minute, and a standard deviation of 11 beats per minute. Based on the sample results, the researcher concludes that the pul ...

• 13,132 Experts

## 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.

### 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