140
Outline Chernoff Bounds (Applications) Pavlos Eirinakis 1 1 Lane Department of Computer Science and Electrical Engineering West Virginia University 16 February, 2012 Eirinakis Chernoff bounds

Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Embed Size (px)

Citation preview

Page 1: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Outline

Chernoff Bounds (Applications)

Pavlos Eirinakis1

1Lane Department of Computer Science and Electrical EngineeringWest Virginia University

16 February, 2012

Eirinakis Chernoff bounds

Page 2: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Outline

Outline

1 Chernoff Bounds - Coin Flips

Eirinakis Chernoff bounds

Page 3: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Outline

Outline

1 Chernoff Bounds - Coin Flips

2 Confidence Interval

Eirinakis Chernoff bounds

Page 4: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Outline

Outline

1 Chernoff Bounds - Coin Flips

2 Confidence Interval

3 Better Bounds for Special Cases

Eirinakis Chernoff bounds

Page 5: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Outline

Outline

1 Chernoff Bounds - Coin Flips

2 Confidence Interval

3 Better Bounds for Special Cases

4 Application: Set Balancing

Eirinakis Chernoff bounds

Page 6: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Let X be the number of heads in a sequence of n independent fair coin flips.

Eirinakis Chernoff bounds

Page 7: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Let X be the number of heads in a sequence of n independent fair coin flips.

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ =√

6 lnnn :

Eirinakis Chernoff bounds

Page 8: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Let X be the number of heads in a sequence of n independent fair coin flips.

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ =√

6 lnnn :

P(|X − n

2| ≥

√6n lnn

2) ≤ 2e−

13

n2

6 ln nn

Eirinakis Chernoff bounds

Page 9: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Let X be the number of heads in a sequence of n independent fair coin flips.

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ =√

6 lnnn :

P(|X − n

2| ≥

√6n lnn

2) ≤ 2e−

13

n2

6 ln nn

=2

n

Eirinakis Chernoff bounds

Page 10: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Let X be the number of heads in a sequence of n independent fair coin flips.

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ =√

6 lnnn :

P(|X − n

2| ≥

√6n lnn

2) ≤ 2e−

13

n2

6 ln nn

=2

n

Most of the times, the deviations from the mean are on the order of O(√

n lnn).

Eirinakis Chernoff bounds

Page 11: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Consider the probability of having no more than n4 heads or no fewer than 3n

4 tails in a sequenceof n independent fair coin flips

Eirinakis Chernoff bounds

Page 12: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Consider the probability of having no more than n4 heads or no fewer than 3n

4 tails in a sequenceof n independent fair coin flips and let X be the number of heads.

Eirinakis Chernoff bounds

Page 13: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Consider the probability of having no more than n4 heads or no fewer than 3n

4 tails in a sequenceof n independent fair coin flips and let X be the number of heads.Chebyshev’s bound:

Eirinakis Chernoff bounds

Page 14: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Consider the probability of having no more than n4 heads or no fewer than 3n

4 tails in a sequenceof n independent fair coin flips and let X be the number of heads.Chebyshev’s bound:

P(|X −E[X ]| ≥ α) ≤ Var [X ]

α2

Eirinakis Chernoff bounds

Page 15: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Consider the probability of having no more than n4 heads or no fewer than 3n

4 tails in a sequenceof n independent fair coin flips and let X be the number of heads.Chebyshev’s bound:

P(|X −E[X ]| ≥ α) ≤ Var [X ]

α2

Recall that Var [X ] = n4 .

Eirinakis Chernoff bounds

Page 16: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Consider the probability of having no more than n4 heads or no fewer than 3n

4 tails in a sequenceof n independent fair coin flips and let X be the number of heads.Chebyshev’s bound:

P(|X −E[X ]| ≥ α) ≤ Var [X ]

α2

Recall that Var [X ] = n4 .

P(|X − n

2| ≥ n

4) ≤ Var [X ]

( n4 )2

Eirinakis Chernoff bounds

Page 17: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Consider the probability of having no more than n4 heads or no fewer than 3n

4 tails in a sequenceof n independent fair coin flips and let X be the number of heads.Chebyshev’s bound:

P(|X −E[X ]| ≥ α) ≤ Var [X ]

α2

Recall that Var [X ] = n4 .

P(|X − n

2| ≥ n

4) ≤ Var [X ]

( n4 )2

=n4

( n4 )2

Eirinakis Chernoff bounds

Page 18: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Consider the probability of having no more than n4 heads or no fewer than 3n

4 tails in a sequenceof n independent fair coin flips and let X be the number of heads.Chebyshev’s bound:

P(|X −E[X ]| ≥ α) ≤ Var [X ]

α2

Recall that Var [X ] = n4 .

P(|X − n

2| ≥ n

4) ≤ Var [X ]

( n4 )2

=n4

( n4 )2

=4

n

Eirinakis Chernoff bounds

Page 19: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ = 12 :

Eirinakis Chernoff bounds

Page 20: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ = 12 :

P(|X − n

2| ≥ n

4) ≤ 2e−

13

n2

14

Eirinakis Chernoff bounds

Page 21: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ = 12 :

P(|X − n

2| ≥ n

4) ≤ 2e−

13

n2

14

=2

en24

Eirinakis Chernoff bounds

Page 22: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ = 12 :

P(|X − n

2| ≥ n

4) ≤ 2e−

13

n2

14

=2

en24

Chernoff’s inequality gives a bound that is exponentially smaller than the bound obtained usingChebyshev’s inequality.

Eirinakis Chernoff bounds

Page 23: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ = 12 :

P(|X − n

2| ≥ n

4) ≤ 2e−

13

n2

14

=2

en24

Chernoff’s inequality gives a bound that is exponentially smaller than the bound obtained usingChebyshev’s inequality.

Note

Hence, whether we use Markov’s, Chebyshev’s or Chernoff bounds depends on the informationwe have available:

Eirinakis Chernoff bounds

Page 24: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ = 12 :

P(|X − n

2| ≥ n

4) ≤ 2e−

13

n2

14

=2

en24

Chernoff’s inequality gives a bound that is exponentially smaller than the bound obtained usingChebyshev’s inequality.

