Combinatorics, counting, probability theory Flashcards
What is the multiplication Principle?
If n1 ways of doing T1 and n2 –||– T2.
Then n1*n2 ways of preforming both together.
- n elements
- Choose r elements
What is a list of ordered elements with repetitions called? and what is the formula?
Sequence and n^r
- n elements
- Choose r elements
What is a list of ordered elements without repetitions called? and what is the formula?
Permutation and the formula is n!/(n-r)!
We can also write nPr which is translated to: “Number of permutations of n objects taken r at a time”
- n elements
- Choose r elements
What is a list of unordered elements with repetitions called? and what is the formula?
Multiset and the formula is (n+r-1 /r) (Not a division, but a vector)
- n elements
- Choose r elements
What is a list of ordered elements without repetitions called? and what is the formula?
Set and the formula is n!/r! * (n-r)!
Can also be written as (n r) as a vector which means “Number of combinations of n objects taken r at a time” or “n-choose-r”
How many different 5-card hands can you choose from a normal deck of 52 cards?
This is a set and we have n=52 elements and we have to choose r=5 cards. Then it’s 52-choose-5 or (52 5) or 52! / 5! 47! =
5251504948 / 5432*1 = 2,598,960
What is the formula for a Distinguishable premutation?
For a collection of n objects where the first object appears k1 times the next k2 times and so on:
n! / k1! * k2! …kt!
What is the Distinguishable premutation for Mississippi?
Formula: n! / k1! * k2! …kt! = 11! / 1!4!4!*2! = 34,650
What is the possible number of outcomes when rolling 3 indistinguishable dice?
We have a 3-element multiset, with n=6 (because we can roll from 1-6) and r=3.
from the formula (n+r-1 over r) = 8!/3! * 5! =
876/321 =56
What defines the pigeonhole principle?
If m pigeons are put into n pigeonholes for m>n, then at least on pigeonhole contains at least two pigeons.
Probability Theory:
When all events are equally likely what formula can you use?
We can use the following |E| / |A| =
|number of outcomes in E| / |Total number of outcomes|
What is the probability of drawing 3 kings from a deck of cards when drawing 3 cards?
Here E is the 4 kings in the deck so E =4 and our A is all the possible ways for us to pick 3 out of the 52 cards. 52-choose-3. So the probability is P(E) = 4 / 52-choose-3 = 4/22100 = 1/5525
The three different set operations:
Union, Intersection, Complement:
What does the three operations do on a an event E and F.
The union of E (union) F = {a in A | a (in) E or a (in) F}
The intersection of E (interest) F = {a (in) A | a (in) E and a (in) F}
The Complement of E (skrives E^c) = {a (in) A | a (not in) E}
If we want to find the precent of an event E, how can we find it?
P(E) = 1 - P(E)
If we want to find the percentage of the union between to events E (union) F, how do we find it?
P(E (union) F) = P(E) + P(F) - P(E (intersection) F)