Statistical Methods
Calculate the Probability of One Categorical Count Configuration
Define the research task
A multinomial mass answers ‘How probable is this exact vector of counts under these category probabilities?’ It does not answer ‘How incompatible are all possible outcomes at least this extreme?’ Use this check when debugging a categorical simulation or comparing an analytic mass with simulated configuration frequencies. Categories must be exhaustive and mutually exclusive, with independent trials and fixed probabilities.
Work through the check
- Align category labels, counts and probabilities in the same order.
- Verify nonnegative integer counts and probabilities summing to one.
- Calculate the multinomial coefficient and category-probability product, preferably on the log scale.
- Treat positive counts in a zero-probability category as impossible under the supplied model.
- Retain the log probability when the ordinary probability is extremely small.
Do not choose category probabilities by inspecting the desired outcome and then describe the probability as prespecified. A rare exact vector can occur even under a reasonable model; an inferential goodness-of-fit procedure requires its own definition and calibration.
Hypothetical example and reporting
For hypothetical counts [2,1,1] and probabilities [0.5,0.25,0.25], n = 4. The mass is 4!/(2!1!1!) × 0.5² × 0.25 × 0.25 = 0.1875. The natural log is approximately −1.673976. In a simulation audit, compare the frequency of precisely this vector—not all permutations of category labels—with this target.
Source and verification
Method checked 27 November 2026 against SciPy primary documentation: stats.multinomial. Examples are synthetic; this page does not assert human expert approval.