Randomized Algorithms (Spring 2010)/Balls and bins: Difference between revisions
imported>WikiSysop |
imported>WikiSysop |
||
Line 1: | Line 1: | ||
== Probability Basics == | == Probability Basics == | ||
=== The union bound === | |||
We are familiar with the [http://en.wikipedia.org/wiki/Inclusion–exclusion_principle principle of inclusion-exclusion] for finite sets. | We are familiar with the [http://en.wikipedia.org/wiki/Inclusion–exclusion_principle principle of inclusion-exclusion] for finite sets. | ||
{|border="1" | {|border="1" | ||
Line 44: | Line 46: | ||
\end{align}</math> | \end{align}</math> | ||
|} | |} | ||
The name of this inequality is [http://en.wikipedia.org/wiki/Boole's_inequality Boole's inequality]. It is usually referred by its nickname "the '''union bound'''". | The name of this inequality is [http://en.wikipedia.org/wiki/Boole's_inequality Boole's inequality]. It is usually referred by its nickname "the '''union bound'''". It is one of the most useful probability inequalities for randomized algorithm analysis. | ||
The expectation of <math>X</math> is defined as follows. | === Expectations === | ||
Let <math>X</math> be a discrete '''random variable'''. The expectation of <math>X</math> is defined as follows. | |||
{|border="1" | {|border="1" | ||
|'''Definition (Expectation):''' | |'''Definition (Expectation):''' |
Revision as of 12:25, 15 January 2010
Probability Basics
The union bound
We are familiar with the principle of inclusion-exclusion for finite sets.
Principle of Inclusion-Exclusion:
|
The principle can be generalized to probability events.
Principle of Inclusion-Exclusion:
|
The proof of the principle is due to measure theory, and is omitted here. The following inequality follows (nontrivially) the principle of inclusion-exclusion:
Theorem (the union bound):
|
The name of this inequality is Boole's inequality. It is usually referred by its nickname "the union bound". It is one of the most useful probability inequalities for randomized algorithm analysis.
Expectations
Let [math]\displaystyle{ X }[/math] be a discrete random variable. The expectation of [math]\displaystyle{ X }[/math] is defined as follows.
Definition (Expectation):
|
Linearity of Expectation
Balls-into-bins model
Imagine that [math]\displaystyle{ m }[/math] balls are thrown into [math]\displaystyle{ n }[/math] bins, in such a way that each ball is thrown into a bin which is uniformly and independently chosen from all [math]\displaystyle{ n }[/math] bins. We may ask several questions regarding the distribution of balls in the bins, including:
- the probability that there is no bin with more than one balls (the birthday problem)
- the expected number of balls in each bin (occupancy problem)
- the maximum load of all bins with high probability (occupancy problem)
- the probability that there is no empty bin (coupon collector problem)