/*! 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} Q1SE Test the standard normal pseudo-... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

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?

Short Answer

Expert verified

\(Generate using R with rnorm (n), and use q qnorm for Q - Q plot. \)

Step by step solution

01

Pseudo-random number

A fixed statistically random number as well as aspects that are obtained from a known preliminary step and therefore are usually repeated again and again.

02

To Test the standard normal pseudo-random number generator on your computer by generating a sample

In RStudio, generate a random sample of size n=10000 from a standard normal distribution using the built-in function r norm (n). Then, use the built-in function qqnorm to create the \(Q - Q\) plot. From the figure given below, one may see that the theoretical quantiles versus the sample quantiles create a reasonably straight line, meaning that the sample comes from a standard normal distribution.

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

Assume that one can simulate as many \({\bf{i}}.{\bf{i}}.{\bf{d}}.\)exponential random variables with parameters\({\bf{1}}\) as one wishes. Explain how one could use simulation to approximate the mean of the exponential distribution with parameters\({\bf{1}}\).

Test the t pseudo-random number generator on your computer. Simulate 10,000 t pseudo-random variables with m degrees of freedom for m=1,2,5,10,20. Then draw t quantile plots

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.

Let X1,……Xn+m be a random sample from the exponential distribution with parameter θ. Suppose that θ has the prior gamma distribution with known parameters α and β. Assume that we get to observe X1,…, Xn, but Xn+1,..., Xn+m are censored.

  1. First, suppose that the censoring works as follows: For i = 1,….,m, if Xn+i ≤ c, then we learn only that Xn+i ≤ c, but not the precise value of Xn+i. Set up a Gibbs sampling algorithm that will allow us to simulate the posterior distribution of θ in spite of the censoring.
  2. Next, suppose that the censoring works as follows: For i = 1,...,m, if Xn+i ≥ c, then we learn only that Xn+i ≥ c, but not the precise value of Xn+i. Set up a Gibbs sampling algorithm that will allow us to simulate the posterior distribution of θ in spite of the censoring

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?

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.