Compare the expressions for posterior mean and prior mean

Assignment Help Advanced Statistics
Reference no: EM131405564

Q1. A doctor gives a patient a test for a disease. The test is pretty accurate: if given to a person with the disease, it will give a positive result 99% of the time, and if given to a person without the disease, it will give a negative result 99% of the time. This particular patient tests positive, and the doctor claims that now the probability this patient has the disease is 99%. Show that this is not necessarily true by constructing an example where the correct probability is less than 99%.

Q2. Let X1, ..., Xn be a random sample from a geometric distribution with parameter θ, i.e, p(xi|θ) = θ(1 - θ)x_i -1. Let the prior for θ be a beta distribution with parameters α and β:

p(θ|α, β) = (Γ(α+β)/Γ(α)Γ(β))θα-1(1-θ)β-1

(for θ ∈ [0, 1]). Recall that E(θ)= α/(α+β) and E(Xi|θ) = 1/θ.

(a) Find the maximum likelihood estimate for θ.

(b) Show that the beta distribution is conjugate for θ, i.e., find the posterior distribution for θ and show that it is a beta distribution.

(c) Show that the posterior mean is a weighted average of the prior mean and the maximum likelihood estimate.

(d) Make up three observations and appropriate values for α and β. Compute the standard 95% posterior interval estimate and the 95% HPD interval estimate for θ. Compare your intervals.

Q3. Suppose we are going to observe data that are from a uniform distribution with unknown upper endpoint, i.e.:

          yiiid Unif[0, θ] i = 1, . . . , n

with prior θ ∼ Pareto(α, β)

                    where p(θ|α, β) = αβαθ-(α+1)I{θ ≥ β}

Assuming that α > 2, the Pareto has mean  αβ/α-1 and variance αβ2/(α-1)(α-2).

(a) Show that the normalized likelihood distribution is a Pareto(n - 1, m,) where n is the sample size and 9n is the maximum of the observations.

(b) Compare the expressions for the posterior mean, prior mean, and the mean of the likelihood.

(c) Write out the posterior variance. When considered as a function of the sample size n, what is unusual about this expression to most standard cases?

Q4. Show (derive) that under the normal model with a non-informative prior distribution:

y1, . . . , yniid N(μ, σ2)

p(μ, σ2) ∝ (σ2)-1

that the posterior predictive distribution for a new observation y is a t distribution with location y- and scale (1 + 1/n)½ s, and degrees of freedom n-1. You do not need to derive p(μ|σ2, data) or p(σ2|data), you can use the results for these distributions found in class.

Q5. In March 2011, a 9.0 magnitude earthquake occurred off the coast of Japan, triggering an aggressive tsunami. The effects of the earthquake and tsunami were of the most devastating in recorded history. The nuclear power plant in Fukashima was essentially obliterated, from nuclear meltdowns to chemical explosions. Fukashima was the largest nuclear accident since Chernobyl in 1986. Radioactive material spilled into the surrounding land and water mass exposing people, plants, and animals to radiation. Local fisheries were particularly concerned with the level of radioactive cesium in consumable fish (seafood). The local government regulations state that the maximum consumable of level of radioactive cesium to be 100 becquerels per kilogram. The dataset radioces.R describe the radioactive cesium levels of 20 fish from a particular location off the coast of Japan in 2012. Assume the following normal conjugate model for these data:

y1, . . . , yniid N(μ, σ2)

               μ ∼ N(mμ, s2μ)

              σ2 ∼ Γ-1(2, bσ(scale))

(a) Suppose we know that the levels of radioactive cesium in a nearby location ranged from 40 - 120 becquerels per kilogram. Use this prior information to obtain values for your prior parameters. Check you values by obtaining a plot of your prior predictive distribution.

(b) Derive the posterior for p(σ2|data) and p(μ|σ2, data). Use Monte Carlo to obtain posterior samples from the joint posterior distribution, and provide a plot of your posterior sample pairs.

(c) Derive the posterior for p(μ|data). Provide plots overlaying the empirical MC and actual marginal distribution of σ2 and μ.

(d) Simulate from the posterior predictive distribution, and plot your results. What is the probability that a new observed specimen will surpass the maximum consumable of level of radioactive cesium?

