Randomized Algorithms (Spring 2010)/Balls and bins: Difference between revisions
Jump to navigation
Jump to search
imported>WikiSysop |
imported>WikiSysop |
||
Line 1: | Line 1: | ||
== Random Variables and Expectations == | == Random Variables and Expectations == | ||
{|border="1" | |||
|'''Principle of Inclusion-Exclusion:''' | |||
|} | |||
Let <math>X</math> be a discrete '''random variable'''. | Let <math>X</math> be a discrete '''random variable'''. | ||
Revision as of 11:34, 15 January 2010
Random Variables and Expectations
Principle of Inclusion-Exclusion: |
Let [math]\displaystyle{ X }[/math] be a discrete random variable.
Definition (Independence):
|
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)