Let A1,A2,…,An be events in some probability space. Let X be the number of Ai that occur (so X is a random variable). Show that
E(X)=i=1∑nP(Ai)
and
Var(X)=i=1∑nj=1∑n(P(Ai∩Aj)−P(Ai)P(Aj))
[Hint: Write X=∑i=1nXi where Xi={10 if Ai occurs if not .]
A collection of n lightbulbs are arranged in a circle. Each bulb is on independently with probability p. Let X be the number of bulbs such that both that bulb and the next bulb clockwise are on. Find E(X) and Var(X).
Let B be the event that there is at least one pair of adjacent bulbs that are both on.
Use Markov's inequality to show that if p=n−0.6 then P(B)→0 as n→∞.
Use Chebychev's inequality to show that if p=n−0.4 then P(B)→1 as n→∞.