Bayes/Conditional Probability

Published by Mario Oettler on

Last Updated on 28. April 2023 by Martin Schuster

While the confusion matrix is easy to understand, it is helpful to get a more general equation to calculate the likelihood of conditional events.

The formula for that is:

P(A|B): Conditional Probability that event A occurs under the condition that B has occurred.

P(B|A):  Conditional Probability that event B occurs under the condition that A has occurred.              

P(A):      Probability that event A occurs.

P(B):      Probability that event B occurs.

Example

Suppose we have three treasure boxes. In each box are two coins. This could be either a silver coin (S) or a gold coin (G). The following list shows how the coins are distributed among the boxes.

Box 1: GG

Box 2: GS

Box 3: SS

If we randomly select a box and draw a gold coin from it blindly, what is the likelihood of selecting box 1?

Categories:

https://blockchain-academy.hs-mittweida.de/wp-content/uploads/2021/04/logo_bcam_rgb_gross.png

Welcome

Blockchain Academy

Continue with credential

No account yet?

Powered by Hidy

Register with Hidy


Register
Sign in

We need the following credential to register:

please select:

To create a new account, we need the following data from you:

We would appreciate the following additional information from you for the creation of your account:

Welcome

Blockchain Academy

Continue with credential

Already have an account?

Powered by Hidy

Sign in with Hidy


Register
Sign in

We need the following credential to log in:

please select:
Do you need assistance?
Click here to open chat.

Privacy Notice: This chat sends your questions to an external AI server.
How can we help you?
  • Please note: All questions, chat history, and feedback are sent to an external AI server for processing. Do not share sensitive personal information.

    All responses are generated by AI. Independently verify and fact-check all information before use.
  • No Chat History yet, start talking...