Guest User

Untitled

a guest
Oct 27th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. > x = c(0.5)
  2. > ks.test(x, "punif")
  3.  
  4. One-sample Kolmogorov-Smirnov test
  5.  
  6. data: x
  7. D = 0.5, p-value = 1
  8. alternative hypothesis: two-sided
  9.  
  10. > x = c(0.25, 0.75)
  11. > ks.test(x, "punif")
  12.  
  13. One-sample Kolmogorov-Smirnov test
  14.  
  15. data: x
  16. D = 0.25, p-value = 1
  17. alternative hypothesis: two-sided
  18.  
  19. > x = c(1/6, 0.5, 5/6)
  20. > ks.test(x, "punif")
  21.  
  22. One-sample Kolmogorov-Smirnov test
  23.  
  24. data: x
  25. D = 0.16667, p-value = 1
  26. alternative hypothesis: two-sided
Add Comment
Please, Sign In to add comment