Multinomial Distribution Calculator

Inputs

Multinomial probability7.09%
Probability (decimal)0.070875
Multinomial coefficient840
Third count (n - x1 - x2)1
Expected counts5.00 / 3.00 / 2.00
How this was calculated
  1. Inputs: n = 10 trials with counts 6, 3 and 1 and probabilities 0.50, 0.30 and 0.20.
  2. Multinomial coefficient: 10! / (6! 3! 1!) = 840.
  3. Probability: 840 x 0.50^6 x 0.30^3 x 0.20^1 = 7.09%.
  4. Multinomial probability result: 7.09% - expected counts are 5.00 / 3.00 / 2.00.

The binomial distribution handles two outcomes; most real counting has more. Roll a die and ask for the probability of one face, a second face and the rest in specified counts; sample voters and split them three ways; count blood types in a donor panel - each is a multinomial question. The distribution extends the binomial honestly: in n independent trials, the probability of exactly x1 of the first outcome, x2 of the second and x3 of the third is the multinomial coefficient, n! / (x1! x2! x3!), times the probabilities raised to their counts and multiplied together.

Enter the number of trials, the first two counts, and the three probabilities, and this calculator returns the exact probability as a percentage and a decimal, the coefficient, the third count the first two leave behind, and the expected counts for comparison. The worked examples cover a 6-3-1 split of ten trials, a 3-3-6 split of twelve, and a 5-2-1 split of eight.

Worked examples

Ten trials split 6-3-1

(10 · 6 · 3 · 0.5 · 0.3 · 0.2)

Multinomial probability7.09%
Probability (decimal)0.070875
Multinomial coefficient840
Third count (n - x1 - x2)1
Expected counts5.00 / 3.00 / 2.00

Twelve trials split 3-3-6

(12 · 3 · 3 · 0.25 · 0.25 · 0.5)

Multinomial probability7.05%
Probability (decimal)0.070496
Multinomial coefficient18,480
Third count (n - x1 - x2)6
Expected counts3.00 / 3.00 / 6.00

Eight trials split 5-2-1

(8 · 5 · 2 · 0.6 · 0.25 · 0.15)

Multinomial probability12.25%
Probability (decimal)0.122472
Multinomial coefficient168
Third count (n - x1 - x2)1
Expected counts4.80 / 2.00 / 1.20

From binomial to multinomial

The binomial coefficient counts the orders in which successes and failures can arrive; the multinomial coefficient does the same for three piles. Ten trials split 6-3-1 can be arranged in 10! / (6! 3! 1!) = 840 distinct orders - that is the first example's coefficient, and it is worth pausing on how large these counts get: the twelve-trial 3-3-6 split of the second example carries a coefficient of 18,480. Every one of those orders has the same probability, and the distribution's answer is the count of orders times the probability of each.

The per-order probability is where the probabilities do their work. For the first example it is 0.50^6 x 0.30^3 x 0.20^1, and 840 times that product gives 0.070875 - a probability of 7.09%. Notice the structure: the coefficient rewards splits that can happen many ways, the probability product rewards splits near the likely ones, and the multinomial probability is the tension between the two.

The third count is never a free choice. Once n and the first two counts are set, x3 is whatever remains - 1 in the first example, 6 in the second, 1 in the third. The calculator derives and displays it, because the commonest multinomial error is specifying three counts that do not sum to n and computing a probability for an impossible event.

  • P = n! / (x1! x2! x3!) x p1^x1 x p2^x2 x p3^x3, with x1 + x2 + x3 = n.
  • The three probabilities must sum to 1; the third count is n minus the other two.
  • The coefficient counts arrival orders; the probability product prices each order.
  • Expected counts are n x p per category - the split the distribution is centred on.

The coefficient: counting the arrangements

Factorials grow violently, which is why the coefficient deserves its own line in the output. The third example is the modest end of the scale: eight trials split 5-2-1 arrange in only 168 orders. Move to the second example's twelve trials and the count is already 18,480. Nothing in the formula changes - the same division of factorials - but the numbers instruct you in why exact multinomial probabilities are almost always small: the orders multiply while the per-order probability, a product of fractions, collapses.

That collapse is visible in the second example's result. A coefficient of 18,480 sounds like abundance, yet the probability is 7.05% - because each individual order carries a probability of only 0.25^3 x 0.25^3 x 0.50^6. The split 3-3-6 is exactly the expected split for those probabilities, and still, precisely hitting it is a one-in-fourteen event. Distributions spread their mass over many neighbouring splits; exact hits are rare even at the centre.

The first example makes the same point from the other side: its split, 6-3-1 against expected counts of 5.00, 3.00 and 2.00, is off-centre in the third category, and its probability is 7.09% - nearly the same as the centred second example, because the smaller coefficient is offset by a kindlier probability product.

ExampleCoefficientProbabilityExpected counts
10 trials, 6-3-18407.09%5.00 / 3.00 / 2.00
12 trials, 3-3-618,4807.05%3.00 / 3.00 / 6.00
8 trials, 5-2-116812.25%4.80 / 2.00 / 1.20
Even the exactly-expected split of the second example scores only 7.05% - multinomial mass lives in the neighbourhood of a split, not on the split itself.

Worked examples

Example 1: Number of trials n 10; Count of outcome 1 6; Count of outcome 2 3; Probability of outcome 1 0.5; Probability of outcome 2 0.3; Probability of outcome 3 0.2. Multinomial probability = 7.09%. Supporting values: Probability (decimal) 0.070875; Multinomial coefficient 840; Third count (n - x1 - x2) 1; Expected counts 5.00 / 3.00 / 2.00. Inputs: n = 10 trials with counts 6, 3 and 1 and probabilities 0.50, 0.30 and 0.20. Multinomial coefficient: 10! / (6! 3! 1!) = 840. Probability: 840 x 0.50^6 x 0.30^3 x 0.20^1 = 7.09%. Multinomial probability result: 7.09% - expected counts are 5.00 / 3.00 / 2.00.

