Question

27.2 Generate 15 numbers using a seed of x0 = 1 in the following generator: xn...

27.2 Generate 15 numbers using a seed of x0 = 1 in the following generator: xn = (5xn-1 + 1) mod16.

Perform a K-S test and check whether the sequence passes the test at a 95% confidence level.

Homework Answers

Answer #1

I HOPE ITS HELP FUL TO YOU IF YOU HAVE ANY DOBUTS PLS COMMENTS BELOW..I WILL BE THERE TO HELP YOU...ALL THE BEST..

AS FOR GIVEN DATA..

Generate 15 numbers using a seed of x0 = 1 in the following generator: xn = (5xn-1 + 1) mod16.

Perform a K-S test and check whether the sequence passes the test at a 95% confidence level.

EXPLANATION :-

Rcode:

> options(scipen = 999)
> x<-vector()
> x[1]=1;
> for(i in 2:15){
+ x[i]=((5*x[i-1])+1)
+ x[i]=x[i]%%16
+ }

> ks.test(x,"pnorm")

   One-sample Kolmogorov-Smirnov test

data: x
D = 0.91058, p-value = 0.0000000000000006661
alternative hypothesis: two-sided

a)

1 6 15 12 13 2 11 8 9 14 7 4 5 10 3

b)

From the p-value obtain from K-S test, this can be said that the sample follows normal distribution.

I HOPE YOU UNDERSTAND...PLS RATE THUMBS UP..ITS HELPS ME ALOT

THANK YOU....!!

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
27.2 Generate 15 numbers using a seed of x0 = 1 in the following generator: xn...
27.2 Generate 15 numbers using a seed of x0 = 1 in the following generator: xn = (5xn-1+ 1) mod16
Consider the above quadratic residue generator xn+1 = xn2 mod m with m = 4783 ×...
Consider the above quadratic residue generator xn+1 = xn2 mod m with m = 4783 × 4027. Write a program to generate pseudo-random numbers from this generator. Use this to determine the period of the generator starting with seed x0 = 196, and with seed x0 = 400?
The following 15 numbers were generated by a computer using a N(u, 26.5) model. 49.62 55.87...
The following 15 numbers were generated by a computer using a N(u, 26.5) model. 49.62 55.87 46.37 52.37 54.58 56.28 55.41 53.17 55.39 53.39 52.40 48.16 47.82 57.26 48.51 we wish to test H0 : u= 55 vs. HA : is not= 55. a) compute the z-statistic; b) give an accurate p-value using SAS; c) draw your conclusion by conducting your z-test at the 5% significance level; d) construct a 95% confidence interval for u.
Question (2) [5 marks] (Use R) Suppose you have a company producing cupcakes. Each cupcake is...
Question (2) [5 marks] (Use R) Suppose you have a company producing cupcakes. Each cupcake is supposed to contain 10 grams of sugar. The cupcakes are produced by a machine that adds the sugar in a bowl before mixing everything. You believe the machine does not add 10 grams of sugar for each cupcake. If your assumption is true, the machine needs to be fixed. You stored the level of sugar of thirty cupcakes. Note: You can create a randomized...
The following 14 numbers are generated by a computer using a N(u, standard deviation2) model. 49.62...
The following 14 numbers are generated by a computer using a N(u, standard deviation2) model. 49.62 55.87 44.59 54.38 55.80 55.85 53.11 53.34 49.12 47.80 55.28 49.27 48.72 43.66 we wish to test H0 : u = 55 vs. HA : u is not = 55. 1. compute x and s2; 2. compute the t-statistic; 3. give an accurate p-value using SAS; 4. draw your conclusion by conducting your t-test at the 5% significance level; 5. construct a 95% confidence...
Using a standard (balanced) die, the following sequence of numbers is rolled : 1, 3, 5,...
Using a standard (balanced) die, the following sequence of numbers is rolled : 1, 3, 5, 2, 6. Compute the amount of information in bits for this event (i.e. the minimal amount of information required to store this sequence).
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain...
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain why, If decimal number cannot be represented with 8 bits. a. -46 b. -63 c. 118 d. -128 e. 128 B). Perform following operations by converting the decimal numbers to 8-bit two’s complement binary. Check results by converting final result to decimal a. 94-53 b. 15–84
Generate 100 random numbers using the RAND function and create a frequency distribution and a histogram...
Generate 100 random numbers using the RAND function and create a frequency distribution and a histogram with bins of width 0.1. Apply the chi-square goodness of fit test (see Chapter 5) to test the hypothesis that the data are uniformly distributed. This question is from Business Analytics 3rd Edition by James R Evans and from Chapter 12 and question 1 The question is from following book and from Chapter 12 question 1 Textbook: James Evans, Business Analytics, 3nd edition, 2019,...
(1) Using a generator for a binomial distribution, we will test the results of Example 3.8.2....
(1) Using a generator for a binomial distribution, we will test the results of Example 3.8.2. Using software generate 500 random deviates for X from a B(10, 0.3) distribution and 500 random deviates for Y from a B(5, 0.3) distribution. Add corresponding random deviates from each distribution to form an empirical W=X+Y. Then use the theoretical result of Example 3.8.2 and directly generate another 500 random deviates for W from a B(15, 0.3). Order the result of the sum of...
Using R and install.packages("MASS"), library(MASS) 1. Generate the following vector using at least two methods. 0,...
Using R and install.packages("MASS"), library(MASS) 1. Generate the following vector using at least two methods. 0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4 2. Generate the following vector. Apple1, Banana2, Orange3, Cranberry4, Watermelon5 3. Generate the following vector using the “rep” function. a, a, b, b, c, c, a, a, b, b, c, c 4. In vector y = (8, 3, 5, 7, 6, 6, 8, 9, 2, 3, 9, 4, 10, 4, 11), which elements of y contains...