- Remind
variance, standard deviation.
= E[(X -
)2]
- E[XY] = E[X]E[Y] if independent
- variance
of independent variables: sum of variances
- Pr[| X -
|
t
]
= Pr[(X -
)2
t2
]
1/t2
- binomial
distribution. variance np(1
- p). stdev
.
- requires
(only) a mean and variance. less applicable but more powerful than markov
- Balls
in bins: err /1 ln2n.
- pseudorandom
generators. Motivation. Idea of randomness as (complexity theoretic)
resource like space or time.
- pairwise
independent vars.
- generating
over Zp.
- pairwise
sufficient for chebyshev.
- Suppose
RP algorithm using n
bits.
- What
do with 2n bits?
- two
direct draws: error prob. 1/4.
- pseudorandom
generators gives error prob. 1/t for t trials.
= t/2.
=
/2.
- error
if no cert, i.e. Y - E[Y]
t/2, prob.
1/t.
Intro
- Markov:
Pr[f (X) > z] < E[f (X)]/z.
- Chebyshev
used X2
in f
- other
functions yield other bounds
- Chernoff
most popular
Theorem:
- Let Xi poisson (ie
independent 0/1) trials, E[
Xi] = 
Pr[X > (1 +
)
] < 

.
- note
independent of n, exponential in
.
Proof.
|
Pr[X > (1 + ) ]
|
=
|
Pr[exp(tX) > exp(t(1 + ) )]
|
|
|
|
<
|
![$\displaystyle {\frac{E[\exp(tX)]}{\exp(t(1+\delta)\mu)}}$](n5-img16.png)
|
|
|
E[exp(tX)]
|
=
|
E[exp(tXi)]
|
|
|
E[exp(tXi)]
|
=
|
piet + (1 - pi)
|
|
|
|
=
|
1 + pi(et - 1)
|
|
|
|

|
exp(pi(et - 1))
|
|
exp(pi(et - 1))
= exp(
(et - 1))
· So
overall bound is

True for any t.
Plug in t = ln(1 +
).
· This
in turn less than e- 
/4 for
< 2e -
1. (Less than 2- (1 +
)
for larger
).
· By
same argument on exp(- tX),
Pr[X < (1 -
)
] < 

![$\displaystyle \left.\vphantom{ \frac{e^{-\delta}}{(1-\delta)^{(1-\delta)}}}\right]^{\mu}_{}$](n5-img27.png)
bound e-
/2.
Summary, Probability of deviation by relative error
< 1 is at most e- 
/3 in each direction. Large
gives 2- (1 +
)
- Trails
off when


, meaning absolute error is ``expected'' to be 
- (note
variance is less than
. Compare Chebyshev).
- If
=
(log n),
probability of constant deviation is O(1/n), Useful if
polynomial number of events.
Remark: bound applies to any vars
distributed in range [0, 1].
Basic applications:
- cn log n
balls in c bins. max matches average
(unlike n balls in n
bins).
- Set
balancing (book p. 73). minimize max bias. get 4
.
Zillions of Chernoff applications; will see next time.
- Summary,
Probability of deviation by relative error
< 1 is at most e- 
/3
in each direction. Large
gives 2- (1 +
)
- Trails
off when


, meaning absolute error is ``expected'' to be 
- (note
variance is less than
. Compare
Chebyshev).
- If
=
(log n),
probability of constant deviation is O(1/n), Useful if
polynomial number of events.
· Basic
applications:
o Set
balancing. minimize max bias. 4
.
o cn log n balls in c bins. max matches average.