(e) Derive the full conditional posterior for p(σ2|μ data) and p(μ|σ2, data) (although the later has been done). Use Gibbs sampling to obtain posterior samples from the joint posterior distribution, and provide a plot of your posterior sample pairs. Compare your results to (b).

Attachment:- Assignment File.rar

Reference no: EM131405564

Questions Cloud

Determine and interpret the p value for the test : It has been reported that 80% of taxpayers who are audited by the Internal Revenue Service end up paying more money in taxes.- Use the 0.10 level of significance in reaching a conclusion. Determine and interpret the p-value for the test.
What is the equilibrium price and quantity of office : Draw the demand and supply curve for office visits. What is the equilibrium price and quantity of office visits per week? If one of the physicians moves to another city, reducing quantity supplied by 25 percent, what are the price and quantity at t..
Why were the persians able to create such a large empire : Why were the Persians able to create such a large empire? Compare Jainism, Hinduism and Buddhism. How were these religions influenced by India's social structure? How did Ashoka's rule change India?
Where is the theatre headed : Predicting trends in the theatre is the work of theatre artists the world over. While their first and foremost concern is with self-expression, all theatre practitioners want to work on the forefront of the field.For this assignment, you will answ..
Compare the expressions for posterior mean and prior mean : Show that the normalized likelihood distribution is a Pareto(n - 1, m,) where n is the sample size and 9n is the maximum of the observations. Compare the expressions for the posterior mean, prior mean, and the mean of the likelihood
What is a power curve and how is it applicable to hypothesis : What is a power curve and how is it applicable to hypothesis testing?- What is an operating characteristic curve and how is it related to the power curve for a test?
Write a letter to the president and board of trustees : Your assignment is to write a letter to the President and Board of Trustees outlining the benefits of studying theatre, keeping our core values in mind. What have you learned about the theatre this term that could help you communicate the value of..
Discuss the project management life cycle with your ppm : Discuss the project management life cycle with your PPM software implementation project. Each life cycle element should have at least 2 major activities or tasks of the software implementation project.
Does the machine appear to be in need of calibration : At the 0.01 level of significance, does the machine appear to be in need of maintenance and calibration? Determine and interpret the p-value for the test.

Reviews

len1405564

2/25/2017 4:17:59 AM

One of the homework problems requires R coding (Gibbs sampling, MCMC). Please submit complete solutions and R file. The most important problem is the last one. Without R code the assignment will be meaningless. Thank you.

Write a Review

Advanced Statistics Questions & Answers

  Probability-acceptance sampling for cd

With one method of a procedure called acceptance sampling, a sample of items is randomly selected without replacement and the entire batch is accepted if every item in the sample is okay.

  Investigate the relationship between tumour size

It gives the body fat percentage, age and gender for 18 normal adults between the ages of 23 and 61 years. Are age and % fat related, and if so, in what way? There is correlation.

  Determine the least squares regression model

Determine the least squares regression model - determine what percent of the variation in starting salaries is explained by GPA?

  Who will make a purchase after visiting the website

Construct a 95% confidence interval estimate of the difference in proportion between the Kohler and Russell disks that are defective.

  Computing probability with replacement

An urn contains 7 blue and 3 yellow chips. If the drawing of chips is done with replacement, determine the probability of: Drawing three yellow chips.

  How much time in total will the cashier be idle

How much time in total will the cashier be idle and how many customers on average are waiting in line to pay?

  Calculate the mean median and standard deviation

Calculate the mean, median, and standard deviation

  Which of the following r''s have the least predictive value

Which of the following r's have the least predictive value? a.    0.91 b.     0.5

  Determining total and annual return rates

Compute the total and annual returns on the described investment four years after buying 100 shares of XYZ stock for $60 per share, you sell the stock for $9300.

  Find transition probabilities for the embedded markov chain

Find the transition probabilities for the embedded Markov chain and show that the chain is null recurrent. Show that the expected number of transitions between each entry into state i is infinite.

  Company research outline

What forecasting techniques does this company use? How does your selected organization prepare budgets? What MRP concepts do you see with regard to your organization?

  Impact of fluctuations in currency values

What will happen to this company's sales if the dollar appreciates by 15 percent? What will happen to the company's sales if the dollar depreciates by 10 percent?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd