Skip to main content

Conditional Probability

A learning component illustrating conditional probability for two dependent binary variables.

Options

  • A | string: first variable. Default: 'A'.
  • B | string: second variable. Default: 'B'.

Examples

Live Editor
Result

Consider events and . Let and . Then we have and . These form the marginals in the following probability table

What are the inner cells equal to? If the events are random, we have .

Bnot B
A0.5
not A0.5
0.50.51.0

B not B
A
not A

Chooseand

What about the conditional probabilities?

0.20.40.60.81P(A|B)P(A|not B)1.8491.849

The events are independent because