Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

9. (10 points) Computers are used to generate pseudo-random numbers x where 0 <

ID: 3327588 • Letter: 9

Question

9. (10 points) Computers are used to generate pseudo-random numbers x where 0 < x < 1. We want to test whether the computer generated numbers are evenly distributed according to their first digit, i.e. by .0xxx, .1xxx, .2xxx, …, .9xxx. For a series of 100 random numbers, the starting digits of the x’s are:

1st digit

0

1

2

3

4

5

6

7

8

9

# of x’s

9

14

9

9

5

13

15

9

10

7

Determine whether these x’s can pass for a random number series.

a. What is the null hypothesis?

b. What is the alternative hypothesis?

c. Enter the observed number of times a digit occurs in the pseudo-random series and the expected number of times that digit should occur into the X-squared goodness of fit applet.

http://home.ubalt.edu/ntsbarsh/Business-stat/otherapplets/goodness.htm

d. What is the number of degrees of freedom?

e. What is the p-value? Provide a screen shot of your answer.

f. Using a 90% confidence interval, should you accept or reject the null hypothesis?

1st digit

0

1

2

3

4

5

6

7

8

9

# of x’s

9

14

9

9

5

13

15

9

10

7

Explanation / Answer

Ans:

Chi square test for Goodness of fit:

a)H0:x’s can pass for a random number series.

b)Ha:x’s can not pass for a random number series.

c)

Calculated Chi square score=8.8

d)Degree of freedom=10-1=9

e)p-value=CHIDIST(8.8,9)=0.4559

f)Significance level=1-0.9=0.1

As,p-value>0.1,we fail to reject null hypothesis.

There is sufficient evidence to suggest that x’s can pass for a random number series.

1st digit Observed(O) Expected(E) (O-E)^2/E 0 9 10 0.1 1 14 10 1.6 2 9 10 0.1 3 9 10 0.1 4 5 10 2.5 5 13 10 0.9 6 15 10 2.5 7 9 10 0.1 8 10 10 0 9 7 10 0.9 Total 100 100 8.8