Mathwords logoMathwords

Multinomial Test — Definition, Formula & Example

The multinomial test is an exact goodness-of-fit test that checks whether counts spread across three or more categories match a claimed set of proportions. It finds the p-value directly from multinomial probabilities, so it does not rely on an approximation.

Let nn independent trials each fall into one of kk categories. Under H0:p1=p1,0,…,pk=pk,0H_0: p_1 = p_{1,0}, \ldots, p_k = p_{k,0}, the count vector (X1,…,Xk)(X_1, \ldots, X_k) follows a multinomial distribution. The exact p-value is the sum of P(X=y)P(\mathbf{X} = \mathbf{y}) over every possible outcome y\mathbf{y} whose null probability is less than or equal to the probability of the observed outcome.

Key Formula

P(X1=x1,…,Xk=xk)=n!x1! x2!⋯xk! p1x1p2x2⋯pkxkP(X_1 = x_1, \ldots, X_k = x_k) = \frac{n!}{x_1!\,x_2!\cdots x_k!}\,p_1^{x_1} p_2^{x_2}\cdots p_k^{x_k}
Where:
  • nn = Total number of trials, where x1+⋯+xk=nx_1 + \cdots + x_k = n
  • kk = Number of categories
  • xix_i = Count observed in category ii
  • pip_i = Probability of category ii under the null hypothesis, where p1+⋯+pk=1p_1 + \cdots + p_k = 1

Worked Example

Problem: A board-game spinner has three equal sections: red, blue, and green. You spin it 4 times, and it lands on red all 4 times. At the 0.05 significance level, is this convincing evidence that the spinner is not fair?
Step 1: State the hypotheses. Each expected count is 4⋅13=434 \cdot \tfrac{1}{3} = \tfrac{4}{3}, which is less than 5. The chi-square approximation is not reliable here, so you use the exact multinomial test.
H0:pR=pB=pG=13Ha:at least one pi≠13H_0: p_R = p_B = p_G = \tfrac{1}{3} \qquad H_a: \text{at least one } p_i \ne \tfrac{1}{3}
Step 2: Find the null probability of the observed outcome (4,0,0)(4, 0, 0).
P(4,0,0)=4!4! 0! 0!(13)4=181P(4,0,0) = \frac{4!}{4!\,0!\,0!}\left(\tfrac{1}{3}\right)^4 = \frac{1}{81}
Step 3: List every possible outcome by pattern. Each outcome of a pattern has the probability shown, and the probabilities of all 15 outcomes add to 1. Only the three outcomes with all 4 spins in one color have a probability of 181\tfrac{1}{81} or less.
3⋅181⏟(4,0,0)+6⋅481⏟(3,1,0)+3⋅681⏟(2,2,0)+3⋅1281⏟(2,1,1)=8181=1\underbrace{3 \cdot \tfrac{1}{81}}_{(4,0,0)} + \underbrace{6 \cdot \tfrac{4}{81}}_{(3,1,0)} + \underbrace{3 \cdot \tfrac{6}{81}}_{(2,2,0)} + \underbrace{3 \cdot \tfrac{12}{81}}_{(2,1,1)} = \tfrac{81}{81} = 1
Step 4: Add the probabilities of the outcomes at least as unlikely as the observed one to get the p-value.
p-value=381=127≈0.037<0.05p\text{-value} = \frac{3}{81} = \frac{1}{27} \approx 0.037 < 0.05
Answer: The exact p-value is 127≈0.037\tfrac{1}{27} \approx 0.037, which is less than 0.05. You reject H0H_0. There is convincing evidence that the spinner does not land on each color one-third of the time.

Why It Matters

In AP Statistics, the chi-square goodness-of-fit test requires every expected count to be at least 5. The multinomial test is the exact method that the chi-square test approximates. You use it when the samples are small, for example in genetics crosses with few offspring or in small surveys with several answer choices.

Common Mistakes

Mistake: Running a chi-square goodness-of-fit test when expected counts are below 5.
Correction: The chi-square p-value can be far off in that case. For the spinner, χ2=8\chi^2 = 8 with 2 degrees of freedom gives p≈0.018p \approx 0.018, about half the exact value of 0.037. Check the expected counts first, and use the exact multinomial test when they are small.

Related Terms

  • Binomial Test — The two-category special case of this exact test
  • Hypothesis Testing — The general four-step framework this test follows
  • Null Hypothesis — Supplies the claimed category proportions being tested
  • p-value — Computed exactly here by summing unlikely outcomes
  • Degrees of Freedom — Equals k minus 1 in the chi-square approximation
  • Test Statistic — Chi-square statistic replaces exact probabilities for large samples