Chi-squared Goodness-of-Fit Neyman-Pearson Test

### ch03 p48
chisq.test(c(315,101,108,32), p=c(9,3,3,1)/16)
## 
##  Chi-squared test for given probabilities
## 
## data:  c(315, 101, 108, 32)
## X-squared = 0.47002, df = 3, p-value = 0.9254

Kolmogorov-Smirnov test

### ch03 p65
healthy=c(0.4855,-0.005,-0.2762,1.2765,1.8634,-0.5226,
          0.1034,-0.8076,0.6804,-2.3646)
ks.test(healthy,pnorm,0,1)
## 
##  One-sample Kolmogorov-Smirnov test
## 
## data:  healthy
## D = 0.10966, p-value = 0.9984
## alternative hypothesis: two-sided