Exam PApplicationsFree to read

Repeated trials and the multinomial model

When each independent trial falls into one of several categories, the multinomial coefficient counts the arrangements and the probabilities multiply.

The formulas

Multinomial probability
P(N1=k1,…,Nm=km)=n!k1!⋯km! p1k1⋯pmkmP(N_1=k_1,\dots,N_m=k_m) = \dfrac{n!}{k_1!\cdots k_m!}\,p_1^{k_1}\cdots p_m^{k_m}
Marginals
Nj∼Binomial(n,pj)N_j \sim \text{Binomial}(n, p_j)
Covariance
Cov⁡(Ni,Nj)=−npipj,i≠j\operatorname{Cov}(N_i, N_j) = -n p_i p_j, \quad i \ne j
Constraint
∑jkj=n,∑jpj=1\sum_j k_j = n, \qquad \sum_j p_j = 1

Where it comes from

  1. Any one arrangement with those category counts has probability p1k1⋯pmkmp_1^{k_1}\cdots p_m^{k_m} by independence.
  2. The number of such arrangements is the multinomial coefficient, so multiply.
  3. Collapsing all categories but one back into 'other' turns the multinomial into a binomial, which gives the marginals immediately.

Worked example

The letters of the word BALANCE are arranged at random. How many distinct arrangements are there?

  1. BALANCE has 7 letters, of which A appears twice and every other letter once.
  2. Distinct arrangements of nn items with repeat counts k1,…,kmk_1,\dots,k_m number n!k1!⋯km!\dfrac{n!}{k_1!\cdots k_m!} - the multinomial coefficient.
  3. Only A repeats, so the denominator is 2!2! and everything else contributes 1!1!.
  4. 7!2!=50402=2,520\dfrac{7!}{2!} = \dfrac{5040}{2} = 2{,}520 distinct arrangements.

Answer: 2,520

This answer is recomputed from the site’s own interest-theory and probability functions every time the test suite runs, so the page and the mathematics cannot drift apart.

Memory hooks

  • The multinomial coefficient is 'total factorial over the product of the repeat factorials'.
  • Multinomial marginals are binomial. If a question asks about ONE category, forget the rest.

Traps

  • Forgetting that multinomial counts are negatively correlated - more of one category means fewer of another.
  • Miscounting the repeats when arranging letters.

Drill this topic: Combinatorics and counting has 16 questions, 2 of them solved free on that page, and the full question bank has 400. The drills are part of Premium. Every free sample and today’s mixed round stay free.

Related