Question: Let (m=2^{31}-1, j=5), and (k=17). Let [ left{x_{1}, x_{2}, ldots, x_{17} ight}={m / 17-1,2 m / 17-1, ldots, m-1} ] Now for (i=18,19, ldots, 1017).

Let \(m=2^{31}-1, j=5\), and \(k=17\). Let

\[ \left\{x_{1}, x_{2}, \ldots, x_{17}\right\}=\{m / 17-1,2 m / 17-1, \ldots, m-1\} \]

Now for \(i=18,19, \ldots, 1017\). Compute a "random sample" of size 1,000 in this manner.

\(x[i]<-\bmod (x[i-j]+x[i-k], m)\)

\(u[i]<-x[i] / m\)

Produce a histogram of your sample, and compute some summary statistics. Does the sample appear to have come from a \(\mathrm{U}(0,1)\) distribution?

Step by Step Solution

3.50 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Statistical Analysis Questions!