Counting and Probability Flashcards
What is the “Rule of sum” in the context of counting theory?
The rule of sum says that the number of ways to choose one element from one of two disjoint sets is the sum of the cardinalities of the sets. | A U B | = |A| + |B|.
What is the “Rule of product” in the context of counting theory?
The rule of product says that the number of ways to choose an ordered pair is the number of ways to choose the first element times the number of ways to choose the second element. | A x B | = |A| . |B|
What is a string in context of sets? k-string?
A string over a finite set S is a sequence of elements of S. A string of length k is sometimes called a k-string.
What is a set permutation?
A permutation of a finite set S is an ordered sequence of all the elements of the S with each element appearing exactly once.
What is the number of set permutations?
Set which contains n elements has n! permutations.
What is a k-permutation and what is the number of k-permutations of n-set?
k-permutation of S is an ordered sequence of k elements of S, with no element appearing more than once in the sequence. The number of k-permutations of an n-set is:
n! / (n - k)!
What is a k-combination of a set?
A k-combination of an n-set S is a k-subset of S. Example:
{a,b,c,d} has six 2-combinations:
ab, ac, ad, bc, bd, cd
What is the number of k-combinations of n-set?
n! / (k! (n-k)!)
What are binomial coefficients?
(n choose k) denotes the number of k-combination of an n-set. (n choose k) = n! / (k! (n - k)!)
What is probability sample space?
Probability sample space is a set whose elements are called elementary events. Elementary event is a possible outcome of the experiment, so sample space is a set of all possible outcomes of an experiment.
What are probability axioms?
- Pr {A} >= 0 for any event A
- Pr {S} = 1
- Pr {A U B} = Pr{A} + Pr{B} for any two mutually exclusive events.
What is a discrete probability distribution?
A probability distribution is discrete if it is defined over a finite or countably infinite sample space.
What is a uniform probability distribution?
If S is finite and every elementary event s has probability Pr{s} = 1 / |S|.
What is continuous uniform probability distribution?
The continuous uniform probability distribution is an example of a probability distribution in which not all subsets of the sample space are considered to be events. The continuous uniform probability distribution is defined over a closed interval [a,b], where a < b. Each point between a and b should be “equally likely”. There are an uncountable number of points, so if all points were to be given the same finite, positive probability, then the probability axioms could not be satisfied. That’s why the probability is defined only on some of the subsets of S. For any closed interval [c,d], where a <= c <= d <= b, the continuous uniform probability distirbution defines the probability of the event [c,d] to be:
Pr{[c,d]} = (d - c) / (b - c)
How is the conditional probability of an event A given that another event B occured?
Pr{A | B} = Pr{ A ^ B } / Pr{B}