Note

Hence, whether we use Markov’s, Chebyshev’s or Chernoff bounds depends on the informationwe have available:

1 If we only know the expectation of X (i.e., E[X ]), we use Markov’s bound.

Eirinakis Chernoff bounds

Page 25: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ = 12 :

P(|X − n

2| ≥ n

4) ≤ 2e−

13

n2

14

=2

en24

Chernoff’s inequality gives a bound that is exponentially smaller than the bound obtained usingChebyshev’s inequality.

Note

Hence, whether we use Markov’s, Chebyshev’s or Chernoff bounds depends on the informationwe have available:

1 If we only know the expectation of X (i.e., E[X ]), we use Markov’s bound.

2 If we also know the variation of X (i.e., Var [X ]), we use Chebyshev’s bound.

Eirinakis Chernoff bounds

Page 26: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ = 12 :

P(|X − n

2| ≥ n

4) ≤ 2e−

13

n2

14

=2

en24

Chernoff’s inequality gives a bound that is exponentially smaller than the bound obtained usingChebyshev’s inequality.

Note

Hence, whether we use Markov’s, Chebyshev’s or Chernoff bounds depends on the informationwe have available:

1 If we only know the expectation of X (i.e., E[X ]), we use Markov’s bound.

2 If we also know the variation of X (i.e., Var [X ]), we use Chebyshev’s bound.

3 If we also know that the variables are independent, we use Chernoff bound.

Eirinakis Chernoff bounds

Page 27: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Chernoff Bounds - Coin Flips

Example

Applying the Chernoff bound P(|X −µ | ≥ δ µ) ≤ 2e−µδ 2

3 for δ = 12 :

P(|X − n

2| ≥ n

4) ≤ 2e−

13

n2

14

=2

en24

Chernoff’s inequality gives a bound that is exponentially smaller than the bound obtained usingChebyshev’s inequality.

Note

Hence, whether we use Markov’s, Chebyshev’s or Chernoff bounds depends on the informationwe have available:

1 If we only know the expectation of X (i.e., E[X ]), we use Markov’s bound.

2 If we also know the variation of X (i.e., Var [X ]), we use Chebyshev’s bound.

3 If we also know that the variables are independent, we use Chernoff bound.

Eirinakis Chernoff bounds

Page 28: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Eirinakis Chernoff bounds

Page 29: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Definition

A 1− γ confidence interval for a parameter p is an interval [p̄−δ , p̄ +δ ] such that

P(p ∈ [p̄−δ , p̄ +δ ]) ≥ 1− γ

Eirinakis Chernoff bounds

Page 30: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Definition

A 1− γ confidence interval for a parameter p is an interval [p̄−δ , p̄ +δ ] such that

P(p ∈ [p̄−δ , p̄ +δ ]) ≥ 1− γ

Motivation

We want to estimate the value of a parameter p in the whole population.

Eirinakis Chernoff bounds

Page 31: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Definition

A 1− γ confidence interval for a parameter p is an interval [p̄−δ , p̄ +δ ] such that

P(p ∈ [p̄−δ , p̄ +δ ]) ≥ 1− γ

Motivation

We want to estimate the value of a parameter p in the whole population.Instead, we evaluate a sample n and estimate a value p̄ and an interval [p̄−δ , p̄ +δ ] in whichthe value of p will be included with probability 1− γ .

Eirinakis Chernoff bounds

Page 32: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Definition

A 1− γ confidence interval for a parameter p is an interval [p̄−δ , p̄ +δ ] such that

P(p ∈ [p̄−δ , p̄ +δ ]) ≥ 1− γ

Motivation

We want to estimate the value of a parameter p in the whole population.Instead, we evaluate a sample n and estimate a value p̄ and an interval [p̄−δ , p̄ +δ ] in whichthe value of p will be included with probability 1− γ .

Note

We want both the interval size 2δ and the error probability γ to be as small as possible.

Eirinakis Chernoff bounds

Page 33: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Definition

A 1− γ confidence interval for a parameter p is an interval [p̄−δ , p̄ +δ ] such that

P(p ∈ [p̄−δ , p̄ +δ ]) ≥ 1− γ

Motivation

We want to estimate the value of a parameter p in the whole population.Instead, we evaluate a sample n and estimate a value p̄ and an interval [p̄−δ , p̄ +δ ] in whichthe value of p will be included with probability 1− γ .

Note

We want both the interval size 2δ and the error probability γ to be as small as possible.

Eirinakis Chernoff bounds

Page 34: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Tradeoff between δ ,γ and n

Among n samples, we find the specific value we are interested in exactly in X = p̄n samples.

Eirinakis Chernoff bounds

Page 35: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Tradeoff between δ ,γ and n

Among n samples, we find the specific value we are interested in exactly in X = p̄n samples.Hence, we want to find a tradeoff between the values of δ and γ and the size of the sample n.

Eirinakis Chernoff bounds

Page 36: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Tradeoff between δ ,γ and n

Among n samples, we find the specific value we are interested in exactly in X = p̄n samples.Hence, we want to find a tradeoff between the values of δ and γ and the size of the sample n.Note that

P(p ∈ [p̄−δ , p̄ +δ ]) = P(np ∈ [n(p̄−δ),n(p̄ +δ)])

Eirinakis Chernoff bounds

Page 37: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Tradeoff between δ ,γ and n

Among n samples, we find the specific value we are interested in exactly in X = p̄n samples.Hence, we want to find a tradeoff between the values of δ and γ and the size of the sample n.Note that

P(p ∈ [p̄−δ , p̄ +δ ]) = P(np ∈ [n(p̄−δ),n(p̄ +δ)])

Also, if X = np̄ has a binomial distribution, then E[X ] = np.

Eirinakis Chernoff bounds

Page 38: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Tradeoff between δ ,γ and n

Among n samples, we find the specific value we are interested in exactly in X = p̄n samples.Hence, we want to find a tradeoff between the values of δ and γ and the size of the sample n.Note that

P(p ∈ [p̄−δ , p̄ +δ ]) = P(np ∈ [n(p̄−δ),n(p̄ +δ)])

Also, if X = np̄ has a binomial distribution, then E[X ] = np.Then, if p 6∈ [p̄−δ , p̄ +δ ], we have one of the following:

Eirinakis Chernoff bounds

Page 39: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Tradeoff between δ ,γ and n

Among n samples, we find the specific value we are interested in exactly in X = p̄n samples.Hence, we want to find a tradeoff between the values of δ and γ and the size of the sample n.Note that

P(p ∈ [p̄−δ , p̄ +δ ]) = P(np ∈ [n(p̄−δ),n(p̄ +δ)])

Also, if X = np̄ has a binomial distribution, then E[X ] = np.Then, if p 6∈ [p̄−δ , p̄ +δ ], we have one of the following:

1 if p < p̄−δ , then X = np̄ > n(p +δ) = E[X ](1+ δp ).

Eirinakis Chernoff bounds

Page 40: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Tradeoff between δ ,γ and n

Among n samples, we find the specific value we are interested in exactly in X = p̄n samples.Hence, we want to find a tradeoff between the values of δ and γ and the size of the sample n.Note that

P(p ∈ [p̄−δ , p̄ +δ ]) = P(np ∈ [n(p̄−δ),n(p̄ +δ)])

Also, if X = np̄ has a binomial distribution, then E[X ] = np.Then, if p 6∈ [p̄−δ , p̄ +δ ], we have one of the following:

1 if p < p̄−δ , then X = np̄ > n(p +δ) = E[X ](1+ δp ).

2 if p > p̄ +δ , then X = np̄ < n(p−δ) = E[X ](1− δp ).

Eirinakis Chernoff bounds

Page 41: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Confidence Interval

Tradeoff between δ ,γ and n

Among n samples, we find the specific value we are interested in exactly in X = p̄n samples.Hence, we want to find a tradeoff between the values of δ and γ and the size of the sample n.Note that

P(p ∈ [p̄−δ , p̄ +δ ]) = P(np ∈ [n(p̄−δ),n(p̄ +δ)])

Also, if X = np̄ has a binomial distribution, then E[X ] = np.Then, if p 6∈ [p̄−δ , p̄ +δ ], we have one of the following:

1 if p < p̄−δ , then X = np̄ > n(p +δ) = E[X ](1+ δp ).

2 if p > p̄ +δ , then X = np̄ < n(p−δ) = E[X ](1− δp ).

Eirinakis Chernoff bounds

Page 42: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

Eirinakis Chernoff bounds

Page 43: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3

Eirinakis Chernoff bounds

Page 44: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

Eirinakis Chernoff bounds

Page 45: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

and for δ < p (i.e., δp < 1), we have:

P(p 6∈ [p̄−δ , p̄ +δ ]) =

Eirinakis Chernoff bounds

Page 46: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

and for δ < p (i.e., δp < 1), we have:

P(p 6∈ [p̄−δ , p̄ +δ ]) = P(X < np(1− δp

))+P(X > np(1+δp

))

Eirinakis Chernoff bounds

Page 47: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

and for δ < p (i.e., δp < 1), we have:

P(p 6∈ [p̄−δ , p̄ +δ ]) = P(X < np(1− δp

))+P(X > np(1+δp

))

< e−np( δ

p )2

2 +e−np( δ

p )2

3

Eirinakis Chernoff bounds

Page 48: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

and for δ < p (i.e., δp < 1), we have:

P(p 6∈ [p̄−δ , p̄ +δ ]) = P(X < np(1− δp

))+P(X > np(1+δp

))

< e−np( δ

p )2

2 +e−np( δ

p )2

3

= e−nδ 22p +e−

nδ 23p

Eirinakis Chernoff bounds

Page 49: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

and for δ < p (i.e., δp < 1), we have:

P(p 6∈ [p̄−δ , p̄ +δ ]) = P(X < np(1− δp

))+P(X > np(1+δp

))

< e−np( δ

p )2

2 +e−np( δ

p )2

3

= e−nδ 22p +e−

nδ 23p

The above bound is not useful because

Eirinakis Chernoff bounds

Page 50: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

and for δ < p (i.e., δp < 1), we have:

P(p 6∈ [p̄−δ , p̄ +δ ]) = P(X < np(1− δp

))+P(X > np(1+δp

))

< e−np( δ

p )2

2 +e−np( δ

p )2

3

= e−nδ 22p +e−

nδ 23p

The above bound is not useful because it is expressed through p

Eirinakis Chernoff bounds

Page 51: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

and for δ < p (i.e., δp < 1), we have:

P(p 6∈ [p̄−δ , p̄ +δ ]) = P(X < np(1− δp

))+P(X > np(1+δp

))

< e−np( δ

p )2

2 +e−np( δ

p )2

3

= e−nδ 22p +e−

nδ 23p

The above bound is not useful because it is expressed through p and the value of p is unknown.

Eirinakis Chernoff bounds

Page 52: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

and for δ < p (i.e., δp < 1), we have:

P(p 6∈ [p̄−δ , p̄ +δ ]) = P(X < np(1− δp

))+P(X > np(1+δp

))

< e−np( δ

p )2

2 +e−np( δ

p )2

3

= e−nδ 22p +e−

nδ 23p

The above bound is not useful because it is expressed through p and the value of p is unknown.What can we do?

Eirinakis Chernoff bounds

Page 53: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

and for δ < p (i.e., δp < 1), we have:

P(p 6∈ [p̄−δ , p̄ +δ ]) = P(X < np(1− δp

))+P(X > np(1+δp

))

< e−np( δ

p )2

2 +e−np( δ

p )2

3

= e−nδ 22p +e−

nδ 23p

The above bound is not useful because it is expressed through p and the value of p is unknown.What can we do?We can use the fact that p ≤ 1, hence:

P(p 6∈ [p̄−δ , p̄ +δ ]) < e−nδ 2

2 +e−nδ 2

3

Eirinakis Chernoff bounds

Page 54: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Tradeoff between δ ,γ and n

Applying the following Chernoff bounds:

P(X ≥ (1+δ)µ) < e−µδ 2

3 and P(X ≤ (1−δ)µ) ≤ e−µδ 2

2

