Probability and Random Variables Flashcards
P(A) and P(B) are mutually exclusive if…?
P(A∩B) =0
“A intersect B” = 0
P(A) and P(B) are independent if…?
P(A∩B) = P(A) * P(B)
Probability Rule #3
P(A∪B) = P(A) + P(B) - P(A∩B)
Order matters (permutation)
nPk = n! / (n-k)!
Order doesn’t matter (combination)
nCk = n! / k!*(n-k)!
Equally likely outcome
(# of outcomes in A) / (# of outcomes in S)
Equally Likely Outcomes
(# of outcomes in A) / (# of outcomes in S)
What is a random variable?
A random variable is the number of possible outcomes of some event.
Random variables can be continuous (inclusive of decimal values) or discreet (whole numbers only)
What is a probability mass function?
A probability mass function or PMF, puts each RV into a table format with the probabilities of each outcome below the RV
Tossing a coin 2x, and landing on heads
RV is possible times you could land on heads
RV = x | 0 1 2
P(x) | 1/4 1/2 1/4
RULE 1: for any x, P(x) is greater than or equal to 0
RULE 2: ΣP(x) = 1
What is a cumulative distribution function?
A cumulative distribution function, or CDF is basically a PMF except that you add the probabilities of each RV up to and including that RV
To obtain the CDF, integrate the function of the PMF
CDF may include a column or row of x<1 which in the case of tossing a coin twice is 0
Also, in our example, for x>2, no matter the value is 1
RV = x | 0 1 2
P(x) | 1/4 3/4 1
Expected Value
Expected value or the mean (long term average)
μ(x) = E(x) = Σ (x * P(x))
Variance
σ^2 = E(x^2) - [E(x)]^2
NOTE: for the E(x^2) term, square the RV (x-value) not the probability. Multiply the x^2 value and each corresponding probability, add all terms for E(x^2) value
Standard Deviation
σ
Finding probability of a continuous random variable (RV)
integrate the f(x) between values of x (a & b)
Finding expected value of a continuous random variable
include one x value (RV) into the integration term so the integration will be over x*f(x)