Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

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 Vaia!

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

\({{\bf{x}}_{\scriptstyle{\bf{1}}\atop\scriptstyle\,}}.....{{\bf{x}}_{\scriptstyle{\bf{n}}\atop\scriptstyle\,}}\) be uncorrelated, each with variance \({\sigma ^2}\) Let \({{\bf{y}}_{\scriptstyle{\bf{1}}\atop\scriptstyle\,}}.....{{\bf{y}}_{\scriptstyle{\bf{n}}\atop\scriptstyle\,}}\) be positively correlated. each with variance, prove that the variance of \(\overline x \)is smaller than the variance of \(\overline y \)

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 \)

Use the data in Table 10.6 on page 640. We are interested in the bias of the sample median as an estimator of the median of the distribution.

a. Use the non-parametric bootstrap to estimate this bias.

b. How many bootstrap samples does it appear that you need in order to estimate the bias to within .05 with a probability of 0.99?

If \({\bf{X}}\)has the \({\bf{p}}.{\bf{d}}.{\bf{f}}.\)\({\bf{1/}}{{\bf{x}}^{\bf{2}}}\)for\({\bf{x > 1}}\), the mean of \({\bf{X}}\) is infinite. What would you expect to happen if you simulated a large number of random variables with this \({\bf{p}}.{\bf{d}}.{\bf{f}}.\) and computed their average?

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.)

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.

Sign-up for free