Probability recap Flashcards

1
Q

What is a finite probability space?

A

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.

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

What is the formula to compute the probability of an event E in a finite probability space?

A

Pr[E] = Σ p(i) for all i in E, where p(i) is the probability mass of outcome i.

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

In a finite probability space where all outcomes are equally likely, how do you calculate the probability of an event E?

A

Pr[E] = |E| / |Ω|, where |E| is the size of event E and |Ω| is the size of the sample space.

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

What does the complementary event E represent?

A

E represents all outcomes not in E. Pr[E] = 1 - Pr[E].

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

Define conditional probability.

A

Conditional probability of E given F is Pr[E|F] = Pr[E ∩ F] / Pr[F], assuming Pr[F] > 0.

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

What is the union bound?

A

The union bound states Pr[∪Ei] ≤ ΣPr[Ei], for any events E1, E2, …, En.

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

When are two events E and F independent?

A

Two events are independent if Pr[E ∩ F] = Pr[E] × Pr[F].

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

How do you determine the probability of a union of disjoint events?

A

If events are disjoint, Pr[∪Ei] = ΣPr[Ei].

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

What is an example of a finite probability space?

A

Flipping a fair coin: Sample space Ω = {heads, tails}, p(heads) = p(tails) = 1/2.

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

Problem: If a fair die is rolled, what is the probability of rolling an even number?

A

Pr[even] = |E| / |Ω| = 3 / 6 = 1/2.

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

Problem: A biased coin has p(heads) = 2/3. What is p(tails)?

A

Pr[tails] = 1 - Pr[heads] = 1 - 2/3 = 1/3.

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

Describe the Process Naming problem sample space.

A

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).

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

Problem: What is the probability that processes p1 and p2 choose the same identifier in the Process Naming problem?

A

Pr[E] = 2^(k(n-1)) × 2^(-kn) = 2^(-k).

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

What is the key idea of the union bound in randomized algorithms?

A

Decompose complex events into simple ones whose probabilities are easy to compute, then use the union bound to estimate the overall probability.

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

Define an infinite sample space.

A

An infinite sample space consists of all sequences of outcomes from a fixed set X, with weights assigned to each symbol.

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

Problem: Compute Pr[E] for the event that all sequences in Ω begin with ‘1’ in an infinite sample space where X={0,1}, and w(1)=1/2.

A

Pr[Eσ] = w(1) = 1/2.

17
Q

What happens when an event in an infinite sample space has probability 0?

A

An event with probability 0 might still occur; it just has an infinitely small likelihood.

18
Q

Problem: Show that the probability of at least one head in infinite coin flips is 1.

A

Pr[at least one head] = ΣPr[Eσi] = Σ2^(-i) = 1 (geometric series).

19
Q

What does independence mean for a collection of events?

A

A collection of events E1, E2, …, En is independent if Pr[∩Ei] = ΠPr[Ei] for all subsets of events.

20
Q

Problem: Suppose three coins are flipped. Are the events A (1st coin heads), B (2nd coin heads), and C (3rd coin tails) independent?

A

Yes, because Pr[A ∩ B ∩ C] = Pr[A] × Pr[B] × Pr[C] = 1/2 × 1/2 × 1/2 = 1/8.