The Second-Moment Method Will Perkins January 28, 2013 Markovs - - PowerPoint PPT Presentation

the second moment method
SMART_READER_LITE
LIVE PREVIEW

The Second-Moment Method Will Perkins January 28, 2013 Markovs - - PowerPoint PPT Presentation

The Second-Moment Method Will Perkins January 28, 2013 Markovs Inequality Recall Markovs inequality: Pr[ | X | t ] E | X | t Proof: E | X | = | X | dP + | X | dP : | X | < t : | X | t 0 + t Pr[ | X |


slide-1
SLIDE 1

The Second-Moment Method

Will Perkins January 28, 2013

slide-2
SLIDE 2

Markov’s Inequality

Recall Markov’s inequality: Pr[|X| ≥ t] ≤ E|X| t Proof: E|X| =

  • ω:|X|<t

|X| dP +

  • ω:|X|≥t

|X| dP ≥ 0 + t · Pr[|X| ≥ t]

slide-3
SLIDE 3

Markov’s Inequality

What was special about the absolute value function?

1 non-negative 2 increasing

We can apply the same proof to other functions.

slide-4
SLIDE 4

Chebyshev’s Inequality

Theorem Chebyshev’s Inequality Pr[|X − EX| ≥ t] ≤ var(X) t2 var(X) = E[|X − EX|2] ≥ t2 · Pr[|X − EX| ≥ t]

slide-5
SLIDE 5

Chebyshev’s Inequality

For example, if X has mean 3, variance 1, then the probability that X is more than 5 or less than 1 is bounded by 1/4. Is the bound a good bound for the Normal distribution? Give an example of a random variable where the Chebyshev bound is tight.

slide-6
SLIDE 6

The Weak Law of Large Numbers

As an application of Chebyshev’s Inequality, we can prove our first limit theorem. Theorem Let X1, X2, . . . be i.i.d. random variables with mean µ and variance σ2. Then for every ǫ > 0, Pr

  • X1 + · · · + Xn

n − µ

  • > ǫ
  • → 0 as n → ∞
slide-7
SLIDE 7

The Weak Law of Large Numbers

Comments: What does the WLLN say about political polling, for instance? Are all of the conditions necessary? Why do we say ‘Weak’?

slide-8
SLIDE 8

The Weak Law of Large Numbers

Proof: Let Un = X1+...Xn

n

and calculate EUn and var(Un) EUn = µ var(Un) = 1 n2

  • var(Xi) = σ2

n Now apply Chebyshev: Pr

  • X1 + · · · + Xn

n − µ

  • > ǫ
  • ≤ σ2

ǫ2n → 0 as n → ∞

slide-9
SLIDE 9

First-Moment Method

Let X be a counting r.v. If EX → 0 as n → ∞, then Pr[X = 0] → 1. But what if EX → ∞? Can we say that Pr[X = 0] → 0? No, not necessarily. Example: Let X = n2 with probability 1/n and 0 with probability 1 − 1/n. Then X = 0 whp, but EX → ∞.

slide-10
SLIDE 10

Counting Random Variables

If X is a counting random variable then by plugging in t = EX, Lemma Pr[X = 0] ≤ var(X) (EX)2 In particular, if EX → ∞ and var(X) = o

  • (EX)2

, then X ≥ 1 whp.

slide-11
SLIDE 11

An Example

m balls thrown randomly into n bins. We saw with the first-moment method that if m = (1 + ǫ)n log n, then whp there are no empty bins. But what if m = (1 − ǫ)n log n? Let X be the number of empty bins. EX = n ·

  • 1 − 1

n m If m = (1 − ǫ)n log n then EX ∼ nǫ → ∞. But to conclude that X ≥ 1 whp, we need the second-moment method.

slide-12
SLIDE 12

Calculating the Variance

Let X = X1 + X2 + · · · + Xn. Then var(X) =

n

  • i=1

var(Xi) +

  • i=j

cov(Xi, Xj) Let Xi be the indicator rv that the ith bin is empty.

slide-13
SLIDE 13

Upper Bounding the Variance

Since we just need an upper bound to apply Chebyshev’s inequality, things become simpler. First, since the Xi’s are indicator rv’s, var(Xi) ≤ EXi and var(Xi) ≤ EX. Since EX → ∞ for our choice of m,

  • var(Xi) = o
  • (EX)2
slide-14
SLIDE 14

Bounding the Covariances

We need to bound

i=j cov(Xi, Xj). Each of the terms are the

same and there are n(n − 1) of them. cov(Xi, Xj) = E(XiXj) − EXiEXj = Pr[ i and j empty] − Pr[ i empty ] · Pr[ j empty ] =

  • 1 − 2

n m −

  • 1 − 1

n 2m We could calculate and show that this is small, but that is unnecessary: the covariance terms are negative.

slide-15
SLIDE 15

Conclusion

We showed that for m = (1 − ǫ)n log n, EX → ∞ and var(X) = o

  • (EX)2

Then using Chebyshev’s inequality with t = EX, we concluded that Pr[X = 0] = o(1).

slide-16
SLIDE 16

Applications of the 2nd Moment Method

What’s the ‘typical’ position of a simple random walk after n steps? What’s the longest run of Heads in n flips of a fair coin? What is the maximum of n independent standard normal RV’s?