and for δ < p (i.e., δp < 1), we have:

P(p 6∈ [p̄−δ , p̄ +δ ]) = P(X < np(1− δp

))+P(X > np(1+δp

))

< e−np( δ

p )2

2 +e−np( δ

p )2

3

= e−nδ 22p +e−

nδ 23p

The above bound is not useful because it is expressed through p and the value of p is unknown.What can we do?We can use the fact that p ≤ 1, hence:

P(p 6∈ [p̄−δ , p̄ +δ ]) < e−nδ 2

2 +e−nδ 2

3

Setting γ = e−nδ 2

2 +e−nδ 2

3 , we obtain a tradeoff between δ ,γ and n.

Eirinakis Chernoff bounds

Page 55: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Special Case

Consider the case where each random variable takes its value from the set {−1,1} with theexact same probability (i.e., p = 1

2 ).

Eirinakis Chernoff bounds

Page 56: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Special Case

Consider the case where each random variable takes its value from the set {−1,1} with theexact same probability (i.e., p = 1

2 ).

Theorem

Let X1, . . . ,Xn be independent random variables with

P(Xi = 1) = P(Xi =−1) =1

2

Eirinakis Chernoff bounds

Page 57: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Special Case

Consider the case where each random variable takes its value from the set {−1,1} with theexact same probability (i.e., p = 1

2 ).

Theorem

Let X1, . . . ,Xn be independent random variables with

P(Xi = 1) = P(Xi =−1) =1

2

Let X = ∑ni=1 Xi . For any a > 0,

P(X ≥ a) ≤ e−a22n

Eirinakis Chernoff bounds

Page 58: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Special Case

Consider the case where each random variable takes its value from the set {−1,1} with theexact same probability (i.e., p = 1

2 ).

Theorem

Let X1, . . . ,Xn be independent random variables with

P(Xi = 1) = P(Xi =−1) =1

2

Let X = ∑ni=1 Xi . For any a > 0,

P(X ≥ a) ≤ e−a22n

Eirinakis Chernoff bounds

Page 59: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For any t > 0,

E[etXi ] =1

2et +

1

2e−t

Eirinakis Chernoff bounds

Page 60: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For any t > 0,

E[etXi ] =1

2et +

1

2e−t

To estimate E[etXi ], note that (by the Taylor series expansion for et ):

Eirinakis Chernoff bounds

Page 61: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For any t > 0,

E[etXi ] =1

2et +

1

2e−t

To estimate E[etXi ], note that (by the Taylor series expansion for et ):

et = 1+t

1!+

t2

2!+ . . .+

t i

i!+ . . .

Eirinakis Chernoff bounds

Page 62: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For any t > 0,

E[etXi ] =1

2et +

1

2e−t

To estimate E[etXi ], note that (by the Taylor series expansion for et ):

et = 1+t

1!+

t2

2!+ . . .+

t i

i!+ . . .

and

e−t = 1− t

1!+

t2

2!+ . . .+(−1)i t i

i!+ . . .

Eirinakis Chernoff bounds

Page 63: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For any t > 0,

E[etXi ] =1

2et +

1

2e−t

To estimate E[etXi ], note that (by the Taylor series expansion for et ):

et = 1+t

1!+

t2

2!+ . . .+

t i

i!+ . . .

and

e−t = 1− t

1!+

t2

2!+ . . .+(−1)i t i

i!+ . . .

Eirinakis Chernoff bounds

Page 64: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Thus:

E[etXi ] =1

2et +

1

2e−t

Eirinakis Chernoff bounds

Page 65: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Thus:

E[etXi ] =1

2et +

1

2e−t

= ∑i≥0

t2i

(2i)!

Eirinakis Chernoff bounds

Page 66: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Thus:

E[etXi ] =1

2et +

1

2e−t

= ∑i≥0

t2i

(2i)!

≤ ∑i≥0

(t2/2)i

i!

Eirinakis Chernoff bounds

Page 67: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Thus:

E[etXi ] =1

2et +

1

2e−t

= ∑i≥0

t2i

(2i)!

≤ ∑i≥0

(t2/2)i

i!

= et22

Eirinakis Chernoff bounds

Page 68: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Thus:

E[etXi ] =1

2et +

1

2e−t

= ∑i≥0

t2i

(2i)!

≤ ∑i≥0

(t2/2)i

i!

= et22

Using this estimation, we can evaluate E[etX ]:

E[etX ] = Πni=1E[eetXi ] ≤ e

t2 n2

Eirinakis Chernoff bounds

Page 69: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Thus:

E[etXi ] =1

2et +

1

2e−t

= ∑i≥0

t2i

(2i)!

≤ ∑i≥0

(t2/2)i

i!

= et22

Using this estimation, we can evaluate E[etX ]:

E[etX ] = Πni=1E[eetXi ] ≤ e

t2 n2

and, using Markov’s bound (recall that t > 0):

P(X ≥ a) =

Eirinakis Chernoff bounds

Page 70: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Thus:

E[etXi ] =1

2et +

1

2e−t

= ∑i≥0

t2i

(2i)!

≤ ∑i≥0

(t2/2)i

i!

= et22

Using this estimation, we can evaluate E[etX ]:

E[etX ] = Πni=1E[eetXi ] ≤ e

t2 n2

and, using Markov’s bound (recall that t > 0):

P(X ≥ a) = P(etX ≥ eta)

Eirinakis Chernoff bounds

Page 71: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Thus:

E[etXi ] =1

2et +

1

2e−t

= ∑i≥0

t2i

(2i)!

≤ ∑i≥0

(t2/2)i

i!

= et22

Using this estimation, we can evaluate E[etX ]:

E[etX ] = Πni=1E[eetXi ] ≤ e

t2 n2

and, using Markov’s bound (recall that t > 0):

P(X ≥ a) = P(etX ≥ eta) ≤ E[etX ]

eta

Eirinakis Chernoff bounds

Page 72: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Thus:

E[etXi ] =1

2et +

1

2e−t

= ∑i≥0

t2i

(2i)!

≤ ∑i≥0

(t2/2)i

i!

= et22

Using this estimation, we can evaluate E[etX ]:

