Skip to content

Instantly share code, notes, and snippets.

@johnmyleswhite
Created October 30, 2016 20:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save johnmyleswhite/a5f5048a5249b9b91e90302c4e6f00df to your computer and use it in GitHub Desktop.
Save johnmyleswhite/a5f5048a5249b9b91e90302c4e6f00df to your computer and use it in GitHub Desktop.
> binom.test(2, 12)
Exact binomial test
data: 2 and 12
number of successes = 2, number of trials = 12, p-value = 0.03857
alternative hypothesis: true probability of success is not equal to 0.5
95 percent confidence interval:
0.02086253 0.48413775
sample estimates:
probability of success
0.1666667
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment