Docsity

Advanced Algorithms Lecture 5: Azuma's Inequality and Lipschitz's Condition, Study notes of Computer Science

Toggle sidebar
bg1
CMPSCI 711 Really Advanced Algorithms Spring 2003
Lecture 5: February 11th
Lecturer: Micah Adler Scribe: Purushottam (Puru) Kulkarni
5.1 Recap
5.1.1 Azuma’s Inequality
Let X0, X1, X2,... be a martingale sequence such that, ∀k|Xk−Xk−1| ≤ c(for some constant c)
then ∀t > 0 and λ > 0,
P r [|Xt−X0| ≥ λ]≤2e
−λ2
2tc2
5.1.2 Method of bounded differences
The method of bounded differences can be applied using the following steps:
1. Define the random variable Z, as Z=f(X1, X2,...Xn)
2. Consider the Doob martingale, Zi=E[Z|X1. . . Xi]
3. Show that Zidoes not change much as the random variables Xi’s are incrementally revealed, i.e.,
∀i|Zi−Zi−1| ≤ c
4. Apply Azuma’s inequality to show that the probability of the final value of Zdeviating from it expec-
tation is very small.
Example 5.1 (From last lecture) Throw nballs uniformly and independently at random into nbins.
Define random variables,
Z= Number of empty bins after all balls are thrown and
Xi= Location of the ith ball
Define the Doob martingale Ztas follows,
Zt=E[Z|Location of first 0t0balls]
=E[Z|X1, X2,...Xt]
Claim 5.1 As we reveal Xi,|Zi−Zi−1| ≤ 1
Proof: Informal proof discussed last time. After each ball is thrown it either lands in a non-empty bin in
which case the expectation increases by less than 1and if the ball lands in an empty bin it decreases by at
most 1.
5-1
pf3
pf4
pf5

Partial preview of the text

Download Advanced Algorithms Lecture 5: Azuma's Inequality and Lipschitz's Condition and more Study notes Computer Science in PDF only on Docsity!

CMPSCI 711 Really Advanced Algorithms Spring 2003

Lecture 5: February 11th

Lecturer: Micah Adler Scribe: Purushottam (Puru) Kulkarni

5.1 Recap

5.1.1 Azuma’s Inequality

Let X 0 , X 1 , X 2 ,... be a martingale sequence such that, ∀k |Xk − Xk− 1 | ≤ c (for some constant c) then ∀t > 0 and λ > 0,

P r [|Xt − X 0 | ≥ λ] ≤ 2 e

−λ^2 2 tc^2

5.1.2 Method of bounded differences

The method of bounded differences can be applied using the following steps:

  1. Define the random variable Z, as Z = f (X 1 , X 2 ,... Xn)
  2. Consider the Doob martingale, Zi = E [Z|X 1... Xi]
  3. Show that Zi does not change much as the random variables Xi’s are incrementally revealed, i.e., ∀i |Zi − Zi− 1 | ≤ c
  4. Apply Azuma’s inequality to show that the probability of the final value of Z deviating from it expec- tation is very small.

Example 5.1 (From last lecture) Throw n balls uniformly and independently at random into n bins. Define random variables, Z = Number of empty bins after all balls are thrown and Xi = Location of the ith^ ball

Define the Doob martingale Zt as follows,

Zt = E [Z|Location of f irst ′t′^ balls] = E [Z|X 1 , X 2 ,... Xt]

Claim 5.1 As we reveal Xi, |Zi − Zi− 1 | ≤ 1 Proof: Informal proof discussed last time. After each ball is thrown it either lands in a non-empty bin in which case the expectation increases by less than 1 and if the ball lands in an empty bin it decreases by at most 1.

5-2 Lecture 5: February 11 th

5.2 Lipschitz’s condition

General technique to show a martingale sequence has the bounded property is as follows:

Let, f : D 1 ,... Dn −→ <, be a real–valued function from possibly different domains. Then we say that ‘f’ satisfies Lipschitz’s condition if:

∀X 1 ∈ D 1 ,... Xn ∈ Dn and ∀i such that 1 ≤ i ≤ n and ∀Xi′^ ∈ Di

|f (X 1 ,... Xi... Xn) − f (X 1 ,... X i′... Xn)| ≤ 1

i.e., if we take any input to the function ‘f ’ and then change one of the inputs to an arbitrary value, the absolute difference with the value of the original function is at most 1.

Claim 5.2 If the function ‘f ’ satisfies Lipschitz’s condition, then ∀ i, |Zi − Zi− 1 | ≤ 1

Referring to Example 5.1, we can define the random variable Z as a function ‘f ’ of all the Xi’s which denote the location of the n balls. The function ‘f ’ satisfies the Lipschitz’s condition. Given a certain set of values for all Xi’s, if we change the the location of any arbitrary ith^ ball, we can at most change the value of Z by

  1. The new placement can place the ball from a non–empty bin to a empty bin or from from a non–empty bin to a non–empty bin. Both the cases result in the total number of empty bins to vary by at most 1.

