Probability recap Flashcards
What is a finite probability space?
A finite probability space is defined by a sample space of possible outcomes and probability masses for each outcome such that their total sum is 1.
What is the formula to compute the probability of an event E in a finite probability space?
Pr[E] = Σ p(i) for all i in E, where p(i) is the probability mass of outcome i.
In a finite probability space where all outcomes are equally likely, how do you calculate the probability of an event E?
Pr[E] = |E| / |Ω|, where |E| is the size of event E and |Ω| is the size of the sample space.
What does the complementary event E represent?
E represents all outcomes not in E. Pr[E] = 1 - Pr[E].
Define conditional probability.
Conditional probability of E given F is Pr[E|F] = Pr[E ∩ F] / Pr[F], assuming Pr[F] > 0.
What is the union bound?
The union bound states Pr[∪Ei] ≤ ΣPr[Ei], for any events E1, E2, …, En.
When are two events E and F independent?
Two events are independent if Pr[E ∩ F] = Pr[E] × Pr[F].
How do you determine the probability of a union of disjoint events?
If events are disjoint, Pr[∪Ei] = ΣPr[Ei].
What is an example of a finite probability space?
Flipping a fair coin: Sample space Ω = {heads, tails}, p(heads) = p(tails) = 1/2.
Problem: If a fair die is rolled, what is the probability of rolling an even number?
Pr[even] = |E| / |Ω| = 3 / 6 = 1/2.
Problem: A biased coin has p(heads) = 2/3. What is p(tails)?
Pr[tails] = 1 - Pr[heads] = 1 - 2/3 = 1/3.
Describe the Process Naming problem sample space.
The sample space is the set of all n-tuples of integers between 0 and 2^k - 1, with 2^kn outcomes, each with probability 2^(-kn).
Problem: What is the probability that processes p1 and p2 choose the same identifier in the Process Naming problem?
Pr[E] = 2^(k(n-1)) × 2^(-kn) = 2^(-k).
What is the key idea of the union bound in randomized algorithms?
Decompose complex events into simple ones whose probabilities are easy to compute, then use the union bound to estimate the overall probability.
Define an infinite sample space.
An infinite sample space consists of all sequences of outcomes from a fixed set X, with weights assigned to each symbol.