CalcWorldHub
Free online calculator · no signup

Exact multinomial goodness of fit calculator

Check a small multinomial count vector against fully specified category probabilities by enumerating all feasible count vectors.

4,000 tools
Exact multinomial goodness of fit calculator — Observed category counts, Fixed null category probabilities and calculation method
Exact multinomial goodness of fit calculator: inputs and calculation method.

How to use this calculator

Check a small multinomial count vector against fully specified category probabilities by enumerating all feasible count vectors.

  1. Enter Observed category counts, Fixed null category probabilities. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Exact multinomial goodness of fit explained

Enumerate feasible multinomial count vectors and sum those no more probable than the observed vector for an exact probability-ordering test.

Exact multinomial probability-ordering p-value0.4859
Exact multinomial probability-ordering p-value: 0.48592875 in the worked scenario.

A numerical walkthrough

Observed category counts = 5,2,1; Fixed null category probabilities = 0.4,0.35,0.25.

  • Exact multinomial probability-ordering p-value: 0.48592875
  • Observed count-vector probability: 0.0526848
  • Count vectors enumerated: 45

Eight observations across three categories allow forty-five count vectors. The observed vector 5,2,1 is compared with each vector under probabilities 0.4,0.35,0.25.

The model behind the numbers

P(c)=n!Πpj^cj/Πcj!; pexact=Σc*:P(c*)≤P(cobs)P(c*).

Hold the total number of observations and null category probabilities fixed. Generate every nonnegative composition of that total, then sum the probabilities of vectors no more likely than the observed one. This is exact probability ordering, not a chi-square tail.

What to enter

c — Observed category counts
Enter nonnegative whole counts in category order; their sum is the fixed sample size n, limited to 30.
p — Fixed null category probabilities
Enter the fixed positive null probability for each matching category; the values must sum to one and be specified independently of the observed counts.

Interpreting the result

2–5 categories, positive null probabilities summing to one, and 1–30 observations. Probabilities must be specified independently of these data. Other exact two-sided orderings can give different results.

Reading the outputs

The exact p-value aggregates multiple vectors. The separately displayed observed-vector probability is not itself the p-value.

Frequently asked questions

Why not use the probability of my vector alone?

A p-value must include outcomes at least as extreme under a specified ordering.

Can I estimate p from these same counts?

That changes the null model and invalidates this fixed-probability test.

Why a small sample cap?

The number of count compositions grows rapidly with total count and category number.

How do I use the Exact multinomial goodness of fit calculator?

Enter Observed category counts, Fixed null category probabilities. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Exact multinomial goodness of fit?

Observed category counts = 5,2,1; Fixed null category probabilities = 0.4,0.35,0.25. Exact multinomial probability-ordering p-value: 0.48592875 Observed count-vector probability: 0.0526848 Count vectors enumerated: 45 Eight observations across three categories allow forty-five count vectors. The observed vector 5,2,1 is compared with each vector under probabilities 0.4,0.35,0.25.