Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Humanities Expert

Referring to Example 2.7, consider a Be(2.7, 6.3) target density

a. Generate Metropolis-Hastings samples from this density using a range of independent beta candidates from a Be(1, 1) to a beta distribution with small variance. Compare the acceptance rates of the algorithms.

b. Suppose that we want to generate a truncated beta Be(2.7, 6.3) restricted to the interval (c, d) with c, d ∈ (0, 1). Compare the performance of a Metropolis- Hastings algorithm based on a Be(2, 6) proposal with one based on a U(c, d) proposal. Take c = .1, .25 and d = .9, .75.

Example 2.7

Example 2.2 did not provide a general algorithm to simulate beta Be(α, β) random variables. We can, however, construct a toy algorithm based on the Accept-Reject method, using as the instrumental distribution the uniform U[0,1] distribution when both α and β are larger than 1. (The generic rbeta function does not impose this restriction.) The upper bound M is then the maximum of the beta density, obtained for instance by optimize (or its alias optimise):

> optimize(f=function(x){dbeta(x,2.7,6.3)},
+ interval=c(0,1),max=T)$objective
[1] 2.669744

2304_0cfd7df8-430c-486b-bcb0-658716976ae9.png

Humanities, Academics

  • Category:- Humanities
  • Reference No.:- M92170646

Have any Question?


Related Questions in Humanities

Name at least two people who have had a great influence on

Name at least two people who have had a great influence on the field of social psychology and discuss the contribution of each.  • Define the term theory, its role of theory in health assessment, and how theory can help ...

Part 1 media scholar george rodman describes technological

Part 1: Media scholar George Rodman describes technological determinism as a theory stating "the introduction of every new technology changes society, sometimes in unexpected ways." Baran further discusses this topic in ...

Assignment - watch the it hits the fan south park

Assignment - Watch the "It Hits The Fan" South Park episode. After watching, you should answer the following: Discuss how this particular episode of South Park would be interpreted through the lens of ONE of the followin ...

Assignment essaychoose one 1 of the three 3 reading

Assignment: Essay Choose one (1) of the three (3) reading selections from the list of topic choices below. The focus is on brief but important primary source material written by important authors. In each case, the subje ...

Question case analysis - collaborating with outside

Question: Case Analysis - Collaborating with Outside Providers Read the Treatment Plan and Case - Bulimia Nervosa in Gorenstein and Comer (2014). Please also read the Waller, Gray, Hinrichsen, Mounford, Lawson, and Patie ...

  • 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