W8 - Counting and Combinatorics Flashcards

(6 cards)

1
Q

Inclusion and exclusion general case

A

|A ∪ B ∪ C| = |A| + |B| + |C| - |A ∩ B| - |A ∩ C| - |B ∩ C| + |A ∩ B ∩ C|

  • add individual sets.
  • subtract sum of sizes for all interception of two sets
  • subtract sum of sizes for all interception of three sets
  • ect
  • add the size of all of the sets AND together
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is ordered/unordeded
and with/without replacement

with ice-cream example

A

Imagine ice-cream cone:

Ordered = I care about the which order the scoop are stacked [mint, choco is different to choco, mint] - this is permutations.

With replacement = I can pick the same flavour multiple times

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

If we have a set of n elements and draw r elements from it

Ordered selection with replacement

A

n^r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

If we have a set of n elements and draw r elements from it

Ordered selection without replacement

A

nPr = n! / (n-r)!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If we have a set of n elements and draw r elements from it

Unordered selection with replacement

A

(n+r-1) choose r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

If we have a set of n elements and draw r elements from it

Unordered selection without replacement

A

nCr = n! / [ r! * (n-r)!]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly