Reference no: EM131357791
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
Single measure of a society economic well-being
: 1) U.S. real GDP is substantially higher today than it was 60 years ago. What does this tell us, and what does it not tell us, about the well-being of U.S. residents? What are the limitations of the GDP as a measure of economic well-being? Given t..
|
Did americans support overseas expansion in the late 19th
: Did Americans support overseas expansion in the late 19th and early 20th centuries primarily because they believed the United States should spread its core values of freedom, individualism, democracy, and morality to "less-enlightened" peoples in ..
|
Minimum of three academic references
: Write a five page essay, using a minimum of three academic references from the CSU online library and proper APA formatting on the following topic: pros and cons of tariffs. All sources used, including the textbook, must be referenced; paraphrased..
|
What are the mad and mse for each method
: Following are two weekly forecasts made by two different methods for the number of gallons of gasoline, in thousands, demanded at a local gasoline station. What are the MAD and MSE for each method
|
Generate metropolis-hastings samples from this density
: 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.
|
Develop a marketing plan to support an additional investment
: MKT-607 - Marketing Management.- develop a Marketing Plan to support an additional $5 million investment in your start-up company.
|
Which of the four forecasting methods is best
: The director of medical services predicted 6 years ago that demand in year 1 would be 41 surgeries. Use exponential smoothing, first with a smoothing constant of .6 and then with one of .9, to develop forecasts for years 2 through 6. With MAD as the..
|
Explain the character in the cartoon
: Explain the character(s) in the cartoon.Describe the symbols and actions the artist employs in the cartoon.Describe the issues the cartoon raises.Analyze and explain what the cartoon says about the consequences of the Spanish American War for the cou..
|
Standard deviation and expected return for stock
: What is the expected return and standard deviation for the following stock? State of Economy Probability of State of Economy Rate of Return if State Occurs Recession 0.10 -0.19 Normal 0.60 0.17 Boom 0.30 0.35
|