Probability Flashcards
Week 2.5, 2.6 (31 cards)
define event
subset of the sample space
the 3 kolmogorov’s axioms
- P(A) >= 0 for any event A
- P(sample space) = 1
- if A1, A2, … are mutually exclusive then P(A1 u A2 u …) = P(A1) + P(A2) + …
mutually exclusive rule
P(A u B) = P(A) + P(N)
inclusion-exclusion principle
P(A u B) = P(A) + P(B) - P(A u B)
independent rule
P(A n B) = P(A).P(B)
rules with independence
- do not say A & B are independent if A n B = no set
- do not use rule unless it is given or you have valid justification for assuming A and B are independent
- if A and B are independent then A and ¬B are independent, then ¬A and ¬B are independent
bayes rule
P(A|B) = P(A n B)/P(B)
= P(B|A)P(A)/P(b)
total probability
P(B) = P(B n A1) + P(B n A2) + P(B n A3)
= P(B|A1).P(A1) + P(B|A2).P(A2) + P(B|A3).P(A3)
define random variables
- usually denoted as X, Y, Z
- is a function from a sample space to R
probability distribution
a description of the probability of all outcomes in the sample space
2 methods to describe probability distributions
- discrete
- continuous
examples of discrete probability distributions
- table
- probability mass function (PMF)
- cummulative distributive function (CMF)
examples of continuous probability distributions
- probability density function
- CDF
describe probability mass function
- expressed as a table or a graph
- all function values add up to 1
- fx(x) = P(X = x)
cummulative distribution functions
Fx(x) = P(X <= x)
functions of a random variable
if X is a discrete random variable, and g:R->R is any function, then Y = g(X) is also discrete random variable. its value is completely determined by X
linearity of expectation
if x is a discrete random variable, and Y = aX + b, then R(Y) = aE(X) + b for some a, b
law of the unconsious statistician
E(Y) = sum(g(x)fx(x))
variance
- Var(x) or o^2x
- Var(ax + b) = a^2Var[x]
expected value with variance
- E[(x - ux)^2] - ux = E(x)
- Var(x) = E[x^2] - (E[x])^2
standard deviation formula
ox = root(o^2x) = root(Var(x))
uniform distribution
- X ~ Uniform(x)
- if X is a discrete random variable that takes a value in finite set of consecutive integers and x takes each value with equal probability
PMF in uniform distribution
P(X = x) = 1/|A|