Example 5.2 (Graph coloring) Problem: Consider a graph G, assign each vertex a color so that no edge in the graph is monochromatic. γ(G): Minimum number of colors required to color G as defined above. Specifically, consider a random graph G

n, (^12)

, where, n : number of vertices of graph G and 1 2 is the probability of each possible edge being present in the graph. (total

n 2

edges possible in the graph)

Claim 5.

P r

[

|γ(G) − E[γ(G)]| > λ

n

]

≤ 2 e

−λ 22

i.e., Expected number of colors required to color a graph is concentrated close to it’s expectation.

Proof: The first step of the proof is to define a martingale.

Try 1 (Edge exposure martingale)

Let Xi =

1 edge ‘i’ of the

n 2

total edges is present 0 otherwise

The corresponding Doob martingale does satisfy Lipschitz’s condition and Azuma’s inequality can be applied.

But this is not an efficient method as a total number of

n 2

edges possible can exist in the graph and Xi

for all edges has to be revealed to get to the final value of γ(G). Which means t =

n 2

≈ n^2 , where ‘t’

is from the Azuma’s inequality. Using t ≈ n^2 and applying Azuma’s inequality,

P r

[

|γ(G) − E[γ(G)]| > λ

n

]

≈ 2 e

−λ^2 2 n^2 c^2

5-4 Lecture 5: February 11 th

Example 5.4 (Cliques in a random graphs) Consider a random graph G described by G(n, p), where ‘p’ is the probability of any edge being present in G from the set of all possible edges. ω(G) : maximum number of vertices in a clique of the graph G. Also, the probability that we generate a specific random graph ‘g’ is given by,

P r[G = g] = p∈(1 − p)

n 2

−∈

where ‘∈’ is the number of edges in G

5.3 Second Moment Method

Consider a random variable X with some associated probability distribution. E[X 2 ] is the second moment of X. The second moment is used to say something about the random variable and in particular used to bound the probability that a certain property exists.

Referring to Example 5.4, we want to bound the probability of having a clique of some size and will use the Second Moment method to bound this value with a high probability. Fix a positive integer ‘k’: Y = Number of cliques of size ‘k’ in G ∼ G(n, p), Y is a non–negative integer valued random variable.

Properties of non–negative random variable:

P r[Y 6 = 0] ≤ E[Y ]

P r[Y = 0] ≤

V ar[Y ] E[Y ]^2

A slightly stronger inequality is,

P r[Y = 0] ≤

V ar[Y ] E[Y 2 ]

this is due to the fact,

V ar[Y ] = E[Y 2 ] − E[Y ]^2

and since V ar[Y ] is non–negative, E[Y 2 ] ≥ E[Y ]^2. (Refer Problem 3-6 in [MR95])

Bounds on value of k:

P r[Y 6 = 0] = small for some value of ‘k’ gives an upper bound on the maximum number of vertices in a cliques. This probability states that with a very small probability a clique of size ‘k’ exists in graph G. Finding a minimum value of such ‘k’ will give the upper bound on the value of ω(G).

P r[Y = 0] = small for another value of ‘k’ gives a lower bound on the maximum number of vertices in a cliques. This probability states that with a very small probability a clique of size ‘k’ does not exist in graph G, i.e., at least one clique of of size ‘k’ exists. Finding a maximum value of such ‘k’ will give a lower bound on the value of ω(G).

Lecture 5: February 11 th^ 5-

Upper bound on the value of k For a given value of k, the expected number of cliques of that size is given by,

E[Y ] =

n k

#cliques of size k

× p

k 2

probability of all edges being present

( n k

nk k!

E[Y ] ≤

nk k! p

k(k−1) 2

k!

np

k− 1 2

)k

What is the value of ‘k’ that makes this expectation very small?

( np

k− 1 2

Let b = (^1) p to get,

n ≤ b

k− 1 2

Therefore, E[Y ] is very small for k = 2 logb n + 1. Conclusion: A clique of size k ≥ 2 logb n + 1 is very unlikely and it is very likely that Y = 0.

Lower bound on the value of k

V ar[Y ] E[Y 2 ]

E[Y 2 ] − E[Y ]^2

E[Y 2 ]

Need to calculate E[Y 2 ], as expression for E[Y ] already known from previous steps. Define random variable Xi as follows:

Xi =

1 if the ith^ k − set has a k − clique 0 otherwise

Then the number of cliques of size ‘k’:

Y =

n k

i=

Xi

Y 2 =

n k

i=

Xi

n k

i=

Xi

Y 2 =

i

j

XiXj