First 10 Questions - Probability Stochastic Calc IQs
First 10 Questions - Probability Stochastic Calc IQs
QUESTIONS
X
∞
E [N ] = P (N > i) .
i=0
Solutions
2.1 Discrete Probability
S = {g1 , g2 , . . . , gM , r1 , r2 , . . . , rN } .
29
30 CHAPTER 2. SOLUTIONS
(M + N − 1)! · M M
P (A) = = . (2.1)
(M + N )! M +N
Hn = X1 + X2 + · · · + Xn , and
Tn = n − (X1 + X2 + · · · + Xn ) .
E [Hn Tn ] = n E [X1 + · · · + Xn ]
ˆ ˜
− E (X1 + · · · + Xn )2 . (2.2)
2.1. DISCRETE PROBABILITY 31
ˆ ˜
Since the coin is fair, E [Xi] = 12 and E Xi2 = 12 for all
i = 1 : n, and, since Xj and Xk are independent for j = k,
1
E [Xj Xk ] = E [Xj ] E [Xk ] = , ∀ 1 ≤ j = k ≤ n.
4
Then,
X
n
n
E [X1 + · · · + Xn ] = E [Xi ] = ; (2.3)
i=1
2
ˆ ˜
E (X1 + · · · + Xn )2
Xn
ˆ ˜ X
= E Xi2 + E [Xj Xk ]
i=1 1≤j=k≤n
1 1
= n· + (n2 − n) ·
2 4
n2 + n
= . (2.4)
4
From (2.2–2.4), we conclude that
n2 n2 + n n2 − n
E [Hn Tn ] = − = .
2 4 4
Remark. The argument above is very similar to the deriva-
tion of formulas for the expected value and variance of
binomial random variables. If we use these formulas (in-
stead of deriving them), then the solution can be made
a bit shorter. We first need to observe that Hn has a
binomial distribution with parameters n and p = 21 . Its
expected value and variance satisfy the equations E [Hn ] =
np and var(Hn ) = np(1 − p). Therefore
ˆ ˜
E [Hn Tn ] = E [Hn (n − Hn ] = nE [Hn ] − E Hn2
= n2 p − np(1 − p) − n2 p2
` 2 ´
= n − n p(1 − p).
32 CHAPTER 2. SOLUTIONS
Since the given sum does not change if the numbers are
rotated around the circle, we can assume without any loss
of generality that x1 = 1. Let 1 < k ≤ 9 such that xk = 9.
Using the triangle inequality,1 we obtain that
X
k−1 X
9
S (→
−
x) = |xi+1 − xi | + |xi+1 − xi |
i=1 i=k
˛ ˛ ˛ ˛
˛k−1 ˛ ˛X ˛
˛X
9
˛ ˛ ˛
≥ ˛ (xi+1 − xi )˛ + ˛ (xi+1 − xi )˛
˛ ˛ ˛ ˛
i=1 i=k
= |xk − x1 | + |x10 − xk |
= |9 − 1| + |1 − 9|
= 18.
P9
The minimal value of S (→ −x) = i=1 |xi+1 − xi | is 18,
which is achieved if and only if
˛k−1 ˛
k−1
X ˛X ˛
˛ ˛
|xi+1 − xi | = ˛ (xi+1 − xi )˛ ;
˛ ˛
i=1 i=1
˛ ˛
X 9 ˛X 9 ˛
˛ ˛
|xi+1 − xi | = ˛ (xi+1 − xi )˛ ,
˛ ˛
i=k i=k
|G| 27
= .
8! 8!
P1 ( LH | E) = 0.
P2 ( LH | E) = 1.
Nk
P (Wk ) = . (2.5)
52!
Denote by Mk the number of ways in which we can choose
the positions for four Aces. For each choice of positions for
the four Aces, the Aces can be placed in those positions
in 4! ways, while the other cards can be placed in the
remaining positions in 48! ways. Therefore,
Nk = 4! · 48! · Mk . (2.6)
X
∞
E [N ] = P (N > i) .
i=0
2.1. DISCRETE PROBABILITY 39
Answer: By definition,
X
∞
E [N ] = i · P [N = i] . (2.8)
i=1
E [N ]
= P [N = 1]
+ P [N = 2] + P [N = 2]
+ P [N = 3] + P [N = 3] + P [N = 3]
.. .. .. ..
. . . .
the number of boxes that are bought from the time when
k−1 different coupons were collected until the time when k
different coupons have been collected. Note that N1 = 1,
since the first coupon is obtained by buying the first box.
Then,
Xp
N = Nk . (2.10)
k=1
X
n
1 1
≈ ln n + γ + ,
j=1
j 2n
1
E [N ] ≈ p ln p + 0.5772p + . (2.15)
2
Y
i−1
P (N > i) = P (n S1 ) · P (n Sk+1 | n Sk )
k=1
„ «i
1
= 1− . (2.16)
n
X
∞
E [N ] = P (N > i)
i=0
X∞ „ «i
1
= 1−
i=0
n
1
= ` ´
1 − 1 − n1
= n.