WIPIVERSE All articles

Multinomial test

Definition
The multinomial test is a statistical hypothesis test used to evaluate whether observed frequencies of categorical outcomes differ significantly from expected frequencies under a specified multinomial distribution. It is essentially an exact goodness‑of‑fit test for categorical data with more than two possible outcomes.

Statistical framework

  • Model: Assumes that each observation belongs to one of k mutually exclusive categories, and that the vector of counts $(X_1, X_2, \dots , X_k)$ follows a multinomial distribution with parameters $n$ (total number of trials) and a probability vector $\boldsymbol{p} = (p_1, p_2, \dots , p_k)$ where $\sum_{i=1}^k p_i = 1$.
  • Null hypothesis ($H_0$): The true category probabilities are equal to the specified values $\boldsymbol{p}_0$.
  • Alternative hypothesis ($H_a$): At least one category probability differs from the corresponding value in $\boldsymbol{p}_0$.

Test statistic
The exact multinomial test evaluates the probability of obtaining a count vector that is at least as unlikely as the observed vector under $H_0$. The p‑value is computed as

$$ p = \sum_{\mathbf{x} \in \mathcal{R}} \frac{n!}{x_1!x_2!\dots x_k!} \prod_{i=1}^k p_{0i}^{x_i}, $$

where $\mathcal{R}$ is the set of all count vectors whose likelihood under $H_0$ is less than or equal to that of the observed vector. Because enumerating $\mathcal{R}$ can be computationally intensive for large $n$ or many categories, Monte Carlo simulation or asymptotic approximations (e.g., the chi‑square statistic) are commonly employed.

Relation to other tests

  • Chi‑square goodness‑of‑fit test: The chi‑square test approximates the multinomial test using the statistic $\chi^2 = \sum_{i=1}^k \frac{(X_i - n p_{0i})^2}{n p_{0i}}$ and a chi‑square distribution with $k-1$ degrees of freedom. This approximation is valid when expected counts are sufficiently large (commonly $ \ge 5$).
  • Exact multinomial test: Provides an exact p‑value without reliance on large‑sample approximations; analogous to Fisher’s exact test for a $2 \times 2$ contingency table.
  • Likelihood‑ratio test: Uses the statistic $G^2 = 2 \sum_{i=1}^k X_i \ln\left(\frac{X_i}{n p_{0i}}\right)$, which also converges to a chi‑square distribution under the same regularity conditions.

Assumptions

  1. Independent trials.
  2. Fixed total number of trials $n$.
  3. The categories are exhaustive and mutually exclusive.
  4. Under $H_0$, the probability vector $\boldsymbol{p}_0$ is fully specified (no parameters are estimated from the data). When probabilities are estimated, the test becomes a composite‑hypothesis test, and degrees of freedom must be adjusted.

Typical applications

  • Genetic studies evaluating Mendelian ratios of phenotypes.
  • Marketing research comparing observed consumer choices to expected market shares.
  • Quality‑control processes where products fall into multiple defect categories.
  • Survey analysis where respondents select one option among several alternatives.

Computational tools
Statistical software packages provide functions for the exact multinomial test or its approximations, e.g., multinomial.test in R (via the Exact or coin packages), MultinomialTest in Python’s statsmodels library, and built‑in procedures in SAS, Stata, and SPSS.

References

  • Agresti, A. (2002). Categorical Data Analysis (2nd ed.). Wiley.
  • Fisher, R. A. (1935). The Design of Experiments. Oliver & Boyd. (Original development of exact tests for categorical data.)
  • Mehta, C. R., & Patel, N. R. (1983). Exact inference for contingency tables. Statistical Science, 18(1), 55–70.

Summary
The multinomial test offers an exact method for testing goodness‑of‑fit in categorical data with multiple outcome categories. While the chi‑square approximation is widely used for large samples, the exact test remains the preferred approach when sample sizes are small or when the assumptions required for asymptotic approximations are not met.

Browse

More topics to explore

    Browse all articles