In [1]:
data <- scan("rn01.txt")

In [2]:
class <- cut(data, breaks=c(-Inf, qnorm((1:7)/8), Inf))
class


Out[2]:
  1. (-0.319,0]
  2. (-1.15,-0.674]
  3. (0.674,1.15]
  4. (-1.15,-0.674]
  5. (-1.15,-0.674]
  6. (-Inf,-1.15]
  7. (0.674,1.15]
  8. (-1.15,-0.674]
  9. (-Inf,-1.15]
  10. (0.674,1.15]
  11. (1.15, Inf]
  12. (0.319,0.674]
  13. (0,0.319]
  14. (-1.15,-0.674]
  15. (-1.15,-0.674]
  16. (1.15, Inf]
  17. (1.15, Inf]
  18. (-0.674,-0.319]
  19. (0.674,1.15]
  20. (0,0.319]
  21. (-0.674,-0.319]
  22. (-1.15,-0.674]
  23. (0,0.319]
  24. (-Inf,-1.15]
  25. (-Inf,-1.15]
  26. (1.15, Inf]
  27. (-0.319,0]
  28. (1.15, Inf]
  29. (-0.319,0]
  30. (0,0.319]
  31. (0.674,1.15]
  32. (-0.319,0]
  33. (-0.674,-0.319]
  34. (1.15, Inf]
  35. (-1.15,-0.674]
  36. (0.674,1.15]
  37. (-0.674,-0.319]
  38. (0.674,1.15]
  39. (0.674,1.15]
  40. (-1.15,-0.674]

In [3]:
chisq.test(table(class), p=rep(1/8, 8))


Out[3]:
	Chi-squared test for given probabilities

data:  table(class)
X-squared = 9.2, df = 7, p-value = 0.2386