Week 5 - Probability Flashcards
Axioms of probability
- Pr(A) >= 0, probability can’t be negative
- Adding all probabilities of sample space is 1
- If events are mutually exclusive (the events cannot happen simultaneously), their probabilities can be added up
Pr(A or B) = Pr(A) + Pr(B)
Addition rule
- If events overlap, then we subtract the overlap
Pr(A or B) = Pr(A) + Pr(B) - Pr(A and B)
Random variable
Something that can have different values, with each value representing a possible outcome of an event
Value of random variable that actually occurs is called a realisation of that random variable (no longer uppercase anymore)
Probability distribution
Describes the probabilities of events for a given random variable
Complementary events
If we can Pr(A), then ‘All outcomes not in A’
Pr(A) + Pr(A^c) = 1
Random variable functions
Random variables can be discrete or continuous
- Any random variable X -> Cumulative distribution function (cdf)
- Discrete variables -> Probability mass function (pmf)
- Continuous variables -> Probability density function (pdf)
Independence
Two events are independent if the occurrence of one does not change the probability of occurrence of the other
Multiplication rule
A and B are independent events if:
Pr(A and B) = Pr(A) * Pr(B)
Joint probability
Probability of outcomes for two or more variables
Marginal probability
Probability of outcomes for a single variable
Conditional probability
Probability of outcomes for a single variable given information about a second variable
Pr(A | B) = Pr(A and B) / Pr(B)
If independent then Pr(A | B) = Pr(A)
Conditional probability distribution
Probability distribution where each probability is a conditional probability with the same condition
General multiplication rule
Pr(A and B) = Pr(A | B) * Pr(B)
(vise-versa)
Bayes’ theorem
Assuming we know Pr(B | A) but we want to know Pr(A | B)
Pr(A | B) = [Pr(B | A) * Pr(A)] / Pr(B)
Expected value
Also know as mean
Denoted as E(X)