Develop a Gibbs sampling method to simulate

Assignment Help Applied Statistics
Reference no: EM132407903

Problem 1 - Suppose that X ∼ Beta(2, 2) distribution, whose density function is f(x) = 6x(1 - x) for 0 < x < 1. Use a) a rejection sampling method and b) an importance sampling method to evaluate Var(X). Explain how you do it and write two separate pseudo-codes to implement the two methods.

Problem 2 - (a) Develop a Gibbs sampling method to simulate from a bivariate vector (X1, X2) from a bivariate normal distribution with zero mean and unit variance for the marginals, but a non-zero correlation of rho (r) between the two components. Explain how you do it and write a pseudo-code to implement it. (b) Suppose that you have N copies of the random sample (vector) simulated from your code. Explain how to use them to evaluate E{(X1+X2)2} and also the median of the distribution of (X1+X2)2.

Problem 3 - Let (W1(t), . . . , Wn(t)) be n independent Brownian motions. Define the new process

Bn(t) = √(W12(t) + . . . + Wn2(t)).

This process, called a Bessel process, describes the distance to the origin of an n-dimensional Brownian motion. We can show that Bn satisfies the equation

dBn(t) = dZ(t) + (n-1)/(2Bn(t))dt

where Z(t) is a suitable Brownian motion. Assume that Bn(0) ≠ 0. Explain how to simulate a sample path of such a Bessel process and write a pseudo-code to implement it.

Problem 4 - (a) State the Bayes theorem.

(b) A disease has an overall base rate p(D) = .001. A test for the disease has sensitivity S (i.e, p(test positive |D) = S and specificity Q (i.e., p(test - |no D) = Q). If a patient tests positive what is the Bayesian posterior P(D|test +)?

(c) Numerical examples. Suppose S = Q = .99. What is the posterior P (D |test +)? Suppose S = .99, Q = .90. What is the posterior P(D|test +)?

Note - Need show steps for algorithm and few R code.

Reference no: EM132407903

Questions Cloud

State the Bayes theorem : State the Bayes theorem. Suppose S = Q = .99. What is the posterior P (D |test +)? Suppose S = .99, Q = .90. What is the posterior P(D|test +)
The challenges based on the organizational structure : Provide suggestions to overcome the challenges based on the organizational structure, communication methods, and training.
Describe the competitive strategies : Describe the competitive strategies used by the company's main competitors. Which of these strategies are the most effective?
Leaders and Operations Management Assessment : Management and Operations Assignment Help and Solution, Leaders and Operations Management Assessment Writing Service - Higher National Diploma in Business
Develop a Gibbs sampling method to simulate : Develop a Gibbs sampling method to simulate from a bivariate vector (X1, X2) from a bivariate normal distribution with zero mean
Social media and even in conversation : Social media and even in conversation, do you feel that noting where data and other vital information being shared came from could alleviate confusion,
Describe the lead user concept in comparison : Please describe the "Lead User concept" in comparison to classical market research methods. What are the advantages and disadvantages of the concept?
Ethical dilemma associated with the production : Briefly describe the company and its product and the ethical dilemma associated with the production and distribution of its products.
Standards in the host country are lower : Is a multi-national corporation morally obliged to follow the safety guidelines of its home country when the standards in the host country are lower? Explain.

Reviews

Write a Review

Applied Statistics Questions & Answers

  Create a bar graph with gender

Determine the statistics for each gender as follows: Frequency, Counts, Mean, standard deviation, minimum, and Maximum. Graphing and Descriptive Stats in SPSS: Create a bar graph with gender (axis X) and height (axis Y).

  Estimate a simple regression between daily sales

Estimate a simple regression between daily sales (y) and distance from the city center (x4). Using all the tests, provide a written evaluation of the estimated simple regression equation.

  What is estimated CI of average blood vitamin D

What is the estimated 95% confidence interval (CI) of the average blood vitamin D level of US landscapers in ng/mL

  Construct percent frequency bar chart for auto market shares

The National Automobile Dealers Association (NADA) publishes AutoExec magazine. Construct a percent frequency bar chart and a percentage pie chart for the 2005 auto market shares.

  Test for adequacy of an exponential model

Test the hypothesis of equality of remission times in the two groups using Weibull, log-normal, and log-logistic models. Which model appears to fit the data best? Test for adequacy of an exponential model relative to the Weibull model

  Present descriptive statistics of the variables remuneration

MAE256 T1 2018 Assignment - Regression Models using Cross Section Data. Present the descriptive statistics of the variables remuneration

  Calculate the percentage of variance explained

Calculate the percentage of variance explained for r = 0.53. Is this correlation clinically important and what is the r value listed for the relationship between variables 4 and 9?

  Time value of money what will be the net present value

Time Value of Money- Deli Case The answer is already given, so step by step on arriving on that answer is required Christina hopes to open a Deli in 2015.The initial  investment will be $85,000.  She expects that  that the Deli will generate the posi..

  STAT 6545 Computational Statistics Assignment

STAT 6545 Computational Statistics Assignment Help and Solution, Memorial University of Newfoundland - Assessment Writing Service.

  A communications professor at a university believes

According to a Pew Research Center, in May 2011, 35% of all American adults had a smartphone (one which the user can use to read email and surf the Internet). A communications professor at a university believes this percentage is higher among communi..

  Discuss potential biases that could skew sampling results

What is the calculated confidence interval? How does this compare to the interval in part 3 using the poll's MoE? Discuss potential biases that could skew sampling results.

  Plot Energy Sales in GWh against Saudi Arabia real GDP

Plot Energy Sales (on the portal it says energy sales, but it is Electricity Sales) in GWh against Saudi Arabia real GDP. Interpret the result

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