Professional Documents
Culture Documents
tion
Anup Rao
April 26, 2019
Expectation
1 1 1 1 1 1 21
E [X] = ·1+ ·2+ ·3+ ·4+ ·5+ ·6 = = 3.5.
6 6 6 6 6 6 6
If X is the number of heads when we toss a coin n times, the ex-
pected value of X is
1 n −1
with probability n ,
Y=
−(n − 1) 1
with probability n.
n
Z= 0 with probability 1.
Linearity of Expectation
Fact 1. If X and Y are real valued random variables in the same probability
space, then E [ X + Y ] = E [ X ] + E [Y ].
Proof.
E [X + Y] = ∑ p( X + Y = z) · z
z
= ∑ p( X = x, Y = y) · ( x + y)
x,y
= ∑ p( X = x, Y = y) · x + ∑ p( X = x, Y = y) · y.
x,y x,y
= ∑ p( X = x ) · x = E [ X ] .
x
E [αX + βY ] = α · E [ X ] + β · E [Y ] .
So, we get
E [ X ] = E [ X1 ] + E [ X2 ] + . . . + E [ Xn ] = n/2.
Then
h the number i of pairs of students with the same birthday is just
E ∑i< j∈[96] Xi,j = ∑i< j∈[96] E Xi,j , by linearity of expectation.
1
We have E Xi,j = 365
, so the expected number of pairs with the
same birthday is:
(96
2)
∑ E i,j 365
X = = 12.49 . . .
i < j∈[96]