/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q16E Use the method of antithetic var... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Use the method of antithetic variates that was described in Exercise 15. Let g(x) be the function that we tried to integrate into Example 12.4.1. Let f (x) be the function\({f_3}\)in Example 12.4.1. Estimate Var\(\left( {{V^{\left( i \right)}}} \right)\), and compare it to\(\mathop \sigma \limits\ _32\)Example 12.4.1.

Short Answer

Expert verified

Estimator is \(Z = \frac{1}{\nu }\sum\limits_{i = 1}^\nu {{Y^{\left( i \right)}}.} \)

The estimate of the integral in the first simulation is 0.52466, and the simulation standard error is \(2.398\,\, \cdot \,\,{10^{ - 6}}\).

Step by step solution

01

Find the estimator

From the exercise and the example,

\(\begin{aligned}{l}g\left( x \right) = \frac{{{e^{ - x}}}}{{1 + {x^2}}},\,\,\,0 < x < 1,\\{f_3}\left( x \right) = \frac{{{e^{ - x}}}}{{1 - {e^{ - 1}}}},\,\,\,0 < x < 1.\end{aligned}\)

First, simulate\({X^{\left( i \right)}},\,\,i = 1,2,....,\nu \). To do that, use integral probability transformation. The cumulative density function is

\({F_3}\left( x \right) = \,\,\,\smallint _0^X\,\,\frac{{{e^{ - t}}}}{{1 - {e^{ - 1}}}}dt = \frac{{1 - {e^{ - x}}}}{{1 - {e^{ - 1}}}},\,\,\,\,\,\,\,0 < x < 1.\)

Let U be from the uniform distribution on the interval (0, 1). It follows that X values can be simulated using U as

\(X = - \log \left( {1 - U\left( {1 - {e^{ - 1}}} \right)} \right)\)

which is obtained from

\(U = \frac{{1 - {e^{ - x}}}}{{1 - {e^{ - 1}}}}.\)

The random variable T is

\({T^{\left( i \right)}} = {F^{ - 1}}\left( {1 - {U^{\left( i \right)}}} \right) = - \log \,\left( {1 - \left( {1 - {U^{\left( i \right)}}} \right)\,\,\left( {1 - {e^{ - 1}}} \right)} \right)\,\,,\,\,\,\,\,i = 1,2,...,\nu ,\)

Simulations of W and V are obtained as

\(\begin{aligned}{l}{W^{\left( i \right)}} &= \frac{{g\left( {{X^{\left( i \right)}}} \right)}}{{{f_3}\left( {{X^{\left( i \right)}}} \right)}} &= \frac{{1 - {e^{ - 1}}}}{{1 + {X^{\left( i \right)\,2}}}},\,\,\,\,\,i &= 1,2,...,\nu ,\\{V^{\left( i \right)}} &= \frac{{g\left( {{T^{\left( i \right)}}} \right)}}{{{f_3}\left( {{T^{\left( i \right)}}} \right)}} &= \frac{{1 - {e^{ - 1}}}}{{1 + {T^{\left( i \right)\,2}}}},\,\,\,\,\,i = 1,2,...,\nu ,\end{aligned}\)

Using those, simulations of Y are

\({Y^{\left( i \right)}} = 0.5\,\,.\,\,\left( {{W^{\left( i \right)}} + {V^{\left( i \right)}}} \right)\)

And the estimator

\(Z = \frac{1}{\nu }\sum\limits_{i = 1}^\nu {{Y^{\left( i \right)}}.} \)

Use the following code in R to estimate the integral. The estimate of the integral in the first simulation is 0.52466, and the simulation standard error is \(2.398\,\, \cdot \,\,{10^{ - 6}}\). The simulation standard deviation is smaller than in the example.

02

Size of simulation

#Size of simulation

N = 10000

#Sample from uniform

sample.u = runif(N,0,1)

#Simulation of X and T

sample.x = -log(1-sample.u*(1-exp(-1)))

sample.t = -log(1-(1-sample.u)*(1-exp(-1)))

#Simulation of W and V

sample.w = (1-exp(-1))/(1+sample.x^2)

sample.v = (1-exp(-1))/(1+sample.t^2)

#Simulation of Y

sample.y = 0.5 * (sample.w + sample.v)

#Estimate

estimate.int = mean(sample.y)

#simulation standard deviation

estimate.sd = sd(sample.y)/N

Here, the estimate of the integral in the first simulation is 0.52466, and the simulation standard error is \(2.398\,\, \cdot \,\,{10^{ - 6}}\).

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Suppose that \({x_1},...,{x_n}\) from a random sample from an exponential distribution with parameter\(\theta \).Explain how to use the parametric bootstrap to estimate the variance of the sample average\(\overline X \).(No simulation is required.)

Consider the power calculation done in Example 9.5.5.

a. Simulate \({v_0} = 1000\) i.i.d. noncentral t pseudo-random variables with 14 degrees of freedom and noncentrality parameter \(1.936.\)

b. Estimate the probability that a noncentral t random variable with 14 degrees of freedom and noncentrality parameter \(1.936\) is at least \(1.761.\) Also, compute the standard simulation error.

c. Suppose that we want our estimator of the noncentral t probability in part (b) to be closer than \(0.01\) the true value with probability \(0.99.\) How many noncentral t random variables do we need to simulate?

Let \({{\bf{X}}_{\bf{1}}},...,{{\bf{X}}_n}\) be i.i.d. with the normal distribution having mean \(\mu \) and precision \(\tau \).Gibbs sampling allows one to use a prior distribution for \(\left( {\mu ,\tau } \right)\) in which \(\mu \) and\(\tau \) are independent. With mean \({\mu _0}\) and variance, \({\gamma _0}\) Let the prior distribution of \(\tau \)being the gamma distribution with parameters \({\alpha _0}\) and \({\beta _0}\) .

a. Show that the Table \({\bf{12}}{\bf{.8}}\) specifies the appropriate conditional distribution for each parameter given the other.

b. Use the new Mexico nursing home data(Examples \({\bf{12}}{\bf{.5}}{\bf{.2}}\,{\bf{and}}\,{\bf{12}}{\bf{.5}}{\bf{.3}}\) ). Let the prior hyperparameters be \({{\bf{\alpha }}_{\bf{0}}}{\bf{ = 2,}}{{\bf{\beta }}_{\bf{0}}}{\bf{ = 6300,}}{{\bf{\mu }}_{\bf{0}}}{\bf{ = 200}}\), and \({\gamma _0} = 6.35 \times {10^{ - 4}}.\) Implement a Gibbs sampler to find the posterior distribution \(\left( {\mu ,\tau } \right).\,\) . In particular, calculate an interval containing \(95\) percent of the posterior distribution of \(\mu \)

Let X and Y be independent random variables with \(X\) having the t distribution with five degrees of freedom and Y having the t distribution with three degrees of freedom. We are interested in \(E\left( {|X - Y|} \right).\)

a. Simulate 1000 pairs of \(\left( {{X_i},{Y_i}} \right)\) each with the above joint distribution and estimate \(E\left( {|X - Y|} \right).\)

b. Use your 1000 simulated pairs to estimate the variance of \(|X - Y|\) also.

c. Based on your estimated variance, how many simulations would you need to be 99 percent confident that your estimator is within the actual mean?

Test the standard normal pseudo-random number generator on your computer by generating a sample of size 10,000 and drawing a normal quantile plot. How straight does the plot appear to be?

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.