Binomial test for a single proportion - overview

This page offers structured overviews of one or more selected methods. Add additional methods for comparisons by clicking on the dropdown button in the right-hand column. To practice with a specific method click the button at the bottom row of the table

Binomial test for a single proportion
Binomial test for a single proportion
Independent variableIndependent variable
NoneNone
Dependent variableDependent variable
One categorical with 2 independent groupsOne categorical with 2 independent groups
Null hypothesisNull hypothesis
$\pi = \pi_0$
$\pi$ is the population proportion of "successes"; $\pi_0$ is the population proportion of successes according to the null hypothesis
$\pi = \pi_0$
$\pi$ is the population proportion of "successes"; $\pi_0$ is the population proportion of successes according to the null hypothesis
Alternative hypothesisAlternative hypothesis
Two sided: $\pi \neq \pi_0$
Right sided: $\pi > \pi_0$
Left sided: $\pi < \pi_0$
Two sided: $\pi \neq \pi_0$
Right sided: $\pi > \pi_0$
Left sided: $\pi < \pi_0$
AssumptionsAssumptions
Sample is a simple random sample from the population. That is, observations are independent of one another Sample is a simple random sample from the population. That is, observations are independent of one another
Test statisticTest statistic
$X$ = number of successes in the sample$X$ = number of successes in the sample
Sampling distribution of $X$ if H0 were trueSampling distribution of $X$ if H0 were true
Binomial($n$, $p$) distribution

Here $n = N$ (total sample size), and $p = \pi_0$ (population proportion according to the null hypothesis)
Binomial($n$, $p$) distribution

Here $n = N$ (total sample size), and $p = \pi_0$ (population proportion according to the null hypothesis)
Significant?Significant?
Two sided:
  • Check if $X$ observed in sample is in the rejection region or
  • Find two sided $p$ value corresponding to observed $X$ and check if it is equal to or smaller than $\alpha$
Right sided:
  • Check if $X$ observed in sample is in the rejection region or
  • Find right sided $p$ value corresponding to observed $X$ and check if it is equal to or smaller than $\alpha$
Left sided:
  • Check if $X$ observed in sample is in the rejection region or
  • Find left sided $p$ value corresponding to observed $X$ and check if it is equal to or smaller than $\alpha$
Two sided:
  • Check if $X$ observed in sample is in the rejection region or
  • Find two sided $p$ value corresponding to observed $X$ and check if it is equal to or smaller than $\alpha$
Right sided:
  • Check if $X$ observed in sample is in the rejection region or
  • Find right sided $p$ value corresponding to observed $X$ and check if it is equal to or smaller than $\alpha$
Left sided:
  • Check if $X$ observed in sample is in the rejection region or
  • Find left sided $p$ value corresponding to observed $X$ and check if it is equal to or smaller than $\alpha$
Example contextExample context
Is the proportion smokers amongst office workers different from $\pi_0 = .2$?Is the proportion smokers amongst office workers different from $\pi_0 = .2$?
SPSSSPSS
Analyze > Nonparametric Tests > Legacy Dialogs > Binomial...
  • Put your dichotomous variable in the box below Test Variable List
  • Fill in the value for $\pi_0$ in the box next to Test Proportion
Analyze > Nonparametric Tests > Legacy Dialogs > Binomial...
  • Put your dichotomous variable in the box below Test Variable List
  • Fill in the value for $\pi_0$ in the box next to Test Proportion
JamoviJamovi
Frequencies > 2 Outcomes - Binomial test
  • Put your dichotomous variable in the white box at the right
  • Fill in the value for $\pi_0$ in the box next to Test value
  • Under Hypothesis, select your alternative hypothesis
Frequencies > 2 Outcomes - Binomial test
  • Put your dichotomous variable in the white box at the right
  • Fill in the value for $\pi_0$ in the box next to Test value
  • Under Hypothesis, select your alternative hypothesis
Practice questionsPractice questions