E[etX ] = Πni=1E[eetXi ] ≤ e

t2 n2

and, using Markov’s bound (recall that t > 0):

P(X ≥ a) = P(etX ≥ eta) ≤ E[etX ]

eta≤ e

t2 n2 −ta

Eirinakis Chernoff bounds

Page 73: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Thus:

E[etXi ] =1

2et +

1

2e−t

= ∑i≥0

t2i

(2i)!

≤ ∑i≥0

(t2/2)i

i!

= et22

Using this estimation, we can evaluate E[etX ]:

E[etX ] = Πni=1E[eetXi ] ≤ e

t2 n2

and, using Markov’s bound (recall that t > 0):

P(X ≥ a) = P(etX ≥ eta) ≤ E[etX ]

eta≤ e

t2 n2 −ta

Eirinakis Chernoff bounds

Page 74: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Proof. Recall that for any a > 0 we want to prove that

P(X ≥ a) ≤ e−a22n

Eirinakis Chernoff bounds

Page 75: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Proof. Recall that for any a > 0 we want to prove that

P(X ≥ a) ≤ e−a22n

We have shown that

P(X ≥ a) ≤ et2n2 −ta

Eirinakis Chernoff bounds

Page 76: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Proof. Recall that for any a > 0 we want to prove that

P(X ≥ a) ≤ e−a22n

We have shown that

P(X ≥ a) ≤ et2n2 −ta

Therefore, we set t =

Eirinakis Chernoff bounds

Page 77: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Proof. Recall that for any a > 0 we want to prove that

P(X ≥ a) ≤ e−a22n

We have shown that

P(X ≥ a) ≤ et2n2 −ta

Therefore, we set t = an to obtain:

P(X ≥ a) ≤ e−a22n

Eirinakis Chernoff bounds

Page 78: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

Proof. Recall that for any a > 0 we want to prove that

P(X ≥ a) ≤ e−a22n

We have shown that

P(X ≥ a) ≤ et2n2 −ta

Therefore, we set t = an to obtain:

P(X ≥ a) ≤ e−a22n

Note

By symmetry, we also have:

P(X ≤ a) ≤ e−a22n

Eirinakis Chernoff bounds

Page 79: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Corollary

Let X1, . . . ,Xn be independent random variables with

P(Xi = 1) = P(Xi =−1) =1

2

Eirinakis Chernoff bounds

Page 80: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Corollary

Let X1, . . . ,Xn be independent random variables with

P(Xi = 1) = P(Xi =−1) =1

2

Let X = ∑ni=1 Xi . For any a > 0,

P(|X | ≥ a) ≤

Eirinakis Chernoff bounds

Page 81: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Corollary

Let X1, . . . ,Xn be independent random variables with

P(Xi = 1) = P(Xi =−1) =1

2

Let X = ∑ni=1 Xi . For any a > 0,

P(|X | ≥ a) ≤ 2e−a22n

Eirinakis Chernoff bounds

Page 82: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Transformation

We apply the transformation Yi =(Xi+1)

2 .

Eirinakis Chernoff bounds

Page 83: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Transformation

We apply the transformation Yi =(Xi+1)

2 .Why?

Eirinakis Chernoff bounds

Page 84: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Transformation

We apply the transformation Yi =(Xi+1)

2 .Why?

Corollary

Let Y1, . . . ,Yn be independent random variables with

P(Yi = 1) = P(Yi = 0) =1

2

Eirinakis Chernoff bounds

Page 85: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Transformation

We apply the transformation Yi =(Xi+1)

2 .Why?

Corollary

Let Y1, . . . ,Yn be independent random variables with

P(Yi = 1) = P(Yi = 0) =1

2

Let Y = ∑ni=1 Yi and µ = E[Y ] = n

2 .

Eirinakis Chernoff bounds

Page 86: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Transformation

We apply the transformation Yi =(Xi+1)

2 .Why?

Corollary

Let Y1, . . . ,Yn be independent random variables with

P(Yi = 1) = P(Yi = 0) =1

2

Let Y = ∑ni=1 Yi and µ = E[Y ] = n

2 .

1 For any a > 0, P(Y ≥ µ +a) ≤ e−2a2

n

Eirinakis Chernoff bounds

Page 87: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Transformation

We apply the transformation Yi =(Xi+1)

2 .Why?

Corollary

Let Y1, . . . ,Yn be independent random variables with

P(Yi = 1) = P(Yi = 0) =1

2

Let Y = ∑ni=1 Yi and µ = E[Y ] = n

2 .

1 For any a > 0, P(Y ≥ µ +a) ≤ e−2a2

n

2 For any δ > 0, P(Y ≥ (1+δ)µ) ≤ e−δ 2µ

Eirinakis Chernoff bounds

Page 88: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Transformation

We apply the transformation Yi =(Xi+1)

2 .Why?

Corollary

Let Y1, . . . ,Yn be independent random variables with

P(Yi = 1) = P(Yi = 0) =1

2

Let Y = ∑ni=1 Yi and µ = E[Y ] = n

2 .

1 For any a > 0, P(Y ≥ µ +a) ≤ e−2a2

n

2 For any δ > 0, P(Y ≥ (1+δ)µ) ≤ e−δ 2µ

Question

Why is the bound given by point (1) above special?

Eirinakis Chernoff bounds

Page 89: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):

Eirinakis Chernoff bounds

Page 90: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =

Eirinakis Chernoff bounds

Page 91: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =

Eirinakis Chernoff bounds

Page 92: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =n

∑i=1

Xi +1

2=

Eirinakis Chernoff bounds

Page 93: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =n

∑i=1

Xi +1

2=

1

2

n

∑i=1

Xi +n

2=

Eirinakis Chernoff bounds

Page 94: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =n

∑i=1

Xi +1

2=

1

2

n

∑i=1

Xi +n

2=

1

2X + µ

Eirinakis Chernoff bounds

Page 95: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =n

∑i=1

Xi +1

2=

1

2

n

∑i=1

Xi +n

2=

1

2X + µ

Then:

P(Y ≥ µ +a) =

Eirinakis Chernoff bounds

Page 96: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =n

∑i=1

Xi +1

2=

1

