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

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

Let \({{\bf{z}}_{\scriptstyle{\bf{1}}\atop\scriptstyle\,}}{\bf{,}}{{\bf{z}}_{\scriptstyle{\bf{2}}\atop\scriptstyle\,}}....\) from a Markov chain, and assume that distribution of \({z_{\scriptstyle1\atop\scriptstyle\,}}\)is the stationary distribution. Show that the joint distribution \(\left( {{{\bf{z}}_{\scriptstyle{\bf{1}}\atop\scriptstyle\,}}{\bf{,}}{{\bf{z}}_{\scriptstyle{\bf{2}}\atop\scriptstyle\,}}} \right)\)of is the same as the joint distribution of \(\left( {{{\bf{z}}_{\scriptstyle{\bf{i}}\atop\scriptstyle\,}}{\bf{,}}{{\bf{z}}_{\scriptstyle{\bf{i + 1}}\atop\scriptstyle\,}}} \right)\) for all\(i > 1\) convenience, you may assume that the Markov chain has finite state space, but the result holds in general.

Test the gamma pseudo-random number generator on your computer. Simulate 10,000 gamma pseudo-random variables with parameters a and 1 for \(a = 0.5,1,1.5,2,5,\) 10. Then draw gamma quantile plots

Describe how to convert a random sample \({{\bf{U}}_{\bf{1}}}{\bf{, \ldots ,}}{{\bf{U}}_{\bf{n}}}\) from the uniform distribution on the interval \({\bf{[0,1]}}\) to a random sample of size \({\bf{n}}\) from the uniform distribution on the interval\({\bf{[a,b]}}\).

Suppose that \(\left( {{X_1},{Y_1}} \right),...,\left( {{X_n},{Y_n}} \right)\) form a random sample from a bivariate normal distribution with means \({\mu _x} and {\mu _y},variances \sigma _x^2and \sigma _y^2,and correlation \rho .\) Let R be the sample correlation. Prove that the distribution of R depends only on \(\rho ,not on {\mu _x},{\mu _y},\sigma _x^2,or \sigma _y^2.\)

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?

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