PR 2 Sol Exam 2023 BB
PR 2 Sol Exam 2023 BB
PR 2 Sol Exam 2023 BB
implying that c = 1. Note that for this value of c, the function f is non-negative.
(b) Let k be an arbitrary positive integer. Then
Z ∞ Z ∞ Z ∞
k −x k −x ∞
k
E(X ) = k
x f (x)dx = x e dx = −x e |0 + kxk−1 e−x dx
−∞ 0 0
= kE(X k−1 ), (1)
where the third equality follows via integration by parts with u = xk (implying that
u0 = kxk−1 ) and v 0 = e−x (implying that v = −e−x ). Next, we prove the following
claim.
Claim 1. Let k be a positive integer. Then, E(X k ) = k!.
where the first equality holds by (1) and the last equality holds since f is a probability
density function. Assume now that E(X k ) = k! holds for some positive integer k. Then,
E(X k+1 ) = (k + 1)E(X k ) = (k + 1)k! = (k + 1)!,
where the first equality holds by (1) and the second equality holds by the induction
hypothesis.
2. (a) Consider a random red/blue colouring c of the edges of Kn , generated as follows. For
every edge of Kn toss a fair coin, all coin tosses being independent. for every e ∈ E(Kn ),
if the outcome of the
corresponding coin toss is HEADS, colour e red, otherwise colour
n
it blue. Let t = 4 and let F1 , . . . , Ft be an arbitrary enumeration of the copies of K4
in Kn . For every 1 ≤ i ≤ t, let Xi be the indicator random variable for the event “Fi
is monochromatic under c”. Then
4
E(Xi ) = P(Xi = 1) = 2 · (1/2)(2) = 2−5
holds for every 1 ≤ i ≤ t. Let X = ti=1 Xi and note that X denotes the number of
P
copies of K4 in Kn which are monochromatic under c. It follows by the linearity of
expectation that
t t
!
−5 n
X X
E(X) = E Xi = E(Xi ) = 2 .
4
i=1 i=1
1
It follows that there exists a colouring c0 : E(Kn ) → {red, blue} such that the number
of copies of K4 in Kn which are monochromatic under c0 is at most E(X) = 2−5 n4 .
(b) We say that a red/blue colouring c : E(Kn ) → {red, blue} is good if at most 2−4 n4
3. Let G ∼ G(n, 1/3). For every pair of distinct vertices u, v ∈ V (G), let Xuv be the random
variable which denotes the number of common neighbours of u and v in G. For every
z ∈ V (G) \ {u, v}, let Yz be the indicator random variable for the event “z is a common
neighbour of u and v”. Note that
E(Yz ) = P(Yz = 1) = P(uz ∈ E(G), vz ∈ E(G)) = (1/3)2 = 1/9
P
holds for every z ∈ V (G) \ {u, v}. Note, moreover, that Xuv = z∈V (G)\{u,v} Yz and thus
X X
E(Xuv ) = E Yz = E(Yz ) = (n − 2)/9
z∈V (G)\{u,v} z∈V (G)\{u,v}
holds by the linearity of expectation. Since the random variables Yz : z ∈ V (G) \ {u, v}
are independent (as they rely on pairwise disjoint pairs of edges) indicators, we may use
Chernoff’s inequality to deduce that
√ √
8n ln n
P(|Xuv − n/9| ≥ 3 n ln n) ≤ P(|Xuv − (n − 2)/9| ≥ 2 n ln n) ≤ 2 exp − ≤ n−7 ,
n−2
2
where the first inequality holds for sufficiently large n. A union bound over all pairs of
distinct vertices
√ shows that the probability
√ that there exists a pair of vertices
with more
n −7
than n/9 + 3 n ln n or less than n/9 − 3 n ln n common vertices is at most 2 n = o(1).