2

n

∑i=1

Xi +n

2=

1

2X + µ

Then:

P(Y ≥ µ +a) = P(1

2X + µ ≥ µ +a) =

Eirinakis Chernoff bounds

Page 97: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =n

∑i=1

Xi +1

2=

1

2

n

∑i=1

Xi +n

2=

1

2X + µ

Then:

P(Y ≥ µ +a) = P(1

2X + µ ≥ µ +a) = P(X ≥ 2a)

Eirinakis Chernoff bounds

Page 98: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =n

∑i=1

Xi +1

2=

1

2

n

∑i=1

Xi +n

2=

1

2X + µ

Then:

P(Y ≥ µ +a) = P(1

2X + µ ≥ µ +a) = P(X ≥ 2a)

Since, for any a > 0 (by the previous theorem), P(X ≥ a) ≤ e−a22n , we have that:

Eirinakis Chernoff bounds

Page 99: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =n

∑i=1

Xi +1

2=

1

2

n

∑i=1

Xi +n

2=

1

2X + µ

Then:

P(Y ≥ µ +a) = P(1

2X + µ ≥ µ +a) = P(X ≥ 2a)

Since, for any a > 0 (by the previous theorem), P(X ≥ a) ≤ e−a22n , we have that:

P(Y ≥ µ +a) =

Eirinakis Chernoff bounds

Page 100: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =n

∑i=1

Xi +1

2=

1

2

n

∑i=1

Xi +n

2=

1

2X + µ

Then:

P(Y ≥ µ +a) = P(1

2X + µ ≥ µ +a) = P(X ≥ 2a)

Since, for any a > 0 (by the previous theorem), P(X ≥ a) ≤ e−a22n , we have that:

P(Y ≥ µ +a) = P(X ≥ 2a) ≤ e−2a2

n

Eirinakis Chernoff bounds

Page 101: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (1):Using the fact that Yi = (Xi +1)/2, we have that

Y =n

∑i=1

Yi =n

∑i=1

Xi +1

2=

1

2

n

∑i=1

Xi +n

2=

1

2X + µ

Then:

P(Y ≥ µ +a) = P(1

2X + µ ≥ µ +a) = P(X ≥ 2a)

Since, for any a > 0 (by the previous theorem), P(X ≥ a) ≤ e−a22n , we have that:

P(Y ≥ µ +a) = P(X ≥ 2a) ≤ e−2a2

n

which completes the proof for point (1).

Eirinakis Chernoff bounds

Page 102: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (2):

Eirinakis Chernoff bounds

Page 103: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (2):We will utilize our previous result:

P(Y ≥ µ +a) ≤ e−2a2

n

Eirinakis Chernoff bounds

Page 104: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (2):We will utilize our previous result:

P(Y ≥ µ +a) ≤ e−2a2

n

For a = δ µ

Eirinakis Chernoff bounds

Page 105: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (2):We will utilize our previous result:

P(Y ≥ µ +a) ≤ e−2a2

n

For a = δ µ(Note that since δ > 0, also δ µ > 0):

P(Y ≥ (1+δ)µ) =

Eirinakis Chernoff bounds

Page 106: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (2):We will utilize our previous result:

P(Y ≥ µ +a) ≤ e−2a2

n

For a = δ µ(Note that since δ > 0, also δ µ > 0):

P(Y ≥ (1+δ)µ) = P(Y ≥ µ +δ µ)

Eirinakis Chernoff bounds

Page 107: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (2):We will utilize our previous result:

P(Y ≥ µ +a) ≤ e−2a2

n

For a = δ µ(Note that since δ > 0, also δ µ > 0):

P(Y ≥ (1+δ)µ) = P(Y ≥ µ +δ µ)

≤ e−2(δ µ)2

n

Eirinakis Chernoff bounds

Page 108: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (2):We will utilize our previous result:

P(Y ≥ µ +a) ≤ e−2a2

n

For a = δ µ(Note that since δ > 0, also δ µ > 0):

P(Y ≥ (1+δ)µ) = P(Y ≥ µ +δ µ)

≤ e−2(δ µ)2

n

= e− (δ µ)2

n2

Eirinakis Chernoff bounds

Page 109: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (2):We will utilize our previous result:

P(Y ≥ µ +a) ≤ e−2a2

n

For a = δ µ(Note that since δ > 0, also δ µ > 0):

P(Y ≥ (1+δ)µ) = P(Y ≥ µ +δ µ)

≤ e−2(δ µ)2

n

= e− (δ µ)2

n2

= e−(δ µ)2

µ

Eirinakis Chernoff bounds

Page 110: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Proof.

For point (2):We will utilize our previous result:

P(Y ≥ µ +a) ≤ e−2a2

n

For a = δ µ(Note that since δ > 0, also δ µ > 0):

P(Y ≥ (1+δ)µ) = P(Y ≥ µ +δ µ)

≤ e−2(δ µ)2

n

= e− (δ µ)2

n2

= e−(δ µ)2

µ

= e−δ 2µ

Eirinakis Chernoff bounds

Page 111: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Corollary

Let Y1, . . . ,Yn be independent random variables with

P(Yi = 1) = P(Yi = 0) =1

2

Eirinakis Chernoff bounds

Page 112: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Corollary

Let Y1, . . . ,Yn be independent random variables with

P(Yi = 1) = P(Yi = 0) =1

2

Let Y = ∑ni=1 Yi and µ = E[Y ] = n

2 .

Eirinakis Chernoff bounds

Page 113: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Corollary

Let Y1, . . . ,Yn be independent random variables with

P(Yi = 1) = P(Yi = 0) =1

2

Let Y = ∑ni=1 Yi and µ = E[Y ] = n

2 .

1 For any 0 < a < µ , P(Y ≥ µ −a) ≤ e−2a2

n

Eirinakis Chernoff bounds

Page 114: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Better Bounds for Special Cases

Corollary

Let Y1, . . . ,Yn be independent random variables with

P(Yi = 1) = P(Yi = 0) =1

2

Let Y = ∑ni=1 Yi and µ = E[Y ] = n

2 .

1 For any 0 < a < µ , P(Y ≥ µ −a) ≤ e−2a2

