/*! 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} Q5SE Consider the power calculation d... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

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?

Short Answer

Expert verified

(a) Use\(\,T = X/(\sqrt Y /df).\)

(b) Estimate of the probability 0.58; Simulation standard error: 0.0049 for\(n = 10000\)

(c) n=10094.

Step by step solution

01

(a) To find the value of random numbers.

One way to generate a sample size \({\nu _0} = 1000\) from a student t distribution with a non-centrality parameter is to use a build-in function \(r t(n, d f,\) non-centrality). However, this exercise aims to simulate it using only the noncentral student $t$ distribution and another distribution. The second one that shall be used is a chi-square distribution. Let

\(T = \frac{X}{{\sqrt {Y/df} }}\)

where X is a standard random variable with\(\mu = 1.936\)(the noncentrality parameter) and standard deviation 1, and Y is a chi-square random variable with 14 degrees of freedom. Such random variable T students t distribution with 14 degrees of freedom and noncentrality parameter\(\mu = 1.936.\)

Then, the simulation generates random samples from the distributions Z and V. The code below generates such random numbers.

02

(b) To find the simulation standard error gets higher

To estimate the probability, after generating the random samples\({{\rm T}^{*\iota }},\iota = 1,2, \ldots ,\nu \) , see how many of those are more significant, and it will be the estimate of the probability. The code below gives the estimates of the probability close to 0.58. The simulation standard error is around \(0.0049\) for n=10000. For lower n, the simulation standard error gets higher.

03

(c) To find the simulation sample size.

Lastly, the necessary simulation sample size may be found from

As \(\sigma \) is unknown in this case, use the estimate which is \(1.19.\) Here, \(\gamma = 0.99\) and Remember that \(\Phi \) is the cdf of the standard normal distribution. Then, the necessary sample size which satisfies the requirements is

\(\begin{aligned}{c}n = {\Phi ^{ - 1}}\frac{{1 + \gamma }}{2}\frac{{{s^2}}}{ \in }\\ = {\Phi ^{ - 1}}\frac{{1 + 0.99}}{2}\frac{{1.1{9^2}}}{{0.01}}\\ = 10094\end{aligned}\)

However, the simulation sample size will differ every time you run the code (unless you place "seed" before).

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

If \({\bf{X}}\) has the Cauchy distribution, the mean \({\bf{X}}\)does not exist. What would you expect to happen if you simulated a large number of Cauchy random variables and computed their average?

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?

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?

Let \(U\) have the uniform distribution on the interval\([0,1]\). Show that the random variable \(W\)defined in Eq. (12.4.6) has the p.d.f. \(h\)defined in Eq. (12.4.5).

Let \({\bf{f}}\left( {{{\bf{x}}_{{\bf{1}}\,}}{\bf{,}}{{\bf{x}}_{{\bf{2}}\,}}} \right)\) be a joint p.d.f. Suppose that \(\left( {{{\bf{x}}_{{\bf{1}}\,}}^{\left( {\bf{i}} \right)}{\bf{,}}{{\bf{x}}_{{\bf{2}}\,}}^{\left( {\bf{i}} \right)}} \right)\)has the joint p.d.f. Let \(\left( {{{\bf{x}}_{{\bf{1}}\,}}^{\left( {{\bf{i + 1}}} \right)}{\bf{,}}{{\bf{x}}_{{\bf{2}}\,}}^{\left( {{\bf{i + 1}}} \right)}} \right)\)be the result of applying steps \(2\,\,and\,\,3\) of the Gibbs sampling algorithm on-page \({\bf{824}}\). Prove that \(\left( {{{\bf{x}}_{{\bf{1}}\,}}^{\left( {{\bf{i + 1}}} \right)}{\bf{,}}{{\bf{x}}_{{\bf{2}}\,}}^{\left( {\bf{i}} \right)}} \right)\) and \(\left( {{{\bf{x}}_{{\bf{1}}\,}}^{\left( {{\bf{i + 1}}} \right)}{\bf{,}}{{\bf{x}}_{{\bf{2}}\,}}^{\left( {{\bf{i + 1}}} \right)}} \right)\)also have the joint p.d.f. f.

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.