PROBABILITY MODEL CHECKS

Comparing equal posteriors with different signal frequencies

Two Bayes calculations can return the same posterior probability while the evidence probability, the overall chance of seeing the signal, differs by a factor of two or more. This guide shows how and why.

What the posterior depends on

In a two-category model, Bayes theorem gives the posterior as prior × likelihood divided by evidence, where the evidence is prior × likelihood + (1 − prior) × alternative. The alternative is the chance of the signal in the other category. Multiply both likelihoods by the same positive number and the numerator and the two parts of the evidence all scale together, so the posterior does not move. The evidence, however, is a weighted sum of those likelihoods and scales by the same factor. Two worksheets can then report identical posteriors and different evidence values. This page uses a prior of 0.2 to show that pair.

The first likelihood pair

Take a prior of 0.2 for the category of interest, a signal likelihood of 0.8 in that category and 0.2 in the other. The evidence is 0.8 × 0.2 + 0.2 × 0.8 = 0.16 + 0.16 = 0.32. The posterior is the first term divided by the total, 0.16 / 0.32 = 0.5. The Bayes theorem calculator returns exactly these outputs. In words, the signal appears in 32 percent of cases under this model, and when it appears, the category of interest accounts for half of them. The posterior is a conditional probability, and the evidence is the denominator that makes it one.

Halving the likelihoods

Now use likelihoods of 0.4 and 0.1. Each is half of the matching value in the first pair, since 0.8 / 2 = 0.4 and 0.2 / 2 = 0.1. The evidence is 0.4 × 0.2 + 0.1 × 0.8 = 0.08 + 0.08 = 0.16, half of the earlier 0.32. The posterior is 0.08 / 0.16 = 0.5 again. The signal is now half as frequent in the model, yet the share attributable to the category of interest is unchanged. A report that quoted only the posterior would give no hint that the two cases describe signals of very different frequency.

The likelihood ratio is what the posterior sees

The ratio of the two likelihoods is 0.8 / 0.2 = 4 in the first case and 0.4 / 0.1 = 4 in the second. The posterior depends on the prior and on that ratio alone. In odds form, posterior odds equal prior odds times the ratio. Prior 0.2 has odds 0.25, and 0.25 × 4 = 1, which is a posterior of 0.5. Any pair of likelihoods with ratio 4 gives that result. A pair of 0.2 and 0.05 also has ratio 4, with evidence 0.04 + 0.04 = 0.08 and posterior 0.5. The common scale of the pair affects only how often the signal occurs, not what the signal says about the category.

Changing the ratio instead

To see the opposite behavior, keep the first signal likelihood at 0.8 and lower the alternative to 0.1. The ratio is now 8, the evidence is 0.8 × 0.2 + 0.1 × 0.8 = 0.16 + 0.08 = 0.24, and the posterior is 0.16 / 0.24 ≈ 0.6667. Posterior odds are 0.25 × 8 = 2, which is the same two thirds. The posterior moved because the ratio moved, and the evidence also changed, from 0.32 to 0.24. Comparing this pair with the halved pair shows that evidence can change with or without a change in the posterior, so the two outputs answer different questions.

Why the evidence probability matters

The evidence probability tells you how often the signal is expected to show up at all. In a screening-style model, a signal that is rare has few chances to be observed, even if each observation is strongly informative. In a monitoring model, a signal that fires often will produce many alerts, and the posterior says what fraction of them involve the category of interest. Two systems with the same posterior but evidence of 0.32 and 0.16 would produce twice as many alerts per case in the first system. The workload is different even though the interpretation of any single alert is the same. This page uses abstract categories, so none of these figures describes a real test or sensor. The same reasoning applies to a quality-control sorter or a spam filter in a made-up setting: the fraction of items flagged and the fraction of flagged items that are truly of interest are separate quantities, tied together by the prior. Reporting only one of them hides half of what the model says.

Both likelihood sets are valid probabilities

A common scaling must keep every likelihood between 0 and 1. Doubling the first pair would give 1.6 and 0.4, and 1.6 is not a probability, so that move is not allowed. Halving, quartering and any factor that keeps both values at or below 1 are fine. This restricts how far the signal frequency can be pushed upward: with 0.8 as the larger likelihood, the largest scale factor is 1.25, which gives 1.0 and 0.25. Downward scaling has no such limit, and likelihoods can shrink toward zero while the posterior stays at 0.5 as long as the ratio is 4. At the top of the allowed range, likelihoods of 1 and 0.25 give evidence 0.2 + 0.2 = 0.4 and the same posterior of 0.5, so the evidence can run from very small up to 0.4 across the equal-posterior family at this prior. The prior fixes the ceiling on how frequent the signal can be while still keeping that posterior.

Reading both outputs together

When you report a Bayes result, give the prior, both likelihoods, the evidence and the posterior. The posterior is the number most readers want, but the evidence allows them to check the arithmetic: the posterior should equal the first product divided by it. If the evidence looks too large or too small compared with the stated likelihoods, an input was probably swapped. Keep the category labels aligned too, since the alternative likelihood belongs to the complement of the category of interest. A swapped alternative changes both the evidence and the posterior, and the swap is easy to miss when the numbers are plausible.

What the example does not establish

The calculation takes the prior and likelihoods as supplied and does not infer a signal mechanism from observations. The two categories are abstract, exhaustive and exclusive. Real systems rarely come with exactly known likelihoods, and estimated values carry uncertainty that a single posterior hides. The OpenStax introductory business statistics text covers contingency tables and probability trees for readers who want to see the same ideas built from counts. Treat the results here as consequences of the stated inputs. If the prior itself changes, even with the same likelihoods, both outputs move. A prior of 0.1 with likelihoods 0.8 and 0.2 gives evidence 0.08 + 0.18 = 0.26 and a posterior of about 0.31, so the stability seen above belongs to a fixed prior and a fixed ratio together.

Reproduce the checks

First likelihood pair

Open the Bayes Theorem Calculator and enter:

Prior probability of A
0.2
Probability of evidence given A
0.8
Probability of evidence given not A
0.2

Expected output:

Probability of evidence

0.32

Posterior probability of A

0.5

The signal has model probability thirty-two hundredths.

Commonly scaled likelihoods

Open the Bayes Theorem Calculator and enter:

Prior probability of A
0.2
Probability of evidence given A
0.4
Probability of evidence given not A
0.1

Expected output:

Probability of evidence

0.16

Posterior probability of A

0.5

The signal frequency halves while the posterior stays fixed.

References and implementation scope

The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.

Sources

Related tasks