Return to Exercise 10 in Sec. 12.2. Now that we know how to simulate exponential random variables, perform the simulation developed in that exercise as follows: a. Perform v0 = 2000 simulations and compute both the estimate of and its simulation standard error. b. Suppose that we want our estimator of to be within 0.01 of with probability 0.99. How many simulations should we perform?
Read moreTable of Contents
Textbook Solutions for Probability and Statistics
Question
Use the blood pressure data in Table 9.2 that was described in Exercise 10 of Sec. 9.6. Suppose now that we are not confident that the variances are the same for the two treatment groups. Perform a simulation of the sort done in Example 12.3.8 to obtain a sample from the posterior distribution of the parameters when we allow the variances to be unequal. a. Draw a plot of the sample c.d.f. of the absolute value of the difference between the two group means. b. Draw a histogram of the logarithm of the ratio of the two variances to see how close together they seem to be.
Solution
The first step in solving 12.3 problem number 12 trying to solve the problem we have to refer to the textbook question: Use the blood pressure data in Table 9.2 that was described in Exercise 10 of Sec. 9.6. Suppose now that we are not confident that the variances are the same for the two treatment groups. Perform a simulation of the sort done in Example 12.3.8 to obtain a sample from the posterior distribution of the parameters when we allow the variances to be unequal. a. Draw a plot of the sample c.d.f. of the absolute value of the difference between the two group means. b. Draw a histogram of the logarithm of the ratio of the two variances to see how close together they seem to be.
From the textbook chapter Simulation you will find a few key concepts needed to solve this.
Visible to paid subscribers only
Step 3 of 7)Visible to paid subscribers only
full solution