3. Probability: Practical 3
Probability Rules
Until now we mostly used common sense and the (very versatile!) commands table()
and prop.table()
.
But let's revisit the probability equations. We briefly summarize the probability-rules we need here, so that you don't have to look them up.
First an explanation of the notation:
- = probability that event A occurs
- = probability that events A and B occur together, the joint probability of A and B
- = probability that event A or event B occurs
- = probability of A given that B occurs (= the probability of A conditional on B)
The four probability equations:
Note that the last equation (known as Bayes law) is in fact not really a new equation, but is just a rearrangement of the two alternative formulas for at the right.
Unlock full access