Skip to content
Mathematics

Bayes calculator with frequencies

Combine a prior proportion with an observed feature. Expected frequencies per 10,000 cases help you check the conditional probability.

Free & no registration Calculated in your browser
01

Your inputs

The starting values are an example.

Decimals: 12.5 · Thousands: 1,234.56. Follow the field instructions for lists.

02

Your result

Enter your values and select Calculate.

Your calculation will appear here.

Your result will include the relevant values and units.

Understand the calculation

Formula and example

How it is calculated

P(A|B)=P(A)P(B|A)/[P(A)P(B|A)+(1−P(A))P(B|not A)].

Worked example

For P(A)=10%, P(B|A)=80% and P(B|not A)=20%, P(A|B)=0.08/(0.08+0.18)≈30.7692%.

Things to check

  • A and B can be any clearly defined events. Input values are assumptions or your own data, not a diagnosis.
  • If B is impossible under the inputs, the conditional probability is undefined.

Frequently asked questions

Why is a high hit rate alone not enough?

The prior probability P(A) and the frequency of B without A affect how many observed B cases actually belong to A.