Probability/Combinatorics Flashcards
1
Q
combinations
A
- a subset of distinct elements
- order does not matter
2 types
- With repetition (w/ replacement)
- (n + k - 1)!/k!(n-1)!
- multisubset
- n multichoose k
- combination is unique based on number of repeats in final answer, without regard to order
- Without repetition (w/o replacement)
- nCk= n!/k!(n-k)!
- basically permutation, but dividing out order (number of arrangements)
- this is also the binomial coefficient
2
Q
permutations
A
- ordered subset of element in a set
- permutation of all n items (number of ways to arrange n items) is n!
- always more permutations than combinations
- arrange a perm
2 types
- With repetition (w/ replacement)
- nk
- k spots, n options for each spot
- Without repetition (w/o replacement)
- nPk = n!/(n-k)!
- k-permutations of n
3
Q
counting principle
A
- if there are a ways to do one thing, and b ways to do another, there are a*b ways to do both
4
Q
probability
A
number of desired outcomes
total number of outcomes
5
Q
dependent events
A
- events A and B are dependent if the occurance of one effects the other
6
Q
independent events
A
- events A and B are independent if the occurance of one does not effect the other
- P(A | B) = P(A) and P(B | A) = P(B)
- if either P(A) == 0 or P(B) == 0, they are independent
7
Q
addition rule
A
P(A ∪ B) = P(A) + P(B) - P(A ∩ B)
-where-
P(A ∩ B) = 0 [if A and B are disjoint]
8
Q
product rule
A
If A and B are dependent:
- P(A ∩ B) = P(B) * P(A | B) = P(A) * P(B | A)
If A and B are independent:
- P(A ∩ B) = P(A) * P(B)
9
Q
general product rule
A
P(A1 ∩ A2 ∩ … ∩ An) =
P(A1) * P(A2 | A1) * P(A3 | A2 ∩ A1) * … * P(An |An-1 ∩ An-2 … ∩ A1)
- the probability of the intersection of all events is the probabiluty of the first, times the second given the first times the third given the second and the first time the nth given the intersection of all the previous ones
10
Q
bayes theorum
A
P(A | B) = P(A) * P(B | A)
P(B)
- just multipcation rule reordered
11
Q
law of total probability
A
P(B) = P(A ∩ B) + P(A’ ∩ B)
12
Q
arbitrary number of subsets
A
- generalization of the combinations rule, but with an arbitrary number of groups
- numerator is factorial of total group size
- denominator is the product of factorials of the individual group sizes you want to form
- all the k’s should equal n
n!/k1!…kr!
13
Q
distinguishable permutations
A
- permuting a set where elements repeat
- ex: permuting mississippi
Steps
- permute n elements as normal (n!)
- divide out the permutations of the repeating elements
- ex: 11!/2!*4!*4!
14
Q
set composition principle
A
- when using the multiplication rule (ie the counting principle) to enumerate distinct elements in a*b, a and b must be disjoint; if not, then you’re overcounting
- -or-*
- if you use the counting principle to generate a subset, you must be able to determine which item was derived in which step
-
ex:
- consider a 2-pair poker hand
- you get back the hand JJKK5
- you know the 5 had to come from the last step
- but did the K’s come from the first step or the second step?