VOOZH about

URL: https://www.geeksforgeeks.org/r-language/performing-binomial-test-in-r-programming-binom-test-method/

⇱ Performing Binomial Test in R programming - binom.test() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Performing Binomial Test in R programming - binom.test() Method

Last Updated : 12 Jul, 2025
With the help of binom.test() method, we can get the binomial test for some hypothesis of binomial distribution in R Programming.
Syntax: binom.test(x, n, p-value) Return: Returns the value of binomial test.
Example 1: Output:
Exact binomial test

data: 58 and 100
number of successes = 58, number of trials = 100, p-value = 0.1332
alternative hypothesis: true probability of success is not equal to 0.5
95 percent confidence interval:
 0.4771192 0.6780145
sample estimates:
probability of success 
 0.58 

Example 2: Output:
Exact binomial test

data: 1 and 36
number of successes = 1, number of trials = 36, p-value = 2.597e-13
alternative hypothesis: true probability of success is not equal to 0.6
95 percent confidence interval:
 0.0007030252 0.1452892647
sample estimates:
probability of success 
 0.02777778 

Comment
Article Tags:
Article Tags:

Explore