Multinomial Probability Calculator

Probability of getting exactly a given count in each of several categories over n independent trials, with the multinomial coefficient and expected counts.

Whole numbers, one per category, from 2 to 20 categories. Their total is the number of trials n. Use a point for decimals (1.5), no thousands separators, and separate numbers with spaces or a comma and a space.
One per category, in the same order, as decimals (0.25) or fractions (1/6). They must add up to 1. Leave empty if every category is equally likely.

Results

Probability of exactly these counts
0.003751
Probability of one particular order
1.6538 × 10⁻⁸
Number of orders (multinomial coefficient n! ÷ (x₁!·x₂!·…))
226,800
Number of trials n
10
Expected count in each category (n·pᵢ)
1.66667, 1.66667, 1.66667, 1.66667, 1.66667, 1.66667

How it’s calculated

The multinomial distribution extends the binomial from two outcomes to several. Each of n independent trials lands in exactly one of k categories, category i with probability pᵢ (the pᵢ add up to 1). The chance of seeing exactly x₁ in the first category, x₂ in the second and so on is the number of possible orders times the chance of any one order.

P(X₁ = x₁, …, X_k = x_k) = n! / (x₁!·x₂!···x_k!) × p₁^x₁ · p₂^x₂ ··· p_k^x_k n = x₁ + x₂ + … + x_k Expected count in category i = n·pᵢ, variance = n·pᵢ(1 − pᵢ)

Worked example (Siegrist, §11.5 The Multinomial Distribution): throw 10 fair dice. The chance that 1 and 6 appear once each and every other score twice is 10! / (1!·2!·2!·2!·2!·1!) × (1/6)^10 = 226,800 / 60,466,176 = 0.00375. Grouping the scores into three categories (“2”, “4”, anything else) with probabilities 1/6, 1/6, 2/3, the chance that 2 and 4 each appear 3 times is 10!/(3!·3!·4!) × (1/6)³(1/6)³(2/3)⁴ = 4200 × 0.0000042337 = 0.0178.

Probabilities are computed with logarithms of factorials, so even very unlikely outcomes from a million trials are shown in scientific notation rather than as 0.

Frequently asked questions

How is this different from the binomial distribution?

The binomial has exactly two outcomes (success or failure). The multinomial allows any number of outcome categories. With two categories, this calculator gives the same answer as the binomial.

What if my probabilities do not add up to 1?

Every trial must land in exactly one category, so the probabilities must total 1. Add an “other” category for whatever is left over, as in the 2 / 4 / anything-else example.

Can I enter fractions?

Yes. Enter probabilities as decimals such as 0.25 or fractions such as 1/6. Leave the box empty if all categories are equally likely.

Why is the probability so small?

Any one exact combination of counts is usually unlikely, especially with many trials, because there are so many possible combinations. Compare it with the probability of the most likely counts (near the expected counts) to judge it.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator