Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. x <- c(A = 100, B = 900) # the group B distribution of positive hits (A) and the rest (B) from a sample of 1000 produced by the model
  2.  
  3. p <- c(0.0078, 1-0.0078) # probability of naturally occuring event in the population of 136k, 0.78% for positive hits, resulting in the already mentioned 8 per 1000 hit rate
  4.  
  5. chisq.test(x, p = p)
  6.  
  7. X-squared = 1098.4, df = 1, p-value < 2.2e-16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement