Probability Flashcards
what’s the complement rule?
P(A) = 1 - P(not A)
P(not A) = 1 - P(A)
what’s the probability of both A and B occurring?
trick question!
If A and B are not independent:
P(A and B) = P(A|B)P(B) = P(B|A)P(A)
and if they are independent:
P(A and B) = P(A)P(B)
what’s the probability of A or B occurring?
P(A or B) = P(A) + P(B) - P(A and B)
note that P(A and B) depends on whether A and B are independent
what’s the probability of A or B or both occurring?
if A and B are not independent:
P(A or B or (A and B)) = P(A) + P(B) + P(A|B)P(A) = P(A) + P(B) + P(B|A)P(B)
If A and B are independent:
P(A or B or (A and B)) = P(A) + P(B) + P(A)P(B)
If A and B are mutually exclusive, then…
P(A and B) = 0
If we have n elements, how many ways can we arrange them?
n!
how many ways can we choose k elements from a set of n?
n! / (n-k)!
the p-value is the probability of obtaining the data at least as extreme as observed if the null hypothesis is ______
true
what’s the null hypothesis in linear regression?
that the feature has no relationship with the target (that its coefficient is 0)
expand P(A|B)
P(A|B) = P(A and B)/P(B)
generally, or means ___ in probability
addition
generally, and means ___ in probability
multiplication