n

2 For any 0 < δ < 1, P(Y ≥ (1−δ)µ) ≤ e−δ 2µ

Eirinakis Chernoff bounds

Page 115: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Set balancing

Consider:

Eirinakis Chernoff bounds

Page 116: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Set balancing

Consider:

A n×m matrix A with entries in {0,1}, where aij ,(i = 1, . . .n, j = 1, . . .m) corresponds tothe element of the i th row and the j th column.

Eirinakis Chernoff bounds

Page 117: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Set balancing

Consider:

A n×m matrix A with entries in {0,1}, where aij ,(i = 1, . . .n, j = 1, . . .m) corresponds tothe element of the i th row and the j th column.

A m×1 vector b with entries in {−1,1}, where bj ,(j = 1, . . .m) corresponds to the j th

element of b.

Eirinakis Chernoff bounds

Page 118: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Set balancing

Consider:

A n×m matrix A with entries in {0,1}, where aij ,(i = 1, . . .n, j = 1, . . .m) corresponds tothe element of the i th row and the j th column.

A m×1 vector b with entries in {−1,1}, where bj ,(j = 1, . . .m) corresponds to the j th

element of b.

A n×1 vector c, where ci ,(i = 1, . . .n) corresponds to the i th element of c.

Eirinakis Chernoff bounds

Page 119: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Set balancing

Consider:

A n×m matrix A with entries in {0,1}, where aij ,(i = 1, . . .n, j = 1, . . .m) corresponds tothe element of the i th row and the j th column.

A m×1 vector b with entries in {−1,1}, where bj ,(j = 1, . . .m) corresponds to the j th

element of b.

A n×1 vector c, where ci ,(i = 1, . . .n) corresponds to the i th element of c.

Given A, we want to find the entries of vector b that minimize

||A ·b ||∞ = maxi=1,...n

|ci |

Eirinakis Chernoff bounds

Page 120: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Set balancing

Consider:

A n×m matrix A with entries in {0,1}, where aij ,(i = 1, . . .n, j = 1, . . .m) corresponds tothe element of the i th row and the j th column.

A m×1 vector b with entries in {−1,1}, where bj ,(j = 1, . . .m) corresponds to the j th

element of b.

A n×1 vector c, where ci ,(i = 1, . . .n) corresponds to the i th element of c.

Given A, we want to find the entries of vector b that minimize

||A ·b ||∞ = maxi=1,...n

|ci |

Motivation

This problem rises in designing statistical experiments.

Eirinakis Chernoff bounds

Page 121: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Set balancing

Consider:

A n×m matrix A with entries in {0,1}, where aij ,(i = 1, . . .n, j = 1, . . .m) corresponds tothe element of the i th row and the j th column.

A m×1 vector b with entries in {−1,1}, where bj ,(j = 1, . . .m) corresponds to the j th

element of b.

A n×1 vector c, where ci ,(i = 1, . . .n) corresponds to the i th element of c.

Given A, we want to find the entries of vector b that minimize

||A ·b ||∞ = maxi=1,...n

|ci |

Motivation

This problem rises in designing statistical experiments. Each column of A represents a subject inthe experiment and each row a feature.

Eirinakis Chernoff bounds

Page 122: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Set balancing

Consider:

A n×m matrix A with entries in {0,1}, where aij ,(i = 1, . . .n, j = 1, . . .m) corresponds tothe element of the i th row and the j th column.

A m×1 vector b with entries in {−1,1}, where bj ,(j = 1, . . .m) corresponds to the j th

element of b.

A n×1 vector c, where ci ,(i = 1, . . .n) corresponds to the i th element of c.

Given A, we want to find the entries of vector b that minimize

||A ·b ||∞ = maxi=1,...n

|ci |

Motivation

This problem rises in designing statistical experiments. Each column of A represents a subject inthe experiment and each row a feature.The vector b partitions the subjects into two disjointgroups (through multiplying either by 1 or by −1).

Eirinakis Chernoff bounds

Page 123: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Set balancing

Consider:

A n×m matrix A with entries in {0,1}, where aij ,(i = 1, . . .n, j = 1, . . .m) corresponds tothe element of the i th row and the j th column.

A m×1 vector b with entries in {−1,1}, where bj ,(j = 1, . . .m) corresponds to the j th

element of b.

A n×1 vector c, where ci ,(i = 1, . . .n) corresponds to the i th element of c.

Given A, we want to find the entries of vector b that minimize

||A ·b ||∞ = maxi=1,...n

|ci |

Motivation

This problem rises in designing statistical experiments. Each column of A represents a subject inthe experiment and each row a feature.The vector b partitions the subjects into two disjointgroups (through multiplying either by 1 or by −1). So we are looking a way to separate theparticipants into two groups so that each feature is roughly as balanced as possible between thetwo groups.

Eirinakis Chernoff bounds

Page 124: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Randomized Algorithm

The proposed randomized algorithm works as follows:

Eirinakis Chernoff bounds

Page 125: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Randomized Algorithm

The proposed randomized algorithm works as follows:

It randomly chooses the entries of b, with P(bi = 1) = P(bi =−1) = 12 .

Eirinakis Chernoff bounds

Page 126: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Randomized Algorithm

The proposed randomized algorithm works as follows:

It randomly chooses the entries of b, with P(bi = 1) = P(bi =−1) = 12 .

The choices for different entries are independent.

Eirinakis Chernoff bounds

Page 127: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Randomized Algorithm

The proposed randomized algorithm works as follows:

It randomly chooses the entries of b, with P(bi = 1) = P(bi =−1) = 12 .

The choices for different entries are independent.

Note that this algorithm ignores the entries of A!

Eirinakis Chernoff bounds

Page 128: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Randomized Algorithm

The proposed randomized algorithm works as follows:

It randomly chooses the entries of b, with P(bi = 1) = P(bi =−1) = 12 .

The choices for different entries are independent.

Note that this algorithm ignores the entries of A!We will show that using this approach it is likely that we obtain a rather tight bound for ||A ·b ||∞(i.e., O(

√m lnn)).

Eirinakis Chernoff bounds

Page 129: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Theorem