Example 2: Number of trials n 12; Count of outcome 1 3; Count of outcome 2 3; Probability of outcome 1 0.25; Probability of outcome 2 0.25; Probability of outcome 3 0.5. Multinomial probability = 7.05%. Supporting values: Probability (decimal) 0.070496; Multinomial coefficient 18,480; Third count (n - x1 - x2) 6; Expected counts 3.00 / 3.00 / 6.00. Inputs: n = 12 trials with counts 3, 3 and 6 and probabilities 0.25, 0.25 and 0.50. Multinomial coefficient: 12! / (3! 3! 6!) = 18,480. Probability: 18,480 x 0.25^3 x 0.25^3 x 0.50^6 = 7.05%. Multinomial probability result: 7.05% - expected counts are 3.00 / 3.00 / 6.00.

Example 3: Number of trials n 8; Count of outcome 1 5; Count of outcome 2 2; Probability of outcome 1 0.6; Probability of outcome 2 0.25; Probability of outcome 3 0.15. Multinomial probability = 12.25%. Supporting values: Probability (decimal) 0.122472; Multinomial coefficient 168; Third count (n - x1 - x2) 1; Expected counts 4.80 / 2.00 / 1.20. Inputs: n = 8 trials with counts 5, 2 and 1 and probabilities 0.60, 0.25 and 0.15. Multinomial coefficient: 8! / (5! 2! 1!) = 168. Probability: 168 x 0.60^5 x 0.25^2 x 0.15^1 = 12.25%. Multinomial probability result: 12.25% - expected counts are 4.80 / 2.00 / 1.20.

Expected counts and goodness of fit

The expected counts this page returns - n times each probability - are the bridge to the chi-square goodness-of-fit test, which is where multinomial probabilities do most of their professional work. The test compares an observed split against the expected one and asks whether the distance between them is within sampling noise. The first example's observed 6-3-1 against expected 5.00, 3.00, 2.00 is the shape of that comparison in miniature: close in two categories, a full count adrift in the third.

Exact probabilities answer the narrower question - this precise split, no neighbours admitted. That is the right question for lottery-style events, exact allele counts, and quality audits with a contractual split. For the broader question - is this data consistent with these probabilities at all - the goodness-of-fit machinery, which sums over the neighbourhood, is the right tool, and the expected counts here are its starting point.

When trials are not independent

The multinomial's price is its assumptions: fixed n, constant probabilities, independent trials. Sampling without replacement from a small population breaks the second assumption - each draw changes the composition of what remains - and the hypergeometric family, this page's related calculator among them, takes over. Drawing with replacement, or from a population large enough that draws barely dent it, restores the multinomial's licence.

Clustered data breaks independence more quietly: voters sampled by household, patients by clinic, defects by production batch. The counts still sum to n and the formula still computes, but the true spread of splits is wider than the multinomial claims, and exact probabilities like 12.25% overstate the precision on offer. The arithmetic is never the hard part of this distribution; the sampling design is.

Three outcomes and beyond

Nothing in the structure stops at three outcomes - the formula generalises to any number of categories with the same shape, a factorial of n over the product of the count factorials, times each probability raised to its count. This page fixes three because three covers the overwhelming majority of hand-checked cases - win-draw-loss, pass-refer-fail, the three-way survey split - while keeping every intermediate quantity visible.

The visibility matters more than it might seem. With the coefficient, the third count and the expected counts all printed, a multinomial calculation can be audited line by line: does the coefficient match the counts, do the counts sum to n, does the probability sit sensibly against the expected split? The third example passes all three audits at a glance - 168 orders, counts summing to 8, and 12.25% for a split modestly off its 4.80, 2.00, 1.20 centre.

FAQs

What probability does the 6-3-1 split of 10 trials give?

7.09%. The coefficient is 840 orders, each carrying a probability of 0.50^6 x 0.30^3 x 0.20^1, and 840 times that product is 0.070875.

Why is the exactly-expected split only 7.05% likely?

Because probability mass spreads over neighbouring splits. The 3-3-6 split of twelve trials is the centre for probabilities 0.25, 0.25, 0.50, and its 18,480 orders still only collect 7.05% of the mass - each individual order is very unlikely.

Do I enter the third count?

No - it is forced. With n = 10 and counts of 6 and 3, the third count is 1; with n = 12 and counts of 3 and 3, it is 6. The calculator derives and displays it so an impossible split can never be priced by accident.

What are the expected counts for?

Comparison and testing. They are n times each probability - 5.00, 3.00 and 2.00 in the first example - and they are both the distribution's centre and the benchmark the chi-square goodness-of-fit test measures an observed split against.

When should I use the hypergeometric instead?

When sampling without replacement from a small population, where each draw changes the probabilities for the next. The multinomial assumes constant probabilities and independent trials; the hypergeometric family prices the depleting-urn case.

Why is the third example's probability the largest at 12.25%?

Fewer trials concentrate the mass. Eight trials split 5-2-1 have only 168 possible orders to spread across, so a near-centre split collects 12.25% - against 7.09% and 7.05% for the larger examples. Exact-split probabilities shrink as n grows.

Sources

Related calculators

Binomial Distribution Calculator
Exact, at-most and at-least probabilities for a run of independent yes/no trials — with the combination count, mean and standard deviation.
Poisson Distribution Calculator
How likely an exact count of random events is, given their average rate — exact, at-most and more-than probabilities with the spread.
Hypergeometric Distribution Calculator
Drawing without replacement: the probability of an exact count of successes — with at-most and at-least probabilities and the expected count.