For a random vector b with entries chosen independently and with equal probability from the set{−1,1},

P(||A ·b ||∞ ≥√

4m lnn)) ≤ 2

n

Eirinakis Chernoff bounds

Page 130: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Theorem

For a random vector b with entries chosen independently and with equal probability from the set{−1,1},

P(||A ·b ||∞ ≥√

4m lnn)) ≤ 2

n

Eirinakis Chernoff bounds

Page 131: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Proof.

Consider the i th row of A: ai = ai1, . . . ,aim .

Eirinakis Chernoff bounds

Page 132: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Proof.

Consider the i th row of A: ai = ai1, . . . ,aim .Let k be the number of 1s in that row.

Eirinakis Chernoff bounds

Page 133: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Proof.

Consider the i th row of A: ai = ai1, . . . ,aim .Let k be the number of 1s in that row.If k ≤

√4m lnn, then it is obvious that |ai ·b| = |ci | ≤

√4m lnn for any values of b.

Eirinakis Chernoff bounds

Page 134: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Proof.

Consider the i th row of A: ai = ai1, . . . ,aim .Let k be the number of 1s in that row.If k ≤

√4m lnn, then it is obvious that |ai ·b| = |ci | ≤

√4m lnn for any values of b.

If k >√

4m lnn, then the k non-zero terms in Zi = ∑mj=1 aij bj are independent random variables.

Eirinakis Chernoff bounds

Page 135: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Proof.

Consider the i th row of A: ai = ai1, . . . ,aim .Let k be the number of 1s in that row.If k ≤

√4m lnn, then it is obvious that |ai ·b| = |ci | ≤

√4m lnn for any values of b.

If k >√

4m lnn, then the k non-zero terms in Zi = ∑mj=1 aij bj are independent random variables.

Each such random variable has a probability equal to 12 to be either +1 or −1.

Eirinakis Chernoff bounds

Page 136: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Proof.

Consider the i th row of A: ai = ai1, . . . ,aim .Let k be the number of 1s in that row.If k ≤

√4m lnn, then it is obvious that |ai ·b| = |ci | ≤

√4m lnn for any values of b.

If k >√

4m lnn, then the k non-zero terms in Zi = ∑mj=1 aij bj are independent random variables.

Each such random variable has a probability equal to 12 to be either +1 or −1.

Hence, Zi corresponds to the sum of Poisson trials with possible outcome in {−1,1} andprobability 1

2 for each outcome.

Eirinakis Chernoff bounds

Page 137: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Proof.

Consider the i th row of A: ai = ai1, . . . ,aim .Let k be the number of 1s in that row.If k ≤

√4m lnn, then it is obvious that |ai ·b| = |ci | ≤

√4m lnn for any values of b.

If k >√

4m lnn, then the k non-zero terms in Zi = ∑mj=1 aij bj are independent random variables.

Each such random variable has a probability equal to 12 to be either +1 or −1.

Hence, Zi corresponds to the sum of Poisson trials with possible outcome in {−1,1} andprobability 1

2 for each outcome.Therefore, we can use the previously obtained results, namely that for a > 0:

P(|X | ≥ a) ≤ 2e−a22n

Eirinakis Chernoff bounds

Page 138: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Proof.

Consider the i th row of A: ai = ai1, . . . ,aim .Let k be the number of 1s in that row.If k ≤

√4m lnn, then it is obvious that |ai ·b| = |ci | ≤

√4m lnn for any values of b.

If k >√

4m lnn, then the k non-zero terms in Zi = ∑mj=1 aij bj are independent random variables.

Each such random variable has a probability equal to 12 to be either +1 or −1.

Hence, Zi corresponds to the sum of Poisson trials with possible outcome in {−1,1} andprobability 1

2 for each outcome.Therefore, we can use the previously obtained results, namely that for a > 0:

P(|X | ≥ a) ≤ 2e−a22n

Thus, we will have:

P(|Zi | >√

4m lnn) ≤ 2e−4m ln n

2k

Eirinakis Chernoff bounds

Page 139: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Proof.

Consider the i th row of A: ai = ai1, . . . ,aim .Let k be the number of 1s in that row.If k ≤

√4m lnn, then it is obvious that |ai ·b| = |ci | ≤

√4m lnn for any values of b.

If k >√

4m lnn, then the k non-zero terms in Zi = ∑mj=1 aij bj are independent random variables.

Each such random variable has a probability equal to 12 to be either +1 or −1.

Hence, Zi corresponds to the sum of Poisson trials with possible outcome in {−1,1} andprobability 1

2 for each outcome.Therefore, we can use the previously obtained results, namely that for a > 0:

P(|X | ≥ a) ≤ 2e−a22n

Thus, we will have:

P(|Zi | >√

4m lnn) ≤ 2e−4m ln n

2k ≤ 2

n2

Eirinakis Chernoff bounds

Page 140: Chernoff Bounds (Applications) - West Virginia …community.wvu.edu/~krsubramani/courses/sp12/rand/lecnotes/chernoff...Chernoff Bounds (Applications) Pavlos Eirinakis1 1Lane Department

Chernoff Bounds - Coin FlipsConfidence Interval

Better Bounds for Special CasesApplication: Set Balancing

Application: Set Balancing

Proof.

Consider the i th row of A: ai = ai1, . . . ,aim .Let k be the number of 1s in that row.If k ≤

√4m lnn, then it is obvious that |ai ·b| = |ci | ≤

√4m lnn for any values of b.

If k >√

4m lnn, then the k non-zero terms in Zi = ∑mj=1 aij bj are independent random variables.

Each such random variable has a probability equal to 12 to be either +1 or −1.

Hence, Zi corresponds to the sum of Poisson trials with possible outcome in {−1,1} andprobability 1

2 for each outcome.Therefore, we can use the previously obtained results, namely that for a > 0:

P(|X | ≥ a) ≤ 2e−a22n

Thus, we will have:

P(|Zi | >√

4m lnn) ≤ 2e−4m ln n

2k ≤ 2

n2

Since we are interested for all Zi , i = 1, . . .n, the probability for the bound√

4m lnn to fail is 2n .

Eirinakis Chernoff bounds